Proof: Get Iterate End State 51
Let's prove the following theorem:
if the following are true:
- expression state at time 51 = "iterate_args"
- arguments stack at time 51 = [ [ ], [ [ 5, [ ] ], [ [ ], [ ] ] ] ]
- parent stack at time 51 = [
self.x
, [__add__(self.x, 5)
, [ self."x" =__add__(self.x, 5)
, [ ] ] ] ]
then expression state at time 52 = "call_function_begin"
Proof:
Given
1 | expression state at time 51 = "iterate_args" |
---|---|
2 | arguments stack at time 51 = [ [ ], [ [ 5, [ ] ], [ [ ], [ ] ] ] ] |
3 | parent stack at time 51 = [ self.x , [ __add__(self.x, 5) , [ self."x" = __add__(self.x, 5) , [ ] ] ] ] |
# | Claim | Reason |
---|---|---|
1 | expression state at time (51 + 1) = "call_function_begin" | if expression state at time 51 = "iterate_args" and arguments stack at time 51 = [ [ ], [ [ 5, [ ] ], [ [ ], [ ] ] ] ] and parent stack at time 51 = [ self.x , [ __add__(self.x, 5) , [ self."x" = __add__(self.x, 5) , [ ] ] ] ], then expression state at time (51 + 1) = "call_function_begin" |
2 | 51 + 1 = 52 | 51 + 1 = 52 |
3 | expression state at time (51 + 1) = expression state at time 52 | if 51 + 1 = 52, then expression state at time (51 + 1) = expression state at time 52 |
4 | expression state at time 52 = "call_function_begin" | if expression state at time (51 + 1) = expression state at time 52 and expression state at time (51 + 1) = "call_function_begin", then expression state at time 52 = "call_function_begin" |
Comments
Please log in to add comments