summaryrefslogtreecommitdiff
path: root/examples/api
diff options
context:
space:
mode:
authorAina Niemetz <aina.niemetz@gmail.com>2019-02-13 12:52:17 -0800
committerGitHub <noreply@github.com>2019-02-13 12:52:17 -0800
commit549fe66e9cd274784edac47203b832ff7797834f (patch)
tree3108cf767b0949427501124975d5856145f4c87e /examples/api
parent83cd4823d6bf8e0c8e7d82afbfac824744491762 (diff)
New C++ API: Remove redundant declareFun function. (#2837)
Diffstat (limited to 'examples/api')
-rw-r--r--examples/api/datatypes-new.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/api/datatypes-new.cpp b/examples/api/datatypes-new.cpp
index 14ddcd383..58b23bcc2 100644
--- a/examples/api/datatypes-new.cpp
+++ b/examples/api/datatypes-new.cpp
@@ -115,7 +115,7 @@ void test(Solver& slv, Sort& consListSort)
}
}
- Term a = slv.declareFun("a", paramConsIntListSort);
+ Term a = slv.declareConst("a", paramConsIntListSort);
std::cout << "term " << a << " is of sort " << a.getSort() << std::endl;
Term head_a = slv.mkTerm(
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback