diff options
author | 0biha <unknown> | 2015-01-01 21:19:23 +0100 |
---|---|---|
committer | 0biha <unknown> | 2015-01-01 21:19:23 +0100 |
commit | bce4de2f7c19fe59e650cb89a14e50a817b4b9ab (patch) | |
tree | 6ae7e4764209e39bd93e6be6a8c8645cafba756e /Source/Core/StandardVisitor.cs | |
parent | bc88f73ea679457f261bdc91797a43603d3befae (diff) |
Made invariant of class 'Trigger' robust by
-replacing public field by private field + getter
-using read-only wrappers (to avoid leaking)
-cloning the tr list in the setter and constructor (to avoid capturing)
Diffstat (limited to 'Source/Core/StandardVisitor.cs')
-rw-r--r-- | Source/Core/StandardVisitor.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/StandardVisitor.cs b/Source/Core/StandardVisitor.cs index 98ea4df3..58366051 100644 --- a/Source/Core/StandardVisitor.cs +++ b/Source/Core/StandardVisitor.cs @@ -526,7 +526,7 @@ namespace Microsoft.Boogie { node.Next = newNext;
}
}
- node.Tr = this.VisitExprSeq(node.Tr);
+ node.Tr = this.VisitExprSeq(new List<Expr>(node.Tr));
return node;
}
// called by default for all nullary type constructors and type variables
@@ -1072,7 +1072,7 @@ namespace Microsoft.Boogie { {
this.VisitTrigger(origNext);
}
- this.VisitExprSeq(node.Tr);
+ node.Tr = this.VisitExprSeq(new List<Expr>(node.Tr));
return node;
}
// called by default for all nullary type constructors and type variables
|