Pi-Squared-Inc / solidity-demo-semantics

Demonstration Solidity Semantics in K
2 stars 2 forks source link

Summary `fidUpdate` function with 4 parameters #40

Closed Robertorosmaninho closed 3 days ago

Robertorosmaninho commented 4 days ago

This PR adds two new summarized rules regarding program execution. The rule presented in this PR summarizes the function fidUpdate(uint balance0, uint balance1, uint112 vidReserve0, uint112 vidReserve1) private {...}.

By summarizing this function, we save 2109 steps. (Without it, the program took 30874 steps, and after implementing it, the program took 28765 steps)