summaryrefslogtreecommitdiff
path: root/Source/VCGeneration
diff options
context:
space:
mode:
authorGravatar akashlal <unknown>2014-08-03 23:33:53 +0530
committerGravatar akashlal <unknown>2014-08-03 23:33:53 +0530
commit62cc2929cfb18b017e4b300817532ca15f4be644 (patch)
treed833d343304802d13c7852b688952e9735749fbe /Source/VCGeneration
parent0d82fe57a792b4b68826a9b0c72cf386052f1ff0 (diff)
Bug fix in SI
Diffstat (limited to 'Source/VCGeneration')
-rw-r--r--Source/VCGeneration/StratifiedVC.cs15
1 files changed, 13 insertions, 2 deletions
diff --git a/Source/VCGeneration/StratifiedVC.cs b/Source/VCGeneration/StratifiedVC.cs
index d88d4667..fe40618e 100644
--- a/Source/VCGeneration/StratifiedVC.cs
+++ b/Source/VCGeneration/StratifiedVC.cs
@@ -112,6 +112,11 @@ namespace VC {
return ret;
}
}
+
+ public override string ToString()
+ {
+ return info.impl.Name;
+ }
}
public class CallSite {
@@ -175,7 +180,13 @@ namespace VC {
}
scs.interfaceExprs = newInterfaceExprs;
}
- return gen.Implies(callSiteExpr, svc.vcexpr);
+ //return gen.Implies(callSiteExpr, svc.vcexpr);
+ return svc.vcexpr;
+ }
+
+ public override string ToString()
+ {
+ return callSite.calleeName;
}
}
@@ -404,7 +415,7 @@ namespace VC {
i++;
AssumeCmd callSiteAssumeCmd = (AssumeCmd)block.Cmds[i];
IdentifierExpr iexpr = (IdentifierExpr) callSiteAssumeCmd.Expr;
- CallSite cs = new CallSite(naryExpr.Fun.FunctionName, interfaceExprs, prover.Context.BoogieExprTranslator.LookupVariable(iexpr.Decl), block, instr, callSiteAssumeCmd.Attributes);
+ CallSite cs = new CallSite(naryExpr.Fun.FunctionName, interfaceExprs, prover.Context.BoogieExprTranslator.LookupVariable(iexpr.Decl), block, instr, assumeCmd.Attributes);
if (!callSites.ContainsKey(block))
callSites[block] = new List<CallSite>();
callSites[block].Add(cs);