示例#1
0
def verify_uses(func):
    """Verify the def-use chains"""
    # NOTE: verify should be importable from any pass!
    from pykit.analysis import defuse
    uses = defuse.defuse(func)
    diff = set.difference(set(uses), set(func.uses))
    assert not diff, diff
示例#2
0
def verify_uses(func):
    """Verify the def-use chains"""
    # NOTE: verify should be importable from any pass!
    from pykit.analysis import defuse
    uses = defuse.defuse(func)
    diff = set.difference(set(uses), set(func.uses))
    assert not diff, diff
示例#3
0
文件: value.py 项目: flypy/pykit
 def reset_uses(self):
     from pykit.analysis import defuse
     self.uses = defuse.defuse(self)
示例#4
0
 def reset_uses(self):
     from pykit.analysis import defuse
     self.uses = defuse.defuse(self)