-
Notifications
You must be signed in to change notification settings - Fork 6
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
An optimisation of underapproximation #112
Conversation
Results on all benchmarks.
On |
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.
Just some small stuff
mata::OnTheFlyAlphabet mata_alphabet{}; | ||
for (const auto& symbol : alphabet) { | ||
mata_alphabet.add_new_symbol(std::to_string(symbol), symbol); | ||
} | ||
mata::nfa::Nfa aut_compl = mata::nfa::complement(*(this->aut_ass.at(var)), mata_alphabet); |
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.
We should really make this a method of AutAssignment
, I think I wrote such code multiple times already, and it is even used twice in this pull request.
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.
Looking at it more properly, the complement of NFA for var
is computed twice here, once in is_co_finite
and again here, can we reuse it somehow?
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.
- good point. Should be fixed now
- true, but I don't want to make a side effect in
is_co_finite
.
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.
Other than the already mentioned, seems fine to me.
A minor change of co-finite check to allow a wider range of constraint to pass the underapproximation.