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

change Fφ BMC encoding #767

Merged
merged 1 commit into from
Oct 16, 2024
Merged

change Fφ BMC encoding #767

merged 1 commit into from
Oct 16, 2024

Conversation

kroening
Copy link
Member

@kroening kroening commented Oct 15, 2024

This changes the word-level BMC encoding for Fφ properties to remove counterexample traces that exhibit the following:

  1. a ¬φ loop,
  2. followed by one or more φ states.

While these traces demonstrate that a counterexample exists (constructed by simply expanding the ¬φ loop), they are not themselves counterexamples to Fφ.

@kroening kroening force-pushed the change-Fphi-encoding branch 3 times, most recently from 18c4487 to 2a9d18e Compare October 15, 2024 22:10
@kroening kroening marked this pull request as ready for review October 15, 2024 22:20
@@ -256,6 +256,17 @@ static obligationst property_obligations_rec(

obligationst obligations;

// Traces with any φ state from "current" onwards satisfy Fφ
exprt::operandst phi_disjuncts;
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should make a habit of using .reserve when populating the container via push_back a known quantity of times. It'll take an extra type conversion here to go from mp_integer to std::size_t, but we should avoid the potentially quadratic cost of re-allocating and copying.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@kroening kroening force-pushed the change-Fphi-encoding branch 2 times, most recently from 3b1c9d0 to 7c134ae Compare October 16, 2024 17:37
This changes the word-level BMC encoding for Fφ properties to remove
counterexample traces that exhibit the following:

1) a ¬φ loop,
2) followed by one or more φ states.

While these traces demonstrate that a counterexample exists (constructed by
simply expanding the ¬φ loop), they are not themselves counterexamples to
Fφ.
@kroening kroening merged commit e9e770d into main Oct 16, 2024
6 of 8 checks passed
@kroening kroening deleted the change-Fphi-encoding branch October 16, 2024 17:51
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