summaryrefslogtreecommitdiff
path: root/Source/VCExpr/SimplifyLikeLineariser.cs
diff options
context:
space:
mode:
authorGravatar MichalMoskal <unknown>2010-08-18 01:09:33 +0000
committerGravatar MichalMoskal <unknown>2010-08-18 01:09:33 +0000
commitce2156e0b37f2efdb2e17aa1998c1c6a71adf062 (patch)
tree6b6ff0b7d7051f264ad54f6a1a3636db19221740 /Source/VCExpr/SimplifyLikeLineariser.cs
parent024e1669cac41a45ba0d825035a25d32a1562a67 (diff)
Change Synonym type printing to what it was, use a workaround in TypeToString() instead. Add test for /typeEncoding:m.
Diffstat (limited to 'Source/VCExpr/SimplifyLikeLineariser.cs')
-rw-r--r--Source/VCExpr/SimplifyLikeLineariser.cs11
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/VCExpr/SimplifyLikeLineariser.cs b/Source/VCExpr/SimplifyLikeLineariser.cs
index 84cf0454..01fd37c9 100644
--- a/Source/VCExpr/SimplifyLikeLineariser.cs
+++ b/Source/VCExpr/SimplifyLikeLineariser.cs
@@ -251,9 +251,14 @@ Contract.Ensures(Contract.Result<string>() != null);
}
return buffer.ToString();
}
- public static string TypeToString(Type t){
-Contract.Requires(t != null);
-Contract.Ensures(Contract.Result<string>() != null);
+ public static string TypeToString(Type t)
+ {
+ Contract.Requires(t != null);
+ Contract.Ensures(Contract.Result<string>() != null);
+ TypeSynonymAnnotation syn = t as TypeSynonymAnnotation;
+ if (syn != null)
+ return TypeToString(syn.ExpandedType);
+
if (t.IsBool)
return "$bool";
else if (t.IsInt)