refactor(kernel): move max_sharing to library

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-05-17 11:15:08 -07:00
parent aafdd98acb
commit d625c9a26c
8 changed files with 10 additions and 12 deletions

View file

@ -1,8 +1,7 @@
add_library(kernel level.cpp expr.cpp expr_eq_fn.cpp
for_each_fn.cpp replace_fn.cpp free_vars.cpp abstract.cpp
instantiate.cpp context.cpp formatter.cpp max_sharing.cpp
definition.cpp replace_visitor.cpp environment.cpp justification.cpp
pos_info_provider.cpp metavar.cpp converter.cpp constraint.cpp
type_checker.cpp error_msgs.cpp kernel_exception.cpp )
add_library(kernel level.cpp expr.cpp expr_eq_fn.cpp for_each_fn.cpp
replace_fn.cpp free_vars.cpp abstract.cpp instantiate.cpp context.cpp
formatter.cpp definition.cpp replace_visitor.cpp environment.cpp
justification.cpp pos_info_provider.cpp metavar.cpp converter.cpp
constraint.cpp type_checker.cpp error_msgs.cpp kernel_exception.cpp )
target_link_libraries(kernel ${LEAN_LIBS})

View file

@ -17,7 +17,6 @@ Author: Leonardo de Moura
#include "kernel/expr.h"
#include "kernel/expr_eq_fn.h"
#include "kernel/free_vars.h"
#include "kernel/max_sharing.h"
namespace lean {
static expr g_dummy(mk_var(0));

View file

@ -1,6 +1,6 @@
add_library(library deep_copy.cpp expr_lt.cpp io_state.cpp occurs.cpp
kernel_bindings.cpp io_state_stream.cpp bin_app.cpp
resolve_macro.cpp kernel_serializer.cpp)
resolve_macro.cpp kernel_serializer.cpp max_sharing.cpp)
# placeholder.cpp fo_unify.cpp hop_match.cpp)
target_link_libraries(library ${LEAN_LIBS})

View file

@ -8,7 +8,7 @@ Author: Leonardo de Moura
#include "util/object_serializer.h"
#include "kernel/expr.h"
#include "kernel/definition.h"
#include "kernel/max_sharing.h"
#include "library/max_sharing.h"
#include "library/kernel_serializer.h"
// Procedures for serializing and deserializing kernel objects (levels, exprs, definitions)

View file

@ -9,7 +9,7 @@ Author: Leonardo de Moura
#include <functional>
#include "util/buffer.h"
#include "util/interrupt.h"
#include "kernel/max_sharing.h"
#include "library/max_sharing.h"
namespace lean {
/**

View file

@ -14,7 +14,7 @@ Author: Leonardo de Moura
#include "kernel/free_vars.h"
#include "kernel/abstract.h"
#include "kernel/instantiate.h"
#include "kernel/max_sharing.h"
#include "library/max_sharing.h"
#include "library/kernel_serializer.h"
using namespace lean;

View file

@ -6,8 +6,8 @@ Author: Leonardo de Moura
*/
#include <iostream>
#include "util/test.h"
#include "library/max_sharing.h"
#include "kernel/abstract.h"
#include "kernel/max_sharing.h"
using namespace lean;
static void tst1() {