Skip to content

change Fφ BMC encoding#767

Merged
kroening merged 1 commit intomainfrom
change-Fphi-encoding
Oct 16, 2024
Merged

change Fφ BMC encoding#767
kroening merged 1 commit intomainfrom
change-Fphi-encoding

Conversation

@kroening
Copy link
Collaborator

@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
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
Collaborator 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 force-pushed the change-Fphi-encoding branch from 7c134ae to 07eefa5 Compare October 16, 2024 17:41
@kroening kroening merged commit e9e770d into main Oct 16, 2024
@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

Comments