diff options
author | akashlal <unknown> | 2010-07-10 03:27:25 +0000 |
---|---|---|
committer | akashlal <unknown> | 2010-07-10 03:27:25 +0000 |
commit | 19c46de40c04184d52de0cbd147203675f9621f1 (patch) | |
tree | 6c1f24aee14a14fbd8e8b525c39beb7224675996 /Source/VCGeneration | |
parent | 442dceca5acb9ab93978d0173e850125288db6d5 (diff) |
/stratifiedInline:n eagerly inlines n times before calling the stratified inlining algorithm.
Diffstat (limited to 'Source/VCGeneration')
-rw-r--r-- | Source/VCGeneration/VC.ssc | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/Source/VCGeneration/VC.ssc b/Source/VCGeneration/VC.ssc index 967d02c4..b80fc88f 100644 --- a/Source/VCGeneration/VC.ssc +++ b/Source/VCGeneration/VC.ssc @@ -1680,9 +1680,8 @@ namespace VC int expansionCount = 0;
int total_axioms_pushed = 0;
- /*
// Do eager inlining
- while(calls.currCandidates.Count != 0)
+ for(int i = 1; i < CommandLineOptions.Clo.StratifiedInlining && calls.currCandidates.Count > 0; i ++)
{
List<int>! toExpand = new List<int>();
foreach(int id in calls.currCandidates) {
@@ -1692,7 +1691,6 @@ namespace VC total_axioms_pushed +=
DoExpansion(toExpand, calls, checker);
}
- */
int cnt = 0;
while(cnt < 500) {
@@ -1792,6 +1790,7 @@ namespace VC throws UnexpectedProverOutputException;
{
int old_axioms_pushed = checker.TheoremProver.NumAxiomsPushed();
+ VCExpr! exprToPush = VCExpressionGenerator.True;
foreach(int id in candidates) {
VCExprNAry! expr = calls.id2Candidate[id];
string procName = ((!)(expr.Op as VCExprBoogieFunctionOp)).Func.Name;
@@ -1839,9 +1838,12 @@ namespace VC expansion = calls.Mutate(expansion, true);
expansion = checker.VCExprGen.Eq(expr, expansion);
- checker.TheoremProver.PushVCExpression(expansion);
+ exprToPush = checker.VCExprGen.And(exprToPush, expansion);
+ //checker.TheoremProver.PushVCExpression(expansion);
}
+ checker.TheoremProver.PushVCExpression(exprToPush);
+
int axioms_pushed = checker.TheoremProver.NumAxiomsPushed() - old_axioms_pushed;
checker.TheoremProver.FlushAxiomsToTheoremProver();
return axioms_pushed;
@@ -1878,9 +1880,13 @@ namespace VC checker.TheoremProver.FlushAxiomsToTheoremProver();
checker.BeginCheck(implName, vc, reporter);
checker.ProverDone.WaitOne();
-
+
ProverInterface.Outcome outcome = (checker).ReadOutcome();
+ //checker.BeginCheck(implName, vc, reporter);
+ //checker.ProverDone.WaitOne();
+ //outcome = (checker).ReadOutcome();
+
switch (outcome) {
case ProverInterface.Outcome.Valid:
return Outcome.Correct;
|