-
Notifications
You must be signed in to change notification settings - Fork 13
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
Fix counterexamples for inclusion #442
Conversation
is_included_antichains
It seems that there is significant slowdown while generating counterexamples, see VeriFIT/z3-noodler#183 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
@@ -206,8 +206,25 @@ public: | |||
*/ | |||
Nfa& trim(StateRenaming* state_renaming = nullptr); | |||
|
|||
/** | |||
* @brief Returns vector ret where ret[q] is the length of the shortest path from any initial state to q | |||
*/ | |||
std::vector<State> distances_from_initial() const; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice if we have some general BFS/DFS method parameterized by callbacks (in a similar fashion as for Tarjan). All these functions such as distances_from_initial
or distances_to_final
could be easily expressible by this and you wouldn't need to write BFS/DFS all over again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created an issue from this: #446.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to be working as expected.
Co-authored-by: David Chocholatý <[email protected]>
This PR fixes counterexamples for antichain inclusion algorithm (both the word and path were incorrect) and for naive algorithm it fixes the path in the counterexamples.