mirror of
https://github.com/Z3Prover/z3
synced 2026-02-27 10:35:38 +00:00
Merge pull request #8746 from Z3Prover/copilot/simplify-go-return-logic
Simplify boolean return in goOnBindingCb
This commit is contained in:
commit
e0161b2e2e
1 changed files with 1 additions and 4 deletions
|
|
@ -134,10 +134,7 @@ func goOnBindingCb(ctx C.uintptr_t, cb C.Z3_solver_callback, q C.Z3_ast, inst C.
|
||||||
old := p.cb
|
old := p.cb
|
||||||
p.cb = cb
|
p.cb = cb
|
||||||
defer func() { p.cb = old }()
|
defer func() { p.cb = old }()
|
||||||
if h.OnBinding(newExpr(p.ctx, q), newExpr(p.ctx, inst)) {
|
return C.bool(h.OnBinding(newExpr(p.ctx, q), newExpr(p.ctx, inst)))
|
||||||
return C.bool(true)
|
|
||||||
}
|
|
||||||
return C.bool(false)
|
|
||||||
}
|
}
|
||||||
return C.bool(true)
|
return C.bool(true)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue