lean2/src/library/deep_copy.h
Leonardo de Moura 33ae79cd9e refactor(kernel): move shallow copy function to library
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-05-17 11:20:24 -07:00

19 lines
453 B
C++

/*
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#pragma once
#include "kernel/expr.h"
namespace lean {
/** \brief Return a shallow copy of \c e */
expr copy(expr const & e);
/**
\brief Return a new expression that is equal to the given
argument, but does not share any memory cell with it.
*/
expr deep_copy(expr const & e);
}