3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-12 12:08:18 +00:00

Make sure all headers do #pragma once. (#6188)

This commit is contained in:
Bruce Mitchener 2022-07-24 00:41:14 +07:00 committed by GitHub
parent 3a8eb1e7ec
commit 3e38bbb009
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
41 changed files with 68 additions and 1 deletions

View file

@ -16,6 +16,8 @@ Author:
Notes: Notes:
--*/ --*/
#pragma once
#include "util/symbol.h" #include "util/symbol.h"
void R(); void R();

View file

@ -3,7 +3,7 @@
Copyright (c) 2015 Microsoft Corporation Copyright (c) 2015 Microsoft Corporation
--*/ --*/
#pragma once
#ifndef Z3_API #ifndef Z3_API
# ifdef __GNUC__ # ifdef __GNUC__

View file

@ -16,6 +16,8 @@ Author:
Revision History: Revision History:
--*/ --*/
#pragma once
#include "util/rational.h" #include "util/rational.h"
#include "util/common_msgs.h" #include "util/common_msgs.h"
#include "ast/rewriter/bit_blaster/bit_blaster_tpl.h" #include "ast/rewriter/bit_blaster/bit_blaster_tpl.h"

View file

@ -16,6 +16,7 @@ Author:
Notes: Notes:
--*/ --*/
#pragma once
#include "util/container_util.h" #include "util/container_util.h"
#include "ast/rewriter/poly_rewriter.h" #include "ast/rewriter/poly_rewriter.h"

View file

@ -16,6 +16,8 @@ Author:
Notes: Notes:
--*/ --*/
#pragma once
#include "ast/rewriter/rewriter.h" #include "ast/rewriter/rewriter.h"
#include "ast/ast_smt2_pp.h" #include "ast/ast_smt2_pp.h"
#include "ast/ast_ll_pp.h" #include "ast/ast_ll_pp.h"

View file

@ -15,6 +15,7 @@ Author:
Notes: Notes:
--*/ --*/
#pragma once
class cmd_context; class cmd_context;

View file

@ -17,6 +17,8 @@ Author:
Revision History: Revision History:
--*/ --*/
#pragma once
#include "math/dd/dd_pdd.h" #include "math/dd/dd_pdd.h"
namespace dd { namespace dd {

View file

@ -17,6 +17,8 @@ Author:
Revision History: Revision History:
--*/ --*/
#pragma once
#include "math/dd/dd_pdd.h" #include "math/dd/dd_pdd.h"
#include "math/interval/dep_intervals.h" #include "math/interval/dep_intervals.h"

View file

@ -17,6 +17,8 @@ Revision History:
--*/ --*/
#pragma once
#include "util/vector.h" #include "util/vector.h"
#include "math/lp/binary_heap_priority_queue.h" #include "math/lp/binary_heap_priority_queue.h"
namespace lp { namespace lp {

View file

@ -17,6 +17,7 @@ Revision History:
--*/ --*/
#pragma once
#include <set> #include <set>
#include "math/lp/lp_utils.h" #include "math/lp/lp_utils.h"

View file

@ -17,6 +17,8 @@ Revision History:
--*/ --*/
#pragma once
#include <limits> #include <limits>
#include <string> #include <string>
#include <algorithm> #include <algorithm>

View file

@ -17,6 +17,8 @@ Revision History:
--*/ --*/
#pragma once
#include "math/lp/lp_settings.h" #include "math/lp/lp_settings.h"
#ifdef Z3DEBUG #ifdef Z3DEBUG
#include "util/vector.h" #include "util/vector.h"

View file

@ -17,6 +17,8 @@ Revision History:
--*/ --*/
#pragma once
#include "util/vector.h" #include "util/vector.h"
#include "math/lp/indexed_vector.h" #include "math/lp/indexed_vector.h"
#include "math/lp/lp_settings.h" #include "math/lp/lp_settings.h"

View file

@ -9,6 +9,8 @@ Revision History:
--*/ --*/
#pragma once
#include <string> #include <string>
#include "util/vector.h" #include "util/vector.h"
#include "math/lp/lar_core_solver.h" #include "math/lp/lar_core_solver.h"

View file

@ -17,6 +17,8 @@ Revision History:
--*/ --*/
#pragma once
#include <set> #include <set>
#include <string> #include <string>
#include "util/vector.h" #include "util/vector.h"

View file

@ -17,6 +17,8 @@ Revision History:
--*/ --*/
#pragma once
#include <algorithm> #include <algorithm>
#include <string> #include <string>
#include "util/vector.h" #include "util/vector.h"

View file

@ -17,6 +17,8 @@ Revision History:
--*/ --*/
#pragma once
#include "math/lp/lp_dual_simplex.h" #include "math/lp/lp_dual_simplex.h"
namespace lp{ namespace lp{

View file

@ -17,6 +17,8 @@ Revision History:
--*/ --*/
#pragma once
#include <list> #include <list>
#include "util/vector.h" #include "util/vector.h"
#include <fstream> #include <fstream>

View file

@ -17,6 +17,8 @@ Revision History:
--*/ --*/
#pragma once
// this is a part of lp_primal_core_solver that deals with the tableau // this is a part of lp_primal_core_solver that deals with the tableau
#include "math/lp/lp_primal_core_solver.h" #include "math/lp/lp_primal_core_solver.h"
namespace lp { namespace lp {

View file

@ -17,6 +17,8 @@ Revision History:
--*/ --*/
#pragma once
#include <string> #include <string>
#include "util/vector.h" #include "util/vector.h"
#include "math/lp/lp_primal_simplex.h" #include "math/lp/lp_primal_simplex.h"

View file

@ -17,6 +17,8 @@ Revision History:
--*/ --*/
#pragma once
#include <cmath> #include <cmath>
#include <string> #include <string>
#include "util/vector.h" #include "util/vector.h"

View file

@ -17,6 +17,8 @@ Revision History:
--*/ --*/
#pragma once
#include <string> #include <string>
#include <algorithm> #include <algorithm>
#include "util/vector.h" #include "util/vector.h"

View file

@ -17,6 +17,8 @@ Revision History:
--*/ --*/
#pragma once
#include <string> #include <string>
#include <algorithm> #include <algorithm>
#include <set> #include <set>

View file

@ -17,6 +17,7 @@ Revision History:
--*/ --*/
#pragma once
#include <cmath> #include <cmath>
#include <string> #include <string>

View file

@ -17,6 +17,8 @@ Revision History:
--*/ --*/
#pragma once
#include "util/vector.h" #include "util/vector.h"
#include "math/lp/permutation_matrix.h" #include "math/lp/permutation_matrix.h"
namespace lp { namespace lp {

View file

@ -17,6 +17,8 @@ Revision History:
--*/ --*/
#pragma once
#include "math/lp/random_updater.h" #include "math/lp/random_updater.h"
#include "math/lp/static_matrix.h" #include "math/lp/static_matrix.h"
#include "math/lp/lar_solver.h" #include "math/lp/lar_solver.h"

View file

@ -17,6 +17,8 @@ Revision History:
--*/ --*/
#pragma once
#include "util/vector.h" #include "util/vector.h"
#include "math/lp/row_eta_matrix.h" #include "math/lp/row_eta_matrix.h"
namespace lp { namespace lp {

View file

@ -17,6 +17,8 @@ Revision History:
--*/ --*/
#pragma once
#include <algorithm> #include <algorithm>
#include "math/lp/scaler.h" #include "math/lp/scaler.h"
#include "math/lp/numeric_pair.h" #include "math/lp/numeric_pair.h"

View file

@ -17,6 +17,8 @@ Revision History:
--*/ --*/
#pragma once
#include "util/vector.h" #include "util/vector.h"
#include "math/lp/square_dense_submatrix.h" #include "math/lp/square_dense_submatrix.h"
namespace lp { namespace lp {

View file

@ -17,6 +17,7 @@ Revision History:
--*/ --*/
#pragma once
#include "util/vector.h" #include "util/vector.h"
#include "math/lp/square_sparse_matrix.h" #include "math/lp/square_sparse_matrix.h"

View file

@ -17,6 +17,8 @@ Revision History:
--*/ --*/
#pragma once
#include "util/vector.h" #include "util/vector.h"
#include <utility> #include <utility>
#include <set> #include <set>

View file

@ -16,6 +16,8 @@ Author:
Revision History: Revision History:
--*/ --*/
#pragma once
#include "math/subpaving/subpaving_t.h" #include "math/subpaving/subpaving_t.h"
#include "math/interval/interval_def.h" #include "math/interval/interval_def.h"
#include "util/buffer.h" #include "util/buffer.h"

View file

@ -3,6 +3,7 @@
Copyright (c) 2015 Microsoft Corporation Copyright (c) 2015 Microsoft Corporation
--*/ --*/
#pragma once
/** /**

View file

@ -5,6 +5,7 @@
Notes: this file is included from the middle of spacer_context.h Notes: this file is included from the middle of spacer_context.h
*/ */
#pragma once
class legacy_frames class legacy_frames
{ {

View file

@ -18,6 +18,7 @@
The truth table covers up to 6 inputs, which fits in 64 bits. The truth table covers up to 6 inputs, which fits in 64 bits.
--*/ --*/
#pragma once
static uint64_t compute_shift(uint64_t x, unsigned code) { static uint64_t compute_shift(uint64_t x, unsigned code) {
switch (code) { switch (code) {

View file

@ -3,6 +3,7 @@
Copyright (c) 2015 Microsoft Corporation Copyright (c) 2015 Microsoft Corporation
--*/ --*/
#pragma once
/** /**

View file

@ -3,6 +3,7 @@
Copyright (c) 2015 Microsoft Corporation Copyright (c) 2015 Microsoft Corporation
--*/ --*/
#pragma once
static char const g_pattern_database[] = static char const g_pattern_database[] =
"(benchmark patterns \n" "(benchmark patterns \n"

View file

@ -19,6 +19,7 @@ Notes:
It performs unit propagation and switches to creating It performs unit propagation and switches to creating
sorting circuits if it keeps having to propagate (create new clauses). sorting circuits if it keeps having to propagate (create new clauses).
--*/ --*/
#pragma once
#include "smt/smt_theory.h" #include "smt/smt_theory.h"
#include "ast/pb_decl_plugin.h" #include "ast/pb_decl_plugin.h"

View file

@ -17,6 +17,7 @@ Revision History:
--*/ --*/
#pragma once
#include <unordered_map> #include <unordered_map>
#include <vector> #include <vector>

View file

@ -1,3 +1,5 @@
#pragma once
namespace lp { namespace lp {
#include "math/lp/lp_utils.h" #include "math/lp/lp_utils.h"
struct gomory_test { struct gomory_test {

View file

@ -17,6 +17,7 @@ Notes:
--*/ --*/
#pragma once
#include "util/vector.h" #include "util/vector.h"
#include "util/uint_set.h" #include "util/uint_set.h"