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

byte_extract is not appearing on the rhs of trace assignment when using the incremental smt2 decision procedure #8076

Open
esteffin opened this issue Nov 23, 2023 · 1 comment

Comments

@esteffin
Copy link
Contributor

When generating a trace using the incremental smt2 decision procedure, if an assignment of the form byte_extract(x, y, z) = byte_extract(j, k, l) should be present, it will be shown as byte_extract(x, y, z) = some_other_printout.

This causes a failure of test:

  • cbmc/trace-values/unbounded_array.desc

as it expects to find the trace step:
byte_extract_little_endian(dynamic_object, 0l, signed int [2l])=byte_extract_little_endian({ [0ul]=1, [1ul]=2, [13ul]=42 }, 0l, signed int [2l]) (?)

but it instead finds:
byte_extract_little_endian(dynamic_object, 0l, signed int [2l])={ 1, 2 } ({ 00000000 00000000 00000000 00000001, 00000000 00000000 00000000 00000010 })

@tautschnig
Copy link
Collaborator

This RHS just looks like the simplified version of what the test expects? Maybe that's actually ok and we should change the test instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants