Skip to content

BMC: reconsider lasso-shaped encodings #1202

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

kroening
Copy link
Member

@kroening kroening commented Jul 13, 2025

This replaces the lasso-shaped encodings in the word-level BMC property encoding. The lasso and straigth-line encodings are now built as separate obligations. In the lasso encoding, all operators follow the same lasso shape. This avoids spurious traces where the eventually operator follows the lasso but a safety part of the property does not.

@kroening kroening force-pushed the bmc-F-encoding branch 13 times, most recently from 657edef to f64a958 Compare July 20, 2025 22:10
@kroening kroening changed the title BMC: reconsider encoding of F BMC: reconsider lasso-shaped encodings Jul 20, 2025
@kroening kroening marked this pull request as ready for review July 21, 2025 11:56
@kroening kroening force-pushed the bmc-F-encoding branch 5 times, most recently from 9fb11a8 to b043366 Compare July 27, 2025 16:25
Comment on lines 1950 to 1959
if(var.type.id() == "submodule")
{
symbol.is_input = false;
symbol.is_state_var = false;
}
else
{
symbol.is_input = true;
symbol.is_state_var = false;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

This change requires git conflict resolution, but also I am confused by the change itself: is_state_var is false in both branches and was set to false before already.

Copy link
Member Author

Choose a reason for hiding this comment

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

Now cleaned up

This replaces the lasso-shaped encodings in the word-level BMC property
encoding.  The lasso and straigth-line encodings are now built as separate
obligations.  In the lasso encoding, all operators follow the same lasso
shape.  This avoids spurious traces where the eventually operator follows
the lasso but a safety part of the property does not.
symbol.is_state_var = false;
symbol.value = nil_exprt{};
Copy link
Collaborator

Choose a reason for hiding this comment

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

This line and the one above aren't actually necessary, the symbolt constructor will have set these already. (Though lines 1973 and 1975 should then also be removed.)

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

Successfully merging this pull request may close these issues.

2 participants