diff options
author | 2014-03-24 08:57:50 -0700 | |
---|---|---|
committer | 2014-03-24 08:57:50 -0700 | |
commit | 32c2f3b0da12cb1790014a12c3b84665682f6c4b (patch) | |
tree | b040f40f0ee1d107c83d8a26540e00a70d81ffd5 /Source/Dafny/Translator.cs | |
parent | 643f5f55677d454c95286654594504ef2c66fe8f (diff) |
Reduced noise in BVD display of temporary variables of the translation
Diffstat (limited to 'Source/Dafny/Translator.cs')
-rw-r--r-- | Source/Dafny/Translator.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Dafny/Translator.cs b/Source/Dafny/Translator.cs index ff706f37..e4472f67 100644 --- a/Source/Dafny/Translator.cs +++ b/Source/Dafny/Translator.cs @@ -3574,7 +3574,9 @@ namespace Microsoft.Dafny { Dictionary<IVariable, Expression> substMap = new Dictionary<IVariable, Expression>();
for (int i = 0; i < e.Function.Formals.Count; i++) {
Formal p = e.Function.Formals[i];
- LocalVariable local = new LocalVariable(p.tok, p.tok, p.Name, p.Type, p.IsGhost);
+ // Note, in the following, the "##" makes the variable invisible in BVD. An alternative would be to communicate
+ // to BVD what this variable stands for and display it as such to the user.
+ LocalVariable local = new LocalVariable(p.tok, p.tok, "##" + p.Name, p.Type, p.IsGhost);
local.type = local.OptionalType; // resolve local here
IdentifierExpr ie = new IdentifierExpr(local.Tok, local.AssignUniqueName(currentDeclaration));
ie.Var = local; ie.Type = ie.Var.Type; // resolve ie here
|