summaryrefslogtreecommitdiff
path: root/examples/api/extract-new.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/api/extract-new.cpp')
-rw-r--r--examples/api/extract-new.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/api/extract-new.cpp b/examples/api/extract-new.cpp
index aad9e0fb5..cb7d96fa5 100644
--- a/examples/api/extract-new.cpp
+++ b/examples/api/extract-new.cpp
@@ -29,7 +29,7 @@ int main()
Sort bitvector32 = slv.mkBitVectorSort(32);
- Term x = slv.mkVar(bitvector32, "a");
+ Term x = slv.mkConst(bitvector32, "a");
OpTerm ext_31_1 = slv.mkOpTerm(BITVECTOR_EXTRACT_OP, 31, 1);
Term x_31_1 = slv.mkTerm(BITVECTOR_EXTRACT, ext_31_1, x);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback