Skip to content

Commit

Permalink
Edited end of function summary. Number of expected restoreEnv (closin…
Browse files Browse the repository at this point in the history
…g scopes) is input dependent).
  • Loading branch information
mariaKt committed Oct 3, 2024
1 parent 4dac6d7 commit df1585d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/uniswap-summaries.md
Original file line number Diff line number Diff line change
Expand Up @@ -2743,8 +2743,8 @@ module SOLIDITY-UNISWAP-GETAMOUNTSOUT-SUMMARY
</store>
<current-function> uniswapV2LibraryGetAmountsOut </current-function> [priority(40)]
// While condition evaluated to false until return from getAmountsOut to caller
rule <k> if ( v ( false , bool ) ) { _:Statements } else { .Statements } ~> .Statements ~> restoreEnv ( _:Map ) ~> .Statements ~> restoreEnv ( _:Map (amounts |-> var(Ia, uint256 [])) ) ~> .Statements ~> return amounts ; ~> .K => v ( Va , uint256 [] ) ~> K </k>
// End of function: final environment restoration until return from getAmountsOut to caller
rule <k> restoreEnv ( _:Map (amounts |-> var(Ia, uint256 [])) ) ~> .Statements ~> return amounts ; ~> .K => v ( Va , uint256 [] ) ~> K </k>
<summarize> true </summarize>
<env> _ => E </env>
<store> _ [ Ia <- Va ] </store>
Expand Down

0 comments on commit df1585d

Please sign in to comment.