3
0
Fork 0
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:
Nuno Lopes 2015-05-15 09:01:56 +01:00
parent 09afb31d4c
commit 1dc17db56a

View file

@ -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 {