summaryrefslogtreecommitdiff
path: root/Source/Core/Absy.cs
diff options
context:
space:
mode:
authorGravatar wuestholz <unknown>2014-11-25 10:52:54 +0100
committerGravatar wuestholz <unknown>2014-11-25 10:52:54 +0100
commitc8b3dace6ff23f5554423b41c03d87e024ed1147 (patch)
treea43d8de1611c2fa075aa3648c2d8e31df45d07cd /Source/Core/Absy.cs
parentdf1fcecae3a43d6079eb6b335b80d9a907945ffe (diff)
Worked on the verification result caching (extracted functions).
Diffstat (limited to 'Source/Core/Absy.cs')
-rw-r--r--Source/Core/Absy.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/Absy.cs b/Source/Core/Absy.cs
index 9d446ebd..a5955c7a 100644
--- a/Source/Core/Absy.cs
+++ b/Source/Core/Absy.cs
@@ -1250,6 +1250,13 @@ namespace Microsoft.Boogie {
return visitor.VisitProgram(this);
}
+ int extractedFunctionCount;
+ public string FreshExtractedFunctionName()
+ {
+ var c = System.Threading.Interlocked.Increment(ref extractedFunctionCount);
+ return string.Format("##extracted_function##{0}", c);
+ }
+
private int invariantGenerationCounter = 0;
public Constant MakeExistentialBoolean(int StageId) {