Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Fix build and a failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
mholtom committed Dec 20, 2020
1 parent 4cbedeb commit 121f7c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion z3.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
package z3

// #cgo CFLAGS: -Ivendor/z3/src/api
// #cgo LDFLAGS: ${SRCDIR}/libz3.a -lstdc++
// #cgo LDFLAGS: ${SRCDIR}/libz3.a -lstdc++ -lm
// #include <stdlib.h>
// #include "go-z3.h"
import "C"
12 changes: 6 additions & 6 deletions z3_examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ func ExampleFindModel2() {
y := ctx.Const(ctx.Symbol("y"), ctx.IntSort())

// Create a couple integers
v1 := ctx.Const(ctx.SymbolInt(1), ctx.IntSort())
v2 := ctx.Const(ctx.SymbolInt(2), ctx.IntSort())
v1 := ctx.Int(1, ctx.IntSort())
v2 := ctx.Int(2, ctx.IntSort())

// y + 1
y_plus_one := y.Add(v1)
Expand Down Expand Up @@ -182,10 +182,10 @@ func ExampleFindModel2() {

// Output:
// Solving part 1
// x = 0
// y = 1
// x = 3
// y = 3
//
// Solving part 2
// x = 0
// y = 1
// x = 3
// y = 4
}

0 comments on commit 121f7c6

Please sign in to comment.