mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 05:18:44 +00:00
Fix concat() in c++ api
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
This commit is contained in:
parent
09afb31d4c
commit
1dc17db56a
|
@ -1111,9 +1111,10 @@ namespace z3 {
|
|||
}
|
||||
|
||||
inline expr concat(expr const& a, expr const& b) {
|
||||
Z3_ast r = Z3_mk_concat(ctx, (Z3_app) a, (Z3_app) b);
|
||||
ctx.check_error();
|
||||
return expr(ctx, r);
|
||||
check_context(a, b);
|
||||
Z3_ast r = Z3_mk_concat(a.ctx(), a, b);
|
||||
a.ctx().check_error();
|
||||
return expr(a.ctx(), r);
|
||||
}
|
||||
|
||||
class func_entry : public object {
|
||||
|
|
Loading…
Reference in a new issue