diff options
author | Rustan Leino <leino@microsoft.com> | 2011-10-26 19:14:55 -0700 |
---|---|---|
committer | Rustan Leino <leino@microsoft.com> | 2011-10-26 19:14:55 -0700 |
commit | 0554f4e6085f63f5d171abae76a0010fb177a4b5 (patch) | |
tree | 55f18a94709214dae0ab9f37231f068b4ad8685b /Source/ModelViewer/Namer.cs | |
parent | 455e5c39efc2629bf0cb526ee503492476a9ec51 (diff) | |
parent | 7d6192d85a41493f1e144c4e2a1fdaf74568085c (diff) |
Merge
Diffstat (limited to 'Source/ModelViewer/Namer.cs')
-rw-r--r-- | Source/ModelViewer/Namer.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/ModelViewer/Namer.cs b/Source/ModelViewer/Namer.cs index 1006c658..c1d7fcd3 100644 --- a/Source/ModelViewer/Namer.cs +++ b/Source/ModelViewer/Namer.cs @@ -106,6 +106,7 @@ namespace Microsoft.Boogie.ModelViewer public virtual string CanonicalName(Model.Element elt)
{
string res;
+ if (elt == null) return "?";
if (canonicalName.TryGetValue(elt, out res)) return res;
NameSeqSuffix suff;
var baseName = CanonicalBaseName(elt, out suff);
@@ -230,7 +231,7 @@ namespace Microsoft.Boogie.ModelViewer for (int i = 0; i < len; ++i) {
var c1 = f1[i];
var c2 = f2[i];
- if ('0' <= c1 && c1 <= '9' && '0' <= c2 && c2 <= '9') { + if ('0' <= c1 && c1 <= '9' && '0' <= c2 && c2 <= '9') {
numberPos = i;
break;
}
|