Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
daejunpark committed Oct 11, 2024
1 parent 57bffaa commit 1259dbf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/halmos/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,14 @@ def f_sha3_name(bitsize: int) -> str:
return f"f_sha3_{bitsize}"


f_sha3_0_name = f_sha3_name(0)
f_sha3_256_name = f_sha3_name(256)
f_sha3_512_name = f_sha3_name(512)

f_sha3_0_name = f_sha3_name(0)
# NOTE: another way to encode the empty keccak is to use 0-ary function like:
# f_sha3_empty = Function(f_sha3_0_name, BitVecSort256)
# then `f_sha3_empty()` is equivalent to `BitVec(f_sha3_0_name, BitVecSort256)`.
# in both cases, decl() == f_sha3_0_name, and num_args() == 0.
f_sha3_empty = BitVec(f_sha3_0_name, BitVecSort256)


Expand Down

0 comments on commit 1259dbf

Please sign in to comment.