class documentation

class Rewriter: (source)

Constructor: Rewriter(src)

View In Hierarchy

The rewriter class contains a set of static methods.

Static Method rewrite To constuct a import graph. Args: src: the source code to be rewritten rule_func: the function that should be applied for each of statements. The value of rule_func must not be None
Method __init__ Undocumented
Method for2while Undocumented
Method get_src Undocumented
Method loop_exchange Undocumented
Method random_var_renaming Undocumented
Method unused_stmt_insertion Undocumented
Instance Variable ast Undocumented
Instance Variable src Undocumented
@staticmethod
def rewrite(src, rule_func=None): (source)

To constuct a import graph. Args: src: the source code to be rewritten rule_func: the function that should be applied for each of statements. The value of rule_func must not be None

def __init__(self, src): (source)

Undocumented

def for2while(self, node): (source)

Undocumented

def get_src(self): (source)

Undocumented

def loop_exchange(self): (source)

Undocumented

def random_var_renaming(self, new_name_candidates=[], K=2): (source)

Undocumented

def unused_stmt_insertion(self): (source)

Undocumented

Undocumented

Undocumented