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

Fix build and a failing test #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}