Skip to content

Commit

Permalink
Bugfix for C++ examples.
Browse files Browse the repository at this point in the history
Relates to Z3Prover#26
  • Loading branch information
Christoph M. Wintersteiger committed Oct 19, 2015
1 parent 3aedcf0 commit a1eee62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/c++/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,7 @@ void extract_example() {
x = c.constant("x", c.bv_sort(32));
expr y = x.extract(21, 10);
std::cout << y << " " << y.hi() << " " << y.lo() << "\n";
}

void sudoku_example() {
std::cout << "sudoku example\n";
Expand Down Expand Up @@ -1059,7 +1060,7 @@ void sudoku_example() {

// each 3x3 square contains a digit at most once
for (unsigned i0 = 0; i0 < 3; i0++) {
for (uint j0 = 0; j0 < 3; j0++) {
for (unsigned j0 = 0; j0 < 3; j0++) {
expr_vector t(c);
for (unsigned i = 0; i < 3; i++)
for (unsigned j = 0; j < 3; j++)
Expand Down

0 comments on commit a1eee62

Please sign in to comment.