summaryrefslogtreecommitdiff
path: root/Source/Provers/SMTLib/TypeDeclCollector.cs
diff options
context:
space:
mode:
authorGravatar MichalMoskal <unknown>2011-02-18 22:05:07 +0000
committerGravatar MichalMoskal <unknown>2011-02-18 22:05:07 +0000
commit6cd02de973f4160bfb5dc22ad0ddaa7b5600eda9 (patch)
treed4940d70ad22c2f8ea7cdaeaea340d79f17c42d3 /Source/Provers/SMTLib/TypeDeclCollector.cs
parent192f8e8429c32ae6501c01c1f37033f4a893dd48 (diff)
Handle /useArrayTheory
Diffstat (limited to 'Source/Provers/SMTLib/TypeDeclCollector.cs')
-rw-r--r--Source/Provers/SMTLib/TypeDeclCollector.cs17
1 files changed, 2 insertions, 15 deletions
diff --git a/Source/Provers/SMTLib/TypeDeclCollector.cs b/Source/Provers/SMTLib/TypeDeclCollector.cs
index 327b2f70..0a03e4ab 100644
--- a/Source/Provers/SMTLib/TypeDeclCollector.cs
+++ b/Source/Provers/SMTLib/TypeDeclCollector.cs
@@ -168,7 +168,6 @@ void ObjectInvariant()
if (type.IsMap && CommandLineOptions.Clo.MonomorphicArrays) {
KnownTypes.Add(type, true);
- string declString = "";
MapType mapType = type.AsMap;
Contract.Assert(mapType != null);
@@ -178,21 +177,9 @@ void ObjectInvariant()
}
RegisterType(mapType.Result);
- declString += "(declare-sort " + TypeToString(type) + " 0";
+ if (!CommandLineOptions.Clo.UseArrayTheory)
+ AddDeclaration("(declare-sort " + TypeToString(type) + " 0)");
- /*
- if (CommandLineOptions.Clo.UseArrayTheory) {
- declString += " :BUILTIN Array ";
- foreach (Type t in mapType.Arguments) {
- declString += TypeToString(t);
- declString += " ";
- }
- declString += TypeToString(mapType.Result);
- }
- */
-
- declString += ")";
- AddDeclaration(declString);
return;
}