-
Notifications
You must be signed in to change notification settings - Fork 9
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/inconsistent location invariant #94
Fix/inconsistent location invariant #94
Conversation
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.
I have done a round of review.
For next time: reviews are (in general) easier when they are smaller. Now you solve multiple issues in the same merge request.
I think it is dangerous to allow spaces in names.
I think we should stick to having _ (underscores in the names).
--ulrik
On 05/02/2023 08.56, Andreas K. Brandhøj wrote:
@Brandhoej commented on this pull request.
________________________________
In src/logic/Refinement.java<#94 (comment)>:
@@ -432,8 +432,9 @@ private boolean checkActions(State state1, State state2, boolean isInput) {
Log.debug("create pairs failed");
if (RET_REF)
{
- Location ll = Location.createInconsistentLocation("inconsistent", 0, 0);
- Location rl = Location.createInconsistentLocation("inconsistent", 0, 0);
+ Clock inconsistentClock = new Clock("inconsistent clock", "refinement");
I don't know how parsing is affected by spaces in names, but I would prefer to allow them.
—
Reply to this email directly, view it on GitHub<#94 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADBJZC23UDCI6PYWGUQP7CDWV5MLDANCNFSM6AAAAAASOQYU7Y>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
…--
⬡ Ulrik Nyman, http://ulrik.blog.aau.dk, mobile: (+45) 40 89 21 56
⩽ Associate Professor, Ph.D.
Head of Studies at Department of Computer Science
Deputy Head of Department, http://www.cs.aau.dk
Education Coordinator for Software
Aalborg University, http://www.aau.dk
|
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.
Thanks for the improvement. Just some minor stuff I noticed.
Fixes #62 where the inconsistent location has an incorrect invariant. The fix for this was to introduce a global clock which, upon creation of a Quotient instance, is searched for. If this clock exists then it is reused in a new inconsistent location otherwise one is created. Also, flaky tests were happening as some tests at random times tried to reduce a terminal CDD this has been fixed by adding several checks in CDD for shortcut computations.
Description
isTerminal
check is required, but I still prefer having it.Opens
Related Issues
Closes #62