3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-07-17 04:25:44 +00:00
z3/src/smt/smt_case_split_queue.h
davedets 6ac3075022
Remove unnecessary semicolons (Attempt 2) (#10020)
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.)
2026-07-02 12:47:29 -07:00

57 lines
1.4 KiB
C++

/*++
Copyright (c) 2006 Microsoft Corporation
Module Name:
smt_case_split_queue.h
Abstract:
<abstract>
Author:
Leonardo de Moura (leonardo) 2009-01-20.
Revision History:
--*/
#pragma once
#include "smt/smt_types.h"
#include "util/heap.h"
#include "params/smt_params.h"
namespace smt {
class context;
/**
\brief Abstract case split queue.
*/
class case_split_queue {
public:
virtual void activity_increased_eh(bool_var v) = 0;
virtual void activity_decreased_eh(bool_var v) = 0;
virtual void mk_var_eh(bool_var v) = 0;
virtual void del_var_eh(bool_var v) = 0;
virtual void assign_lit_eh(literal l) {}
virtual void unassign_var_eh(bool_var v) = 0;
virtual void relevant_eh(expr * n) = 0;
virtual void init_search_eh() = 0;
virtual void end_search_eh() = 0;
virtual void internalize_instance_eh(expr * e, unsigned gen) {}
virtual void reset() = 0;
virtual void push_scope() = 0;
virtual void pop_scope(unsigned num_scopes) = 0;
virtual void next_case_split(bool_var & next, lbool & phase) = 0;
virtual void display(std::ostream & out) = 0;
virtual ~case_split_queue() = default;
// theory-aware branching hint
virtual void add_theory_aware_branching_info(bool_var v, double priority, lbool phase) {}
};
case_split_queue * mk_case_split_queue(context & ctx, smt_params & p);
}