summaryrefslogtreecommitdiff
path: root/Source/Provers/SMTLib/TypeDeclCollector.cs
diff options
context:
space:
mode:
authorGravatar Rustan Leino <leino@microsoft.com>2016-02-12 16:47:51 -0800
committerGravatar Rustan Leino <leino@microsoft.com>2016-02-12 16:47:51 -0800
commit7ce69481c0b6af79a6d6542989832cd90fc5690f (patch)
treea91488b8ad92bc69718f2d5fda1d44082a3959de /Source/Provers/SMTLib/TypeDeclCollector.cs
parentabee810ceedbf551194788164fdf723edc511c0c (diff)
parent5fb565e439255ede7dc3653708af41678b6c1062 (diff)
Merge branch 'master' of https://github.com/boogie-org/boogie
Diffstat (limited to 'Source/Provers/SMTLib/TypeDeclCollector.cs')
-rw-r--r--Source/Provers/SMTLib/TypeDeclCollector.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Provers/SMTLib/TypeDeclCollector.cs b/Source/Provers/SMTLib/TypeDeclCollector.cs
index 32e28560..1c23c22f 100644
--- a/Source/Provers/SMTLib/TypeDeclCollector.cs
+++ b/Source/Provers/SMTLib/TypeDeclCollector.cs
@@ -255,7 +255,10 @@ void ObjectInvariant()
RegisterType(node.Type);
string decl =
"(declare-fun " + printedName + " () " + TypeToString(node.Type) + ")";
- AddDeclaration(decl);
+ if (!printedName.StartsWith("assume$$"))
+ {
+ AddDeclaration(decl);
+ }
KnownVariables.Add(node);
if(declHandler != null)
declHandler.VarDecl(node);