|
@@ -6,6 +6,7 @@ class BootstrapVisitor(PrimitivesVisitor):
|
|
PrimitivesVisitor.__init__(self, args)
|
|
PrimitivesVisitor.__init__(self, args)
|
|
|
|
|
|
def dump(self):
|
|
def dump(self):
|
|
|
|
+ link_id = 0
|
|
call = self.value("call")
|
|
call = self.value("call")
|
|
access = self.value("access")
|
|
access = self.value("access")
|
|
resolve = self.value("resolve")
|
|
resolve = self.value("resolve")
|
|
@@ -31,7 +32,8 @@ class BootstrapVisitor(PrimitivesVisitor):
|
|
source = "auto_%s" % source if isinstance(source, int) else source
|
|
source = "auto_%s" % source if isinstance(source, int) else source
|
|
target = "auto_%s" % target if isinstance(target, int) else target
|
|
target = "auto_%s" % target if isinstance(target, int) else target
|
|
# output.append("D %s,%s,%s\n" % (source, value, target))
|
|
# output.append("D %s,%s,%s\n" % (source, value, target))
|
|
- linkname = "%s_%s_%s" % (source, abs(hash(value)), target)
|
|
|
|
|
|
+ linkname = "%s_%s_%s" % (source, link_id, target)
|
|
|
|
+ link_id += 1
|
|
output.append("Edge _%s_0(%s, %s)\n" % (linkname, source, target))
|
|
output.append("Edge _%s_0(%s, %s)\n" % (linkname, source, target))
|
|
output.append("Node _%s_2(%s)\n" % (linkname, value))
|
|
output.append("Node _%s_2(%s)\n" % (linkname, value))
|
|
output.append("Edge _%s_1(_%s_0, _%s_2)\n" % (linkname, linkname, linkname))
|
|
output.append("Edge _%s_1(_%s_0, _%s_2)\n" % (linkname, linkname, linkname))
|