Skip to content

Commit

Permalink
Documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
franck44 committed Oct 11, 2023
1 parent 78a419f commit 62114e8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/dafny/yul-verif-examples/erc-20/erc-20.dfy
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,13 @@ module ERC20 {
return Revert(0, 0, s);
}


/**
* Check interval between two numbers.
* @param headStart
* @param dataEnd
* @param s A state.
* @returns `revert` if dataEnd < headStart and `s` otherwise.
*/
method abi_decode_tuple_(headStart: u256, dataEnd: u256, s: Executing) returns (s': State)
requires -TWO_255 <= dataEnd as int - headStart as int < TWO_255
ensures headStart <= dataEnd ==> s' == s
Expand Down

0 comments on commit 62114e8

Please sign in to comment.