summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorGravatar akashlal <unknown>2014-09-26 11:02:44 +0530
committerGravatar akashlal <unknown>2014-09-26 11:02:44 +0530
commit18579263b448374df870d831b56b7eb4ca61d07c (patch)
treed7097564eabbdabb2b7772dfad7db664acede098 /Source/Core
parentf6981d46b1373bbe3d3ff43981dba84dba2eb43a (diff)
Fix for the duplicator; can't use Clone
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Duplicator.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/Duplicator.cs b/Source/Core/Duplicator.cs
index b275288a..9c6aac7a 100644
--- a/Source/Core/Duplicator.cs
+++ b/Source/Core/Duplicator.cs
@@ -291,7 +291,9 @@ namespace Microsoft.Boogie {
public override Program VisitProgram(Program node) {
//Contract.Requires(node != null);
Contract.Ensures(Contract.Result<Program>() != null);
- return base.VisitProgram((Program)node.Clone());
+ var cloned = new Program();
+ cloned.AddTopLevelDeclarations(node.TopLevelDeclarations);
+ return base.VisitProgram(cloned);
}
public override QKeyValue VisitQKeyValue(QKeyValue node) {
//Contract.Requires(node != null);