mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 00:55:31 +00:00
fix #6114
This commit is contained in:
parent
527914db05
commit
393c63fe0c
2 changed files with 3 additions and 3 deletions
|
@ -929,8 +929,8 @@ void enum_sort_example() {
|
|||
sort s = ctx.enumeration_sort("enumT", 3, enum_names, enum_consts, enum_testers);
|
||||
// enum_consts[0] is a func_decl of arity 0.
|
||||
// we convert it to an expression using the operator()
|
||||
expr a = enum_consts[0]();
|
||||
expr b = enum_consts[1]();
|
||||
expr a = enum_consts[0u]();
|
||||
expr b = enum_consts[1u]();
|
||||
expr x = ctx.constant("x", s);
|
||||
expr test = (x==a) && (x==b);
|
||||
std::cout << "1: " << test << std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue