diff options
author | qadeer <unknown> | 2013-09-04 15:51:46 -0700 |
---|---|---|
committer | qadeer <unknown> | 2013-09-04 15:51:46 -0700 |
commit | 928b0875faa34b0d9d9162dbbb6e5fadf7044aac (patch) | |
tree | da243815263af9eb5358bc93ada4372b4e196ce6 /Source/VCGeneration/StratifiedVC.cs | |
parent | b06cff3aa1491d0b2e5885a6e801c1d924af2e11 (diff) |
Factored out the closure for codeexpr conversion so that it can be reused.
Enabled it in stratified inlining.
Diffstat (limited to 'Source/VCGeneration/StratifiedVC.cs')
-rw-r--r-- | Source/VCGeneration/StratifiedVC.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/VCGeneration/StratifiedVC.cs b/Source/VCGeneration/StratifiedVC.cs index ceea2477..aeeb0507 100644 --- a/Source/VCGeneration/StratifiedVC.cs +++ b/Source/VCGeneration/StratifiedVC.cs @@ -266,6 +266,9 @@ namespace VC { VCExpressionGenerator gen = proverInterface.VCExprGen;
var exprGen = proverInterface.Context.ExprGen;
var translator = proverInterface.Context.BoogieExprTranslator;
+ VCGen.CodeExprConversionClosure cc = new VCGen.CodeExprConversionClosure(label2absy, proverInterface.Context);
+ translator.SetCodeExprConverter(cc.CodeExprToVerificationCondition);
+
VCExpr controlFlowVariableExpr = null;
if (!CommandLineOptions.Clo.UseLabels) {
controlFlowVariable = new LocalVariable(Token.NoToken, new TypedIdent(Token.NoToken, "@cfc", Microsoft.Boogie.Type.Int));
|