-
Notifications
You must be signed in to change notification settings - Fork 112
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
Extract refactorings from #952 #957
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.
Refactorings look good.
@@ -166,7 +167,7 @@ public HoudiniSession(Houdini houdini, VerificationConditionGenerator vcgen, Pro | |||
collector = new VerificationResultCollector(houdini.Options); | |||
collector.OnProgress?.Invoke("HdnVCGen", 0, 0, 0.0); | |||
|
|||
vcgen.ConvertCFG2DAG(run, taskID: taskID); | |||
new RemoveBackEdges(vcgen).ConvertCfg2Dag(run, taskID: taskId); |
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.
Nit: style and maintenance. A more discoverable IMO would be to declare a method on vcgen named "RemoveBackEdges()
thar calls and return new RemoveBackEdges(this)
@@ -18,20 +18,20 @@ void ObjectInvariant() | |||
} | |||
|
|||
|
|||
public CallCounterexample(VCGenOptions options, List<Block> trace, List<object> augmentedTrace, AssertRequiresCmd assertRequiresCmd, Model model, | |||
public CallCounterexample(VCGenOptions options, List<Block> trace, List<object> augmentedTrace, AssertRequiresCmd failingAssertRequires, Model model, |
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 renaming that brings some meaning.
} | ||
|
||
blockMap[(Block) bl] = auxNewBlock; | ||
continue; |
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.
Indentation saver !
No description provided.