blob: 094c7bcbd2eba8bd824f42aaa3f39bb8df43b11c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
|
###############################################################################
# Top contributors (to current version):
# Mathias Preiner, Andrew Reynolds, Aina Niemetz
#
# This file is part of the cvc5 project.
#
# Copyright (c) 2009-2021 by the authors listed in the file AUTHORS
# in the top-level source directory and their institutional affiliations.
# All rights reserved. See the file COPYING in the top-level source
# directory for licensing information.
# #############################################################################
#
# The build system configuration.
##
libcvc5_add_sources(
array_store_all.cpp
array_store_all.h
ascription_type.cpp
ascription_type.h
attribute.h
attribute.cpp
attribute_internals.h
attribute_unique_id.h
bound_var_manager.cpp
bound_var_manager.h
emptyset.cpp
emptyset.h
emptybag.cpp
emptybag.h
expr_iomanip.cpp
expr_iomanip.h
kind_map.h
match_trie.cpp
match_trie.h
node.cpp
node.h
node_algorithm.cpp
node_algorithm.h
node_builder.cpp
node_builder.h
node_manager.cpp
node_manager.h
node_manager_attributes.h
node_self_iterator.h
node_trie.cpp
node_trie.h
node_traversal.cpp
node_traversal.h
node_value.cpp
node_value.h
sequence.cpp
sequence.h
node_visitor.h
skolem_manager.cpp
skolem_manager.h
symbol_manager.cpp
symbol_manager.h
symbol_table.cpp
symbol_table.h
term_canonize.cpp
term_canonize.h
term_context.cpp
term_context.h
term_context_node.cpp
term_context_node.h
term_context_stack.cpp
term_context_stack.h
type_checker.h
type_matcher.cpp
type_matcher.h
type_node.cpp
type_node.h
datatype_index.h
datatype_index.cpp
dtype.h
dtype.cpp
dtype_cons.h
dtype_cons.cpp
dtype_selector.h
dtype_selector.cpp
sequence.cpp
sequence.h
subs.cpp
subs.h
sygus_datatype.cpp
sygus_datatype.h
uninterpreted_constant.cpp
uninterpreted_constant.h
)
libcvc5_add_sources(GENERATED
kind.cpp
kind.h
metakind.cpp
metakind.h
type_checker.cpp
type_properties.h
)
#
# Generate code for kinds.
#
set(mkkind_script ${CMAKE_CURRENT_LIST_DIR}/mkkind)
set(mkmetakind_script ${CMAKE_CURRENT_LIST_DIR}/mkmetakind)
set(mkexpr_script ${CMAKE_CURRENT_LIST_DIR}/mkexpr)
add_custom_command(
OUTPUT kind.h
COMMAND
${mkkind_script}
${CMAKE_CURRENT_LIST_DIR}/kind_template.h
${KINDS_FILES}
> ${CMAKE_CURRENT_BINARY_DIR}/kind.h
DEPENDS mkkind kind_template.h ${KINDS_FILES}
)
add_custom_command(
OUTPUT kind.cpp
COMMAND
${mkkind_script}
${CMAKE_CURRENT_LIST_DIR}/kind_template.cpp
${KINDS_FILES}
> ${CMAKE_CURRENT_BINARY_DIR}/kind.cpp
DEPENDS mkkind kind_template.cpp kind.h ${KINDS_FILES}
)
add_custom_command(
OUTPUT type_properties.h
COMMAND
${mkkind_script}
${CMAKE_CURRENT_LIST_DIR}/type_properties_template.h
${KINDS_FILES}
> ${CMAKE_CURRENT_BINARY_DIR}/type_properties.h
DEPENDS mkkind type_properties_template.h ${KINDS_FILES}
)
add_custom_command(
OUTPUT metakind.h
COMMAND
${mkmetakind_script}
${CMAKE_CURRENT_LIST_DIR}/metakind_template.h
${KINDS_FILES}
> ${CMAKE_CURRENT_BINARY_DIR}/metakind.h
DEPENDS mkmetakind metakind_template.h ${KINDS_FILES}
)
add_custom_command(
OUTPUT metakind.cpp
COMMAND
${mkmetakind_script}
${CMAKE_CURRENT_LIST_DIR}/metakind_template.cpp
${KINDS_FILES}
> ${CMAKE_CURRENT_BINARY_DIR}/metakind.cpp
DEPENDS mkmetakind metakind_template.cpp metakind.h ${KINDS_FILES}
)
add_custom_command(
OUTPUT type_checker.cpp
COMMAND
${mkexpr_script}
${CMAKE_CURRENT_LIST_DIR}/type_checker_template.cpp
${KINDS_FILES}
> ${CMAKE_CURRENT_BINARY_DIR}/type_checker.cpp
DEPENDS mkexpr type_checker_template.cpp ${KINDS_FILES}
)
add_custom_target(gen-expr
DEPENDS
kind.cpp
kind.h
metakind.cpp
metakind.h
type_checker.cpp
type_properties.h
)
|