1.1 --- a/transresults.py Sun Mar 19 00:56:43 2017 +0100
1.2 +++ b/transresults.py Fri Mar 24 22:39:37 2017 +0100
1.3 @@ -139,7 +139,13 @@
1.4 "A constant value reference in the translation."
1.5
1.6 def __str__(self):
1.7 - return encode_literal_constant(self.number)
1.8 +
1.9 + # NOTE: Should reference a common variable for the type name.
1.10 +
1.11 + if self.ref.get_origin() == "__builtins__.int.int":
1.12 + return "__INTVALUE(%s)" % self.value
1.13 + else:
1.14 + return encode_literal_constant(self.number)
1.15
1.16 class TrLiteralSequenceRef(LiteralSequenceRef):
1.17
1.18 @@ -205,7 +211,7 @@
1.19 return encode_instructions(self.instructions)
1.20
1.21 def __repr__(self):
1.22 - return "AttrResult(%r, %r, %r)" % (self.instructions, self.refs, self.location)
1.23 + return "AttrResult(%r, %r, %r, %r)" % (self.instructions, self.refs, self.location, self.context_identity)
1.24
1.25 class AliasResult(NameRef, Result):
1.26