Proof: Get Iterate End Params 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 arguments stack at time 52 = [ [ 5, [ ] ], [ [ ], [ ] ] ]
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 | arguments stack at time (51 + 1) = [ [ 5, [ ] ], [ [ ], [ ] ] ] | 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 arguments stack at time (51 + 1) = [ [ 5, [ ] ], [ [ ], [ ] ] ] |
2 | 51 + 1 = 52 | 51 + 1 = 52 |
3 | arguments stack at time (51 + 1) = arguments stack at time 52 | if 51 + 1 = 52, then arguments stack at time (51 + 1) = arguments stack at time 52 |
4 | arguments stack at time 52 = [ [ 5, [ ] ], [ [ ], [ ] ] ] | if arguments stack at time (51 + 1) = arguments stack at time 52 and arguments stack at time (51 + 1) = [ [ 5, [ ] ], [ [ ], [ ] ] ], then arguments stack at time 52 = [ [ 5, [ ] ], [ [ ], [ ] ] ] |
Comments
Please log in to add comments