-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
calldata rendering bugfix, large memory offset bugfix #242
Conversation
Fixes z3.z3types.Z3Exception: All arguments must be Z3 bit-vector expressions.
src/halmos/__main__.py
Outdated
if any(is_bv(x) for x in calldata): | ||
# make sure every byte is wrapped | ||
calldata_bv = [x if is_bv(x) else con(x, 8) for x in calldata] | ||
return hexify(simplify(Concat(calldata_bv))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concat
will fail if the given list is a singleton. concat
should be used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concat, why are you so finicky? 🙈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in c430f4e
@@ -39,6 +39,8 @@ | |||
EMPTY_BYTES = b"" | |||
MAX_CALL_DEPTH = 1024 | |||
|
|||
# TODO: make this configurable | |||
MAX_MEMORY_SIZE = 2**20 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this be increased to 2^32 too?
No description provided.