Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 121f7c6

Browse files
committedDec 20, 2020
Fix build and a failing test
1 parent 4cbedeb commit 121f7c6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed
 

‎z3.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
package z3
1313

1414
// #cgo CFLAGS: -Ivendor/z3/src/api
15-
// #cgo LDFLAGS: ${SRCDIR}/libz3.a -lstdc++
15+
// #cgo LDFLAGS: ${SRCDIR}/libz3.a -lstdc++ -lm
1616
// #include <stdlib.h>
1717
// #include "go-z3.h"
1818
import "C"

‎z3_examples_test.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ func ExampleFindModel2() {
128128
y := ctx.Const(ctx.Symbol("y"), ctx.IntSort())
129129

130130
// Create a couple integers
131-
v1 := ctx.Const(ctx.SymbolInt(1), ctx.IntSort())
132-
v2 := ctx.Const(ctx.SymbolInt(2), ctx.IntSort())
131+
v1 := ctx.Int(1, ctx.IntSort())
132+
v2 := ctx.Int(2, ctx.IntSort())
133133

134134
// y + 1
135135
y_plus_one := y.Add(v1)
@@ -182,10 +182,10 @@ func ExampleFindModel2() {
182182

183183
// Output:
184184
// Solving part 1
185-
// x = 0
186-
// y = 1
185+
// x = 3
186+
// y = 3
187187
//
188188
// Solving part 2
189-
// x = 0
190-
// y = 1
189+
// x = 3
190+
// y = 4
191191
}

0 commit comments

Comments
 (0)
This repository has been archived.