Skip to content

Commit 38c4bb3

Browse files
committed
Removed model list from being passed to VerifyImplementation
1 parent 137bcc4 commit 38c4bb3

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

source/ExplainError/program.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,12 +1333,11 @@ public static bool CheckIfExprFalse(Implementation impl, Expr e)
13331333
new List<Requires>(new Requires[] { new Requires(false, e) }), new List<IdentifierExpr>(), new List<Ensures>(new Ensures[] { new Ensures(false, Expr.False) }));
13341334
i.Proc = p;
13351335
var cexList = new List<Counterexample>();
1336-
var mList = new List<Model>();
13371336
prog.AddTopLevelDeclaration(i);
13381337
prog.AddTopLevelDeclaration(p);
13391338
prog.Resolve();
13401339
prog.Typecheck();
1341-
var result = (MyVerifyImplementation(i, ref cexList, ref mList) == VC.ConditionGeneration.Outcome.Correct);
1340+
var result = (MyVerifyImplementation(i, ref cexList) == VC.ConditionGeneration.Outcome.Correct);
13421341
prog.RemoveTopLevelDeclaration(i);
13431342
prog.RemoveTopLevelDeclaration(p);
13441343
prog.Resolve();
@@ -1350,7 +1349,7 @@ public static bool CheckIfExprFalse(Implementation impl, Expr e)
13501349
}
13511350
//routines for querying the verifier
13521351
public static VC.ConditionGeneration.Outcome MyVerifyImplementation(Implementation i,
1353-
ref List<Counterexample> cexList, ref List<Model> mList)
1352+
ref List<Counterexample> cexList)
13541353
{
13551354
//this creates a z3 process per vcgen
13561355
var checkers = new List<Checker>();
@@ -1370,7 +1369,7 @@ public static VC.ConditionGeneration.Outcome MyVerifyImplementation(Implementati
13701369
i.Blocks = i.OriginalBlocks;
13711370
i.LocVars = i.OriginalLocVars;
13721371
}
1373-
var outcome = vcgen.VerifyImplementation((Implementation)i, out cexList, out mList);
1372+
var outcome = vcgen.VerifyImplementation((Implementation)i, out cexList);
13741373
var reset = new ResetVerificationState();
13751374
reset.Visit(i);
13761375
foreach (Checker checker in checkers)
@@ -1386,8 +1385,7 @@ public static VC.ConditionGeneration.Outcome MyVerifyImplementation(Implementati
13861385
public static VC.ConditionGeneration.Outcome MyVerifyImplementation(Implementation i)
13871386
{
13881387
List<Counterexample> cexs = new List<Counterexample>();
1389-
List<Model> models = new List<Model>();
1390-
return MyVerifyImplementation(i, ref cexs, ref models);
1388+
return MyVerifyImplementation(i, ref cexs);
13911389
}
13921390
class ResetVerificationState : StandardVisitor
13931391
{

0 commit comments

Comments
 (0)