3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-04 16:26:17 +00:00

Add std::initializer_list overloads for BV and arith operations (#8467)

* Initial plan

* Add std::initializer_list overloads for BV and arith functions

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>

* Update call sites to use initializer_list format for BV and arith functions

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
Copilot 2026-02-02 10:00:13 -08:00 committed by GitHub
parent 20e19b97ee
commit 50d04d32bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 26 additions and 38 deletions

View file

@ -16,10 +16,7 @@ Copyright (c) 2015 Microsoft Corporation
#include <iostream>
expr* mk_bv_xor(bv_util& bv, expr* a, expr* b) {
expr* args[2];
args[0] = a;
args[1] = b;
return bv.mk_bv_xor(2, args);
return bv.mk_bv_xor({a, b});
}
expr* mk_bv_and(bv_util& bv, expr* a, expr* b) {