mirror of
https://github.com/Z3Prover/z3
synced 2026-07-21 06:25:50 +00:00
This is another PR towards the goal of getting Z3 to compile cleanly when included via FetchContents into clang-tidy, which uses a pretty strict set of warnings. This is a second version of https://github.com/Z3Prover/z3/pull/9957. I address @NikolajBjorner 's comments about not changing the semicolons after macro invocations, because some editors work better with them present. It now, to the best of my ability, only deletes semis: * after the closing brace of namespace decl. * after the closing brace of an extern "C" decl. * after a function definition. This PR is very large, but it consists entirely of deletions of semicolons in these situations. (If there was a way to update the previous PR, which had been closed, and that is preferable, please let me know. I couldn't figure it out.)
73 lines
1.4 KiB
C++
73 lines
1.4 KiB
C++
/*++
|
|
Copyright (c) 2006 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
theory_dummy.cpp
|
|
|
|
Abstract:
|
|
|
|
<abstract>
|
|
|
|
Author:
|
|
|
|
Leonardo de Moura (leonardo) 2008-12-30.
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
#include "smt/smt_context.h"
|
|
#include "smt/theory_dummy.h"
|
|
|
|
namespace smt {
|
|
|
|
void theory_dummy::found_theory_expr() {
|
|
if (!m_theory_exprs) {
|
|
get_context().push_trail(value_trail<bool>(m_theory_exprs));
|
|
m_theory_exprs = true;
|
|
}
|
|
}
|
|
|
|
theory_dummy::theory_dummy(context& ctx, family_id fid, char const * name):
|
|
theory(ctx, fid),
|
|
m_theory_exprs(false),
|
|
m_name(name) {
|
|
}
|
|
|
|
bool theory_dummy::internalize_atom(app * atom, bool gate_ctx) {
|
|
found_theory_expr();
|
|
return false;
|
|
}
|
|
|
|
bool theory_dummy::internalize_term(app * term) {
|
|
found_theory_expr();
|
|
return false;
|
|
}
|
|
|
|
void theory_dummy::new_eq_eh(theory_var v1, theory_var v2) {
|
|
UNREACHABLE();
|
|
}
|
|
|
|
bool theory_dummy::use_diseqs() const {
|
|
return false;
|
|
}
|
|
|
|
void theory_dummy::new_diseq_eh(theory_var v1, theory_var v2) {
|
|
UNREACHABLE();
|
|
}
|
|
|
|
void theory_dummy::reset_eh() {
|
|
m_theory_exprs = true;
|
|
theory::reset_eh();
|
|
}
|
|
|
|
final_check_status theory_dummy::final_check_eh(unsigned) {
|
|
return m_theory_exprs ? FC_GIVEUP : FC_DONE;
|
|
}
|
|
|
|
char const * theory_dummy::get_name() const {
|
|
return m_name;
|
|
}
|
|
|
|
}
|