mirror of
https://github.com/Z3Prover/z3
synced 2026-07-05 14:56:11 +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.)
45 lines
1.1 KiB
C++
45 lines
1.1 KiB
C++
/*++
|
|
Copyright (c) 2011 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
sat_integrity_checker.h
|
|
|
|
Abstract:
|
|
|
|
Checker whether the SAT solver internal datastructures
|
|
are consistent or not.
|
|
|
|
Author:
|
|
|
|
Leonardo de Moura (leonardo) 2011-05-21.
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
#pragma once
|
|
|
|
#include "sat/sat_types.h"
|
|
#include "sat/sat_watched.h"
|
|
|
|
namespace sat {
|
|
class integrity_checker {
|
|
solver const & s;
|
|
bool contains_watched(watch_list const & wlist, clause const & c, clause_offset cls_off) const;
|
|
public:
|
|
integrity_checker(solver const & s);
|
|
|
|
bool check_clause(clause const & c) const;
|
|
bool check_clauses(clause * const * begin, clause * const * end) const;
|
|
bool check_clauses() const;
|
|
bool check_learned_clauses() const;
|
|
bool check_assignment() const;
|
|
bool check_bool_vars() const;
|
|
bool check_watches() const;
|
|
bool check_watches(literal l, watch_list const& wlist) const;
|
|
bool check_watches(literal l) const;
|
|
bool check_reinit_stack() const;
|
|
bool check_disjoint_clauses() const;
|
|
bool operator()() const;
|
|
};
|
|
}
|