mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
shorthands in enode to access args and partents
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
be4edddd2b
commit
3b78bdc8e5
2 changed files with 23 additions and 1 deletions
|
@ -927,7 +927,10 @@ void tuple_example() {
|
|||
sort sorts[2] = { ctx.int_sort(), ctx.bool_sort() };
|
||||
func_decl_vector projs(ctx);
|
||||
func_decl pair = ctx.tuple_sort("pair", 2, names, sorts, projs);
|
||||
std::cout << pair << "\n";
|
||||
sorts[1] = pair.range();
|
||||
func_decl pair2 = ctx.tuple_sort("pair2", 2, names, sorts, projs);
|
||||
|
||||
std::cout << pair2 << "\n";
|
||||
}
|
||||
|
||||
void expr_vector_example() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue