diff options
Diffstat (limited to 'Source/Dafny/Resolver.cs')
-rw-r--r-- | Source/Dafny/Resolver.cs | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/Source/Dafny/Resolver.cs b/Source/Dafny/Resolver.cs index b5714e7a..96907777 100644 --- a/Source/Dafny/Resolver.cs +++ b/Source/Dafny/Resolver.cs @@ -1128,20 +1128,7 @@ namespace Microsoft.Dafny { public void ResolveStatement(Statement stmt, bool specContextOnly, Method method) {
Contract.Requires(stmt != null);
Contract.Requires(method != null);
- if (stmt is UseStmt) {
- UseStmt s = (UseStmt)stmt;
- s.IsGhost = true;
- ResolveExpression(s.Expr, true);
- Contract.Assert(s.Expr.Type != null); // follows from postcondition of ResolveExpression
- Expression expr = s.Expr;
- while (true) {
- if (expr is OldExpr) {
- expr = ((OldExpr)expr).E;
- } else {
- break;
- }
- }
- } else if (stmt is PredicateStmt) {
+ if (stmt is PredicateStmt) {
PredicateStmt s = (PredicateStmt)stmt;
s.IsGhost = true;
ResolveExpression(s.Expr, true);
|