Skip to content

Instantly share code, notes, and snippets.

/get_string.pir Secret

Created June 8, 2011 01:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/61ed830fc8f2f476ba6a to your computer and use it in GitHub Desktop.
Save anonymous/61ed830fc8f2f476ba6a to your computer and use it in GitHub Desktop.
.sub 'get_string' :method :vtable
# Body
# {
.annotate 'line', 76
# var cls: $P1
getattribute $P1, self, '__class__'
.annotate 'line', 77
set $I1, $P1
unless $I1 goto __label_3
getattribute $P2, $P1, '__dict__'
exists $I1, $P2['__repr__']
__label_3:
unless $I1 goto __label_1
.annotate 'line', 78
getattribute $P4, $P1, '__dict__'
$P3 = $P4['__repr__']
.tailcall $P3(self)
goto __label_2
__label_1: # else
# predefined string
.annotate 'line', 80
getattribute $P5, self, '__dict__'
.annotate 'line', 77
set $S1, $P5
.annotate 'line', 80
.return($S1)
__label_2: # endif
# }
.annotate 'line', 81
.end # get_string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment