diff options
author | akashlal <unknown> | 2014-09-27 11:22:32 +0530 |
---|---|---|
committer | akashlal <unknown> | 2014-09-27 11:22:32 +0530 |
commit | 1b6570f4775b5c160a59f213080b3332fbd357d2 (patch) | |
tree | 56ccfc918f91309c3ddcc44d3a9d26467a13fa01 /Source/Core/Absy.cs | |
parent | 18579263b448374df870d831b56b7eb4ca61d07c (diff) |
Better fix for the duplicator, thanks to wuestholz
Diffstat (limited to 'Source/Core/Absy.cs')
-rw-r--r-- | Source/Core/Absy.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Core/Absy.cs b/Source/Core/Absy.cs index 27cd7efd..dc12894d 100644 --- a/Source/Core/Absy.cs +++ b/Source/Core/Absy.cs @@ -441,6 +441,14 @@ namespace Microsoft.Boogie { }
}
+ public override Absy Clone()
+ {
+ var cloned = (Program)base.Clone();
+ cloned.topLevelDeclarations = new List<Declaration>();
+ cloned.AddTopLevelDeclarations(topLevelDeclarations);
+ return cloned;
+ }
+
[Rep]
private List<Declaration/*!*/>/*!*/ topLevelDeclarations;
|