Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteEchoes committed Jun 12, 2024
1 parent 897e74d commit 8fb843d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion CoqOfPython/ethereum/utils/simulations/numeric.v
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,12 @@
if remainder == Uint(0):
return value
else:
return value + ceiling - remainder *)
return value + ceiling - remainder *)

(* TODO: Finish below *)
Definition ceil32 (value : Uint) : Uint :=
let ceiling := Uint.Make 32 in
let remainder := value % ceiling in
if remainder =? Uint 0
then value
else value + ceiling - remainder.

0 comments on commit 8fb843d

Please sign in to comment.