refactor(kernel): move files that don't need to be in the kernel
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
b2518f873d
commit
e769c26800
10 changed files with 9 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
||||||
add_library(kernel level.cpp diff_cnstrs.cpp expr.cpp expr_eq_fn.cpp
|
add_library(kernel level.cpp diff_cnstrs.cpp expr.cpp expr_eq_fn.cpp
|
||||||
for_each_fn.cpp occurs.cpp replace_fn.cpp free_vars.cpp abstract.cpp
|
for_each_fn.cpp replace_fn.cpp free_vars.cpp abstract.cpp
|
||||||
instantiate.cpp context.cpp formatter.cpp max_sharing.cpp
|
instantiate.cpp context.cpp formatter.cpp max_sharing.cpp
|
||||||
definition.cpp replace_visitor.cpp environment.cpp
|
definition.cpp replace_visitor.cpp environment.cpp
|
||||||
justification.cpp pos_info_provider.cpp metavar.cpp
|
justification.cpp pos_info_provider.cpp metavar.cpp
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
add_library(library deep_copy.cpp expr_lt.cpp)
|
add_library(library deep_copy.cpp expr_lt.cpp io_state.cpp
|
||||||
|
occurs.cpp)
|
||||||
# io_state_stream.cpp
|
# io_state_stream.cpp
|
||||||
# kernel_bindings.cpp
|
# kernel_bindings.cpp
|
||||||
# context_to_lambda.cpp placeholder.cpp
|
# context_to_lambda.cpp placeholder.cpp
|
||||||
|
|
|
@ -4,8 +4,8 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
||||||
|
|
||||||
Author: Leonardo de Moura
|
Author: Leonardo de Moura
|
||||||
*/
|
*/
|
||||||
#include "kernel/io_state.h"
|
|
||||||
#include "kernel/kernel_exception.h"
|
#include "kernel/kernel_exception.h"
|
||||||
|
#include "library/io_state.h"
|
||||||
|
|
||||||
namespace lean {
|
namespace lean {
|
||||||
io_state::io_state(formatter const & fmt):
|
io_state::io_state(formatter const & fmt):
|
|
@ -4,8 +4,8 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
||||||
|
|
||||||
Author: Leonardo de Moura
|
Author: Leonardo de Moura
|
||||||
*/
|
*/
|
||||||
#include "kernel/occurs.h"
|
|
||||||
#include "kernel/find_fn.h"
|
#include "kernel/find_fn.h"
|
||||||
|
#include "library/occurs.h"
|
||||||
|
|
||||||
namespace lean {
|
namespace lean {
|
||||||
bool occurs(expr const & n, expr const & m) {
|
bool occurs(expr const & n, expr const & m) {
|
|
@ -28,9 +28,6 @@ add_test(replace ${CMAKE_CURRENT_BINARY_DIR}/replace)
|
||||||
# target_link_libraries(environment ${EXTRA_LIBS})
|
# target_link_libraries(environment ${EXTRA_LIBS})
|
||||||
# add_test(environment ${CMAKE_CURRENT_BINARY_DIR}/environment)
|
# add_test(environment ${CMAKE_CURRENT_BINARY_DIR}/environment)
|
||||||
# set_tests_properties(environment PROPERTIES ENVIRONMENT "LEAN_PATH=${LEAN_BINARY_DIR}/shell")
|
# set_tests_properties(environment PROPERTIES ENVIRONMENT "LEAN_PATH=${LEAN_BINARY_DIR}/shell")
|
||||||
add_executable(occurs occurs.cpp)
|
|
||||||
target_link_libraries(occurs ${EXTRA_LIBS})
|
|
||||||
add_test(occurs ${CMAKE_CURRENT_BINARY_DIR}/occurs)
|
|
||||||
add_executable(metavar metavar.cpp)
|
add_executable(metavar metavar.cpp)
|
||||||
target_link_libraries(metavar ${EXTRA_LIBS})
|
target_link_libraries(metavar ${EXTRA_LIBS})
|
||||||
add_test(metavar ${CMAKE_CURRENT_BINARY_DIR}/metavar)
|
add_test(metavar ${CMAKE_CURRENT_BINARY_DIR}/metavar)
|
||||||
|
|
|
@ -7,6 +7,9 @@ add_test(expr_lt ${CMAKE_CURRENT_BINARY_DIR}/expr_lt)
|
||||||
add_executable(deep_copy deep_copy.cpp)
|
add_executable(deep_copy deep_copy.cpp)
|
||||||
target_link_libraries(deep_copy ${EXTRA_LIBS})
|
target_link_libraries(deep_copy ${EXTRA_LIBS})
|
||||||
add_test(deep_copy ${CMAKE_CURRENT_BINARY_DIR}/deep_copy)
|
add_test(deep_copy ${CMAKE_CURRENT_BINARY_DIR}/deep_copy)
|
||||||
|
add_executable(occurs occurs.cpp)
|
||||||
|
target_link_libraries(occurs ${EXTRA_LIBS})
|
||||||
|
add_test(occurs ${CMAKE_CURRENT_BINARY_DIR}/occurs)
|
||||||
# add_executable(arith_tst arith.cpp)
|
# add_executable(arith_tst arith.cpp)
|
||||||
# target_link_libraries(arith_tst ${EXTRA_LIBS})
|
# target_link_libraries(arith_tst ${EXTRA_LIBS})
|
||||||
# add_test(arith_tst ${CMAKE_CURRENT_BINARY_DIR}/arith_tst)
|
# add_test(arith_tst ${CMAKE_CURRENT_BINARY_DIR}/arith_tst)
|
||||||
|
|
|
@ -5,8 +5,8 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
||||||
Author: Leonardo de Moura
|
Author: Leonardo de Moura
|
||||||
*/
|
*/
|
||||||
#include "util/test.h"
|
#include "util/test.h"
|
||||||
#include "kernel/occurs.h"
|
|
||||||
#include "kernel/abstract.h"
|
#include "kernel/abstract.h"
|
||||||
|
#include "library/occurs.h"
|
||||||
using namespace lean;
|
using namespace lean;
|
||||||
|
|
||||||
static void tst1() {
|
static void tst1() {
|
Loading…
Reference in a new issue