Skip to content
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

paper cut fixes #239

Merged
merged 4 commits into from
Dec 22, 2023
Merged

paper cut fixes #239

merged 4 commits into from
Dec 22, 2023

Conversation

karmacoma-eth
Copy link
Collaborator

A bit of a band-aid until we implement a nicer concrete-symbolic API

Fixes #220
@@ -253,9 +253,10 @@ def wstore_bytes(
raise ValueError(size, arr)
wextend(mem, loc, size)
for i in range(size):
if not eq(arr[i].sort(), BitVecSort8):
arr_i_bv = arr[i] if is_bv(arr[i]) else con(arr[i], 8)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

questions: when arr[i] is not bv:

  • do we want to store them as bv, rather than keeping it int?
  • do we need to check if arr[i] < 256, or is it guaranteed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch, can you check again with 7c5c364?

@daejunpark daejunpark merged commit 153d9fe into main Dec 22, 2023
50 checks passed
@daejunpark daejunpark deleted the console-log-symbolic branch December 22, 2023 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AttributeError: 'int' object has no attribute 'sort' in call_known
2 participants