mirror of
https://github.com/Z3Prover/z3
synced 2025-07-21 11:52:05 +00:00
use insert_if_not_there
This commit is contained in:
parent
89ba99918e
commit
d9e43f0e6d
1 changed files with 2 additions and 2 deletions
|
@ -98,8 +98,8 @@ private:
|
||||||
if (is_app(curr)) {
|
if (is_app(curr)) {
|
||||||
app *a = to_app(curr);
|
app *a = to_app(curr);
|
||||||
func_decl *f = a->get_decl();
|
func_decl *f = a->get_decl();
|
||||||
if (is_name(f) && !consts.contains(f)) {
|
if (is_name(f)) {
|
||||||
consts.insert(f);
|
consts.insert_if_not_there(f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue