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

Fixes #435 and #395: SMT backend crashes #453

Merged
merged 3 commits into from
Jul 31, 2024
Merged

Fixes #435 and #395: SMT backend crashes #453

merged 3 commits into from
Jul 31, 2024

Conversation

yav
Copy link
Collaborator

@yav yav commented Jul 30, 2024

Fix #435: We have to declare structs in dependency order. This fixes the dependency checker, to account for the fact that fields may contain Map which contains structs. This happens when a struct field contains and array.

Fix #395: These are the same changes as in PR #397, but adapted to the new format. To fix this we have to expand
lets in models returned by the solved because it would appear Z3 will sometimes generate them. For the moment we assume that there are no other binders in values., so we just do simple substitution. See comment on on_let.

Maps may appear in the fields of a struct, if the field is of an array type.
@dc-mak dc-mak requested a review from cp526 July 30, 2024 22:00
yav added 2 commits July 30, 2024 15:01
This commit has the same changes as in PR #397, but adapted
to the new formatting and library location.
@yav yav changed the title Fixes #435: Crash for stucts with array fields Fixes #435 and #395: SMT backend crashes Jul 30, 2024
@cp526 cp526 merged commit 47e3874 into master Jul 31, 2024
1 check failed
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.

[CN] crash on unknown sort with external SMT solver [CN] Unexpected solver error
2 participants