Skip to content

Commit

Permalink
Initial functional SMT backend using functional IR
Browse files Browse the repository at this point in the history
  • Loading branch information
RCoeurjoly committed Jun 21, 2024
1 parent b7c1cdf commit 264aec6
Show file tree
Hide file tree
Showing 3 changed files with 291 additions and 550 deletions.
2 changes: 1 addition & 1 deletion backends/functional/Makefile.inc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
OBJS += backends/functional/cxx.o
#OBJS += backends/functional/smtlib.o
OBJS += backends/functional/smtlib.o
OBJS += backends/functional/test_generic.o
4 changes: 2 additions & 2 deletions backends/functional/cxx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ template<class NodeNames> struct CxxPrintVisitor {
CxxStruct &state_struct;
CxxPrintVisitor(NodeNames np, CxxStruct &input_struct, CxxStruct &state_struct) : np(np), input_struct(input_struct), state_struct(state_struct) { }
template<class T> std::string arg_to_string(T n) { return std::to_string(n); }
template<> std::string arg_to_string(std::string n) { return n; }
template<> std::string arg_to_string(Node n) { return np(n); }
std::string arg_to_string(std::string n) { return n; }
std::string arg_to_string(Node n) { return np(n); }
template<typename... Args> std::string format(std::string fmt, Args&&... args) {
return CxxTemplate::format(fmt, arg_to_string(args)...);
}
Expand Down
Loading

0 comments on commit 264aec6

Please sign in to comment.