3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-04-26 05:43:33 +00:00

AIX compat (#8113)

* fix name conflict for struct proc

* aix compat
This commit is contained in:
Simon Sobisch 2026-01-05 16:23:05 +01:00 committed by GitHub
parent ff7d0fb501
commit c390afa279
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 14 additions and 6 deletions

View file

@ -27,9 +27,9 @@ bool uses_theory(expr * n, family_id fid) {
namespace {
struct found {};
struct proc {
struct proc_z3 {
family_id m_fid;
proc(family_id fid):m_fid(fid) {}
proc_z3(family_id fid):m_fid(fid) {}
void operator()(var * n) {}
void operator()(app * n) { if (n->get_family_id() == m_fid) throw found(); }
void operator()(quantifier * n) {}
@ -37,7 +37,7 @@ namespace {
}
bool uses_theory(expr * n, family_id fid, expr_mark & visited) {
proc p(fid);
proc_z3 p(fid);
try {
for_each_expr(p, visited, n);
}