From d0e20e44ff61cd3b8985ab92c94d80c80b20a09a Mon Sep 17 00:00:00 2001 From: Nikolaj Bjorner Date: Sat, 4 Jul 2020 15:56:30 -0700 Subject: [PATCH] booyah Signed-off-by: Nikolaj Bjorner --- src/ackermannization/ackermannize_bv_model_converter.h | 4 +--- src/ackermannization/ackermannize_bv_tactic.h | 4 +--- src/ackermannization/ackr_bound_probe.h | 4 +--- src/ackermannization/ackr_helper.h | 4 +--- src/ackermannization/ackr_info.h | 4 +--- src/ackermannization/ackr_model_converter.h | 4 +--- src/ackermannization/lackr.h | 4 +--- src/ackermannization/lackr_model_constructor.h | 4 +--- src/ackermannization/lackr_model_converter_lazy.h | 4 +--- src/api/api_ast_map.h | 4 +--- src/api/api_ast_vector.h | 4 +--- src/api/api_datalog.h | 4 +--- src/api/api_goal.h | 4 +--- src/api/api_model.h | 4 +--- src/api/api_polynomial.h | 4 +--- src/api/api_solver.h | 4 +--- src/api/api_stats.h | 4 +--- src/api/api_tactic.h | 4 +--- src/api/api_util.h | 4 +--- src/api/c++/z3++.h | 4 +--- src/api/ml/z3native_stubs.h | 4 +--- src/api/z3.h | 4 +--- src/api/z3_algebraic.h | 4 +--- src/api/z3_api.h | 4 +--- src/api/z3_ast_containers.h | 4 +--- src/api/z3_fixedpoint.h | 4 +--- src/api/z3_fpa.h | 4 +--- src/api/z3_optimization.h | 4 +--- src/api/z3_polynomial.h | 4 +--- src/api/z3_private.h | 4 +--- src/api/z3_rcf.h | 4 +--- src/api/z3_replayer.h | 4 +--- src/api/z3_spacer.h | 4 +--- src/api/z3_v1.h | 4 +--- src/ast/act_cache.h | 4 +--- src/ast/arith_decl_plugin.h | 4 +--- src/ast/array_decl_plugin.h | 4 +--- src/ast/ast.h | 4 +--- src/ast/ast_ll_pp.h | 4 +--- src/ast/ast_lt.h | 4 +--- src/ast/ast_pp.h | 4 +--- src/ast/ast_pp_dot.h | 4 +--- src/ast/ast_pp_util.h | 4 +--- src/ast/ast_printer.h | 4 +--- src/ast/ast_smt2_pp.h | 4 +--- src/ast/ast_smt_pp.h | 4 +--- src/ast/ast_trail.h | 4 +--- src/ast/ast_translation.h | 4 +--- src/ast/ast_util.h | 4 +--- src/ast/bv_decl_plugin.h | 4 +--- src/ast/datatype_decl_plugin.h | 4 +--- src/ast/decl_collector.h | 4 +--- src/ast/display_dimacs.h | 4 +--- src/ast/dl_decl_plugin.h | 4 +--- src/ast/expr2polynomial.h | 4 +--- src/ast/expr2var.h | 4 +--- src/ast/expr_abstract.h | 4 +--- src/ast/expr_delta_pair.h | 4 +--- src/ast/expr_functors.h | 4 +--- src/ast/expr_map.h | 4 +--- src/ast/expr_stat.h | 4 +--- src/ast/expr_substitution.h | 4 +--- src/ast/for_each_ast.h | 4 +--- src/ast/for_each_expr.h | 4 +--- src/ast/format.h | 4 +--- src/ast/fpa/bv2fpa_converter.h | 4 +--- src/ast/fpa/fpa2bv_converter.h | 4 +--- src/ast/fpa/fpa2bv_rewriter.h | 4 +--- src/ast/fpa_decl_plugin.h | 4 +--- src/ast/func_decl_dependencies.h | 4 +--- src/ast/has_free_vars.h | 4 +--- src/ast/macro_substitution.h | 4 +--- src/ast/macros/macro_finder.h | 4 +--- src/ast/macros/macro_manager.h | 4 +--- src/ast/macros/macro_util.h | 4 +--- src/ast/macros/quasi_macros.h | 4 +--- src/ast/normal_forms/defined_names.h | 4 +--- src/ast/normal_forms/name_exprs.h | 4 +--- src/ast/normal_forms/nnf.h | 4 +--- src/ast/normal_forms/pull_quant.h | 4 +--- src/ast/num_occurs.h | 4 +--- src/ast/occurs.h | 4 +--- src/ast/pattern/expr_pattern_match.h | 4 +--- src/ast/pattern/pattern_inference.h | 4 +--- src/ast/pattern/pattern_inference_params.h | 4 +--- src/ast/pb_decl_plugin.h | 4 +--- src/ast/pp.h | 4 +--- src/ast/proofs/proof_checker.h | 4 +--- src/ast/proofs/proof_utils.h | 4 +--- src/ast/recurse_expr.h | 4 +--- src/ast/recurse_expr_def.h | 4 +--- src/ast/reg_decl_plugins.h | 4 +--- src/ast/rewriter/arith_rewriter.h | 4 +--- src/ast/rewriter/array_rewriter.h | 4 +--- src/ast/rewriter/ast_counter.h | 4 +--- src/ast/rewriter/bit2int.h | 4 +--- src/ast/rewriter/bit_blaster/bit_blaster.h | 4 +--- src/ast/rewriter/bit_blaster/bit_blaster_params.h | 4 +--- src/ast/rewriter/bit_blaster/bit_blaster_rewriter.h | 4 +--- src/ast/rewriter/bit_blaster/bit_blaster_tpl.h | 4 +--- src/ast/rewriter/bool_rewriter.h | 4 +--- src/ast/rewriter/bv_bounds.h | 4 +--- src/ast/rewriter/bv_elim.h | 4 +--- src/ast/rewriter/bv_rewriter.h | 4 +--- src/ast/rewriter/datatype_rewriter.h | 4 +--- src/ast/rewriter/der.h | 4 +--- src/ast/rewriter/distribute_forall.h | 4 +--- src/ast/rewriter/dl_rewriter.h | 4 +--- src/ast/rewriter/elim_bounds.h | 4 +--- src/ast/rewriter/enum2bv_rewriter.h | 4 +--- src/ast/rewriter/expr_replacer.h | 4 +--- src/ast/rewriter/expr_safe_replace.h | 4 +--- src/ast/rewriter/factor_equivs.h | 4 +--- src/ast/rewriter/factor_rewriter.h | 4 +--- src/ast/rewriter/fpa_rewriter.h | 4 +--- src/ast/rewriter/func_decl_replace.h | 4 +--- src/ast/rewriter/hoist_rewriter.h | 4 +--- src/ast/rewriter/inj_axiom.h | 4 +--- src/ast/rewriter/label_rewriter.h | 4 +--- src/ast/rewriter/maximize_ac_sharing.h | 4 +--- src/ast/rewriter/mk_extract_proc.h | 4 +--- src/ast/rewriter/mk_simplified_app.h | 4 +--- src/ast/rewriter/pb2bv_rewriter.h | 4 +--- src/ast/rewriter/pb_rewriter.h | 4 +--- src/ast/rewriter/pb_rewriter_def.h | 4 +--- src/ast/rewriter/poly_rewriter.h | 4 +--- src/ast/rewriter/push_app_ite.h | 4 +--- src/ast/rewriter/quant_hoist.h | 4 +--- src/ast/rewriter/recfun_replace.h | 4 +--- src/ast/rewriter/rewriter.h | 4 +--- src/ast/rewriter/rewriter_types.h | 4 +--- src/ast/rewriter/seq_rewriter.h | 4 +--- src/ast/rewriter/th_rewriter.h | 4 +--- src/ast/rewriter/var_subst.h | 4 +--- src/ast/scoped_proof.h | 4 +--- src/ast/seq_decl_plugin.h | 4 +--- src/ast/shared_occs.h | 4 +--- src/ast/special_relations_decl_plugin.h | 4 +--- src/ast/static_features.h | 4 +--- src/ast/substitution/expr_offset.h | 4 +--- src/ast/substitution/expr_offset_map.h | 4 +--- src/ast/substitution/matcher.h | 4 +--- src/ast/substitution/substitution.h | 4 +--- src/ast/substitution/substitution_tree.h | 4 +--- src/ast/substitution/unifier.h | 4 +--- src/ast/substitution/var_offset_map.h | 4 +--- src/ast/used_symbols.h | 4 +--- src/ast/used_vars.h | 4 +--- src/ast/well_sorted.h | 4 +--- src/cmd_context/basic_cmds.h | 4 +--- src/cmd_context/check_logic.h | 4 +--- src/cmd_context/cmd_context.h | 4 +--- src/cmd_context/cmd_context_to_goal.h | 4 +--- src/cmd_context/cmd_util.h | 4 +--- src/cmd_context/context_params.h | 4 +--- src/cmd_context/echo_tactic.h | 4 +--- src/cmd_context/eval_cmd.h | 4 +--- src/cmd_context/extra_cmds/dbg_cmds.h | 4 +--- src/cmd_context/extra_cmds/polynomial_cmds.h | 4 +--- src/cmd_context/parametric_cmd.h | 4 +--- src/cmd_context/pdecl.h | 4 +--- src/cmd_context/simplify_cmd.h | 4 +--- src/cmd_context/tactic_cmds.h | 4 +--- src/cmd_context/tactic_manager.h | 4 +--- src/math/automata/automaton.h | 4 +--- src/math/automata/boolean_algebra.h | 4 +--- src/math/automata/symbolic_automata.h | 4 +--- src/math/automata/symbolic_automata_def.h | 4 +--- src/math/dd/dd_bdd.h | 4 +--- src/math/dd/dd_pdd.h | 4 +--- src/math/grobner/grobner.h | 4 +--- src/math/hilbert/heap_trie.h | 4 +--- src/math/interval/interval.h | 4 +--- src/math/interval/interval_def.h | 4 +--- src/math/polynomial/algebraic_numbers.h | 4 +--- src/math/polynomial/linear_eq_solver.h | 4 +--- src/math/polynomial/polynomial.h | 4 +--- src/math/polynomial/polynomial_cache.h | 4 +--- src/math/polynomial/polynomial_primes.h | 4 +--- src/math/polynomial/polynomial_var2value.h | 4 +--- src/math/polynomial/rpolynomial.h | 4 +--- src/math/polynomial/sexpr2upolynomial.h | 4 +--- src/math/polynomial/upolynomial.h | 4 +--- src/math/polynomial/upolynomial_factorization.h | 4 +--- src/math/polynomial/upolynomial_factorization_int.h | 4 +--- src/math/realclosure/mpz_matrix.h | 4 +--- src/math/realclosure/realclosure.h | 4 +--- src/math/simplex/bit_matrix.h | 4 +--- src/math/simplex/model_based_opt.h | 4 +--- src/math/simplex/network_flow.h | 4 +--- src/math/simplex/network_flow_def.h | 4 +--- src/math/simplex/simplex.h | 4 +--- src/math/simplex/simplex_def.h | 4 +--- src/math/simplex/sparse_matrix_def.h | 4 +--- src/math/subpaving/subpaving.h | 4 +--- src/math/subpaving/subpaving_hwf.h | 4 +--- src/math/subpaving/subpaving_mpf.h | 4 +--- src/math/subpaving/subpaving_mpff.h | 4 +--- src/math/subpaving/subpaving_mpfx.h | 4 +--- src/math/subpaving/subpaving_mpq.h | 4 +--- src/math/subpaving/subpaving_t.h | 4 +--- src/math/subpaving/tactic/expr2subpaving.h | 4 +--- src/math/subpaving/tactic/subpaving_tactic.h | 4 +--- src/model/array_factory.h | 4 +--- src/model/datatype_factory.h | 4 +--- src/model/func_interp.h | 4 +--- src/model/model.h | 4 +--- src/model/model2expr.h | 4 +--- src/model/model_core.h | 4 +--- src/model/model_evaluator.h | 4 +--- src/model/model_implicant.h | 4 +--- src/model/model_pp.h | 4 +--- src/model/model_smt2_pp.h | 4 +--- src/model/model_v2_pp.h | 4 +--- src/model/numeral_factory.h | 4 +--- src/model/seq_factory.h | 4 +--- src/model/struct_factory.h | 4 +--- src/model/value_factory.h | 4 +--- src/muz/base/bind_variables.h | 4 +--- src/muz/base/dl_context.h | 4 +--- src/muz/base/dl_costs.h | 4 +--- src/muz/base/dl_engine_base.h | 4 +--- src/muz/base/dl_rule.h | 4 +--- src/muz/base/dl_rule_set.h | 4 +--- src/muz/base/dl_rule_subsumption_index.h | 4 +--- src/muz/base/dl_rule_transformer.h | 4 +--- src/muz/base/dl_util.h | 4 +--- src/muz/base/hnf.h | 4 +--- src/muz/base/rule_properties.h | 4 +--- src/muz/bmc/dl_bmc_engine.h | 4 +--- src/muz/clp/clp_context.h | 4 +--- src/muz/dataflow/dataflow.h | 4 +--- src/muz/dataflow/reachability.h | 4 +--- src/muz/ddnf/ddnf.h | 4 +--- src/muz/fp/datalog_parser.h | 4 +--- src/muz/fp/dl_cmds.h | 4 +--- src/muz/fp/dl_register_engine.h | 4 +--- src/muz/fp/horn_tactic.h | 4 +--- src/muz/rel/aig_exporter.h | 4 +--- src/muz/rel/check_relation.h | 4 +--- src/muz/rel/dl_base.h | 4 +--- src/muz/rel/dl_bound_relation.h | 4 +--- src/muz/rel/dl_check_table.h | 4 +--- src/muz/rel/dl_compiler.h | 4 +--- src/muz/rel/dl_external_relation.h | 4 +--- src/muz/rel/dl_finite_product_relation.h | 4 +--- src/muz/rel/dl_instruction.h | 4 +--- src/muz/rel/dl_interval_relation.h | 4 +--- src/muz/rel/dl_lazy_table.h | 4 +--- src/muz/rel/dl_mk_explanations.h | 4 +--- src/muz/rel/dl_mk_similarity_compressor.h | 4 +--- src/muz/rel/dl_mk_simple_joins.h | 4 +--- src/muz/rel/dl_product_relation.h | 4 +--- src/muz/rel/dl_relation_manager.h | 4 +--- src/muz/rel/dl_sieve_relation.h | 4 +--- src/muz/rel/dl_sparse_table.h | 4 +--- src/muz/rel/dl_table.h | 4 +--- src/muz/rel/dl_table_plugin.h | 4 +--- src/muz/rel/dl_table_relation.h | 4 +--- src/muz/rel/dl_vector_relation.h | 4 +--- src/muz/rel/doc.h | 4 +--- src/muz/rel/karr_relation.h | 4 +--- src/muz/rel/rel_context.h | 4 +--- src/muz/rel/tbv.h | 4 +--- src/muz/rel/udoc_relation.h | 4 +--- src/muz/spacer/spacer_antiunify.h | 4 +--- src/muz/spacer/spacer_callback.h | 4 +--- src/muz/spacer/spacer_context.h | 4 +--- src/muz/spacer/spacer_dl_interface.h | 4 +--- src/muz/spacer/spacer_farkas_learner.h | 4 +--- src/muz/spacer/spacer_generalizers.h | 4 +--- src/muz/spacer/spacer_iuc_proof.h | 4 +--- src/muz/spacer/spacer_iuc_solver.h | 4 +--- src/muz/spacer/spacer_json.h | 4 +--- src/muz/spacer/spacer_legacy_mev.h | 4 +--- src/muz/spacer/spacer_manager.h | 4 +--- src/muz/spacer/spacer_matrix.h | 4 +--- src/muz/spacer/spacer_mbc.h | 4 +--- src/muz/spacer/spacer_mev_array.h | 4 +--- src/muz/spacer/spacer_pdr.h | 4 +--- src/muz/spacer/spacer_proof_utils.h | 4 +--- src/muz/spacer/spacer_prop_solver.h | 4 +--- src/muz/spacer/spacer_qe_project.h | 4 +--- src/muz/spacer/spacer_sat_answer.h | 4 +--- src/muz/spacer/spacer_sem_matcher.h | 4 +--- src/muz/spacer/spacer_sym_mux.h | 4 +--- src/muz/spacer/spacer_unsat_core_learner.h | 4 +--- src/muz/spacer/spacer_unsat_core_plugin.h | 4 +--- src/muz/spacer/spacer_util.h | 4 +--- src/muz/tab/tab_context.h | 4 +--- src/muz/transforms/dl_mk_array_blast.h | 4 +--- src/muz/transforms/dl_mk_array_eq_rewrite.h | 4 +--- src/muz/transforms/dl_mk_array_instantiation.h | 4 +--- src/muz/transforms/dl_mk_backwards.h | 4 +--- src/muz/transforms/dl_mk_bit_blast.h | 4 +--- src/muz/transforms/dl_mk_coalesce.h | 4 +--- src/muz/transforms/dl_mk_coi_filter.h | 4 +--- src/muz/transforms/dl_mk_different.h | 4 +--- src/muz/transforms/dl_mk_filter_rules.h | 4 +--- src/muz/transforms/dl_mk_interp_tail_simplifier.h | 4 +--- src/muz/transforms/dl_mk_karr_invariants.h | 4 +--- src/muz/transforms/dl_mk_loop_counter.h | 4 +--- src/muz/transforms/dl_mk_magic_sets.h | 4 +--- src/muz/transforms/dl_mk_magic_symbolic.h | 4 +--- src/muz/transforms/dl_mk_quantifier_abstraction.h | 4 +--- src/muz/transforms/dl_mk_quantifier_instantiation.h | 4 +--- src/muz/transforms/dl_mk_rule_inliner.h | 4 +--- src/muz/transforms/dl_mk_scale.h | 4 +--- src/muz/transforms/dl_mk_separate_negated_tails.h | 4 +--- src/muz/transforms/dl_mk_slice.h | 4 +--- src/muz/transforms/dl_mk_subsumption_checker.h | 4 +--- src/muz/transforms/dl_mk_synchronize.h | 4 +--- src/muz/transforms/dl_mk_unbound_compressor.h | 4 +--- src/muz/transforms/dl_mk_unfold.h | 4 +--- src/muz/transforms/dl_transforms.h | 4 +--- src/nlsat/nlsat_assignment.h | 4 +--- src/nlsat/nlsat_clause.h | 4 +--- src/nlsat/nlsat_evaluator.h | 4 +--- src/nlsat/nlsat_explain.h | 4 +--- src/nlsat/nlsat_interval_set.h | 4 +--- src/nlsat/nlsat_justification.h | 4 +--- src/nlsat/nlsat_scoped_literal_vector.h | 4 +--- src/nlsat/nlsat_solver.h | 4 +--- src/nlsat/nlsat_types.h | 4 +--- src/nlsat/tactic/goal2nlsat.h | 4 +--- src/nlsat/tactic/nlsat_tactic.h | 4 +--- src/nlsat/tactic/qfnra_nlsat_tactic.h | 4 +--- src/opt/maxlex.h | 4 +--- src/opt/maxres.h | 4 +--- src/opt/maxsmt.h | 4 +--- src/opt/opt_cmds.h | 4 +--- src/opt/opt_context.h | 4 +--- src/opt/opt_pareto.h | 4 +--- src/opt/opt_parse.h | 4 +--- src/opt/opt_sls_solver.h | 4 +--- src/opt/opt_solver.h | 4 +--- src/opt/optsmt.h | 4 +--- src/opt/pb_sls.h | 4 +--- src/opt/wmax.h | 4 +--- src/parsers/smt2/marshal.h | 4 +--- src/parsers/smt2/smt2parser.h | 4 +--- src/parsers/smt2/smt2scanner.h | 4 +--- src/parsers/util/cost_parser.h | 4 +--- src/parsers/util/pattern_validation.h | 4 +--- src/parsers/util/scanner.h | 4 +--- src/parsers/util/simple_parser.h | 4 +--- src/qe/nlarith_util.h | 4 +--- src/qe/nlqsat.h | 4 +--- src/qe/qe.h | 4 +--- src/qe/qe_arith.h | 4 +--- src/qe/qe_arrays.h | 4 +--- src/qe/qe_cmd.h | 4 +--- src/qe/qe_datatypes.h | 4 +--- src/qe/qe_mbp.h | 4 +--- src/qe/qe_tactic.h | 4 +--- src/qe/qe_term_graph.h | 4 +--- src/qe/qe_vartest.h | 4 +--- src/qe/qsat.h | 4 +--- src/sat/ba_solver.h | 4 +--- src/sat/dimacs.h | 4 +--- src/sat/sat_allocator.h | 4 +--- src/sat/sat_asymm_branch.h | 4 +--- src/sat/sat_big.h | 4 +--- src/sat/sat_binspr.h | 4 +--- src/sat/sat_clause.h | 4 +--- src/sat/sat_clause_set.h | 4 +--- src/sat/sat_clause_use_list.h | 4 +--- src/sat/sat_cleaner.h | 4 +--- src/sat/sat_config.h | 4 +--- src/sat/sat_ddfw.h | 4 +--- src/sat/sat_drat.h | 4 +--- src/sat/sat_elim_eqs.h | 4 +--- src/sat/sat_elim_vars.h | 4 +--- src/sat/sat_extension.h | 4 +--- src/sat/sat_integrity_checker.h | 4 +--- src/sat/sat_justification.h | 4 +--- src/sat/sat_local_search.h | 4 +--- src/sat/sat_lookahead.h | 4 +--- src/sat/sat_mus.h | 4 +--- src/sat/sat_parallel.h | 4 +--- src/sat/sat_prob.h | 4 +--- src/sat/sat_probing.h | 4 +--- src/sat/sat_scc.h | 4 +--- src/sat/sat_simplifier.h | 4 +--- src/sat/sat_solver.h | 4 +--- src/sat/sat_solver/inc_sat_solver.h | 4 +--- src/sat/sat_solver_core.h | 4 +--- src/sat/sat_types.h | 4 +--- src/sat/sat_var_queue.h | 4 +--- src/sat/sat_watched.h | 4 +--- src/sat/tactic/atom2bool_var.h | 4 +--- src/sat/tactic/goal2sat.h | 4 +--- src/sat/tactic/sat_tactic.h | 4 +--- src/shell/datalog_frontend.h | 4 +--- src/shell/dimacs_frontend.h | 4 +--- src/shell/opt_frontend.h | 4 +--- src/shell/smtlib_frontend.h | 4 +--- src/shell/z3_log_frontend.h | 4 +--- src/smt/arith_eq_adapter.h | 4 +--- src/smt/arith_eq_solver.h | 4 +--- src/smt/asserted_formulas.h | 4 +--- src/smt/cached_var_subst.h | 4 +--- src/smt/cost_evaluator.h | 4 +--- src/smt/diff_logic.h | 4 +--- src/smt/dyn_ack.h | 4 +--- src/smt/elim_term_ite.h | 4 +--- src/smt/expr_context_simplifier.h | 4 +--- src/smt/fingerprints.h | 4 +--- src/smt/mam.h | 4 +--- src/smt/params/dyn_ack_params.h | 4 +--- src/smt/params/preprocessor_params.h | 4 +--- src/smt/params/qi_params.h | 4 +--- src/smt/params/smt_params.h | 4 +--- src/smt/params/theory_arith_params.h | 4 +--- src/smt/params/theory_array_params.h | 4 +--- src/smt/params/theory_bv_params.h | 4 +--- src/smt/params/theory_datatype_params.h | 4 +--- src/smt/params/theory_pb_params.h | 4 +--- src/smt/params/theory_seq_params.h | 4 +--- src/smt/params/theory_str_params.h | 4 +--- src/smt/proto_model/proto_model.h | 4 +--- src/smt/qi_queue.h | 4 +--- src/smt/smt2_extra_cmds.h | 4 +--- src/smt/smt_almost_cg_table.h | 4 +--- src/smt/smt_b_justification.h | 4 +--- src/smt/smt_bool_var_data.h | 4 +--- src/smt/smt_case_split_queue.h | 4 +--- src/smt/smt_cg_table.h | 4 +--- src/smt/smt_checker.h | 4 +--- src/smt/smt_clause.h | 4 +--- src/smt/smt_clause_proof.h | 4 +--- src/smt/smt_conflict_resolution.h | 4 +--- src/smt/smt_context.h | 4 +--- src/smt/smt_enode.h | 4 +--- src/smt/smt_eq_justification.h | 4 +--- src/smt/smt_failure.h | 4 +--- src/smt/smt_farkas_util.h | 4 +--- src/smt/smt_for_each_relevant_expr.h | 4 +--- src/smt/smt_implied_equalities.h | 4 +--- src/smt/smt_justification.h | 4 +--- src/smt/smt_kernel.h | 4 +--- src/smt/smt_literal.h | 4 +--- src/smt/smt_model_checker.h | 4 +--- src/smt/smt_model_finder.h | 4 +--- src/smt/smt_model_generator.h | 4 +--- src/smt/smt_quantifier.h | 4 +--- src/smt/smt_quantifier_instances.h | 4 +--- src/smt/smt_quantifier_stat.h | 4 +--- src/smt/smt_quick_checker.h | 4 +--- src/smt/smt_relevancy.h | 4 +--- src/smt/smt_setup.h | 4 +--- src/smt/smt_solver.h | 4 +--- src/smt/smt_statistics.h | 4 +--- src/smt/smt_theory.h | 4 +--- src/smt/smt_theory_var_list.h | 4 +--- src/smt/smt_types.h | 4 +--- src/smt/smt_value_sort.h | 4 +--- src/smt/spanning_tree.h | 4 +--- src/smt/spanning_tree_base.h | 4 +--- src/smt/spanning_tree_def.h | 4 +--- src/smt/tactic/ctx_solver_simplify_tactic.h | 4 +--- src/smt/tactic/smt_tactic.h | 4 +--- src/smt/tactic/unit_subsumption_tactic.h | 4 +--- src/smt/theory_arith.h | 4 +--- src/smt/theory_arith_aux.h | 4 +--- src/smt/theory_arith_core.h | 4 +--- src/smt/theory_arith_def.h | 4 +--- src/smt/theory_arith_eq.h | 4 +--- src/smt/theory_arith_int.h | 4 +--- src/smt/theory_arith_inv.h | 4 +--- src/smt/theory_arith_nl.h | 4 +--- src/smt/theory_arith_pp.h | 4 +--- src/smt/theory_array.h | 4 +--- src/smt/theory_array_bapa.h | 4 +--- src/smt/theory_array_base.h | 4 +--- src/smt/theory_array_full.h | 4 +--- src/smt/theory_datatype.h | 4 +--- src/smt/theory_dense_diff_logic.h | 4 +--- src/smt/theory_dense_diff_logic_def.h | 4 +--- src/smt/theory_diff_logic.h | 4 +--- src/smt/theory_diff_logic_def.h | 4 +--- src/smt/theory_dl.h | 4 +--- src/smt/theory_dummy.h | 4 +--- src/smt/theory_fpa.h | 4 +--- src/smt/theory_opt.h | 4 +--- src/smt/theory_recfun.h | 4 +--- src/smt/theory_seq.h | 4 +--- src/smt/theory_seq_empty.h | 4 +--- src/smt/theory_special_relations.h | 4 +--- src/smt/theory_str.h | 4 +--- src/smt/theory_utvpi.h | 4 +--- src/smt/theory_wmaxsat.h | 4 +--- src/smt/uses_theory.h | 4 +--- src/smt/watch_list.h | 4 +--- src/solver/check_sat_result.h | 4 +--- src/solver/combined_solver.h | 4 +--- src/solver/mus.h | 4 +--- src/solver/parallel_tactic.h | 4 +--- src/solver/progress_callback.h | 4 +--- src/solver/smt_logics.h | 4 +--- src/solver/solver.h | 4 +--- src/solver/solver2tactic.h | 4 +--- src/solver/solver_na2as.h | 4 +--- src/solver/solver_pool.h | 4 +--- src/solver/tactic2solver.h | 4 +--- src/tactic/aig/aig.h | 4 +--- src/tactic/aig/aig_tactic.h | 4 +--- src/tactic/arith/add_bounds_tactic.h | 4 +--- src/tactic/arith/arith_bounds_tactic.h | 4 +--- src/tactic/arith/bound_manager.h | 4 +--- src/tactic/arith/bound_propagator.h | 4 +--- src/tactic/arith/bv2int_rewriter.h | 4 +--- src/tactic/arith/bv2real_rewriter.h | 4 +--- src/tactic/arith/card2bv_tactic.h | 4 +--- src/tactic/arith/degree_shift_tactic.h | 4 +--- src/tactic/arith/diff_neq_tactic.h | 4 +--- src/tactic/arith/eq2bv_tactic.h | 4 +--- src/tactic/arith/factor_tactic.h | 4 +--- src/tactic/arith/fix_dl_var_tactic.h | 4 +--- src/tactic/arith/fm_tactic.h | 4 +--- src/tactic/arith/lia2card_tactic.h | 4 +--- src/tactic/arith/lia2pb_tactic.h | 4 +--- src/tactic/arith/linear_equation.h | 4 +--- src/tactic/arith/nla2bv_tactic.h | 4 +--- src/tactic/arith/normalize_bounds_tactic.h | 4 +--- src/tactic/arith/pb2bv_model_converter.h | 4 +--- src/tactic/arith/pb2bv_tactic.h | 4 +--- src/tactic/arith/probe_arith.h | 4 +--- src/tactic/arith/propagate_ineqs_tactic.h | 4 +--- src/tactic/arith/purify_arith_tactic.h | 4 +--- src/tactic/arith/recover_01_tactic.h | 4 +--- src/tactic/bv/bit_blaster_model_converter.h | 4 +--- src/tactic/bv/bit_blaster_tactic.h | 4 +--- src/tactic/bv/bv1_blaster_tactic.h | 4 +--- src/tactic/bv/bv_bound_chk_tactic.h | 4 +--- src/tactic/bv/bv_bounds_tactic.h | 4 +--- src/tactic/bv/bvarray2uf_rewriter.h | 4 +--- src/tactic/bv/bvarray2uf_tactic.h | 4 +--- src/tactic/bv/dt2bv_tactic.h | 4 +--- src/tactic/bv/max_bv_sharing_tactic.h | 4 +--- src/tactic/converter.h | 4 +--- src/tactic/core/blast_term_ite_tactic.h | 4 +--- src/tactic/core/cofactor_elim_term_ite.h | 4 +--- src/tactic/core/cofactor_term_ite_tactic.h | 4 +--- src/tactic/core/collect_occs.h | 4 +--- src/tactic/core/collect_statistics_tactic.h | 4 +--- src/tactic/core/ctx_simplify_tactic.h | 4 +--- src/tactic/core/der_tactic.h | 4 +--- src/tactic/core/distribute_forall_tactic.h | 4 +--- src/tactic/core/dom_simplify_tactic.h | 4 +--- src/tactic/core/elim_term_ite_tactic.h | 4 +--- src/tactic/core/injectivity_tactic.h | 4 +--- src/tactic/core/nnf_tactic.h | 4 +--- src/tactic/core/occf_tactic.h | 4 +--- src/tactic/core/pb_preprocess_tactic.h | 4 +--- src/tactic/core/reduce_args_tactic.h | 4 +--- src/tactic/core/simplify_tactic.h | 4 +--- src/tactic/core/solve_eqs_tactic.h | 4 +--- src/tactic/core/special_relations_tactic.h | 4 +--- src/tactic/core/split_clause_tactic.h | 4 +--- src/tactic/core/symmetry_reduce_tactic.h | 4 +--- src/tactic/core/tseitin_cnf_tactic.h | 4 +--- src/tactic/dependency_converter.h | 4 +--- src/tactic/equiv_proof_converter.h | 4 +--- src/tactic/fd_solver/bounded_int2bv_solver.h | 4 +--- src/tactic/fd_solver/enum2bv_solver.h | 4 +--- src/tactic/fd_solver/fd_solver.h | 4 +--- src/tactic/fd_solver/pb2bv_solver.h | 4 +--- src/tactic/fd_solver/smtfd_solver.h | 4 +--- src/tactic/filter_model_converter.h | 4 +--- src/tactic/fpa/fpa2bv_model_converter.h | 4 +--- src/tactic/fpa/fpa2bv_tactic.h | 4 +--- src/tactic/fpa/qffp_tactic.h | 4 +--- src/tactic/fpa/qffplra_tactic.h | 4 +--- src/tactic/generic_model_converter.h | 4 +--- src/tactic/goal.h | 4 +--- src/tactic/goal_num_occurs.h | 4 +--- src/tactic/goal_shared_occs.h | 4 +--- src/tactic/goal_util.h | 4 +--- src/tactic/horn_subsume_model_converter.h | 4 +--- src/tactic/model_converter.h | 4 +--- src/tactic/portfolio/default_tactic.h | 4 +--- src/tactic/portfolio/solver2lookahead.h | 4 +--- src/tactic/probe.h | 4 +--- src/tactic/proof_converter.h | 4 +--- src/tactic/replace_proof_converter.h | 4 +--- src/tactic/sine_filter.h | 4 +--- src/tactic/sls/bvsls_opt_engine.h | 4 +--- src/tactic/sls/sls_engine.h | 4 +--- src/tactic/sls/sls_evaluator.h | 4 +--- src/tactic/sls/sls_powers.h | 4 +--- src/tactic/sls/sls_tactic.h | 4 +--- src/tactic/sls/sls_tracker.h | 4 +--- src/tactic/smtlogics/nra_tactic.h | 4 +--- src/tactic/smtlogics/qfaufbv_tactic.h | 4 +--- src/tactic/smtlogics/qfauflia_tactic.h | 4 +--- src/tactic/smtlogics/qfbv_tactic.h | 4 +--- src/tactic/smtlogics/qfidl_tactic.h | 4 +--- src/tactic/smtlogics/qflia_tactic.h | 4 +--- src/tactic/smtlogics/qflra_tactic.h | 4 +--- src/tactic/smtlogics/qfnia_tactic.h | 4 +--- src/tactic/smtlogics/qfnra_tactic.h | 4 +--- src/tactic/smtlogics/qfuf_tactic.h | 4 +--- src/tactic/smtlogics/qfufbv_ackr_model_converter.h | 4 +--- src/tactic/smtlogics/qfufbv_tactic.h | 4 +--- src/tactic/smtlogics/quant_tactics.h | 4 +--- src/tactic/tactic.h | 4 +--- src/tactic/tactic_exception.h | 4 +--- src/tactic/tactical.h | 4 +--- src/tactic/ufbv/macro_finder_tactic.h | 4 +--- src/tactic/ufbv/quasi_macros_tactic.h | 4 +--- src/tactic/ufbv/ufbv_rewriter.h | 4 +--- src/tactic/ufbv/ufbv_rewriter_tactic.h | 4 +--- src/tactic/ufbv/ufbv_tactic.h | 4 +--- src/test/for_each_file.h | 4 +--- src/test/fuzzing/expr_delta.h | 4 +--- src/test/fuzzing/expr_rand.h | 4 +--- src/test/im_float_config.h | 4 +--- src/util/approx_nat.h | 4 +--- src/util/approx_set.h | 4 +--- src/util/array.h | 4 +--- src/util/backtrackable_set.h | 4 +--- src/util/basic_interval.h | 4 +--- src/util/bit_util.h | 4 +--- src/util/cancel_eh.h | 4 +--- src/util/chashtable.h | 4 +--- src/util/cmd_context_types.h | 4 +--- src/util/common_msgs.h | 4 +--- src/util/container_util.h | 4 +--- src/util/dec_ref_util.h | 4 +--- src/util/dependency.h | 4 +--- src/util/dictionary.h | 4 +--- src/util/dlist.h | 4 +--- src/util/double_manager.h | 4 +--- src/util/ema.h | 4 +--- src/util/env_params.h | 4 +--- src/util/error_codes.h | 4 +--- src/util/event_handler.h | 4 +--- src/util/ext_gcd.h | 4 +--- src/util/ext_numeral.h | 4 +--- src/util/f2n.h | 4 +--- src/util/file_path.h | 4 +--- src/util/fixed_bit_vector.h | 4 +--- src/util/gparams.h | 4 +--- src/util/hash.h | 4 +--- src/util/id_gen.h | 4 +--- src/util/inf_eps_rational.h | 4 +--- src/util/inf_int_rational.h | 4 +--- src/util/lbool.h | 4 +--- src/util/list.h | 4 +--- src/util/luby.h | 4 +--- src/util/machine.h | 4 +--- src/util/map.h | 4 +--- src/util/memory_manager.h | 4 +--- src/util/min_cut.h | 4 +--- src/util/mpbq.h | 4 +--- src/util/mpbqi.h | 4 +--- src/util/mpff.h | 4 +--- src/util/mpfx.h | 4 +--- src/util/mpn.h | 4 +--- src/util/mpq_inf.h | 4 +--- src/util/mpzzp.h | 4 +--- src/util/nat_set.h | 4 +--- src/util/numeral_buffer.h | 4 +--- src/util/obj_hashtable.h | 4 +--- src/util/obj_mark.h | 4 +--- src/util/obj_pair_hashtable.h | 4 +--- src/util/obj_pair_set.h | 4 +--- src/util/obj_ref_hashtable.h | 4 +--- src/util/obj_triple_hashtable.h | 4 +--- src/util/object_allocator.h | 4 +--- src/util/page.h | 4 +--- src/util/params.h | 4 +--- src/util/parray.h | 4 +--- src/util/permutation.h | 4 +--- src/util/plugin_manager.h | 4 +--- src/util/pool.h | 4 +--- src/util/pop_scopes.h | 4 +--- src/util/prime_generator.h | 4 +--- src/util/ptr_scoped_buffer.h | 4 +--- src/util/queue.h | 4 +--- src/util/ref.h | 4 +--- src/util/ref_buffer.h | 4 +--- src/util/ref_util.h | 4 +--- src/util/region.h | 4 +--- src/util/s_integer.h | 4 +--- src/util/scoped_ctrl_c.h | 4 +--- src/util/scoped_numeral_buffer.h | 4 +--- src/util/scoped_ptr_vector.h | 4 +--- src/util/scoped_timer.h | 4 +--- src/util/scoped_vector.h | 4 +--- src/util/sexpr.h | 4 +--- src/util/small_object_allocator.h | 4 +--- src/util/smt2_util.h | 4 +--- src/util/sorting_network.h | 4 +--- src/util/stack.h | 4 +--- src/util/statistics.h | 4 +--- src/util/stats.h | 4 +--- src/util/stopwatch.h | 4 +--- src/util/str_hashtable.h | 4 +--- src/util/stream_buffer.h | 4 +--- src/util/symbol.h | 4 +--- src/util/symbol_table.h | 4 +--- src/util/timeit.h | 4 +--- src/util/timeout.h | 4 +--- src/util/timer.h | 4 +--- src/util/top_sort.h | 4 +--- src/util/total_order.h | 4 +--- src/util/tptr.h | 4 +--- src/util/trail.h | 4 +--- src/util/uint_map.h | 4 +--- src/util/union_find.h | 4 +--- src/util/warning.h | 4 +--- src/util/z3_exception.h | 4 +--- 714 files changed, 714 insertions(+), 2142 deletions(-) diff --git a/src/ackermannization/ackermannize_bv_model_converter.h b/src/ackermannization/ackermannize_bv_model_converter.h index d0255a0d4..59dff3ed2 100644 --- a/src/ackermannization/ackermannize_bv_model_converter.h +++ b/src/ackermannization/ackermannize_bv_model_converter.h @@ -14,12 +14,10 @@ Revision History: --*/ -#ifndef ACKERMANNIZE_BV_MODEL_CONVERTER_H_ -#define ACKERMANNIZE_BV_MODEL_CONVERTER_H_ +#pragma once #include "tactic/model_converter.h" #include "ackermannization/ackr_info.h" model_converter * mk_ackermannize_bv_model_converter(ast_manager & m, const ackr_info_ref& info); -#endif /* ACKERMANNIZE_BV_MODEL_CONVERTER_H_ */ diff --git a/src/ackermannization/ackermannize_bv_tactic.h b/src/ackermannization/ackermannize_bv_tactic.h index 803defb06..073a680bf 100644 --- a/src/ackermannization/ackermannize_bv_tactic.h +++ b/src/ackermannization/ackermannize_bv_tactic.h @@ -14,8 +14,7 @@ Mikolas Janota Revision History: --*/ -#ifndef _ACKERMANNIZE_TACTIC_H_ -#define _ACKERMANNIZE_TACTIC_H_ +#pragma once #include "tactic/tactical.h" tactic * mk_ackermannize_bv_tactic(ast_manager & m, params_ref const & p); @@ -24,5 +23,4 @@ tactic * mk_ackermannize_bv_tactic(ast_manager & m, params_ref const & p); ADD_TACTIC("ackermannize_bv", "A tactic for performing full Ackermannization on bv instances.", "mk_ackermannize_bv_tactic(m, p)") */ -#endif diff --git a/src/ackermannization/ackr_bound_probe.h b/src/ackermannization/ackr_bound_probe.h index 169b3068e..6ea516fa6 100644 --- a/src/ackermannization/ackr_bound_probe.h +++ b/src/ackermannization/ackr_bound_probe.h @@ -15,8 +15,7 @@ Revision History: --*/ -#ifndef ACKR_BOUND_PROBE_H_ -#define ACKR_BOUND_PROBE_H_ +#pragma once #include "tactic/probe.h" @@ -26,4 +25,3 @@ probe * mk_ackr_bound_probe(); ADD_PROBE("ackr-bound-probe", "A probe to give an upper bound of Ackermann congruence lemmas that a formula might generate.", "mk_ackr_bound_probe()") */ -#endif /* ACKR_BOUND_PROBE_H_ */ diff --git a/src/ackermannization/ackr_helper.h b/src/ackermannization/ackr_helper.h index 5512b9d47..9abe151e9 100644 --- a/src/ackermannization/ackr_helper.h +++ b/src/ackermannization/ackr_helper.h @@ -14,8 +14,7 @@ Revision History: --*/ -#ifndef ACKR_HELPER_H_ -#define ACKR_HELPER_H_ +#pragma once #include "ast/bv_decl_plugin.h" #include "ast/array_decl_plugin.h" @@ -151,4 +150,3 @@ private: bv_util m_bvutil; array_util m_autil; }; -#endif /* ACKR_HELPER_H_ */ diff --git a/src/ackermannization/ackr_info.h b/src/ackermannization/ackr_info.h index 500db7d78..fd2361064 100644 --- a/src/ackermannization/ackr_info.h +++ b/src/ackermannization/ackr_info.h @@ -13,8 +13,7 @@ Mikolas Janota Revision History: --*/ -#ifndef ACKR_INFO_H_ -#define ACKR_INFO_H_ +#pragma once #include "util/ref.h" #include "util/obj_hashtable.h" @@ -119,4 +118,3 @@ class ackr_info { typedef ref ackr_info_ref; -#endif /* ACKR_INFO_H_ */ diff --git a/src/ackermannization/ackr_model_converter.h b/src/ackermannization/ackr_model_converter.h index 659b45926..8fc8edecc 100644 --- a/src/ackermannization/ackr_model_converter.h +++ b/src/ackermannization/ackr_model_converter.h @@ -13,8 +13,7 @@ Author: Revision History: --*/ -#ifndef ACKR_MODEL_CONVERTER_H_ -#define ACKR_MODEL_CONVERTER_H_ +#pragma once #include "tactic/model_converter.h" #include "ackermannization/ackr_info.h" @@ -22,4 +21,3 @@ Revision History: model_converter * mk_ackr_model_converter(ast_manager & m, const ackr_info_ref & info, model_ref & abstr_model); model_converter * mk_ackr_model_converter(ast_manager & m, const ackr_info_ref & info); -#endif /* LACKR_MODEL_CONVERTER_H_ */ diff --git a/src/ackermannization/lackr.h b/src/ackermannization/lackr.h index 51a743fc6..b111a16bf 100644 --- a/src/ackermannization/lackr.h +++ b/src/ackermannization/lackr.h @@ -14,8 +14,7 @@ Revision History: --*/ -#ifndef LACKR_H_ -#define LACKR_H_ +#pragma once #include "util/lbool.h" #include "util/util.h" @@ -129,4 +128,3 @@ class lackr { void abstract_fun(fun2terms_map const& apps); }; -#endif /* LACKR_H_ */ diff --git a/src/ackermannization/lackr_model_constructor.h b/src/ackermannization/lackr_model_constructor.h index 928d0c992..ae48c04c3 100644 --- a/src/ackermannization/lackr_model_constructor.h +++ b/src/ackermannization/lackr_model_constructor.h @@ -15,8 +15,7 @@ Revision History: --*/ -#ifndef LACKR_MODEL_CONSTRUCTOR_H_ -#define LACKR_MODEL_CONSTRUCTOR_H_ +#pragma once #include "ast/ast.h" #include "ackermannization/ackr_info.h" @@ -58,4 +57,3 @@ class lackr_model_constructor { }; typedef ref lackr_model_constructor_ref; -#endif /* MODEL_CONSTRUCTOR_H_ */ diff --git a/src/ackermannization/lackr_model_converter_lazy.h b/src/ackermannization/lackr_model_converter_lazy.h index 0581976a9..9a713753b 100644 --- a/src/ackermannization/lackr_model_converter_lazy.h +++ b/src/ackermannization/lackr_model_converter_lazy.h @@ -14,12 +14,10 @@ Revision History: --*/ -#ifndef LACKR_MODEL_CONVERTER_LAZY_H_ -#define LACKR_MODEL_CONVERTER_LAZY_H_ +#pragma once #include "tactic/model_converter.h" #include "ackermannization/ackr_info.h" model_converter * mk_lackr_model_converter_lazy(ast_manager & m, const ackr_info_ref& info, model_ref& abstr_model); -#endif /* LACKR_MODEL_CONVERTER_LAZY_H_ */ diff --git a/src/api/api_ast_map.h b/src/api/api_ast_map.h index 27ad1eb9d..541fc6183 100644 --- a/src/api/api_ast_map.h +++ b/src/api/api_ast_map.h @@ -15,8 +15,7 @@ Author: Revision History: --*/ -#ifndef API_AST_MAP_H_ -#define API_AST_MAP_H_ +#pragma once #include "api/api_util.h" #include "util/obj_hashtable.h" @@ -32,4 +31,3 @@ inline Z3_ast_map_ref * to_ast_map(Z3_ast_map v) { return reinterpret_cast(v); } inline obj_map & to_ast_map_ref(Z3_ast_map v) { return to_ast_map(v)->m_map; } -#endif diff --git a/src/api/api_ast_vector.h b/src/api/api_ast_vector.h index d9d3913e7..fe6203cb9 100644 --- a/src/api/api_ast_vector.h +++ b/src/api/api_ast_vector.h @@ -15,8 +15,7 @@ Author: Revision History: --*/ -#ifndef API_AST_VECTOR_H_ -#define API_AST_VECTOR_H_ +#pragma once #include "api/api_util.h" @@ -34,4 +33,3 @@ inline Z3_ast_vector_ref * to_ast_vector(Z3_ast_vector v) { return reinterpret_c inline Z3_ast_vector of_ast_vector(Z3_ast_vector_ref * v) { return reinterpret_cast(v); } inline ast_ref_vector & to_ast_vector_ref(Z3_ast_vector v) { return to_ast_vector(v)->m_ast_vector; } -#endif diff --git a/src/api/api_datalog.h b/src/api/api_datalog.h index 35458f902..152f5bc76 100644 --- a/src/api/api_datalog.h +++ b/src/api/api_datalog.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef API_DATALOG_H_ -#define API_DATALOG_H_ +#pragma once #include "api/z3.h" #include "ast/ast.h" @@ -46,4 +45,3 @@ inline Z3_fixedpoint of_datalog(Z3_fixedpoint_ref * s) { return reinterpret_cast inline api::fixedpoint_context * to_fixedpoint_ref(Z3_fixedpoint s) { return to_fixedpoint(s)->m_datalog; } -#endif diff --git a/src/api/api_goal.h b/src/api/api_goal.h index fa2ea61cf..86f6a4331 100644 --- a/src/api/api_goal.h +++ b/src/api/api_goal.h @@ -15,8 +15,7 @@ Author: Revision History: --*/ -#ifndef API_GOAL_H_ -#define API_GOAL_H_ +#pragma once #include "api/api_util.h" #include "tactic/goal.h" @@ -31,4 +30,3 @@ inline Z3_goal_ref * to_goal(Z3_goal g) { return reinterpret_cast inline Z3_goal of_goal(Z3_goal_ref * g) { return reinterpret_cast(g); } inline goal_ref to_goal_ref(Z3_goal g) { return g == nullptr ? goal_ref() : to_goal(g)->m_goal; } -#endif diff --git a/src/api/api_model.h b/src/api/api_model.h index fa94e9728..c05c86ceb 100644 --- a/src/api/api_model.h +++ b/src/api/api_model.h @@ -15,8 +15,7 @@ Author: Revision History: --*/ -#ifndef API_MODEL_H_ -#define API_MODEL_H_ +#pragma once #include "api/api_util.h" #include "model/model.h" @@ -55,4 +54,3 @@ inline Z3_func_entry of_func_entry(Z3_func_entry_ref * s) { return reinterpret_c inline func_entry const * to_func_entry_ref(Z3_func_entry s) { return to_func_entry(s)->m_func_entry; } -#endif diff --git a/src/api/api_polynomial.h b/src/api/api_polynomial.h index a31f6c2b8..033d46211 100644 --- a/src/api/api_polynomial.h +++ b/src/api/api_polynomial.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef API_POLYNOMIAL_H_ -#define API_POLYNOMIAL_H_ +#pragma once #include "math/polynomial/polynomial.h" @@ -35,4 +34,3 @@ namespace api { }; -#endif diff --git a/src/api/api_solver.h b/src/api/api_solver.h index 25b9c67d7..5e01d5349 100644 --- a/src/api/api_solver.h +++ b/src/api/api_solver.h @@ -15,8 +15,7 @@ Author: Revision History: --*/ -#ifndef API_SOLVER_H_ -#define API_SOLVER_H_ +#pragma once #include "util/mutex.h" #include "api/api_util.h" @@ -63,4 +62,3 @@ inline Z3_solver_ref * to_solver(Z3_solver s) { return reinterpret_cast(s); } inline solver * to_solver_ref(Z3_solver s) { return to_solver(s)->m_solver.get(); } -#endif diff --git a/src/api/api_stats.h b/src/api/api_stats.h index e5ad5d315..209daafdd 100644 --- a/src/api/api_stats.h +++ b/src/api/api_stats.h @@ -15,8 +15,7 @@ Author: Revision History: --*/ -#ifndef API_STATS_H_ -#define API_STATS_H_ +#pragma once #include "api/api_util.h" #include "util/statistics.h" @@ -31,4 +30,3 @@ inline Z3_stats_ref * to_stats(Z3_stats s) { return reinterpret_cast(s); } inline statistics & to_stats_ref(Z3_stats s) { return to_stats(s)->m_stats; } -#endif diff --git a/src/api/api_tactic.h b/src/api/api_tactic.h index 421c03fcd..a4d0f263e 100644 --- a/src/api/api_tactic.h +++ b/src/api/api_tactic.h @@ -15,8 +15,7 @@ Author: Revision History: --*/ -#ifndef API_TACTIC_H_ -#define API_TACTIC_H_ +#pragma once #include "api/api_goal.h" #include "tactic/tactical.h" @@ -57,4 +56,3 @@ struct Z3_apply_result_ref : public api::object { inline Z3_apply_result_ref * to_apply_result(Z3_apply_result g) { return reinterpret_cast(g); } inline Z3_apply_result of_apply_result(Z3_apply_result_ref * g) { return reinterpret_cast(g); } -#endif diff --git a/src/api/api_util.h b/src/api/api_util.h index ba8255837..65d566d62 100644 --- a/src/api/api_util.h +++ b/src/api/api_util.h @@ -15,8 +15,7 @@ Author: Revision History: --*/ -#ifndef API_UTIL_H_ -#define API_UTIL_H_ +#pragma once #include "util/params.h" #include "util/lbool.h" @@ -172,4 +171,3 @@ Z3_ast Z3_API NAME(Z3_context c, unsigned num_args, Z3_ast const* args) { \ Z3_CATCH_RETURN(0); \ } -#endif diff --git a/src/api/c++/z3++.h b/src/api/c++/z3++.h index b3c670846..e37398454 100644 --- a/src/api/c++/z3++.h +++ b/src/api/c++/z3++.h @@ -18,8 +18,7 @@ Author: Notes: --*/ -#ifndef Z3PP_H_ -#define Z3PP_H_ +#pragma once #include #include @@ -3572,5 +3571,4 @@ namespace z3 { /*@}*/ /*@}*/ #undef Z3_THROW -#endif diff --git a/src/api/ml/z3native_stubs.h b/src/api/ml/z3native_stubs.h index ceeaac17a..6f39ce421 100644 --- a/src/api/ml/z3native_stubs.h +++ b/src/api/ml/z3native_stubs.h @@ -17,8 +17,7 @@ Notes: --*/ -#ifndef Z3NATIVE_STUBS_H_ -#define Z3NATIVE_STUBS_H_ +#pragma once #if defined _WIN32 || defined __CYGWIN__ #ifdef __GNUC__ @@ -34,4 +33,3 @@ Notes: #endif #endif -#endif diff --git a/src/api/z3.h b/src/api/z3.h index 382bc4b07..2ad00d835 100644 --- a/src/api/z3.h +++ b/src/api/z3.h @@ -18,8 +18,7 @@ Notes: --*/ -#ifndef Z3_H_ -#define Z3_H_ +#pragma once #include #include @@ -34,5 +33,4 @@ Notes: #include "z3_optimization.h" #include "z3_fpa.h" #include "z3_spacer.h" -#endif diff --git a/src/api/z3_algebraic.h b/src/api/z3_algebraic.h index bb419d218..952692efa 100644 --- a/src/api/z3_algebraic.h +++ b/src/api/z3_algebraic.h @@ -18,8 +18,7 @@ Notes: --*/ -#ifndef Z3_ALGEBRAIC_H_ -#define Z3_ALGEBRAIC_H_ +#pragma once #ifdef __cplusplus extern "C" { @@ -248,4 +247,3 @@ extern "C" { } #endif // __cplusplus -#endif diff --git a/src/api/z3_api.h b/src/api/z3_api.h index 920665ca5..ac7f899ef 100644 --- a/src/api/z3_api.h +++ b/src/api/z3_api.h @@ -3,7 +3,6 @@ --*/ #ifndef Z3_API_H_ -#define Z3_API_H_ DEFINE_TYPE(Z3_symbol); DEFINE_TYPE(Z3_literals); @@ -5563,7 +5562,7 @@ extern "C" { /** @name Error Handling */ /*@{*/ -#ifndef SAFE_ERRORS +#pragma once /** \brief Return the error code for the last API call. @@ -6730,4 +6729,3 @@ extern "C" { /*@}*/ -#endif diff --git a/src/api/z3_ast_containers.h b/src/api/z3_ast_containers.h index c8438a2ad..e317460f8 100644 --- a/src/api/z3_ast_containers.h +++ b/src/api/z3_ast_containers.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef Z3_AST_CONTAINERS_H_ -#define Z3_AST_CONTAINERS_H_ +#pragma once #ifdef __cplusplus extern "C" { @@ -197,4 +196,3 @@ extern "C" { } #endif // __cplusplus -#endif diff --git a/src/api/z3_fixedpoint.h b/src/api/z3_fixedpoint.h index 33b970371..b9fada51d 100644 --- a/src/api/z3_fixedpoint.h +++ b/src/api/z3_fixedpoint.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef Z3_FIXEDPOINT_H_ -#define Z3_FIXEDPOINT_H_ +#pragma once #ifdef __cplusplus extern "C" { @@ -381,4 +380,3 @@ extern "C" { } #endif // __cplusplus -#endif diff --git a/src/api/z3_fpa.h b/src/api/z3_fpa.h index 71bc24d08..ddf0fb1e5 100644 --- a/src/api/z3_fpa.h +++ b/src/api/z3_fpa.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef Z3_FPA_H_ -#define Z3_FPA_H_ +#pragma once #ifdef __cplusplus extern "C" { @@ -1085,4 +1084,3 @@ extern "C" { } #endif // __cplusplus -#endif diff --git a/src/api/z3_optimization.h b/src/api/z3_optimization.h index 6c9223623..140d31846 100644 --- a/src/api/z3_optimization.h +++ b/src/api/z3_optimization.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef Z3_OPTIMIZATION_H_ -#define Z3_OPTIMIZATION_H_ +#pragma once #ifdef __cplusplus extern "C" { @@ -359,4 +358,3 @@ extern "C" { } #endif // __cplusplus -#endif diff --git a/src/api/z3_polynomial.h b/src/api/z3_polynomial.h index 5f4815d02..47979fc87 100644 --- a/src/api/z3_polynomial.h +++ b/src/api/z3_polynomial.h @@ -17,8 +17,7 @@ Notes: --*/ -#ifndef Z3_POLYNOMIAL_H_ -#define Z3_POLYNOMIAL_H_ +#pragma once #ifdef __cplusplus extern "C" { @@ -51,4 +50,3 @@ extern "C" { } #endif // __cplusplus -#endif diff --git a/src/api/z3_private.h b/src/api/z3_private.h index 4d5e2d3bd..528033c72 100644 --- a/src/api/z3_private.h +++ b/src/api/z3_private.h @@ -22,8 +22,7 @@ Notes: #include "util/rational.h" #include "api/z3_macros.h" -#ifndef Z3_PRIVATE_H_ -#define Z3_PRIVATE_H_ +#pragma once #ifdef __cplusplus extern "C" { @@ -35,5 +34,4 @@ extern "C" { }; #endif // __cplusplus -#endif diff --git a/src/api/z3_rcf.h b/src/api/z3_rcf.h index 4e4ecbd15..f61da20c5 100644 --- a/src/api/z3_rcf.h +++ b/src/api/z3_rcf.h @@ -19,8 +19,7 @@ Author: Notes: --*/ -#ifndef Z3_RCF_H_ -#define Z3_RCF_H_ +#pragma once #ifdef __cplusplus extern "C" { @@ -204,4 +203,3 @@ extern "C" { } #endif // __cplusplus -#endif diff --git a/src/api/z3_replayer.h b/src/api/z3_replayer.h index 8e423cc09..b5388251f 100644 --- a/src/api/z3_replayer.h +++ b/src/api/z3_replayer.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef Z3_REPLAYER_H_ -#define Z3_REPLAYER_H_ +#pragma once #include #include "api/z3.h" @@ -66,4 +65,3 @@ public: void register_cmd(unsigned id, z3_replayer_cmd cmd, char const* name); }; -#endif diff --git a/src/api/z3_spacer.h b/src/api/z3_spacer.h index 09cbe6a51..fe4086e5a 100644 --- a/src/api/z3_spacer.h +++ b/src/api/z3_spacer.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef Z3_SPACER_H_ -#define Z3_SPACER_H_ +#pragma once #ifdef __cplusplus extern "C" { @@ -140,4 +139,3 @@ extern "C" { } #endif // __cplusplus -#endif diff --git a/src/api/z3_v1.h b/src/api/z3_v1.h index 66de943c2..c003d6fda 100644 --- a/src/api/z3_v1.h +++ b/src/api/z3_v1.h @@ -18,8 +18,7 @@ Author: Notes: --*/ -#ifndef Z3_V1_H_ -#define Z3_V1_H_ +#pragma once #include "api/z3.h" @@ -61,4 +60,3 @@ Notes: #define Z3_get_const_ast_decl Z3_get_app_decl #define Z3_get_value Z3_eval_func_decl -#endif diff --git a/src/ast/act_cache.h b/src/ast/act_cache.h index 49b49face..0e6d0915c 100644 --- a/src/ast/act_cache.h +++ b/src/ast/act_cache.h @@ -17,8 +17,7 @@ Author: Notes: --*/ -#ifndef ACT_CACHE_H_ -#define ACT_CACHE_H_ +#pragma once #include "ast/ast.h" #include "util/obj_hashtable.h" @@ -61,4 +60,3 @@ public: }; -#endif diff --git a/src/ast/arith_decl_plugin.h b/src/ast/arith_decl_plugin.h index 20a474d8b..d62d385c7 100644 --- a/src/ast/arith_decl_plugin.h +++ b/src/ast/arith_decl_plugin.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef ARITH_DECL_PLUGIN_H_ -#define ARITH_DECL_PLUGIN_H_ +#pragma once #include "ast/ast.h" class sexpr; @@ -596,5 +595,4 @@ inline app_ref operator>(app_ref const& x, app_ref const& y) { return app_ref(a.mk_gt(x, y), x.get_manager()); } -#endif /* ARITH_DECL_PLUGIN_H_ */ diff --git a/src/ast/array_decl_plugin.h b/src/ast/array_decl_plugin.h index db00989ee..be68b87a3 100644 --- a/src/ast/array_decl_plugin.h +++ b/src/ast/array_decl_plugin.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef ARRAY_DECL_PLUGIN_H_ -#define ARRAY_DECL_PLUGIN_H_ +#pragma once #include "ast/ast.h" @@ -274,5 +273,4 @@ public: }; -#endif /* ARRAY_DECL_PLUGIN_H_ */ diff --git a/src/ast/ast.h b/src/ast/ast.h index 71dffd4d2..6fdbb2902 100644 --- a/src/ast/ast.h +++ b/src/ast/ast.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef AST_H_ -#define AST_H_ +#pragma once #include "util/vector.h" @@ -2694,6 +2693,5 @@ inline std::ostream& operator<<(std::ostream& out, parameter_pp const& pp) { } -#endif /* AST_H_ */ diff --git a/src/ast/ast_ll_pp.h b/src/ast/ast_ll_pp.h index 19d5679b6..17de34687 100644 --- a/src/ast/ast_ll_pp.h +++ b/src/ast/ast_ll_pp.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef AST_LL_PP_H_ -#define AST_LL_PP_H_ +#pragma once #include "ast/ast.h" #include @@ -53,5 +52,4 @@ inline std::ostream & operator<<(std::ostream & out, mk_bounded_pp const & p) { } -#endif /* AST_LL_PP_H_ */ diff --git a/src/ast/ast_lt.h b/src/ast/ast_lt.h index bea512ed4..00b735fca 100644 --- a/src/ast/ast_lt.h +++ b/src/ast/ast_lt.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef AST_LT_H_ -#define AST_LT_H_ +#pragma once class ast; @@ -37,4 +36,3 @@ inline bool lex_lt(unsigned num, expr * const * n1, expr * const * n2) { return lex_lt(num, reinterpret_cast(n1), reinterpret_cast(n2)); } -#endif diff --git a/src/ast/ast_pp.h b/src/ast/ast_pp.h index bfb92c920..58ee3145c 100644 --- a/src/ast/ast_pp.h +++ b/src/ast/ast_pp.h @@ -18,8 +18,7 @@ Revision History: 2012-11-17 - ast_smt2_pp is the official pretty printer in Z3 --*/ -#ifndef AST_PP_H_ -#define AST_PP_H_ +#pragma once #include "ast/ast_smt2_pp.h" @@ -54,5 +53,4 @@ inline std::ostream& operator<<(std::ostream & out, mk_pp_vec const & pp) { return out; } -#endif diff --git a/src/ast/ast_pp_dot.h b/src/ast/ast_pp_dot.h index d233c4be1..7b4420a33 100644 --- a/src/ast/ast_pp_dot.h +++ b/src/ast/ast_pp_dot.h @@ -4,8 +4,7 @@ Abstract: Pretty-printer for proofs in Graphviz format --*/ -#ifndef _AST_PP_DOT_ -#define _AST_PP_DOT_ +#pragma once #include #include "ast/ast_pp.h" @@ -26,4 +25,3 @@ std::string escape_dot(std::string const & s); std::ostream &operator<<(std::ostream &out, const ast_pp_dot & p); -#endif /* AST_PP_DOT */ diff --git a/src/ast/ast_pp_util.h b/src/ast/ast_pp_util.h index c8e4f047a..d03419020 100644 --- a/src/ast/ast_pp_util.h +++ b/src/ast/ast_pp_util.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef AST_PP_UTIL_H_ -#define AST_PP_UTIL_H_ +#pragma once #include "ast/decl_collector.h" #include "ast/ast_smt2_pp.h" @@ -64,4 +63,3 @@ class ast_pp_util { smt2_pp_environment& env() { return m_env; } }; -#endif /* AST_PP_UTIL_H_ */ diff --git a/src/ast/ast_printer.h b/src/ast/ast_printer.h index c962fedc5..1cfb9b800 100644 --- a/src/ast/ast_printer.h +++ b/src/ast/ast_printer.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef AST_PRINTER_H_ -#define AST_PRINTER_H_ +#pragma once #include "ast/ast.h" #include "ast/ast_smt2_pp.h" @@ -54,4 +53,3 @@ public: ast_printer_context * mk_simple_ast_printer_context(ast_manager & m); -#endif diff --git a/src/ast/ast_smt2_pp.h b/src/ast/ast_smt2_pp.h index 8debbed87..d9a1aff57 100644 --- a/src/ast/ast_smt2_pp.h +++ b/src/ast/ast_smt2_pp.h @@ -19,8 +19,7 @@ Revision History: --*/ -#ifndef AST_SMT2_PP_H_ -#define AST_SMT2_PP_H_ +#pragma once #include "ast/format.h" #include "util/params.h" @@ -137,4 +136,3 @@ std::ostream& operator<<(std::ostream& out, var_ref_vector const& e); std::ostream& operator<<(std::ostream& out, func_decl_ref_vector const& e); std::ostream& operator<<(std::ostream& out, sort_ref_vector const& e); -#endif diff --git a/src/ast/ast_smt_pp.h b/src/ast/ast_smt_pp.h index 84beb34a2..c5242dc57 100644 --- a/src/ast/ast_smt_pp.h +++ b/src/ast/ast_smt_pp.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef AST_SMT_PP_H_ -#define AST_SMT_PP_H_ +#pragma once #include "ast/ast.h" #include @@ -101,4 +100,3 @@ inline std::ostream& operator<<(std::ostream& out, const mk_smt_pp & p) { -#endif diff --git a/src/ast/ast_trail.h b/src/ast/ast_trail.h index 78ef74a47..0de2c2c1e 100644 --- a/src/ast/ast_trail.h +++ b/src/ast/ast_trail.h @@ -19,8 +19,7 @@ Revision History: nbjorner 2014-9-28 --*/ -#ifndef AST_TRAIL_H_ -#define AST_TRAIL_H_ +#pragma once #include "ast/ast.h" #include "util/trail.h" @@ -72,5 +71,4 @@ public: }; -#endif /* AST_TRAIL_H_ */ diff --git a/src/ast/ast_translation.h b/src/ast/ast_translation.h index d5e29e785..80defd112 100644 --- a/src/ast/ast_translation.h +++ b/src/ast/ast_translation.h @@ -18,8 +18,7 @@ Revision History: 2011-05-26: New local translation class. --*/ -#ifndef AST_TRANSLATION_H_ -#define AST_TRANSLATION_H_ +#pragma once #include "ast/ast.h" @@ -128,4 +127,3 @@ inline expr_dependency * translate(expr_dependency * d, ast_manager & from, ast_ return td(d); } -#endif diff --git a/src/ast/ast_util.h b/src/ast/ast_util.h index c48a55146..c88b56dea 100644 --- a/src/ast/ast_util.h +++ b/src/ast/ast_util.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef AST_UTIL_H_ -#define AST_UTIL_H_ +#pragma once #include "ast/ast.h" #include "util/obj_hashtable.h" @@ -172,4 +171,3 @@ void flatten_or(expr* fml, expr_ref_vector& result); bool has_uninterpreted(ast_manager& m, expr* e); -#endif /* AST_UTIL_H_ */ diff --git a/src/ast/bv_decl_plugin.h b/src/ast/bv_decl_plugin.h index 0fc520089..95982cf9f 100644 --- a/src/ast/bv_decl_plugin.h +++ b/src/ast/bv_decl_plugin.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef BV_DECL_PLUGIN_H_ -#define BV_DECL_PLUGIN_H_ +#pragma once #include "ast/ast.h" @@ -484,5 +483,4 @@ public: }; -#endif /* BV_DECL_PLUGIN_H_ */ diff --git a/src/ast/datatype_decl_plugin.h b/src/ast/datatype_decl_plugin.h index 5bb4fde92..ae1d38e14 100644 --- a/src/ast/datatype_decl_plugin.h +++ b/src/ast/datatype_decl_plugin.h @@ -20,8 +20,7 @@ Revision History: --*/ -#ifndef DATATYPE_DECL_PLUGIN_H_ -#define DATATYPE_DECL_PLUGIN_H_ +#pragma once #include "ast/ast.h" #include "util/buffer.h" @@ -431,4 +430,3 @@ inline void del_datatype_decl(datatype_decl * d) {} inline void del_datatype_decls(unsigned num, datatype_decl * const * ds) {} -#endif /* DATATYPE_DECL_PLUGIN_H_ */ diff --git a/src/ast/decl_collector.h b/src/ast/decl_collector.h index 3f2afcb7e..1fead3587 100644 --- a/src/ast/decl_collector.h +++ b/src/ast/decl_collector.h @@ -17,8 +17,7 @@ Author: Revision History: --*/ -#ifndef SMT_DECL_COLLECTOR_H_ -#define SMT_DECL_COLLECTOR_H_ +#pragma once #include "util/top_sort.h" #include "ast/ast.h" @@ -69,4 +68,3 @@ public: ptr_vector const& get_func_decls() const { return m_decls; } }; -#endif diff --git a/src/ast/display_dimacs.h b/src/ast/display_dimacs.h index f405568be..2c70be936 100644 --- a/src/ast/display_dimacs.h +++ b/src/ast/display_dimacs.h @@ -16,11 +16,9 @@ Author: Revision History: --*/ -#ifndef DISPLAY_DIMACS_H_ -#define DISPLAY_DIMACS_H_ +#pragma once #include "ast.h" std::ostream& display_dimacs(std::ostream& out, expr_ref_vector const& fmls, bool include_names); -#endif /* DISPLAY_DIMACS_H__ */ diff --git a/src/ast/dl_decl_plugin.h b/src/ast/dl_decl_plugin.h index 8c094e4ec..bf1f88a77 100644 --- a/src/ast/dl_decl_plugin.h +++ b/src/ast/dl_decl_plugin.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_DECL_PLUGIN_H_ -#define DL_DECL_PLUGIN_H_ +#pragma once #include "ast/ast.h" #include "ast/arith_decl_plugin.h" @@ -201,5 +200,4 @@ namespace datalog { }; }; -#endif /* DL_DECL_PLUGIN_H_ */ diff --git a/src/ast/expr2polynomial.h b/src/ast/expr2polynomial.h index b11365509..1d89587c4 100644 --- a/src/ast/expr2polynomial.h +++ b/src/ast/expr2polynomial.h @@ -17,8 +17,7 @@ Author: Notes: --*/ -#ifndef EXPR2POLYNOMIAL_H_ -#define EXPR2POLYNOMIAL_H_ +#pragma once #include "ast/ast.h" #include "math/polynomial/polynomial.h" @@ -109,4 +108,3 @@ protected: polynomial::var mk_var(bool is_int) override; }; -#endif diff --git a/src/ast/expr2var.h b/src/ast/expr2var.h index 2bf2fe160..788df1c32 100644 --- a/src/ast/expr2var.h +++ b/src/ast/expr2var.h @@ -20,8 +20,7 @@ Author: Notes: --*/ -#ifndef EXPR2VAR_H_ -#define EXPR2VAR_H_ +#pragma once #include "ast/ast.h" #include "util/obj_hashtable.h" @@ -78,4 +77,3 @@ public: void pop(unsigned num_scopes); }; -#endif diff --git a/src/ast/expr_abstract.h b/src/ast/expr_abstract.h index 8e53a717f..5ab8a8df6 100644 --- a/src/ast/expr_abstract.h +++ b/src/ast/expr_abstract.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef EXPR_ABSTRACT_H_ -#define EXPR_ABSTRACT_H_ +#pragma once #include "ast/ast.h" @@ -41,6 +40,5 @@ expr_ref mk_exists(ast_manager& m, unsigned num_bound, app* const* bound, expr* inline expr_ref mk_forall(ast_manager& m, app* b, expr* n) { return mk_forall(m, 1, &b, n); } inline expr_ref mk_forall(ast_manager& m, expr* b, expr* n) { return mk_forall(m, to_app(b), n); } -#endif diff --git a/src/ast/expr_delta_pair.h b/src/ast/expr_delta_pair.h index f40f4cbe8..e07590db6 100644 --- a/src/ast/expr_delta_pair.h +++ b/src/ast/expr_delta_pair.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef EXPR_DELTA_PAIR_H_ -#define EXPR_DELTA_PAIR_H_ +#pragma once /** \brief Auxiliary structure used to cache the intermediate results of the variable substitution procedure. @@ -32,5 +31,4 @@ struct expr_delta_pair { bool operator==(const expr_delta_pair & e) const { return m_node == e.m_node && m_delta == e.m_delta; } }; -#endif /* EXPR_DELTA_PAIR_H_ */ diff --git a/src/ast/expr_functors.h b/src/ast/expr_functors.h index 5825bea73..2cd4dd1bc 100644 --- a/src/ast/expr_functors.h +++ b/src/ast/expr_functors.h @@ -19,8 +19,7 @@ Revision History: --*/ -#ifndef EXPR_FUNCTORS_H_ -#define EXPR_FUNCTORS_H_ +#pragma once #include "ast/ast.h" #include "ast/expr_map.h" @@ -128,4 +127,3 @@ public: }; -#endif diff --git a/src/ast/expr_map.h b/src/ast/expr_map.h index b32d52092..6a9dec035 100644 --- a/src/ast/expr_map.h +++ b/src/ast/expr_map.h @@ -18,8 +18,7 @@ Author: Notes: --*/ -#ifndef EXPR_MAP_H_ -#define EXPR_MAP_H_ +#pragma once #include "ast/ast.h" #include "util/obj_hashtable.h" @@ -59,4 +58,3 @@ public: } }; -#endif diff --git a/src/ast/expr_stat.h b/src/ast/expr_stat.h index 259751d18..6bfedef2c 100644 --- a/src/ast/expr_stat.h +++ b/src/ast/expr_stat.h @@ -19,8 +19,7 @@ Author: Revision History: --*/ -#ifndef EXPR_STAT_H_ -#define EXPR_STAT_H_ +#pragma once class expr; @@ -47,4 +46,3 @@ void get_expr_stat(expr * n, expr_stat & r); */ unsigned get_symbol_count(expr * n); -#endif /* EXPR_STAT_H_ */ diff --git a/src/ast/expr_substitution.h b/src/ast/expr_substitution.h index 93658f413..03e96db42 100644 --- a/src/ast/expr_substitution.h +++ b/src/ast/expr_substitution.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef EXPR_SUBSTITUTION_H_ -#define EXPR_SUBSTITUTION_H_ +#pragma once #include "ast/ast.h" @@ -92,4 +91,3 @@ public: std::ostream& display(std::ostream& out) { return m_subst.display(out); } }; -#endif diff --git a/src/ast/for_each_ast.h b/src/ast/for_each_ast.h index 0b70eb1a1..b01829548 100644 --- a/src/ast/for_each_ast.h +++ b/src/ast/for_each_ast.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef FOR_EACH_AST_H_ -#define FOR_EACH_AST_H_ +#pragma once #include "ast/ast.h" #include "util/trace.h" @@ -270,5 +269,4 @@ private: } }; -#endif /* FOR_EACH_AST_H_ */ diff --git a/src/ast/for_each_expr.h b/src/ast/for_each_expr.h index be09979da..9da46d947 100644 --- a/src/ast/for_each_expr.h +++ b/src/ast/for_each_expr.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef FOR_EACH_EXPR_H_ -#define FOR_EACH_EXPR_H_ +#pragma once #include "ast/ast.h" #include "util/trace.h" @@ -209,5 +208,4 @@ public: iterator end(); }; -#endif /* FOR_EACH_EXPR_H_ */ diff --git a/src/ast/format.h b/src/ast/format.h index 827f9bc1c..abe8b1cee 100644 --- a/src/ast/format.h +++ b/src/ast/format.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef FORMAT_H_ -#define FORMAT_H_ +#pragma once #include "ast/ast.h" @@ -193,5 +192,4 @@ namespace format_ns { }; -#endif /* FORMAT_H_ */ diff --git a/src/ast/fpa/bv2fpa_converter.h b/src/ast/fpa/bv2fpa_converter.h index 5a16f6d59..6a9499fc6 100644 --- a/src/ast/fpa/bv2fpa_converter.h +++ b/src/ast/fpa/bv2fpa_converter.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef BV2FPA_CONVERTER_H_ -#define BV2FPA_CONVERTER_H_ +#pragma once #include "ast/fpa_decl_plugin.h" #include "ast/bv_decl_plugin.h" @@ -70,4 +69,3 @@ public: array_model convert_array_func_interp(model_core * mc, func_decl * f, func_decl * bv_f); }; -#endif diff --git a/src/ast/fpa/fpa2bv_converter.h b/src/ast/fpa/fpa2bv_converter.h index 1eb2de136..b6675e8e1 100644 --- a/src/ast/fpa/fpa2bv_converter.h +++ b/src/ast/fpa/fpa2bv_converter.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef FPA2BV_CONVERTER_H_ -#define FPA2BV_CONVERTER_H_ +#pragma once #include "ast/ast.h" #include "util/obj_hashtable.h" @@ -225,4 +224,3 @@ private: expr_ref extra_quantify(expr * e); }; -#endif diff --git a/src/ast/fpa/fpa2bv_rewriter.h b/src/ast/fpa/fpa2bv_rewriter.h index ab87a3d68..754061938 100644 --- a/src/ast/fpa/fpa2bv_rewriter.h +++ b/src/ast/fpa/fpa2bv_rewriter.h @@ -17,8 +17,7 @@ Notes: --*/ -#ifndef FPA2BV_REWRITER_H_ -#define FPA2BV_REWRITER_H_ +#pragma once #include "ast/rewriter/rewriter.h" #include "ast/bv_decl_plugin.h" @@ -77,4 +76,3 @@ struct fpa2bv_rewriter : public rewriter_tpl { } }; -#endif diff --git a/src/ast/fpa_decl_plugin.h b/src/ast/fpa_decl_plugin.h index d4b877a3a..ac6acb325 100644 --- a/src/ast/fpa_decl_plugin.h +++ b/src/ast/fpa_decl_plugin.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef fpa_decl_plugin_H_ -#define fpa_decl_plugin_H_ +#pragma once #include "ast/ast.h" #include "util/id_gen.h" @@ -363,4 +362,3 @@ public: MATCH_TERNARY(is_fp); }; -#endif diff --git a/src/ast/func_decl_dependencies.h b/src/ast/func_decl_dependencies.h index 9bc0be22d..76c0185dc 100644 --- a/src/ast/func_decl_dependencies.h +++ b/src/ast/func_decl_dependencies.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef FUNC_DECL_DEPENDENCIES_H_ -#define FUNC_DECL_DEPENDENCIES_H_ +#pragma once #include "ast/ast.h" #include "util/obj_hashtable.h" @@ -107,4 +106,3 @@ public: }; -#endif diff --git a/src/ast/has_free_vars.h b/src/ast/has_free_vars.h index cb7a6273a..c1cbfa0e6 100644 --- a/src/ast/has_free_vars.h +++ b/src/ast/has_free_vars.h @@ -16,12 +16,10 @@ Author: Revision History: --*/ -#ifndef HAS_FREE_VARS_H_ -#define HAS_FREE_VARS_H_ +#pragma once class expr; bool has_free_vars(expr * n); -#endif /* HAS_FREE_VARS_H_ */ diff --git a/src/ast/macro_substitution.h b/src/ast/macro_substitution.h index e028dcef8..5990f5e3a 100644 --- a/src/ast/macro_substitution.h +++ b/src/ast/macro_substitution.h @@ -18,8 +18,7 @@ Author: Notes: --*/ -#ifndef MACRO_SUBSTITUTION_H_ -#define MACRO_SUBSTITUTION_H_ +#pragma once #include "ast/ast.h" @@ -56,4 +55,3 @@ public: void cleanup(); }; -#endif diff --git a/src/ast/macros/macro_finder.h b/src/ast/macros/macro_finder.h index 4e51a839d..47aacd726 100644 --- a/src/ast/macros/macro_finder.h +++ b/src/ast/macros/macro_finder.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef MACRO_FINDER_H_ -#define MACRO_FINDER_H_ +#pragma once #include "ast/macros/macro_manager.h" @@ -47,5 +46,4 @@ public: void operator()(unsigned n, justified_expr const* fmls, vector& new_fmls); }; -#endif /* MACRO_FINDER_H_ */ diff --git a/src/ast/macros/macro_manager.h b/src/ast/macros/macro_manager.h index 52828d4c4..8000ce894 100644 --- a/src/ast/macros/macro_manager.h +++ b/src/ast/macros/macro_manager.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef MACRO_MANAGER_H_ -#define MACRO_MANAGER_H_ +#pragma once #include "util/obj_hashtable.h" #include "ast/ast_util.h" @@ -91,5 +90,4 @@ public: }; -#endif /* MACRO_MANAGER_H_ */ diff --git a/src/ast/macros/macro_util.h b/src/ast/macros/macro_util.h index 255fdfb1f..17b409c12 100644 --- a/src/ast/macros/macro_util.h +++ b/src/ast/macros/macro_util.h @@ -17,8 +17,7 @@ Author: Revision History: --*/ -#ifndef MACRO_UTIL_H_ -#define MACRO_UTIL_H_ +#pragma once #include "ast/ast.h" #include "util/obj_hashtable.h" @@ -136,4 +135,3 @@ public: void mk_add(unsigned num_args, expr * const * args, sort * s, expr_ref & r) const; }; -#endif diff --git a/src/ast/macros/quasi_macros.h b/src/ast/macros/quasi_macros.h index b5681e8a6..7ff1205e2 100644 --- a/src/ast/macros/quasi_macros.h +++ b/src/ast/macros/quasi_macros.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef QUASI_MACROS_H_ -#define QUASI_MACROS_H_ +#pragma once #include #include "ast/justified_expr.h" @@ -70,4 +69,3 @@ public: }; -#endif diff --git a/src/ast/normal_forms/defined_names.h b/src/ast/normal_forms/defined_names.h index a3a603d21..96d89cd49 100644 --- a/src/ast/normal_forms/defined_names.h +++ b/src/ast/normal_forms/defined_names.h @@ -17,8 +17,7 @@ Author: Revision History: --*/ -#ifndef DEFINED_NAMES_H_ -#define DEFINED_NAMES_H_ +#pragma once #include "ast/ast.h" @@ -90,5 +89,4 @@ public: func_decl * get_name_decl(unsigned i) const; }; -#endif /* DEFINED_NAMES_H_ */ diff --git a/src/ast/normal_forms/name_exprs.h b/src/ast/normal_forms/name_exprs.h index 9f896190f..e744dfb02 100644 --- a/src/ast/normal_forms/name_exprs.h +++ b/src/ast/normal_forms/name_exprs.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef NAME_EXPRS_H_ -#define NAME_EXPRS_H_ +#pragma once #include "ast/ast.h" #include "ast/normal_forms/defined_names.h" @@ -59,4 +58,3 @@ name_exprs * mk_nested_formula_namer(ast_manager & m, defined_names & n); void del_name_exprs(name_exprs * functor); -#endif diff --git a/src/ast/normal_forms/nnf.h b/src/ast/normal_forms/nnf.h index 073cc91e4..837dccaff 100644 --- a/src/ast/normal_forms/nnf.h +++ b/src/ast/normal_forms/nnf.h @@ -17,8 +17,7 @@ Notes: Major revision on 2011-10-06 --*/ -#ifndef NNF_H_ -#define NNF_H_ +#pragma once #include "ast/ast.h" #include "util/params.h" @@ -48,4 +47,3 @@ public: void reset_cache(); }; -#endif /* NNF_H_ */ diff --git a/src/ast/normal_forms/pull_quant.h b/src/ast/normal_forms/pull_quant.h index aadbad651..23a7fd612 100644 --- a/src/ast/normal_forms/pull_quant.h +++ b/src/ast/normal_forms/pull_quant.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef PULL_QUANT_H_ -#define PULL_QUANT_H_ +#pragma once #include "ast/ast.h" @@ -56,4 +55,3 @@ public: void reset(); }; -#endif /* PULL_QUANT_H_ */ diff --git a/src/ast/num_occurs.h b/src/ast/num_occurs.h index 9eb3431dd..cff4ef9ff 100644 --- a/src/ast/num_occurs.h +++ b/src/ast/num_occurs.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef NUM_OCCURS_H_ -#define NUM_OCCURS_H_ +#pragma once #include "ast/ast.h" #include "util/obj_hashtable.h" @@ -52,5 +51,4 @@ public: } }; -#endif /* NUM_OCCURS_H_ */ diff --git a/src/ast/occurs.h b/src/ast/occurs.h index ffaeac766..15a33ddf5 100644 --- a/src/ast/occurs.h +++ b/src/ast/occurs.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef OCCURS_H_ -#define OCCURS_H_ +#pragma once class expr; class func_decl; @@ -32,5 +31,4 @@ bool occurs(expr * n1, expr * n2); */ bool occurs(func_decl * d, expr * n); -#endif /* OCCURS_H_ */ diff --git a/src/ast/pattern/expr_pattern_match.h b/src/ast/pattern/expr_pattern_match.h index 6c472d708..3fc226e03 100644 --- a/src/ast/pattern/expr_pattern_match.h +++ b/src/ast/pattern/expr_pattern_match.h @@ -17,8 +17,7 @@ Author: Notes: --*/ -#ifndef EXPR_PATTERN_MATCH_H_ -#define EXPR_PATTERN_MATCH_H_ +#pragma once #include "ast/ast.h" #include "util/map.h" @@ -134,4 +133,3 @@ class expr_pattern_match { void display(std::ostream& out, instr const& pc) const; }; -#endif diff --git a/src/ast/pattern/pattern_inference.h b/src/ast/pattern/pattern_inference.h index f32dcecd0..96e4c379d 100644 --- a/src/ast/pattern/pattern_inference.h +++ b/src/ast/pattern/pattern_inference.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef PATTERN_INFERENCE_H_ -#define PATTERN_INFERENCE_H_ +#pragma once #include "ast/ast.h" #include "ast/rewriter/rewriter.h" @@ -256,5 +255,4 @@ public: pattern_inference_rw(ast_manager& m, pattern_inference_params & params); }; -#endif /* PATTERN_INFERENCE_H_ */ diff --git a/src/ast/pattern/pattern_inference_params.h b/src/ast/pattern/pattern_inference_params.h index fde64a8eb..d05100759 100644 --- a/src/ast/pattern/pattern_inference_params.h +++ b/src/ast/pattern/pattern_inference_params.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef PATTERN_INFERENCE_PARAMS_H_ -#define PATTERN_INFERENCE_PARAMS_H_ +#pragma once #include "util/params.h" @@ -50,5 +49,4 @@ struct pattern_inference_params { void display(std::ostream & out) const; }; -#endif /* PATTERN_INFERENCE_PARAMS_H_ */ diff --git a/src/ast/pb_decl_plugin.h b/src/ast/pb_decl_plugin.h index aec14a64a..e804cbb6b 100644 --- a/src/ast/pb_decl_plugin.h +++ b/src/ast/pb_decl_plugin.h @@ -24,8 +24,7 @@ hence: --*/ -#ifndef PB_DECL_PLUGIN_H_ -#define PB_DECL_PLUGIN_H_ +#pragma once #include "ast/ast.h" @@ -130,5 +129,4 @@ private: -#endif /* PB_DECL_PLUGIN_H_ */ diff --git a/src/ast/pp.h b/src/ast/pp.h index e702d298a..3d2c37e69 100644 --- a/src/ast/pp.h +++ b/src/ast/pp.h @@ -16,13 +16,11 @@ Author: Revision History: --*/ -#ifndef PP_H_ -#define PP_H_ +#pragma once #include "ast/format.h" #include "util/params.h" void pp(std::ostream & out, format_ns::format * f, ast_manager & m, params_ref const & p = params_ref()); -#endif /* PP_H_ */ diff --git a/src/ast/proofs/proof_checker.h b/src/ast/proofs/proof_checker.h index 39c776392..b69a6b54d 100644 --- a/src/ast/proofs/proof_checker.h +++ b/src/ast/proofs/proof_checker.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef PROOF_CHECKER_H_ -#define PROOF_CHECKER_H_ +#pragma once #include "ast/ast.h" #include "util/map.h" @@ -115,4 +114,3 @@ private: void set_false(expr_ref& e, unsigned idx, expr_ref& lit); }; -#endif diff --git a/src/ast/proofs/proof_utils.h b/src/ast/proofs/proof_utils.h index c7634250c..bf271bc75 100644 --- a/src/ast/proofs/proof_utils.h +++ b/src/ast/proofs/proof_utils.h @@ -17,8 +17,7 @@ Revision History: --*/ -#ifndef PROOF_UTILS_H_ -#define PROOF_UTILS_H_ +#pragma once #include "ast/ast.h" #include "ast/ast_pp.h" #include "ast/rewriter/bool_rewriter.h" @@ -244,4 +243,3 @@ public: } }; -#endif diff --git a/src/ast/recurse_expr.h b/src/ast/recurse_expr.h index 866e39d3f..258b1ed17 100644 --- a/src/ast/recurse_expr.h +++ b/src/ast/recurse_expr.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef RECURSE_EXPR_H_ -#define RECURSE_EXPR_H_ +#pragma once #include "ast/ast.h" #include "util/obj_hashtable.h" @@ -44,4 +43,3 @@ public: void finalize() { m_cache.finalize(); m_todo.finalize(); } }; -#endif /* RECURSE_EXPR_H_ */ diff --git a/src/ast/recurse_expr_def.h b/src/ast/recurse_expr_def.h index b4a83c082..3a12cd31a 100644 --- a/src/ast/recurse_expr_def.h +++ b/src/ast/recurse_expr_def.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef RECURSE_EXPR_DEF_H_ -#define RECURSE_EXPR_DEF_H_ +#pragma once #include "ast/recurse_expr.h" @@ -106,4 +105,3 @@ T recurse_expr::operator()(expr * r return get_cached(r); } -#endif /* RECURSE_EXPR_DEF_H_ */ diff --git a/src/ast/reg_decl_plugins.h b/src/ast/reg_decl_plugins.h index 5684780be..55eb7c221 100644 --- a/src/ast/reg_decl_plugins.h +++ b/src/ast/reg_decl_plugins.h @@ -17,11 +17,9 @@ Author: Revision History: --*/ -#ifndef REG_DECL_PLUGINS_H_ -#define REG_DECL_PLUGINS_H_ +#pragma once class ast_manager; void reg_decl_plugins(ast_manager & m); -#endif diff --git a/src/ast/rewriter/arith_rewriter.h b/src/ast/rewriter/arith_rewriter.h index 479180e00..cb6cad077 100644 --- a/src/ast/rewriter/arith_rewriter.h +++ b/src/ast/rewriter/arith_rewriter.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef ARITH_REWRITER_H_ -#define ARITH_REWRITER_H_ +#pragma once #include "ast/rewriter/poly_rewriter.h" #include "ast/arith_decl_plugin.h" @@ -194,4 +193,3 @@ public: br_status mk_tanh_core(expr * arg, expr_ref & result); }; -#endif diff --git a/src/ast/rewriter/array_rewriter.h b/src/ast/rewriter/array_rewriter.h index b15917d64..956699e7d 100644 --- a/src/ast/rewriter/array_rewriter.h +++ b/src/ast/rewriter/array_rewriter.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef ARRAY_REWRITER_H_ -#define ARRAY_REWRITER_H_ +#pragma once #include "ast/array_decl_plugin.h" #include "ast/rewriter/rewriter_types.h" @@ -96,4 +95,3 @@ public: }; -#endif diff --git a/src/ast/rewriter/ast_counter.h b/src/ast/rewriter/ast_counter.h index b6e6b0dd4..6da17047f 100644 --- a/src/ast/rewriter/ast_counter.h +++ b/src/ast/rewriter/ast_counter.h @@ -21,8 +21,7 @@ Revision History: --*/ -#ifndef AST_COUNTER_H_ -#define AST_COUNTER_H_ +#pragma once #include "ast/ast.h" #include "util/map.h" @@ -103,4 +102,3 @@ class ast_counter { void dec(ast * el) { update(el, -1); } }; -#endif diff --git a/src/ast/rewriter/bit2int.h b/src/ast/rewriter/bit2int.h index c1a60a40b..8fa66e3e6 100644 --- a/src/ast/rewriter/bit2int.h +++ b/src/ast/rewriter/bit2int.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef BIT2INT_H_ -#define BIT2INT_H_ +#pragma once #include "ast/bv_decl_plugin.h" #include "ast/arith_decl_plugin.h" @@ -88,5 +87,4 @@ public: void operator()(expr * m, expr_ref & result, proof_ref& p); }; -#endif /* BIT2INT_H_ */ diff --git a/src/ast/rewriter/bit_blaster/bit_blaster.h b/src/ast/rewriter/bit_blaster/bit_blaster.h index 9b5edb052..241d4c97d 100644 --- a/src/ast/rewriter/bit_blaster/bit_blaster.h +++ b/src/ast/rewriter/bit_blaster/bit_blaster.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef BIT_BLASTER_H_ -#define BIT_BLASTER_H_ +#pragma once #include "ast/rewriter/bool_rewriter.h" #include "ast/rewriter/bit_blaster/bit_blaster_params.h" @@ -62,5 +61,4 @@ public: bit_blaster_params const & get_params() const { return this->m_params; } }; -#endif /* BIT_BLASTER_H_ */ diff --git a/src/ast/rewriter/bit_blaster/bit_blaster_params.h b/src/ast/rewriter/bit_blaster/bit_blaster_params.h index 15ece0043..527835d2a 100644 --- a/src/ast/rewriter/bit_blaster/bit_blaster_params.h +++ b/src/ast/rewriter/bit_blaster/bit_blaster_params.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef BIT_BLASTER_PARAMS_H_ -#define BIT_BLASTER_PARAMS_H_ +#pragma once struct bit_blaster_params { bool m_bb_ext_gates; @@ -39,5 +38,4 @@ struct bit_blaster_params { } }; -#endif /* BIT_BLASTER_PARAMS_H_ */ diff --git a/src/ast/rewriter/bit_blaster/bit_blaster_rewriter.h b/src/ast/rewriter/bit_blaster/bit_blaster_rewriter.h index 24b6b0c0a..3e575595e 100644 --- a/src/ast/rewriter/bit_blaster/bit_blaster_rewriter.h +++ b/src/ast/rewriter/bit_blaster/bit_blaster_rewriter.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef BIT_BLASTER_REWRITER_H_ -#define BIT_BLASTER_REWRITER_H_ +#pragma once #include "ast/ast.h" #include "util/obj_hashtable.h" @@ -44,5 +43,4 @@ private: }; -#endif diff --git a/src/ast/rewriter/bit_blaster/bit_blaster_tpl.h b/src/ast/rewriter/bit_blaster/bit_blaster_tpl.h index 1cf8df89f..bef2a3c2d 100644 --- a/src/ast/rewriter/bit_blaster/bit_blaster_tpl.h +++ b/src/ast/rewriter/bit_blaster/bit_blaster_tpl.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef BIT_BLASTER_TPL_H_ -#define BIT_BLASTER_TPL_H_ +#pragma once #include "util/rational.h" @@ -130,4 +129,3 @@ public: void mk_abs(unsigned sz, expr * const * a_bits, expr_ref_vector & out_bits); }; -#endif diff --git a/src/ast/rewriter/bool_rewriter.h b/src/ast/rewriter/bool_rewriter.h index 648b708c3..268f4f04c 100644 --- a/src/ast/rewriter/bool_rewriter.h +++ b/src/ast/rewriter/bool_rewriter.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef BOOL_REWRITER_H_ -#define BOOL_REWRITER_H_ +#pragma once #include "ast/ast.h" #include "ast/rewriter/rewriter.h" @@ -239,4 +238,3 @@ public: m_cfg(m, p) {} }; -#endif diff --git a/src/ast/rewriter/bv_bounds.h b/src/ast/rewriter/bv_bounds.h index fcd173a12..d9ee62a4a 100644 --- a/src/ast/rewriter/bv_bounds.h +++ b/src/ast/rewriter/bv_bounds.h @@ -17,8 +17,7 @@ Revision History: --*/ -#ifndef BV_BOUNDS_H_23754 -#define BV_BOUNDS_H_23754 +#pragma once #include "ast/ast.h" #include "ast/bv_decl_plugin.h" #include "ast/rewriter/rewriter_types.h" @@ -127,4 +126,3 @@ inline bool bv_bounds::is_constant_add(unsigned bv_sz, expr * e, app*& v, numera } -#endif /* BV_BOUNDS_H_23754 */ diff --git a/src/ast/rewriter/bv_elim.h b/src/ast/rewriter/bv_elim.h index 6468cb8b9..a610b5e62 100644 --- a/src/ast/rewriter/bv_elim.h +++ b/src/ast/rewriter/bv_elim.h @@ -17,8 +17,7 @@ Author: Revision History: --*/ -#ifndef BV_ELIM_H_ -#define BV_ELIM_H_ +#pragma once #include "ast/ast.h" #include "ast/rewriter/rewriter.h" @@ -46,5 +45,4 @@ public: {} }; -#endif /* BV_ELIM_H_ */ diff --git a/src/ast/rewriter/bv_rewriter.h b/src/ast/rewriter/bv_rewriter.h index ddc814235..19cc812e8 100644 --- a/src/ast/rewriter/bv_rewriter.h +++ b/src/ast/rewriter/bv_rewriter.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef BV_REWRITER_H_ -#define BV_REWRITER_H_ +#pragma once #include "ast/rewriter/poly_rewriter.h" #include "ast/bv_decl_plugin.h" @@ -219,4 +218,3 @@ public: }; -#endif diff --git a/src/ast/rewriter/datatype_rewriter.h b/src/ast/rewriter/datatype_rewriter.h index 8aae29b3a..50adb045f 100644 --- a/src/ast/rewriter/datatype_rewriter.h +++ b/src/ast/rewriter/datatype_rewriter.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef DATATYPE_REWRITER_H_ -#define DATATYPE_REWRITER_H_ +#pragma once #include "ast/datatype_decl_plugin.h" #include "ast/rewriter/rewriter_types.h" @@ -32,4 +31,3 @@ public: br_status mk_eq_core(expr * lhs, expr * rhs, expr_ref & result); }; -#endif diff --git a/src/ast/rewriter/der.h b/src/ast/rewriter/der.h index 7db4f215c..d071d6f52 100644 --- a/src/ast/rewriter/der.h +++ b/src/ast/rewriter/der.h @@ -18,8 +18,7 @@ Revision History: Christoph Wintersteiger, 2010-03-30: Added Destr. Multi-Equality Resolution --*/ -#ifndef DER_H_ -#define DER_H_ +#pragma once #include "ast/ast.h" #include "ast/rewriter/var_subst.h" @@ -179,5 +178,4 @@ public: typedef der_rewriter der_star; -#endif /* DER_H_ */ diff --git a/src/ast/rewriter/distribute_forall.h b/src/ast/rewriter/distribute_forall.h index 8bb77d70d..64a555292 100644 --- a/src/ast/rewriter/distribute_forall.h +++ b/src/ast/rewriter/distribute_forall.h @@ -18,8 +18,7 @@ Revision History: Christoph Wintersteiger 2010-04-06: Added implementation --*/ -#ifndef DISTRIBUTE_FORALL_H_ -#define DISTRIBUTE_FORALL_H_ +#pragma once #include "ast/ast.h" #include "ast/act_cache.h" @@ -77,4 +76,3 @@ protected: void flush_cache() { m_cache.cleanup(); } }; -#endif /* DISTRIBUTE_FORALL_H_ */ diff --git a/src/ast/rewriter/dl_rewriter.h b/src/ast/rewriter/dl_rewriter.h index dca2f26dd..e057cd240 100644 --- a/src/ast/rewriter/dl_rewriter.h +++ b/src/ast/rewriter/dl_rewriter.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef DL_REWRITER_H_ -#define DL_REWRITER_H_ +#pragma once #include "ast/dl_decl_plugin.h" #include "ast/rewriter/rewriter_types.h" @@ -30,4 +29,3 @@ public: br_status mk_app_core(func_decl * f, unsigned num_args, expr * const * args, expr_ref & result); }; -#endif diff --git a/src/ast/rewriter/elim_bounds.h b/src/ast/rewriter/elim_bounds.h index 4dcb24173..378ac20cc 100644 --- a/src/ast/rewriter/elim_bounds.h +++ b/src/ast/rewriter/elim_bounds.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef ELIM_BOUNDS2_H_ -#define ELIM_BOUNDS2_H_ +#pragma once #include "ast/ast.h" #include "ast/arith_decl_plugin.h" @@ -73,5 +72,4 @@ public: ~elim_bounds_rw() override {} }; -#endif /* ELIM_BOUNDS2_H_ */ diff --git a/src/ast/rewriter/enum2bv_rewriter.h b/src/ast/rewriter/enum2bv_rewriter.h index 934271071..53a41b544 100644 --- a/src/ast/rewriter/enum2bv_rewriter.h +++ b/src/ast/rewriter/enum2bv_rewriter.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef ENUM_REWRITER_H_ -#define ENUM_REWRITER_H_ +#pragma once #include "ast/datatype_decl_plugin.h" #include "ast/rewriter/rewriter_types.h" @@ -45,4 +44,3 @@ public: void set_is_fd(i_sort_pred* sp) const; }; -#endif diff --git a/src/ast/rewriter/expr_replacer.h b/src/ast/rewriter/expr_replacer.h index cc148fca0..e587faad7 100644 --- a/src/ast/rewriter/expr_replacer.h +++ b/src/ast/rewriter/expr_replacer.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef EXPR_REPLACER_H_ -#define EXPR_REPLACER_H_ +#pragma once #include "ast/ast.h" #include "ast/expr_substitution.h" @@ -56,4 +55,3 @@ expr_replacer * mk_default_expr_replacer(ast_manager & m, bool proofs_allowed); */ expr_replacer * mk_expr_simp_replacer(ast_manager & m, params_ref const & p = params_ref()); -#endif diff --git a/src/ast/rewriter/expr_safe_replace.h b/src/ast/rewriter/expr_safe_replace.h index fb66661af..77b976291 100644 --- a/src/ast/rewriter/expr_safe_replace.h +++ b/src/ast/rewriter/expr_safe_replace.h @@ -19,8 +19,7 @@ Revision History: --*/ -#ifndef EXPR_SAFE_REPLACE_H_ -#define EXPR_SAFE_REPLACE_H_ +#pragma once #include "ast/ast.h" @@ -51,4 +50,3 @@ public: bool empty() const { return m_subst.empty(); } }; -#endif /* EXPR_SAFE_REPLACE_H_ */ diff --git a/src/ast/rewriter/factor_equivs.h b/src/ast/rewriter/factor_equivs.h index 5d306bad8..7c58f4abd 100644 --- a/src/ast/rewriter/factor_equivs.h +++ b/src/ast/rewriter/factor_equivs.h @@ -25,8 +25,7 @@ Revision History: */ -#ifndef FACTOR_EQUIVS_H_ -#define FACTOR_EQUIVS_H_ +#pragma once #include "util/union_find.h" #include "ast/ast_util.h" @@ -187,4 +186,3 @@ void equiv_to_expr(expr_equiv_class &equiv, expr_ref_vector &out); bool equiv_to_expr_full(expr_equiv_class &equiv, expr_ref_vector &out); -#endif diff --git a/src/ast/rewriter/factor_rewriter.h b/src/ast/rewriter/factor_rewriter.h index 823a8ae69..da0609b86 100644 --- a/src/ast/rewriter/factor_rewriter.h +++ b/src/ast/rewriter/factor_rewriter.h @@ -17,8 +17,7 @@ Author: Notes: --*/ -#ifndef FACTOR_REWRITER_H_ -#define FACTOR_REWRITER_H_ +#pragma once #include "ast/ast.h" #include "ast/rewriter/rewriter.h" @@ -75,4 +74,3 @@ public: m_cfg(m) {} }; -#endif diff --git a/src/ast/rewriter/fpa_rewriter.h b/src/ast/rewriter/fpa_rewriter.h index cfa1bea52..b80bee09d 100644 --- a/src/ast/rewriter/fpa_rewriter.h +++ b/src/ast/rewriter/fpa_rewriter.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef FLOAT_REWRITER_H_ -#define FLOAT_REWRITER_H_ +#pragma once #include "ast/ast.h" #include "ast/rewriter/rewriter.h" @@ -92,4 +91,3 @@ public: br_status mk_bvwrap(expr * arg, expr_ref & result); }; -#endif diff --git a/src/ast/rewriter/func_decl_replace.h b/src/ast/rewriter/func_decl_replace.h index 7f37e8753..f59d48741 100644 --- a/src/ast/rewriter/func_decl_replace.h +++ b/src/ast/rewriter/func_decl_replace.h @@ -18,8 +18,7 @@ Revision History: --*/ -#ifndef FUNC_DECL_REPLACE_H_ -#define FUNC_DECL_REPLACE_H_ +#pragma once #include "ast/ast.h" @@ -43,4 +42,3 @@ public: bool empty() const { return m_subst.empty(); } }; -#endif /* FUNC_DECL_REPLACE_H_ */ diff --git a/src/ast/rewriter/hoist_rewriter.h b/src/ast/rewriter/hoist_rewriter.h index 0f45a073c..baf7175e6 100644 --- a/src/ast/rewriter/hoist_rewriter.h +++ b/src/ast/rewriter/hoist_rewriter.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef HOIST_REWRITER_H_ -#define HOIST_REWRITER_H_ +#pragma once #include "ast/ast.h" #include "ast/rewriter/rewriter.h" @@ -77,4 +76,3 @@ public: m_cfg(m, p) {} }; -#endif diff --git a/src/ast/rewriter/inj_axiom.h b/src/ast/rewriter/inj_axiom.h index a6df16515..dda0c2ca0 100644 --- a/src/ast/rewriter/inj_axiom.h +++ b/src/ast/rewriter/inj_axiom.h @@ -16,12 +16,10 @@ Author: Revision History: --*/ -#ifndef INJ_AXIOM_H_ -#define INJ_AXIOM_H_ +#pragma once #include "ast/ast.h" bool simplify_inj_axiom(ast_manager & m, quantifier * q, expr_ref & result); -#endif /* INJ_AXIOM_H_ */ diff --git a/src/ast/rewriter/label_rewriter.h b/src/ast/rewriter/label_rewriter.h index f2f578fbb..8bec62ed6 100644 --- a/src/ast/rewriter/label_rewriter.h +++ b/src/ast/rewriter/label_rewriter.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef LABEL_REWRITER_H_ -#define LABEL_REWRITER_H_ +#pragma once #include "ast/ast.h" #include "ast/rewriter/rewriter_types.h" @@ -38,4 +37,3 @@ public: }; -#endif diff --git a/src/ast/rewriter/maximize_ac_sharing.h b/src/ast/rewriter/maximize_ac_sharing.h index a36a31101..53e102b74 100644 --- a/src/ast/rewriter/maximize_ac_sharing.h +++ b/src/ast/rewriter/maximize_ac_sharing.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef MAXIMIZE_AC_SHARING_H_ -#define MAXIMIZE_AC_SHARING_H_ +#pragma once #include "util/hashtable.h" #include "util/region.h" @@ -121,5 +120,4 @@ public: void reset() { m_cfg.reset(); } }; -#endif /* MAXIMIZE_AC_SHARING_H_ */ diff --git a/src/ast/rewriter/mk_extract_proc.h b/src/ast/rewriter/mk_extract_proc.h index 4e7b1d1b7..36f390da1 100644 --- a/src/ast/rewriter/mk_extract_proc.h +++ b/src/ast/rewriter/mk_extract_proc.h @@ -14,8 +14,7 @@ Revision History: --*/ -#ifndef MK_EXTRACT_PROC_H_ -#define MK_EXTRACT_PROC_H_ +#pragma once #include "ast/ast.h" #include "ast/bv_decl_plugin.h" class mk_extract_proc { @@ -31,4 +30,3 @@ public: ast_manager & m() { return m_util.get_manager(); } bv_util & bvutil() { return m_util; } }; -#endif /* MK_EXTRACT_PROC_H_ */ diff --git a/src/ast/rewriter/mk_simplified_app.h b/src/ast/rewriter/mk_simplified_app.h index d979637d2..9db0f2d32 100644 --- a/src/ast/rewriter/mk_simplified_app.h +++ b/src/ast/rewriter/mk_simplified_app.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef MK_SIMPLIFIED_APP_H_ -#define MK_SIMPLIFIED_APP_H_ +#pragma once #include "ast/ast.h" #include "util/params.h" @@ -34,4 +33,3 @@ public: void operator()(func_decl * decl, unsigned num, expr * const * args, expr_ref & result); }; -#endif diff --git a/src/ast/rewriter/pb2bv_rewriter.h b/src/ast/rewriter/pb2bv_rewriter.h index 3460f08ab..2c637fa5e 100644 --- a/src/ast/rewriter/pb2bv_rewriter.h +++ b/src/ast/rewriter/pb2bv_rewriter.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef PB2BV_REWRITER_H_ -#define PB2BV_REWRITER_H_ +#pragma once #include "ast/pb_decl_plugin.h" #include "ast/rewriter/rewriter_types.h" @@ -44,4 +43,3 @@ public: void collect_statistics(statistics & st) const; }; -#endif diff --git a/src/ast/rewriter/pb_rewriter.h b/src/ast/rewriter/pb_rewriter.h index f52aea12b..8057c847b 100644 --- a/src/ast/rewriter/pb_rewriter.h +++ b/src/ast/rewriter/pb_rewriter.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef PB_REWRITER_H_ -#define PB_REWRITER_H_ +#pragma once #include "ast/pb_decl_plugin.h" #include "ast/rewriter/rewriter_types.h" @@ -62,4 +61,3 @@ public: void dump_pb_rewrite(expr* fml); }; -#endif diff --git a/src/ast/rewriter/pb_rewriter_def.h b/src/ast/rewriter/pb_rewriter_def.h index c2fe43644..13440604d 100644 --- a/src/ast/rewriter/pb_rewriter_def.h +++ b/src/ast/rewriter/pb_rewriter_def.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef PB_REWRITER_DEF_H_ -#define PB_REWRITER_DEF_H_ +#pragma once #include "ast/rewriter/pb_rewriter.h" @@ -298,4 +297,3 @@ void pb_rewriter_util::prune(typename PBU::args_t& args, typename PBU::nume } } -#endif diff --git a/src/ast/rewriter/poly_rewriter.h b/src/ast/rewriter/poly_rewriter.h index 424b684a0..85ce5fcf8 100644 --- a/src/ast/rewriter/poly_rewriter.h +++ b/src/ast/rewriter/poly_rewriter.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef POLY_REWRITER_H_ -#define POLY_REWRITER_H_ +#pragma once #include "ast/ast.h" #include "util/obj_hashtable.h" @@ -176,4 +175,3 @@ public: }; -#endif diff --git a/src/ast/rewriter/push_app_ite.h b/src/ast/rewriter/push_app_ite.h index a04cb6fbc..ec4317abb 100644 --- a/src/ast/rewriter/push_app_ite.h +++ b/src/ast/rewriter/push_app_ite.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef PUSH_APP_ITE_H_ -#define PUSH_APP_ITE_H_ +#pragma once #include "ast/ast.h" #include "ast/rewriter/rewriter.h" @@ -70,5 +69,4 @@ public: }; -#endif /* PUSH_APP_ITE_H_ */ diff --git a/src/ast/rewriter/quant_hoist.h b/src/ast/rewriter/quant_hoist.h index e7ae38186..52bc8c3b2 100644 --- a/src/ast/rewriter/quant_hoist.h +++ b/src/ast/rewriter/quant_hoist.h @@ -19,8 +19,7 @@ Revision History: --*/ -#ifndef QUANTIFIER_HOISTER_H_ -#define QUANTIFIER_HOISTER_H_ +#pragma once #include "ast/ast.h" @@ -70,4 +69,3 @@ public: }; -#endif diff --git a/src/ast/rewriter/recfun_replace.h b/src/ast/rewriter/recfun_replace.h index c45cff17b..09ee3c60d 100644 --- a/src/ast/rewriter/recfun_replace.h +++ b/src/ast/rewriter/recfun_replace.h @@ -22,8 +22,7 @@ Revision History: --*/ -#ifndef RECFUN_REPLACE_H_ -#define RECFUN_REPLACE_H_ +#pragma once #include "ast/recfun_decl_plugin.h" #include "ast/rewriter/expr_safe_replace.h" @@ -39,4 +38,3 @@ public: expr_ref operator()(expr* e) override { expr_ref r(m); m_replace(e, r); return r; } }; -#endif /* RECFUN_REPLACE_H_ */ diff --git a/src/ast/rewriter/rewriter.h b/src/ast/rewriter/rewriter.h index 952a081c6..fc3f50faf 100644 --- a/src/ast/rewriter/rewriter.h +++ b/src/ast/rewriter/rewriter.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef REWRITER_H_ -#define REWRITER_H_ +#pragma once #include "ast/ast.h" #include "ast/rewriter/rewriter_types.h" @@ -407,4 +406,3 @@ public: rewriter_tpl(m, false, m_cfg) {} }; -#endif diff --git a/src/ast/rewriter/rewriter_types.h b/src/ast/rewriter/rewriter_types.h index 77ab42b2a..ff1755b91 100644 --- a/src/ast/rewriter/rewriter_types.h +++ b/src/ast/rewriter/rewriter_types.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef REWRITER_TYPES_H_ -#define REWRITER_TYPES_H_ +#pragma once #include "util/z3_exception.h" #include "util/common_msgs.h" @@ -49,4 +48,3 @@ public: rewriter_exception(std::string && msg) : default_exception(std::move(msg)) {} }; -#endif diff --git a/src/ast/rewriter/seq_rewriter.h b/src/ast/rewriter/seq_rewriter.h index 1cba72444..30b2b5ce8 100644 --- a/src/ast/rewriter/seq_rewriter.h +++ b/src/ast/rewriter/seq_rewriter.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef SEQ_REWRITER_H_ -#define SEQ_REWRITER_H_ +#pragma once #include "ast/seq_decl_plugin.h" #include "ast/ast_pp.h" @@ -341,4 +340,3 @@ public: }; -#endif diff --git a/src/ast/rewriter/th_rewriter.h b/src/ast/rewriter/th_rewriter.h index 281c685f2..271500551 100644 --- a/src/ast/rewriter/th_rewriter.h +++ b/src/ast/rewriter/th_rewriter.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef TH_REWRITER_H_ -#define TH_REWRITER_H_ +#pragma once #include "ast/ast.h" #include "ast/rewriter/rewriter_types.h" @@ -72,4 +71,3 @@ public: }; -#endif diff --git a/src/ast/rewriter/var_subst.h b/src/ast/rewriter/var_subst.h index e4e1b57b9..13fe8bd8c 100644 --- a/src/ast/rewriter/var_subst.h +++ b/src/ast/rewriter/var_subst.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef VAR_SUBST_H_ -#define VAR_SUBST_H_ +#pragma once #include "ast/rewriter/rewriter.h" #include "ast/used_vars.h" @@ -108,6 +107,5 @@ public: sort*const* c_ptr() const { return m_sorts.c_ptr(); } }; -#endif diff --git a/src/ast/scoped_proof.h b/src/ast/scoped_proof.h index b2b3d7173..c8071031c 100644 --- a/src/ast/scoped_proof.h +++ b/src/ast/scoped_proof.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SCOPED_PROOF_H_ -#define SCOPED_PROOF_H_ +#pragma once #include "ast/ast.h" @@ -52,4 +51,3 @@ public: -#endif diff --git a/src/ast/seq_decl_plugin.h b/src/ast/seq_decl_plugin.h index f1c140de4..58cf04cf7 100644 --- a/src/ast/seq_decl_plugin.h +++ b/src/ast/seq_decl_plugin.h @@ -20,8 +20,7 @@ Revision History: Add SMTLIB 2.6 support 2020-5-17 --*/ -#ifndef SEQ_DECL_PLUGIN_H_ -#define SEQ_DECL_PLUGIN_H_ +#pragma once #include "ast/ast.h" #include "ast/bv_decl_plugin.h" @@ -493,5 +492,4 @@ public: }; -#endif /* SEQ_DECL_PLUGIN_H_ */ diff --git a/src/ast/shared_occs.h b/src/ast/shared_occs.h index 300bb584f..468ce1436 100644 --- a/src/ast/shared_occs.h +++ b/src/ast/shared_occs.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SHARED_OCCS_H_ -#define SHARED_OCCS_H_ +#pragma once #include "ast/ast.h" #include "util/obj_hashtable.h" @@ -77,4 +76,3 @@ public: void display(std::ostream & out, ast_manager & mgr) const; }; -#endif diff --git a/src/ast/special_relations_decl_plugin.h b/src/ast/special_relations_decl_plugin.h index e43f22cd5..4ce7dfec2 100644 --- a/src/ast/special_relations_decl_plugin.h +++ b/src/ast/special_relations_decl_plugin.h @@ -17,8 +17,7 @@ Author: Revision History: --*/ -#ifndef SPECIAL_RELATIONS_DECL_PLUGIN_H_ -#define SPECIAL_RELATIONS_DECL_PLUGIN_H_ +#pragma once #include "ast/ast.h" @@ -109,4 +108,3 @@ public: }; -#endif /* SPECIAL_RELATIONS_DECL_PLUGIN_H_ */ diff --git a/src/ast/static_features.h b/src/ast/static_features.h index 361ec35a8..cf584081c 100644 --- a/src/ast/static_features.h +++ b/src/ast/static_features.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef STATIC_FEATURES_H_ -#define STATIC_FEATURES_H_ +#pragma once #include "ast/ast.h" #include "ast/arith_decl_plugin.h" @@ -186,5 +185,4 @@ struct static_features { }; -#endif /* STATIC_FEATURES_H_ */ diff --git a/src/ast/substitution/expr_offset.h b/src/ast/substitution/expr_offset.h index ee098053f..1e3b9e11d 100644 --- a/src/ast/substitution/expr_offset.h +++ b/src/ast/substitution/expr_offset.h @@ -21,8 +21,7 @@ Author: Revision History: --*/ -#ifndef EXPR_OFFSET_H_ -#define EXPR_OFFSET_H_ +#pragma once #include "ast/ast.h" @@ -50,4 +49,3 @@ public: typedef std::pair expr_offset_pair; typedef pair_hash, obj_hash > expr_offset_pair_hash; -#endif /* EXPR_OFFSET_H_ */ diff --git a/src/ast/substitution/expr_offset_map.h b/src/ast/substitution/expr_offset_map.h index 371c7500e..f2f5406d7 100644 --- a/src/ast/substitution/expr_offset_map.h +++ b/src/ast/substitution/expr_offset_map.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef EXPR_OFFSET_MAP_H_ -#define EXPR_OFFSET_MAP_H_ +#pragma once #include "ast/substitution/expr_offset.h" #include "util/vector.h" @@ -91,4 +90,3 @@ public: } }; -#endif /* EXPR_OFFSET_MAP_H_ */ diff --git a/src/ast/substitution/matcher.h b/src/ast/substitution/matcher.h index 1e8c3005a..2c398956f 100644 --- a/src/ast/substitution/matcher.h +++ b/src/ast/substitution/matcher.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef MATCHER_H_ -#define MATCHER_H_ +#pragma once #include "ast/substitution/substitution.h" #include "util/hashtable.h" @@ -59,5 +58,4 @@ public: bool operator()(expr * e1, expr * e2, substitution & s); }; -#endif /* MATCHER_H_ */ diff --git a/src/ast/substitution/substitution.h b/src/ast/substitution/substitution.h index 5f1288fd7..336272621 100644 --- a/src/ast/substitution/substitution.h +++ b/src/ast/substitution/substitution.h @@ -30,8 +30,7 @@ Revision History: of the current substitution by the number of quantified variables. --*/ -#ifndef SUBSTITUTION_H_ -#define SUBSTITUTION_H_ +#pragma once #include "ast/substitution/expr_offset_map.h" #include "ast/substitution/var_offset_map.h" @@ -218,4 +217,3 @@ public: }; -#endif diff --git a/src/ast/substitution/substitution_tree.h b/src/ast/substitution/substitution_tree.h index 018bee471..c94bb4eea 100644 --- a/src/ast/substitution/substitution_tree.h +++ b/src/ast/substitution/substitution_tree.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SUBSTITUTION_TREE_H_ -#define SUBSTITUTION_TREE_H_ +#pragma once #include "ast/ast.h" #include "ast/substitution/substitution.h" @@ -146,5 +145,4 @@ public: void display(std::ostream & out) const; }; -#endif /* SUBSTITUTION_TREE_H_ */ diff --git a/src/ast/substitution/unifier.h b/src/ast/substitution/unifier.h index 171b880e2..2d0390fe9 100644 --- a/src/ast/substitution/unifier.h +++ b/src/ast/substitution/unifier.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef UNIFIER_H_ -#define UNIFIER_H_ +#pragma once #include "ast/ast.h" #include "ast/substitution/substitution.h" @@ -66,5 +65,4 @@ public: bool operator()(expr * e1, expr * e2, substitution & s, bool use_offsets = true); }; -#endif /* UNIFIER_H_ */ diff --git a/src/ast/substitution/var_offset_map.h b/src/ast/substitution/var_offset_map.h index f5488483a..288ddc867 100644 --- a/src/ast/substitution/var_offset_map.h +++ b/src/ast/substitution/var_offset_map.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef VAR_OFFSET_MAP_H_ -#define VAR_OFFSET_MAP_H_ +#pragma once #include "ast/ast.h" #include "util/vector.h" @@ -111,4 +110,3 @@ public: }; -#endif /* VAR_OFFSET_MAP_H_ */ diff --git a/src/ast/used_symbols.h b/src/ast/used_symbols.h index 2fd4830fe..cd849364d 100644 --- a/src/ast/used_symbols.h +++ b/src/ast/used_symbols.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef USED_SYMBOLS_H_ -#define USED_SYMBOLS_H_ +#pragma once #include "ast/ast.h" #include "util/hashtable.h" @@ -102,4 +101,3 @@ public: void erase_core(symbol const & s) { m_used.erase(s); } }; -#endif /* USED_SYMBOLS_H_ */ diff --git a/src/ast/used_vars.h b/src/ast/used_vars.h index 56d633997..dbd7ae854 100644 --- a/src/ast/used_vars.h +++ b/src/ast/used_vars.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef USED_VARS_H_ -#define USED_VARS_H_ +#pragma once #include "ast/ast.h" #include "ast/expr_delta_pair.h" @@ -55,5 +54,4 @@ public: unsigned get_num_vars() const; }; -#endif /* USED_VARS_H_ */ diff --git a/src/ast/well_sorted.h b/src/ast/well_sorted.h index b2eb4dfd4..fc1ddcd9f 100644 --- a/src/ast/well_sorted.h +++ b/src/ast/well_sorted.h @@ -16,13 +16,11 @@ Author: Revision History: --*/ -#ifndef WELL_SORTED_H_ -#define WELL_SORTED_H_ +#pragma once class ast_manager; class expr; bool is_well_sorted(ast_manager const & m, expr * n); -#endif /* WELL_SORTED_H_ */ diff --git a/src/cmd_context/basic_cmds.h b/src/cmd_context/basic_cmds.h index 3e896a024..f0de18854 100644 --- a/src/cmd_context/basic_cmds.h +++ b/src/cmd_context/basic_cmds.h @@ -15,12 +15,10 @@ Author: Notes: --*/ -#ifndef BASIC_CMDS_H_ -#define BASIC_CMDS_H_ +#pragma once class cmd_context; void install_basic_cmds(cmd_context & ctx); void install_ext_basic_cmds(cmd_context & ctx); -#endif diff --git a/src/cmd_context/check_logic.h b/src/cmd_context/check_logic.h index b9050fc14..65c1c0f51 100644 --- a/src/cmd_context/check_logic.h +++ b/src/cmd_context/check_logic.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef CHECK_LOGIC_H_ -#define CHECK_LOGIC_H_ +#pragma once #include "ast/ast.h" @@ -34,4 +33,3 @@ public: char const * get_last_error() const; }; -#endif diff --git a/src/cmd_context/cmd_context.h b/src/cmd_context/cmd_context.h index 47818c273..14c0a6b8f 100644 --- a/src/cmd_context/cmd_context.h +++ b/src/cmd_context/cmd_context.h @@ -18,8 +18,7 @@ Author: Notes: --*/ -#ifndef CMD_CONTEXT_H_ -#define CMD_CONTEXT_H_ +#pragma once #include #include @@ -511,4 +510,3 @@ public: } }; -#endif diff --git a/src/cmd_context/cmd_context_to_goal.h b/src/cmd_context/cmd_context_to_goal.h index 35e11e6c1..2ff5a5046 100644 --- a/src/cmd_context/cmd_context_to_goal.h +++ b/src/cmd_context/cmd_context_to_goal.h @@ -16,9 +16,7 @@ Author: Notes: --*/ -#ifndef CMD_CONTEXT_TO_GOAL_H_ -#define CMD_CONTEXT_TO_GOAL_H_ +#pragma once void assert_exprs_from(cmd_context const & ctx, goal & t); -#endif diff --git a/src/cmd_context/cmd_util.h b/src/cmd_context/cmd_util.h index e575783f5..125ed6654 100644 --- a/src/cmd_context/cmd_util.h +++ b/src/cmd_context/cmd_util.h @@ -15,8 +15,7 @@ Author: Notes: --*/ -#ifndef CMD_UTIL_H_ -#define CMD_UTIL_H_ +#pragma once #define ATOMIC_CMD(CLS_NAME, NAME, DESCR, ACTION) \ class CLS_NAME : public cmd { \ @@ -77,4 +76,3 @@ expr * get_expr_ref(cmd_context & ctx, symbol const & v); */ void store_expr_ref(cmd_context & ctx, symbol const & v, expr * t); -#endif diff --git a/src/cmd_context/context_params.h b/src/cmd_context/context_params.h index 837381665..50332ff9b 100644 --- a/src/cmd_context/context_params.h +++ b/src/cmd_context/context_params.h @@ -17,8 +17,7 @@ Author: Notes: --*/ -#ifndef CONTEXT_PARAMS_H_ -#define CONTEXT_PARAMS_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -78,4 +77,3 @@ public: }; -#endif diff --git a/src/cmd_context/echo_tactic.h b/src/cmd_context/echo_tactic.h index 2ba97ee47..050b8910b 100644 --- a/src/cmd_context/echo_tactic.h +++ b/src/cmd_context/echo_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef ECHO_TACTICS_H_ -#define ECHO_TACTICS_H_ +#pragma once class cmd_context; class tactic; @@ -27,4 +26,3 @@ tactic * mk_echo_tactic(cmd_context & ctx, char const * msg, bool newline = true // Display the value returned by p in the diagnostic_stream tactic * mk_probe_value_tactic(cmd_context & ctx, char const * msg, probe * p, bool newline = true); -#endif diff --git a/src/cmd_context/eval_cmd.h b/src/cmd_context/eval_cmd.h index c71e57f69..ee24865bb 100644 --- a/src/cmd_context/eval_cmd.h +++ b/src/cmd_context/eval_cmd.h @@ -16,11 +16,9 @@ Author: Notes: --*/ -#ifndef EVAL_CMD_H_ -#define EVAL_CMD_H_ +#pragma once class cmd_context; void install_eval_cmd(cmd_context & ctx); -#endif diff --git a/src/cmd_context/extra_cmds/dbg_cmds.h b/src/cmd_context/extra_cmds/dbg_cmds.h index 2ff73a11f..6cf41ce15 100644 --- a/src/cmd_context/extra_cmds/dbg_cmds.h +++ b/src/cmd_context/extra_cmds/dbg_cmds.h @@ -15,11 +15,9 @@ Author: Notes: --*/ -#ifndef DBG_CMDS_H_ -#define DBG_CMDS_H_ +#pragma once class cmd_context; void install_dbg_cmds(cmd_context & ctx); -#endif diff --git a/src/cmd_context/extra_cmds/polynomial_cmds.h b/src/cmd_context/extra_cmds/polynomial_cmds.h index f1f80ae5c..a79ad7fd4 100644 --- a/src/cmd_context/extra_cmds/polynomial_cmds.h +++ b/src/cmd_context/extra_cmds/polynomial_cmds.h @@ -15,10 +15,8 @@ Author: Notes: --*/ -#ifndef POLYNOMIAL_CMDS_H_ -#define POLYNOMIAL_CMDS_H_ +#pragma once class cmd_context; void install_polynomial_cmds(cmd_context & ctx); -#endif diff --git a/src/cmd_context/parametric_cmd.h b/src/cmd_context/parametric_cmd.h index 79517219d..fa90e7d33 100644 --- a/src/cmd_context/parametric_cmd.h +++ b/src/cmd_context/parametric_cmd.h @@ -15,8 +15,7 @@ Author: Notes: --*/ -#ifndef PARAMETRIC_CMD_H_ -#define PARAMETRIC_CMD_H_ +#pragma once #include "util/params.h" #include "util/symbol.h" @@ -75,6 +74,5 @@ public: void set_next_arg(cmd_context & ctx, sexpr * n) override { UNREACHABLE(); } }; -#endif diff --git a/src/cmd_context/pdecl.h b/src/cmd_context/pdecl.h index d65b52ae8..f2fce00c1 100644 --- a/src/cmd_context/pdecl.h +++ b/src/cmd_context/pdecl.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef PDECL_H_ -#define PDECL_H_ +#pragma once #include "ast/ast.h" #include "util/obj_hashtable.h" @@ -360,4 +359,3 @@ typedef ref_buffer pconstructor_decl_ref_buffe typedef ref_buffer pdatatype_decl_ref_buffer; typedef ref_buffer pdatatypes_decl_ref_buffer; -#endif diff --git a/src/cmd_context/simplify_cmd.h b/src/cmd_context/simplify_cmd.h index a0a06e89c..d4d4367d4 100644 --- a/src/cmd_context/simplify_cmd.h +++ b/src/cmd_context/simplify_cmd.h @@ -15,11 +15,9 @@ Author: Notes: --*/ -#ifndef SIMPLIFY_CMD_H_ -#define SIMPLIFY_CMD_H_ +#pragma once class cmd_context; void install_simplify_cmd(cmd_context & ctx, char const * cmd_name = "simplify"); -#endif diff --git a/src/cmd_context/tactic_cmds.h b/src/cmd_context/tactic_cmds.h index 691771509..be094840c 100644 --- a/src/cmd_context/tactic_cmds.h +++ b/src/cmd_context/tactic_cmds.h @@ -15,8 +15,7 @@ Author: Notes: --*/ -#ifndef TACTIC_CMDS_H_ -#define TACTIC_CMDS_H_ +#pragma once #include "ast/ast.h" #include "util/params.h" @@ -62,4 +61,3 @@ public: probe * sexpr2probe(cmd_context & ctx, sexpr * n); -#endif diff --git a/src/cmd_context/tactic_manager.h b/src/cmd_context/tactic_manager.h index 276c756ba..9225a4555 100644 --- a/src/cmd_context/tactic_manager.h +++ b/src/cmd_context/tactic_manager.h @@ -15,8 +15,7 @@ Author: Notes: --*/ -#ifndef TACTIC_MANAGER_H_ -#define TACTIC_MANAGER_H_ +#pragma once #include "cmd_context/tactic_cmds.h" #include "util/dictionary.h" @@ -51,7 +50,6 @@ public: probe_iterator end_probes() const { return m_probes.end(); } }; -#endif diff --git a/src/math/automata/automaton.h b/src/math/automata/automaton.h index 3d42f13a0..cb201e8b3 100644 --- a/src/math/automata/automaton.h +++ b/src/math/automata/automaton.h @@ -18,8 +18,7 @@ Revision History: --*/ -#ifndef AUTOMATON_H_ -#define AUTOMATON_H_ +#pragma once #include "util/util.h" @@ -750,4 +749,3 @@ private: typedef automaton uautomaton; -#endif diff --git a/src/math/automata/boolean_algebra.h b/src/math/automata/boolean_algebra.h index ea2b66995..4bd80af4b 100644 --- a/src/math/automata/boolean_algebra.h +++ b/src/math/automata/boolean_algebra.h @@ -18,8 +18,7 @@ Revision History: --*/ -#ifndef BOOLEAN_ALGEBRA_H_ -#define BOOLEAN_ALGEBRA_H_ +#pragma once #include "util/util.h" @@ -43,4 +42,3 @@ public: virtual T mk_not(T x) = 0; }; -#endif diff --git a/src/math/automata/symbolic_automata.h b/src/math/automata/symbolic_automata.h index 0cfdf9bf3..06930a50c 100644 --- a/src/math/automata/symbolic_automata.h +++ b/src/math/automata/symbolic_automata.h @@ -18,8 +18,7 @@ Revision History: --*/ -#ifndef SYMBOLIC_AUTOMATA_H_ -#define SYMBOLIC_AUTOMATA_H_ +#pragma once #include "math/automata/automaton.h" @@ -151,4 +150,3 @@ private: -#endif diff --git a/src/math/automata/symbolic_automata_def.h b/src/math/automata/symbolic_automata_def.h index 5ecdd8c2b..678420b7b 100644 --- a/src/math/automata/symbolic_automata_def.h +++ b/src/math/automata/symbolic_automata_def.h @@ -18,8 +18,7 @@ Revision History: --*/ -#ifndef SYMBOLIC_AUTOMATA_DEF_H_ -#define SYMBOLIC_AUTOMATA_DEF_H_ +#pragma once #include "math/automata/symbolic_automata.h" @@ -489,4 +488,3 @@ typename symbolic_automata::automaton_t* symbolic_automata::mk_diffe return mk_product(a,mk_complement(b)); } -#endif diff --git a/src/math/dd/dd_bdd.h b/src/math/dd/dd_bdd.h index 55cb20486..ff7735b2a 100644 --- a/src/math/dd/dd_bdd.h +++ b/src/math/dd/dd_bdd.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DD_BDD_H_ -#define DD_BDD_H_ +#pragma once #include "util/vector.h" #include "util/map.h" @@ -264,4 +263,3 @@ namespace dd { } -#endif diff --git a/src/math/dd/dd_pdd.h b/src/math/dd/dd_pdd.h index d12af2585..20b04fa39 100644 --- a/src/math/dd/dd_pdd.h +++ b/src/math/dd/dd_pdd.h @@ -28,8 +28,7 @@ Author: Nikolaj Bjorner (nbjorner) 2019-12-17 --*/ -#ifndef DD_PDD_H_ -#define DD_PDD_H_ +#pragma once #include "util/vector.h" #include "util/map.h" @@ -420,4 +419,3 @@ namespace dd { } -#endif diff --git a/src/math/grobner/grobner.h b/src/math/grobner/grobner.h index 9233866d5..f550bdd9d 100644 --- a/src/math/grobner/grobner.h +++ b/src/math/grobner/grobner.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef GROBNER_H_ -#define GROBNER_H_ +#pragma once #include "ast/ast.h" #include "ast/arith_decl_plugin.h" @@ -289,5 +288,4 @@ public: void display(std::ostream & out) const; }; -#endif /* GROBNER_H_ */ diff --git a/src/math/hilbert/heap_trie.h b/src/math/hilbert/heap_trie.h index add64d2a0..b297ab0b9 100644 --- a/src/math/hilbert/heap_trie.h +++ b/src/math/hilbert/heap_trie.h @@ -34,8 +34,7 @@ Notes: --*/ -#ifndef HEAP_TRIE_H_ -#define HEAP_TRIE_H_ +#pragma once #include #include "util/map.h" @@ -663,4 +662,3 @@ private: } }; -#endif diff --git a/src/math/interval/interval.h b/src/math/interval/interval.h index 566c852b8..fd9f5a246 100644 --- a/src/math/interval/interval.h +++ b/src/math/interval/interval.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef INTERVAL_H_ -#define INTERVAL_H_ +#pragma once #include "util/mpq.h" #include "util/ext_numeral.h" @@ -391,4 +390,3 @@ public: } }; -#endif diff --git a/src/math/interval/interval_def.h b/src/math/interval/interval_def.h index 07fd242cd..bbce66420 100644 --- a/src/math/interval/interval_def.h +++ b/src/math/interval/interval_def.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef INTERVAL_DEF_H_ -#define INTERVAL_DEF_H_ +#pragma once #include "math/interval/interval.h" #include "util/debug.h" @@ -2007,4 +2006,3 @@ void interval_manager::e(unsigned k, interval & r) { m().set(upper(r), hi); } -#endif diff --git a/src/math/polynomial/algebraic_numbers.h b/src/math/polynomial/algebraic_numbers.h index d6fafbd74..00af9a7a8 100644 --- a/src/math/polynomial/algebraic_numbers.h +++ b/src/math/polynomial/algebraic_numbers.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef ALGEBRAIC_NUMBERS_H_ -#define ALGEBRAIC_NUMBERS_H_ +#pragma once #include "util/rational.h" #include "util/mpq.h" @@ -490,4 +489,3 @@ inline std::ostream & operator<<(std::ostream & out, interval_pp const & n) { return out; } -#endif diff --git a/src/math/polynomial/linear_eq_solver.h b/src/math/polynomial/linear_eq_solver.h index 99f418fce..8499d3a5a 100644 --- a/src/math/polynomial/linear_eq_solver.h +++ b/src/math/polynomial/linear_eq_solver.h @@ -19,8 +19,7 @@ Author: Notes: --*/ -#ifndef LINEAR_EQ_SOLVER_H_ -#define LINEAR_EQ_SOLVER_H_ +#pragma once template class linear_eq_solver { @@ -149,4 +148,3 @@ public: }; -#endif diff --git a/src/math/polynomial/polynomial.h b/src/math/polynomial/polynomial.h index cf10dcd1a..6a1a87cd9 100644 --- a/src/math/polynomial/polynomial.h +++ b/src/math/polynomial/polynomial.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef POLYNOMIAL_H_ -#define POLYNOMIAL_H_ +#pragma once #include "util/mpz.h" #include "util/rational.h" @@ -1415,4 +1414,3 @@ inline void factor(polynomial_ref const & p, polynomial::factors & r, polynomial std::ostream & operator<<(std::ostream & out, polynomial_ref_vector const & seq); -#endif diff --git a/src/math/polynomial/polynomial_cache.h b/src/math/polynomial/polynomial_cache.h index 4ebb05b04..fbd70e500 100644 --- a/src/math/polynomial/polynomial_cache.h +++ b/src/math/polynomial/polynomial_cache.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef POLYNOMIAL_CACHE_H_ -#define POLYNOMIAL_CACHE_H_ +#pragma once #include "math/polynomial/polynomial.h" @@ -41,4 +40,3 @@ namespace polynomial { }; }; -#endif diff --git a/src/math/polynomial/polynomial_primes.h b/src/math/polynomial/polynomial_primes.h index c5afcb727..ea2baf0dc 100644 --- a/src/math/polynomial/polynomial_primes.h +++ b/src/math/polynomial/polynomial_primes.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef POLYNOMIAL_PRIMES_H_ -#define POLYNOMIAL_PRIMES_H_ +#pragma once namespace polynomial { #define NUM_SMALL_PRIMES 11 @@ -69,4 +68,3 @@ namespace polynomial { }; -#endif diff --git a/src/math/polynomial/polynomial_var2value.h b/src/math/polynomial/polynomial_var2value.h index 523703709..42edc852b 100644 --- a/src/math/polynomial/polynomial_var2value.h +++ b/src/math/polynomial/polynomial_var2value.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef POLYNOMIAL_VAR2VALUE_H_ -#define POLYNOMIAL_VAR2VALUE_H_ +#pragma once #include "math/polynomial/polynomial.h" #include "util/scoped_numeral_vector.h" @@ -47,4 +46,3 @@ namespace polynomial { }; -#endif diff --git a/src/math/polynomial/rpolynomial.h b/src/math/polynomial/rpolynomial.h index ba51f785e..2a5123a03 100644 --- a/src/math/polynomial/rpolynomial.h +++ b/src/math/polynomial/rpolynomial.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef RPOLYNOMIAL_H_ -#define RPOLYNOMIAL_H_ +#pragma once #include "util/mpz.h" #include "util/rational.h" @@ -203,4 +202,3 @@ inline rpolynomial_ref operator+(rpolynomial_ref const & p, int a) { -#endif diff --git a/src/math/polynomial/sexpr2upolynomial.h b/src/math/polynomial/sexpr2upolynomial.h index 0b849ad36..bb52c721d 100644 --- a/src/math/polynomial/sexpr2upolynomial.h +++ b/src/math/polynomial/sexpr2upolynomial.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef SEXPR2UPOLYNOMIAL_H_ -#define SEXPR2UPOLYNOMIAL_H_ +#pragma once #include "math/polynomial/upolynomial.h" #include "util/cmd_context_types.h" @@ -30,4 +29,3 @@ public: void sexpr2upolynomial(upolynomial::manager & m, sexpr const * s, upolynomial::numeral_vector & p); -#endif diff --git a/src/math/polynomial/upolynomial.h b/src/math/polynomial/upolynomial.h index 6c52c0727..ad59bc00b 100644 --- a/src/math/polynomial/upolynomial.h +++ b/src/math/polynomial/upolynomial.h @@ -21,8 +21,7 @@ Author: Notes: --*/ -#ifndef UPOLYNOMIAL_H_ -#define UPOLYNOMIAL_H_ +#pragma once #include "util/mpzzp.h" #include "util/rational.h" @@ -919,4 +918,3 @@ namespace upolynomial { }; -#endif diff --git a/src/math/polynomial/upolynomial_factorization.h b/src/math/polynomial/upolynomial_factorization.h index c33f1844d..3842665bd 100644 --- a/src/math/polynomial/upolynomial_factorization.h +++ b/src/math/polynomial/upolynomial_factorization.h @@ -22,8 +22,7 @@ Notes: [3] Henri Cohen. A Course in Computational Algebraic Number Theory. Springer Verlag, 1993. --*/ -#ifndef UPOLYNOMIAL_FACTORIZATION_H_ -#define UPOLYNOMIAL_FACTORIZATION_H_ +#pragma once #include "math/polynomial/upolynomial.h" #include "math/polynomial/polynomial.h" @@ -93,4 +92,3 @@ namespace upolynomial { bool factor_square_free(z_manager & upm, numeral_vector const & f, factors & fs, unsigned k, factor_params const & ps = factor_params()); }; -#endif diff --git a/src/math/polynomial/upolynomial_factorization_int.h b/src/math/polynomial/upolynomial_factorization_int.h index 712dabba5..53848b2b1 100644 --- a/src/math/polynomial/upolynomial_factorization_int.h +++ b/src/math/polynomial/upolynomial_factorization_int.h @@ -23,8 +23,7 @@ Notes: [3] Henri Cohen. A Course in Computational Algebraic Number Theory. Springer Verlag, 1993. --*/ -#ifndef UPOLYNOMIAL_FACTORIZATION_INT_H_ -#define UPOLYNOMIAL_FACTORIZATION_INT_H_ +#pragma once #include "math/polynomial/upolynomial_factorization.h" @@ -417,4 +416,3 @@ namespace upolynomial { }; }; -#endif diff --git a/src/math/realclosure/mpz_matrix.h b/src/math/realclosure/mpz_matrix.h index 99ff8bce4..878fb72f9 100644 --- a/src/math/realclosure/mpz_matrix.h +++ b/src/math/realclosure/mpz_matrix.h @@ -28,8 +28,7 @@ Author: Notes: --*/ -#ifndef MPZ_MATRIX_H_ -#define MPZ_MATRIX_H_ +#pragma once #include "util/mpz.h" @@ -153,4 +152,3 @@ inline std::ostream & operator<<(std::ostream & out, scoped_mpz_matrix const & m return out; } -#endif diff --git a/src/math/realclosure/realclosure.h b/src/math/realclosure/realclosure.h index cfba0e99e..4e0a95ece 100644 --- a/src/math/realclosure/realclosure.h +++ b/src/math/realclosure/realclosure.h @@ -19,8 +19,7 @@ Author: Notes: --*/ -#ifndef REALCLOSURE_H_ -#define REALCLOSURE_H_ +#pragma once #include "util/mpq.h" #include "util/params.h" @@ -401,4 +400,3 @@ inline rc_interval_pp interval_pp(scoped_rcnumeral const & n) { return rc_interval_pp(n); } -#endif diff --git a/src/math/simplex/bit_matrix.h b/src/math/simplex/bit_matrix.h index 9e8a80782..189472d6a 100644 --- a/src/math/simplex/bit_matrix.h +++ b/src/math/simplex/bit_matrix.h @@ -20,8 +20,7 @@ Notes: --*/ -#ifndef BIT_MATRIX_H_ -#define BIT_MATRIX_H_ +#pragma once #include "util/region.h" #include "util/vector.h" @@ -112,4 +111,3 @@ private: inline std::ostream& operator<<(std::ostream& out, bit_matrix& m) { return m.display(out); } inline std::ostream& operator<<(std::ostream& out, bit_matrix::row const& r) { return r.display(out); } -#endif diff --git a/src/math/simplex/model_based_opt.h b/src/math/simplex/model_based_opt.h index 4740a4899..6ea38e0bb 100644 --- a/src/math/simplex/model_based_opt.h +++ b/src/math/simplex/model_based_opt.h @@ -18,8 +18,7 @@ Revision History: --*/ -#ifndef __MODEL_BASED_OPT_H__ -#define __MODEL_BASED_OPT_H__ +#pragma once #include "util/util.h" #include "util/rational.h" @@ -207,4 +206,3 @@ inline std::ostream& operator<<(std::ostream& out, opt::model_based_opt::row con inline std::ostream& operator<<(std::ostream& out, opt::model_based_opt::var const v) { return out << "v" << v.m_id; } -#endif diff --git a/src/math/simplex/network_flow.h b/src/math/simplex/network_flow.h index f4147b16f..9be3b1191 100644 --- a/src/math/simplex/network_flow.h +++ b/src/math/simplex/network_flow.h @@ -25,8 +25,7 @@ Notes: A naive approach is to run an algorithm on max flow in order to get a spanning tree. --*/ -#ifndef NETWORK_FLOW_H_ -#define NETWORK_FLOW_H_ +#pragma once #include "util/inf_rational.h" #include "smt/diff_logic.h" @@ -197,4 +196,3 @@ namespace smt { }; } -#endif diff --git a/src/math/simplex/network_flow_def.h b/src/math/simplex/network_flow_def.h index 594c01652..391fe4cb2 100644 --- a/src/math/simplex/network_flow_def.h +++ b/src/math/simplex/network_flow_def.h @@ -17,8 +17,7 @@ Notes: --*/ -#ifndef NETWORK_FLOW_DEF_H_ -#define NETWORK_FLOW_DEF_H_ +#pragma once #include "math/simplex/network_flow.h" #include "util/uint_set.h" @@ -523,4 +522,3 @@ namespace smt { } } -#endif diff --git a/src/math/simplex/simplex.h b/src/math/simplex/simplex.h index 26a0bffdc..b8781d4ab 100644 --- a/src/math/simplex/simplex.h +++ b/src/math/simplex/simplex.h @@ -29,8 +29,7 @@ Notes: --*/ -#ifndef SIMPLEX_H_ -#define SIMPLEX_H_ +#pragma once #include "math/simplex/sparse_matrix.h" #include "util/mpq_inf.h" @@ -203,4 +202,3 @@ namespace simplex { void ensure_rational_solution(simplex& s); }; -#endif diff --git a/src/math/simplex/simplex_def.h b/src/math/simplex/simplex_def.h index 73b338509..bc02ce5ef 100644 --- a/src/math/simplex/simplex_def.h +++ b/src/math/simplex/simplex_def.h @@ -17,8 +17,7 @@ Notes: --*/ -#ifndef SIMPLEX_DEF_H_ -#define SIMPLEX_DEF_H_ +#pragma once namespace simplex { @@ -1038,5 +1037,4 @@ namespace simplex { }; -#endif diff --git a/src/math/simplex/sparse_matrix_def.h b/src/math/simplex/sparse_matrix_def.h index 512b4ec8c..a3170461b 100644 --- a/src/math/simplex/sparse_matrix_def.h +++ b/src/math/simplex/sparse_matrix_def.h @@ -18,8 +18,7 @@ Notes: --*/ -#ifndef SPARSE_MATRIX_DEF_H_ -#define SPARSE_MATRIX_DEF_H_ +#pragma once #include "math/simplex/sparse_matrix.h" #include "util/uint_set.h" @@ -582,4 +581,3 @@ namespace simplex { }; -#endif diff --git a/src/math/subpaving/subpaving.h b/src/math/subpaving/subpaving.h index 541f7ea7a..96d05f4de 100644 --- a/src/math/subpaving/subpaving.h +++ b/src/math/subpaving/subpaving.h @@ -22,8 +22,7 @@ Author: Revision History: --*/ -#ifndef SUBPAVING_H_ -#define SUBPAVING_H_ +#pragma once #include "util/mpq.h" #include "math/subpaving/subpaving_types.h" @@ -120,4 +119,3 @@ context * mk_mpfx_context(reslimit& lim, mpfx_manager & m, unsynch_mpq_manager & }; -#endif diff --git a/src/math/subpaving/subpaving_hwf.h b/src/math/subpaving/subpaving_hwf.h index 52594e050..f2378a73a 100644 --- a/src/math/subpaving/subpaving_hwf.h +++ b/src/math/subpaving/subpaving_hwf.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SUBPAVING_HWF_H_ -#define SUBPAVING_HWF_H_ +#pragma once #include "math/subpaving/subpaving_t.h" #include "util/f2n.h" @@ -45,4 +44,3 @@ public: }; -#endif diff --git a/src/math/subpaving/subpaving_mpf.h b/src/math/subpaving/subpaving_mpf.h index 8e0d4cfc7..213c3c94b 100644 --- a/src/math/subpaving/subpaving_mpf.h +++ b/src/math/subpaving/subpaving_mpf.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SUBPAVING_MPF_H_ -#define SUBPAVING_MPF_H_ +#pragma once #include "math/subpaving/subpaving_t.h" #include "util/mpf.h" @@ -46,4 +45,3 @@ public: }; -#endif diff --git a/src/math/subpaving/subpaving_mpff.h b/src/math/subpaving/subpaving_mpff.h index 8e5c7f3ea..763195cb9 100644 --- a/src/math/subpaving/subpaving_mpff.h +++ b/src/math/subpaving/subpaving_mpff.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SUBPAVING_MPFF_H_ -#define SUBPAVING_MPFF_H_ +#pragma once #include "math/subpaving/subpaving_t.h" #include "util/mpff.h" @@ -42,4 +41,3 @@ typedef context_t context_mpff; }; -#endif diff --git a/src/math/subpaving/subpaving_mpfx.h b/src/math/subpaving/subpaving_mpfx.h index 5802b1abf..9613aa124 100644 --- a/src/math/subpaving/subpaving_mpfx.h +++ b/src/math/subpaving/subpaving_mpfx.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SUBPAVING_MPFX_H_ -#define SUBPAVING_MPFX_H_ +#pragma once #include "math/subpaving/subpaving_t.h" #include "util/mpfx.h" @@ -42,4 +41,3 @@ typedef context_t context_mpfx; }; -#endif diff --git a/src/math/subpaving/subpaving_mpq.h b/src/math/subpaving/subpaving_mpq.h index b08eb9ccd..441fbe066 100644 --- a/src/math/subpaving/subpaving_mpq.h +++ b/src/math/subpaving/subpaving_mpq.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SUBPAVING_MPQ_H_ -#define SUBPAVING_MPQ_H_ +#pragma once #include "math/subpaving/subpaving_t.h" #include "util/mpq.h" @@ -40,4 +39,3 @@ typedef context_t context_mpq; }; -#endif diff --git a/src/math/subpaving/subpaving_t.h b/src/math/subpaving/subpaving_t.h index 798dd22ca..79abf0cc7 100644 --- a/src/math/subpaving/subpaving_t.h +++ b/src/math/subpaving/subpaving_t.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SUBPAVING_T_H_ -#define SUBPAVING_T_H_ +#pragma once #include #include "util/tptr.h" @@ -848,4 +847,3 @@ public: }; -#endif diff --git a/src/math/subpaving/tactic/expr2subpaving.h b/src/math/subpaving/tactic/expr2subpaving.h index 32caf49a9..10c75a51b 100644 --- a/src/math/subpaving/tactic/expr2subpaving.h +++ b/src/math/subpaving/tactic/expr2subpaving.h @@ -17,8 +17,7 @@ Author: Notes: --*/ -#ifndef EXPR2SUBPAVING_H_ -#define EXPR2SUBPAVING_H_ +#pragma once #include "ast/ast.h" #include "math/subpaving/subpaving.h" @@ -50,4 +49,3 @@ public: }; -#endif diff --git a/src/math/subpaving/tactic/subpaving_tactic.h b/src/math/subpaving/tactic/subpaving_tactic.h index 208f762de..9ddddbe6d 100644 --- a/src/math/subpaving/tactic/subpaving_tactic.h +++ b/src/math/subpaving/tactic/subpaving_tactic.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SUBPAVING_TACTIC_H_ -#define SUBPAVING_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -28,4 +27,3 @@ tactic * mk_subpaving_tactic(ast_manager & m, params_ref const & p = params_ref( ADD_TACTIC("subpaving", "tactic for testing subpaving module.", "mk_subpaving_tactic(m, p)") */ -#endif diff --git a/src/model/array_factory.h b/src/model/array_factory.h index 2f9bccb69..a213850f2 100644 --- a/src/model/array_factory.h +++ b/src/model/array_factory.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef ARRAY_FACTORY_H_ -#define ARRAY_FACTORY_H_ +#pragma once #include "model/struct_factory.h" @@ -41,5 +40,4 @@ public: expr * get_fresh_value(sort * s) override; }; -#endif /* ARRAY_FACTORY_H_ */ diff --git a/src/model/datatype_factory.h b/src/model/datatype_factory.h index b8463a706..8ee4170e3 100644 --- a/src/model/datatype_factory.h +++ b/src/model/datatype_factory.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DATATYPE_FACTORY_H_ -#define DATATYPE_FACTORY_H_ +#pragma once #include "model/struct_factory.h" #include "ast/datatype_decl_plugin.h" @@ -38,5 +37,4 @@ public: expr * get_fresh_value(sort * s) override; }; -#endif /* DATATYPE_FACTORY_H_ */ diff --git a/src/model/func_interp.h b/src/model/func_interp.h index c2743a3a8..2eec81168 100644 --- a/src/model/func_interp.h +++ b/src/model/func_interp.h @@ -27,8 +27,7 @@ Author: Revision History: --*/ -#ifndef FUNC_INTERP_H_ -#define FUNC_INTERP_H_ +#pragma once #include "ast/ast.h" #include "ast/ast_translation.h" @@ -125,4 +124,3 @@ private: bool is_identity() const; }; -#endif diff --git a/src/model/model.h b/src/model/model.h index efe486bbb..61c5f6eba 100644 --- a/src/model/model.h +++ b/src/model/model.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef MODEL_H_ -#define MODEL_H_ +#pragma once #include "util/ref.h" #include "util/vector.h" @@ -127,4 +126,3 @@ public: }; -#endif /* MODEL_H_ */ diff --git a/src/model/model2expr.h b/src/model/model2expr.h index d55e31bba..19299f456 100644 --- a/src/model/model2expr.h +++ b/src/model/model2expr.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef MODEL2EXPR_H_ -#define MODEL2EXPR_H_ +#pragma once #include "model/model.h" @@ -41,5 +40,4 @@ public: }; -#endif /* MODEL2EXPR_H_ */ diff --git a/src/model/model_core.h b/src/model/model_core.h index 4d2c8efda..5b451dbb8 100644 --- a/src/model/model_core.h +++ b/src/model/model_core.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef MODEL_CORE_H_ -#define MODEL_CORE_H_ +#pragma once #include "ast/ast.h" #include "util/obj_hashtable.h" @@ -95,4 +94,3 @@ public: std::ostream& operator<<(std::ostream& out, model_core const& m); -#endif diff --git a/src/model/model_evaluator.h b/src/model/model_evaluator.h index e57e1f368..8efd50688 100644 --- a/src/model/model_evaluator.h +++ b/src/model/model_evaluator.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef MODEL_EVALUATOR_H_ -#define MODEL_EVALUATOR_H_ +#pragma once #include "ast/ast.h" #include "ast/rewriter/rewriter_types.h" @@ -74,4 +73,3 @@ public: unsigned get_num_steps() const; }; -#endif diff --git a/src/model/model_implicant.h b/src/model/model_implicant.h index c34a4b810..85684f9bc 100644 --- a/src/model/model_implicant.h +++ b/src/model/model_implicant.h @@ -17,8 +17,7 @@ Revision History: --*/ -#ifndef MODEL_IMPLICANT_H_ -#define MODEL_IMPLICANT_H_ +#pragma once #include "ast/ast.h" #include "ast/ast_pp.h" @@ -115,4 +114,3 @@ public: }; -#endif diff --git a/src/model/model_pp.h b/src/model/model_pp.h index 1b18d9a88..e71cab05c 100644 --- a/src/model/model_pp.h +++ b/src/model/model_pp.h @@ -17,12 +17,10 @@ Revision History: --*/ -#ifndef MODEL_PP_H_ -#define MODEL_PP_H_ +#pragma once #include class model_core; void model_pp(std::ostream & out, model_core const & m); -#endif diff --git a/src/model/model_smt2_pp.h b/src/model/model_smt2_pp.h index c43e26ca6..154ea260f 100644 --- a/src/model/model_smt2_pp.h +++ b/src/model/model_smt2_pp.h @@ -17,8 +17,7 @@ Revision History: --*/ -#ifndef MODEL_SMT2_PP_H_ -#define MODEL_SMT2_PP_H_ +#pragma once #include "ast/ast_printer.h" #include "model/model_core.h" @@ -26,4 +25,3 @@ Revision History: void model_smt2_pp(std::ostream & out, ast_printer_context & ctx, model_core const & m, unsigned indent); void model_smt2_pp(std::ostream & out, ast_manager & m, model_core const & md, unsigned indent); -#endif diff --git a/src/model/model_v2_pp.h b/src/model/model_v2_pp.h index 6715d055a..c61175544 100644 --- a/src/model/model_v2_pp.h +++ b/src/model/model_v2_pp.h @@ -15,12 +15,10 @@ Author: Revision History: --*/ -#ifndef MODEL_V2_PP_H_ -#define MODEL_V2_PP_H_ +#pragma once #include class model_core; void model_v2_pp(std::ostream & out, model_core const & m, bool partial = false); -#endif diff --git a/src/model/numeral_factory.h b/src/model/numeral_factory.h index 6e30af65f..6d805dd90 100644 --- a/src/model/numeral_factory.h +++ b/src/model/numeral_factory.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef NUMERAL_FACTORY_H_ -#define NUMERAL_FACTORY_H_ +#pragma once #include "ast/arith_decl_plugin.h" #include "ast/bv_decl_plugin.h" @@ -53,5 +52,4 @@ public: app * mk_num_value(rational const & val, unsigned bv_size); }; -#endif /* NUMERAL_FACTORY_H_ */ diff --git a/src/model/seq_factory.h b/src/model/seq_factory.h index 1ddae7d87..96c22ed29 100644 --- a/src/model/seq_factory.h +++ b/src/model/seq_factory.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SEQ_FACTORY_H_ -#define SEQ_FACTORY_H_ +#pragma once #include "ast/seq_decl_plugin.h" #include "model/model_core.h" @@ -146,4 +145,3 @@ private: } }; -#endif diff --git a/src/model/struct_factory.h b/src/model/struct_factory.h index 5776108f8..f8235a89b 100644 --- a/src/model/struct_factory.h +++ b/src/model/struct_factory.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef STRUCT_FACTORY_H_ -#define STRUCT_FACTORY_H_ +#pragma once #include "model/value_factory.h" #include "util/obj_hashtable.h" @@ -50,5 +49,4 @@ public: void register_value(expr * array_value) override; }; -#endif /* STRUCT_FACTORY_H_ */ diff --git a/src/model/value_factory.h b/src/model/value_factory.h index 77452d424..76f9b71ac 100644 --- a/src/model/value_factory.h +++ b/src/model/value_factory.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef VALUE_FACTORY_H_ -#define VALUE_FACTORY_H_ +#pragma once #include "ast/ast.h" #include "util/obj_hashtable.h" @@ -266,5 +265,4 @@ public: void register_value(expr * n) override; }; -#endif /* VALUE_FACTORY_H_ */ diff --git a/src/muz/base/bind_variables.h b/src/muz/base/bind_variables.h index 693010132..e231b7039 100644 --- a/src/muz/base/bind_variables.h +++ b/src/muz/base/bind_variables.h @@ -18,8 +18,7 @@ Notes: --*/ -#ifndef BIND_VARIABLES_H_ -#define BIND_VARIABLES_H_ +#pragma once #include "ast/ast.h" @@ -48,4 +47,3 @@ public: void add_var(app* v); }; -#endif /* BIND_VARIABLES_H_ */ diff --git a/src/muz/base/dl_context.h b/src/muz/base/dl_context.h index 8edf66945..1425b43d9 100644 --- a/src/muz/base/dl_context.h +++ b/src/muz/base/dl_context.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_CONTEXT_H_ -#define DL_CONTEXT_H_ +#pragma once #include "ast/arith_decl_plugin.h" #include "util/map.h" @@ -625,4 +624,3 @@ namespace datalog { }; -#endif /* DL_CONTEXT_H_ */ diff --git a/src/muz/base/dl_costs.h b/src/muz/base/dl_costs.h index 6a5b5e5d6..333dac996 100644 --- a/src/muz/base/dl_costs.h +++ b/src/muz/base/dl_costs.h @@ -17,8 +17,7 @@ Revision History: --*/ -#ifndef DL_COSTS_H_ -#define DL_COSTS_H_ +#pragma once #include @@ -111,5 +110,4 @@ namespace datalog { }; }; -#endif /* DL_COSTS_H_ */ diff --git a/src/muz/base/dl_engine_base.h b/src/muz/base/dl_engine_base.h index 0caed35e5..21e2272fb 100644 --- a/src/muz/base/dl_engine_base.h +++ b/src/muz/base/dl_engine_base.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_ENGINE_BASE_H_ -#define DL_ENGINE_BASE_H_ +#pragma once #include "model/model.h" #include "muz/base/dl_util.h" @@ -128,4 +127,3 @@ namespace datalog { }; } -#endif diff --git a/src/muz/base/dl_rule.h b/src/muz/base/dl_rule.h index 8371d4871..c3768899a 100644 --- a/src/muz/base/dl_rule.h +++ b/src/muz/base/dl_rule.h @@ -17,8 +17,7 @@ Revision History: --*/ -#ifndef DL_RULE_H_ -#define DL_RULE_H_ +#pragma once #include "ast/ast.h" #include "muz/base/dl_costs.h" @@ -390,5 +389,4 @@ namespace datalog { }; -#endif /* DL_RULE_H_ */ diff --git a/src/muz/base/dl_rule_set.h b/src/muz/base/dl_rule_set.h index f941ceabc..e8fdafe0f 100644 --- a/src/muz/base/dl_rule_set.h +++ b/src/muz/base/dl_rule_set.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_RULE_SET_H_ -#define DL_RULE_SET_H_ +#pragma once #include "util/obj_hashtable.h" #include "muz/base/dl_rule.h" @@ -284,4 +283,3 @@ namespace datalog { }; -#endif /* DL_RULE_SET_H_ */ diff --git a/src/muz/base/dl_rule_subsumption_index.h b/src/muz/base/dl_rule_subsumption_index.h index 2d09200f1..02f373377 100644 --- a/src/muz/base/dl_rule_subsumption_index.h +++ b/src/muz/base/dl_rule_subsumption_index.h @@ -18,8 +18,7 @@ Revision History: --*/ -#ifndef DL_RULE_SUBSUMPTION_INDEX_H_ -#define DL_RULE_SUBSUMPTION_INDEX_H_ +#pragma once #include "muz/base/dl_context.h" @@ -61,5 +60,4 @@ namespace datalog { }; -#endif /* DL_RULE_SUBSUMPTION_INDEX_H_ */ diff --git a/src/muz/base/dl_rule_transformer.h b/src/muz/base/dl_rule_transformer.h index 331e76e6a..59eb24f55 100644 --- a/src/muz/base/dl_rule_transformer.h +++ b/src/muz/base/dl_rule_transformer.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_RULE_TRANSFORMER_H_ -#define DL_RULE_TRANSFORMER_H_ +#pragma once #include "util/map.h" #include "util/vector.h" @@ -113,5 +112,4 @@ namespace datalog { }; }; -#endif /* DL_RULE_TRANSFORMER_H_ */ diff --git a/src/muz/base/dl_util.h b/src/muz/base/dl_util.h index b7690b380..ce5b37a29 100644 --- a/src/muz/base/dl_util.h +++ b/src/muz/base/dl_util.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_UTIL_H_ -#define DL_UTIL_H_ +#pragma once #include #include "ast/ast.h" @@ -615,5 +614,4 @@ namespace datalog { bool read_uint64(const char * & s, uint64_t & res); }; -#endif /* DL_UTIL_H_ */ diff --git a/src/muz/base/hnf.h b/src/muz/base/hnf.h index 70f803975..45b651b56 100644 --- a/src/muz/base/hnf.h +++ b/src/muz/base/hnf.h @@ -22,8 +22,7 @@ Copyright (c) 2015 Microsoft Corporation --*/ -#ifndef HNF_H_ -#define HNF_H_ +#pragma once #include "ast/ast.h" #include "util/params.h" @@ -48,4 +47,3 @@ class hnf { func_decl_ref_vector const& get_fresh_predicates(); }; -#endif /* HNF_H_ */ diff --git a/src/muz/base/rule_properties.h b/src/muz/base/rule_properties.h index 42d1f349b..863635960 100644 --- a/src/muz/base/rule_properties.h +++ b/src/muz/base/rule_properties.h @@ -18,8 +18,7 @@ Notes: --*/ -#ifndef RULE_PROPERTIES_H_ -#define RULE_PROPERTIES_H_ +#pragma once #include "ast/ast.h" #include "ast/datatype_decl_plugin.h" @@ -76,4 +75,3 @@ namespace datalog { }; } -#endif /* RULE_PROPERTIES_H_ */ diff --git a/src/muz/bmc/dl_bmc_engine.h b/src/muz/bmc/dl_bmc_engine.h index 9eee65ad9..90c4ab862 100644 --- a/src/muz/bmc/dl_bmc_engine.h +++ b/src/muz/bmc/dl_bmc_engine.h @@ -17,8 +17,7 @@ Revision History: --*/ -#ifndef DL_BMC_ENGINE_H_ -#define DL_BMC_ENGINE_H_ +#pragma once #include "util/params.h" #include "util/statistics.h" @@ -74,4 +73,3 @@ namespace datalog { -#endif diff --git a/src/muz/clp/clp_context.h b/src/muz/clp/clp_context.h index 378fdd473..306baf3bd 100644 --- a/src/muz/clp/clp_context.h +++ b/src/muz/clp/clp_context.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef CLP_CONTEXT_H_ -#define CLP_CONTEXT_H_ +#pragma once #include "ast/ast.h" #include "util/lbool.h" @@ -41,4 +40,3 @@ namespace datalog { }; }; -#endif diff --git a/src/muz/dataflow/dataflow.h b/src/muz/dataflow/dataflow.h index b906e6c50..b4f2698ac 100644 --- a/src/muz/dataflow/dataflow.h +++ b/src/muz/dataflow/dataflow.h @@ -15,8 +15,7 @@ Author: --*/ -#ifndef DATAFLOW_H_ -#define DATAFLOW_H_ +#pragma once #include "muz/base/dl_rule.h" #include "muz/base/dl_rule_set.h" @@ -251,4 +250,3 @@ namespace datalog { }; } -#endif diff --git a/src/muz/dataflow/reachability.h b/src/muz/dataflow/reachability.h index da593a794..4cae0edc0 100644 --- a/src/muz/dataflow/reachability.h +++ b/src/muz/dataflow/reachability.h @@ -14,8 +14,7 @@ Author: --*/ -#ifndef REACHABILITY_H_ -#define REACHABILITY_H_ +#pragma once #include "muz/dataflow/dataflow.h" @@ -79,4 +78,3 @@ namespace datalog { typedef dataflow_engine reachability; } -#endif diff --git a/src/muz/ddnf/ddnf.h b/src/muz/ddnf/ddnf.h index 14c9f3cc7..6a93ef230 100644 --- a/src/muz/ddnf/ddnf.h +++ b/src/muz/ddnf/ddnf.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DDNF_H_ -#define DDNF_H_ +#pragma once #include "ast/ast.h" #include "util/lbool.h" @@ -68,4 +67,3 @@ namespace datalog { }; }; -#endif diff --git a/src/muz/fp/datalog_parser.h b/src/muz/fp/datalog_parser.h index c52fc6589..2369f1d84 100644 --- a/src/muz/fp/datalog_parser.h +++ b/src/muz/fp/datalog_parser.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DATALOG_PARSER_H_ -#define DATALOG_PARSER_H_ +#pragma once #include "ast/ast.h" #include "muz/base/dl_context.h" @@ -45,4 +44,3 @@ namespace datalog { }; -#endif diff --git a/src/muz/fp/dl_cmds.h b/src/muz/fp/dl_cmds.h index 326ff2413..da57bd5b7 100644 --- a/src/muz/fp/dl_cmds.h +++ b/src/muz/fp/dl_cmds.h @@ -15,8 +15,7 @@ Author: Notes: --*/ -#ifndef DL_CMDS_H_ -#define DL_CMDS_H_ +#pragma once #include "ast/ast.h" @@ -34,4 +33,3 @@ void install_dl_cmds(cmd_context & ctx); void install_dl_collect_cmds(dl_collected_cmds& collected_cmds, cmd_context& ctx); -#endif diff --git a/src/muz/fp/dl_register_engine.h b/src/muz/fp/dl_register_engine.h index e401c141a..d86ddb34e 100644 --- a/src/muz/fp/dl_register_engine.h +++ b/src/muz/fp/dl_register_engine.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_REGISTER_ENGINE_H_ -#define DL_REGISTER_ENGINE_H_ +#pragma once #include "muz/base/dl_context.h" @@ -33,4 +32,3 @@ namespace datalog { } -#endif diff --git a/src/muz/fp/horn_tactic.h b/src/muz/fp/horn_tactic.h index b48585ee2..e4b21ffb7 100644 --- a/src/muz/fp/horn_tactic.h +++ b/src/muz/fp/horn_tactic.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef HORN_TACTIC_H_ -#define HORN_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -32,4 +31,3 @@ tactic * mk_horn_simplify_tactic(ast_manager & m, params_ref const & p = params_ /* ADD_TACTIC("horn-simplify", "simplify horn clauses.", "mk_horn_simplify_tactic(m, p)") */ -#endif diff --git a/src/muz/rel/aig_exporter.h b/src/muz/rel/aig_exporter.h index aac139adb..c6dff3c86 100644 --- a/src/muz/rel/aig_exporter.h +++ b/src/muz/rel/aig_exporter.h @@ -11,8 +11,7 @@ Abstract: --*/ -#ifndef AIG_EXPORTER_H_ -#define AIG_EXPORTER_H_ +#pragma once #include "tactic/aig/aig.h" #include "muz/base/dl_rule_set.h" @@ -65,4 +64,3 @@ namespace datalog { }; } -#endif diff --git a/src/muz/rel/check_relation.h b/src/muz/rel/check_relation.h index 8fbce4184..b0b4a8acc 100644 --- a/src/muz/rel/check_relation.h +++ b/src/muz/rel/check_relation.h @@ -19,8 +19,7 @@ Revision History: --*/ -#ifndef CHECK_RELATION_H_ -#define CHECK_RELATION_H_ +#pragma once #include "muz/rel/doc.h" #include "muz/rel/dl_base.h" @@ -168,5 +167,4 @@ namespace datalog { }; }; -#endif /* CHECK_RELATION_H_ */ diff --git a/src/muz/rel/dl_base.h b/src/muz/rel/dl_base.h index 22bff5aff..cf5b5c1e3 100644 --- a/src/muz/rel/dl_base.h +++ b/src/muz/rel/dl_base.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_BASE_H_ -#define DL_BASE_H_ +#pragma once #define DL_LEAK_HUNTING 0 @@ -1272,4 +1271,3 @@ namespace datalog { }; -#endif /* DL_BASE_H_ */ diff --git a/src/muz/rel/dl_bound_relation.h b/src/muz/rel/dl_bound_relation.h index 6c613a472..7c6b1225b 100644 --- a/src/muz/rel/dl_bound_relation.h +++ b/src/muz/rel/dl_bound_relation.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_BOUND_RELATION_H_ -#define DL_BOUND_RELATION_H_ +#pragma once #include "muz/base/dl_context.h" #include "muz/rel/dl_relation_manager.h" @@ -174,5 +173,4 @@ namespace datalog { }; -#endif diff --git a/src/muz/rel/dl_check_table.h b/src/muz/rel/dl_check_table.h index 7bd4cf12d..144d0d6fc 100644 --- a/src/muz/rel/dl_check_table.h +++ b/src/muz/rel/dl_check_table.h @@ -18,8 +18,7 @@ Revision History: --*/ -#ifndef DL_CHECK_TABLE_H_ -#define DL_CHECK_TABLE_H_ +#pragma once #include "muz/rel/dl_base.h" #include "ast/dl_decl_plugin.h" @@ -132,4 +131,3 @@ namespace datalog { }; -#endif /* DL_CHECK_TABLE_H_ */ diff --git a/src/muz/rel/dl_compiler.h b/src/muz/rel/dl_compiler.h index 6bc2a819f..601b01eaa 100644 --- a/src/muz/rel/dl_compiler.h +++ b/src/muz/rel/dl_compiler.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_COMPILER_H_ -#define DL_COMPILER_H_ +#pragma once #include #include @@ -284,5 +283,4 @@ namespace datalog { }; -#endif /* DL_COMPILER_H_ */ diff --git a/src/muz/rel/dl_external_relation.h b/src/muz/rel/dl_external_relation.h index 485e03618..9d6c5c675 100644 --- a/src/muz/rel/dl_external_relation.h +++ b/src/muz/rel/dl_external_relation.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_EXTERNAL_RELATION_H_ -#define DL_EXTERNAL_RELATION_H_ +#pragma once #include "muz/rel/dl_base.h" @@ -151,4 +150,3 @@ namespace datalog { }; -#endif diff --git a/src/muz/rel/dl_finite_product_relation.h b/src/muz/rel/dl_finite_product_relation.h index f59f923cf..f1387437b 100644 --- a/src/muz/rel/dl_finite_product_relation.h +++ b/src/muz/rel/dl_finite_product_relation.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_FINITE_PRODUCT_RELATION_H_ -#define DL_FINITE_PRODUCT_RELATION_H_ +#pragma once #include "muz/rel/dl_base.h" @@ -362,5 +361,4 @@ namespace datalog { }; -#endif /* DL_FINITE_PRODUCT_RELATION_H_ */ diff --git a/src/muz/rel/dl_instruction.h b/src/muz/rel/dl_instruction.h index 858ac4924..8e56da545 100644 --- a/src/muz/rel/dl_instruction.h +++ b/src/muz/rel/dl_instruction.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_INSTRUCTION_H_ -#define DL_INSTRUCTION_H_ +#pragma once #include #include @@ -367,5 +366,4 @@ namespace datalog { }; -#endif /* DL_INSTRUCTION_H_ */ diff --git a/src/muz/rel/dl_interval_relation.h b/src/muz/rel/dl_interval_relation.h index 896bb30ab..0bddec4cf 100644 --- a/src/muz/rel/dl_interval_relation.h +++ b/src/muz/rel/dl_interval_relation.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_INTERVAL_RELATION_H_ -#define DL_INTERVAL_RELATION_H_ +#pragma once #include "ast/arith_decl_plugin.h" @@ -137,5 +136,4 @@ namespace datalog { }; -#endif diff --git a/src/muz/rel/dl_lazy_table.h b/src/muz/rel/dl_lazy_table.h index 7e5991a7a..f9a846c3a 100644 --- a/src/muz/rel/dl_lazy_table.h +++ b/src/muz/rel/dl_lazy_table.h @@ -18,8 +18,7 @@ Revision History: --*/ -#ifndef DL_LAZY_TABLE_H_ -#define DL_LAZY_TABLE_H_ +#pragma once #include "muz/rel/dl_base.h" #include "util/ref.h" @@ -300,4 +299,3 @@ namespace datalog { } -#endif diff --git a/src/muz/rel/dl_mk_explanations.h b/src/muz/rel/dl_mk_explanations.h index 47f5f2bed..5491918de 100644 --- a/src/muz/rel/dl_mk_explanations.h +++ b/src/muz/rel/dl_mk_explanations.h @@ -17,8 +17,7 @@ Revision History: --*/ -#ifndef DL_MK_EXPLANATIONS_H_ -#define DL_MK_EXPLANATIONS_H_ +#pragma once #include "muz/base/dl_context.h" #include "muz/base/dl_rule_transformer.h" @@ -84,5 +83,4 @@ namespace datalog { }; }; -#endif /* DL_MK_EXPLANATIONS_H_ */ diff --git a/src/muz/rel/dl_mk_similarity_compressor.h b/src/muz/rel/dl_mk_similarity_compressor.h index da56e9eca..394e1a9e6 100644 --- a/src/muz/rel/dl_mk_similarity_compressor.h +++ b/src/muz/rel/dl_mk_similarity_compressor.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_MK_SIMILARITY_COMPRESSOR_H_ -#define DL_MK_SIMILARITY_COMPRESSOR_H_ +#pragma once #include @@ -74,5 +73,4 @@ namespace datalog { }; -#endif /* DL_MK_SIMILARITY_COMPRESSOR_H_ */ diff --git a/src/muz/rel/dl_mk_simple_joins.h b/src/muz/rel/dl_mk_simple_joins.h index 8eb6bd0c2..6ec66159c 100644 --- a/src/muz/rel/dl_mk_simple_joins.h +++ b/src/muz/rel/dl_mk_simple_joins.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_MK_SIMPLE_JOINS_H_ -#define DL_MK_SIMPLE_JOINS_H_ +#pragma once #include "util/map.h" #include "util/obj_pair_hashtable.h" @@ -59,5 +58,4 @@ namespace datalog { }; -#endif /* DL_MK_SIMPLE_JOINS_H_ */ diff --git a/src/muz/rel/dl_product_relation.h b/src/muz/rel/dl_product_relation.h index a872bc969..d67e817be 100644 --- a/src/muz/rel/dl_product_relation.h +++ b/src/muz/rel/dl_product_relation.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_PRODUCT_RELATION_H_ -#define DL_PRODUCT_RELATION_H_ +#pragma once #include "muz/base/dl_context.h" @@ -187,5 +186,4 @@ namespace datalog { }; -#endif diff --git a/src/muz/rel/dl_relation_manager.h b/src/muz/rel/dl_relation_manager.h index 98e422259..f90d00ae7 100644 --- a/src/muz/rel/dl_relation_manager.h +++ b/src/muz/rel/dl_relation_manager.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_RELATION_MANAGER_H_ -#define DL_RELATION_MANAGER_H_ +#pragma once #include "util/map.h" @@ -702,5 +701,4 @@ namespace datalog { }; -#endif /* DL_RELATION_MANAGER_H_ */ diff --git a/src/muz/rel/dl_sieve_relation.h b/src/muz/rel/dl_sieve_relation.h index cc2038767..336c5345f 100644 --- a/src/muz/rel/dl_sieve_relation.h +++ b/src/muz/rel/dl_sieve_relation.h @@ -17,8 +17,7 @@ Revision History: --*/ -#ifndef DL_SIEVE_RELATION_H_ -#define DL_SIEVE_RELATION_H_ +#pragma once #include "muz/base/dl_context.h" #include "muz/rel/dl_relation_manager.h" @@ -193,5 +192,4 @@ namespace datalog { }; -#endif /* DL_SIEVE_RELATION_H_ */ diff --git a/src/muz/rel/dl_sparse_table.h b/src/muz/rel/dl_sparse_table.h index ebeb86fa6..b68900a80 100644 --- a/src/muz/rel/dl_sparse_table.h +++ b/src/muz/rel/dl_sparse_table.h @@ -17,8 +17,7 @@ Revision History: --*/ -#ifndef DL_SPARSE_TABLE_H_ -#define DL_SPARSE_TABLE_H_ +#pragma once #include #include @@ -498,4 +497,3 @@ namespace datalog { }; -#endif /* DL_SPARSE_TABLE_H_ */ diff --git a/src/muz/rel/dl_table.h b/src/muz/rel/dl_table.h index dad4ed079..967c6e25b 100644 --- a/src/muz/rel/dl_table.h +++ b/src/muz/rel/dl_table.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_TABLE_H_ -#define DL_TABLE_H_ +#pragma once #include #include @@ -148,5 +147,4 @@ namespace datalog { }; -#endif /* DL_TABLE_H_ */ diff --git a/src/muz/rel/dl_table_plugin.h b/src/muz/rel/dl_table_plugin.h index 9becc1773..51e54d3ea 100644 --- a/src/muz/rel/dl_table_plugin.h +++ b/src/muz/rel/dl_table_plugin.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_TABLE_PLUGIN_H_ -#define DL_TABLE_PLUGIN_H_ +#pragma once #include "ast/ast.h" #include "util/map.h" @@ -189,5 +188,4 @@ namespace datalog { }; -#endif /* DL_TABLE_PLUGIN_H_ */ diff --git a/src/muz/rel/dl_table_relation.h b/src/muz/rel/dl_table_relation.h index 8ebb6d44d..bb6368d25 100644 --- a/src/muz/rel/dl_table_relation.h +++ b/src/muz/rel/dl_table_relation.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_TABLE_RELATION_H_ -#define DL_TABLE_RELATION_H_ +#pragma once #include "muz/rel/dl_base.h" @@ -129,5 +128,4 @@ namespace datalog { }; -#endif /* DL_TABLE_RELATION_H_ */ diff --git a/src/muz/rel/dl_vector_relation.h b/src/muz/rel/dl_vector_relation.h index fe1d603fe..ad9204b41 100644 --- a/src/muz/rel/dl_vector_relation.h +++ b/src/muz/rel/dl_vector_relation.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_VECTOR_RELATION_H_ -#define DL_VECTOR_RELATION_H_ +#pragma once #include "ast/ast_pp.h" #include "muz/base/dl_context.h" @@ -400,5 +399,4 @@ namespace datalog { }; -#endif diff --git a/src/muz/rel/doc.h b/src/muz/rel/doc.h index 37b747117..10120ce8b 100644 --- a/src/muz/rel/doc.h +++ b/src/muz/rel/doc.h @@ -20,8 +20,7 @@ Revision History: --*/ -#ifndef DOC_H_ -#define DOC_H_ +#pragma once #include "muz/rel/tbv.h" #include "util/union_find.h" @@ -389,5 +388,4 @@ public: operator bool() const { return d != nullptr; } }; -#endif /* DOC_H_ */ diff --git a/src/muz/rel/karr_relation.h b/src/muz/rel/karr_relation.h index e8637f2bd..33ce1ef98 100644 --- a/src/muz/rel/karr_relation.h +++ b/src/muz/rel/karr_relation.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef KARR_RELATION_H_ -#define KARR_RELATION_H_ +#pragma once #include "muz/transforms/dl_mk_karr_invariants.h" #include "muz/rel/dl_relation_manager.h" @@ -83,5 +82,4 @@ namespace datalog { }; -#endif /* DL_MK_KARR_INVARIANTS_H_ */ diff --git a/src/muz/rel/rel_context.h b/src/muz/rel/rel_context.h index be8638ff6..8d48d2d37 100644 --- a/src/muz/rel/rel_context.h +++ b/src/muz/rel/rel_context.h @@ -18,8 +18,7 @@ Revision History: Extracted from dl_context --*/ -#ifndef REL_CONTEXT_H_ -#define REL_CONTEXT_H_ +#pragma once #include "ast/ast.h" #include "muz/rel/dl_relation_manager.h" #include "muz/rel/dl_instruction.h" @@ -128,4 +127,3 @@ namespace datalog { }; }; -#endif /* REL_CONTEXT_H_ */ diff --git a/src/muz/rel/tbv.h b/src/muz/rel/tbv.h index 346208a3f..5369969f4 100644 --- a/src/muz/rel/tbv.h +++ b/src/muz/rel/tbv.h @@ -18,8 +18,7 @@ Revision History: --*/ -#ifndef TBV_H_ -#define TBV_H_ +#pragma once #include "util/fixed_bit_vector.h" #include "util/rational.h" @@ -147,4 +146,3 @@ public: }; -#endif /* TBV_H_ */ diff --git a/src/muz/rel/udoc_relation.h b/src/muz/rel/udoc_relation.h index 01b2e8b43..d16760e18 100644 --- a/src/muz/rel/udoc_relation.h +++ b/src/muz/rel/udoc_relation.h @@ -19,8 +19,7 @@ Revision History: --*/ -#ifndef UDOC_RELATION_H_ -#define UDOC_RELATION_H_ +#pragma once #include "muz/rel/doc.h" #include "muz/rel/dl_base.h" @@ -149,5 +148,4 @@ namespace datalog { }; }; -#endif /* UDOC_RELATION_H_ */ diff --git a/src/muz/spacer/spacer_antiunify.h b/src/muz/spacer/spacer_antiunify.h index af7f6f825..162abad33 100644 --- a/src/muz/spacer/spacer_antiunify.h +++ b/src/muz/spacer/spacer_antiunify.h @@ -18,8 +18,7 @@ Revision History: --*/ -#ifndef _SPACER_ANTIUNIFY_H_ -#define _SPACER_ANTIUNIFY_H_ +#pragma once #include "ast/ast.h" #include "ast/substitution/substitution.h" @@ -71,4 +70,3 @@ private: /// Returns the created pattern and the corresponding substitution. void mk_num_pat(expr *e, expr_ref &result, app_ref_vector &subs); } -#endif diff --git a/src/muz/spacer/spacer_callback.h b/src/muz/spacer/spacer_callback.h index 35805c7bc..6e6f82e59 100644 --- a/src/muz/spacer/spacer_callback.h +++ b/src/muz/spacer/spacer_callback.h @@ -17,8 +17,7 @@ Notes: --*/ -#ifndef _SPACER_CALLBACK_H_ -#define _SPACER_CALLBACK_H_ +#pragma once #include "muz/spacer/spacer_context.h" #include "muz/base/dl_engine_base.h" @@ -62,4 +61,3 @@ namespace spacer { } -#endif //_SPACER_CALLBACK_H_ diff --git a/src/muz/spacer/spacer_context.h b/src/muz/spacer/spacer_context.h index 332cab453..89a183dfb 100644 --- a/src/muz/spacer/spacer_context.h +++ b/src/muz/spacer/spacer_context.h @@ -20,8 +20,7 @@ Notes: --*/ -#ifndef _SPACER_CONTEXT_H_ -#define _SPACER_CONTEXT_H_ +#pragma once #include #include @@ -1152,4 +1151,3 @@ public: inline bool pred_transformer::use_native_mbp () {return ctx.use_native_mbp ();} } -#endif diff --git a/src/muz/spacer/spacer_dl_interface.h b/src/muz/spacer/spacer_dl_interface.h index 9fc60dcf0..5831285d0 100644 --- a/src/muz/spacer/spacer_dl_interface.h +++ b/src/muz/spacer/spacer_dl_interface.h @@ -16,8 +16,7 @@ Revision History: --*/ -#ifndef _SPACER_DL_INTERFACE_H_ -#define _SPACER_DL_INTERFACE_H_ +#pragma once #include "util/lbool.h" #include "muz/base/dl_rule.h" @@ -90,4 +89,3 @@ public: } -#endif diff --git a/src/muz/spacer/spacer_farkas_learner.h b/src/muz/spacer/spacer_farkas_learner.h index 0e696f4f1..699d6656a 100644 --- a/src/muz/spacer/spacer_farkas_learner.h +++ b/src/muz/spacer/spacer_farkas_learner.h @@ -17,8 +17,7 @@ Revision History: --*/ -#ifndef _SPACER_FARKAS_LEARNER_H_ -#define _SPACER_FARKAS_LEARNER_H_ +#pragma once #include "ast/ast.h" @@ -57,4 +56,3 @@ public: } -#endif diff --git a/src/muz/spacer/spacer_generalizers.h b/src/muz/spacer/spacer_generalizers.h index 82567b49d..daa9dfbf2 100644 --- a/src/muz/spacer/spacer_generalizers.h +++ b/src/muz/spacer/spacer_generalizers.h @@ -17,8 +17,7 @@ Revision History: --*/ -#ifndef _SPACER_GENERALIZERS_H_ -#define _SPACER_GENERALIZERS_H_ +#pragma once #include "ast/arith_decl_plugin.h" #include "muz/spacer/spacer_context.h" @@ -184,4 +183,3 @@ class limit_num_generalizer : public lemma_generalizer { }; } // namespace spacer -#endif diff --git a/src/muz/spacer/spacer_iuc_proof.h b/src/muz/spacer/spacer_iuc_proof.h index 538ab4ff2..126fb33d3 100644 --- a/src/muz/spacer/spacer_iuc_proof.h +++ b/src/muz/spacer/spacer_iuc_proof.h @@ -1,5 +1,4 @@ -#ifndef IUC_PROOF_H_ -#define IUC_PROOF_H_ +#pragma once #include #include "ast/ast.h" @@ -64,4 +63,3 @@ private: } -#endif /* IUC_PROOF_H_ */ diff --git a/src/muz/spacer/spacer_iuc_solver.h b/src/muz/spacer/spacer_iuc_solver.h index c3561a6d4..a153e6af6 100644 --- a/src/muz/spacer/spacer_iuc_solver.h +++ b/src/muz/spacer/spacer_iuc_solver.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef SPACER_IUC_SOLVER_H_ -#define SPACER_IUC_SOLVER_H_ +#pragma once #include"solver/solver.h" #include"ast/expr_substitution.h" @@ -180,4 +179,3 @@ public: }; }; } -#endif diff --git a/src/muz/spacer/spacer_json.h b/src/muz/spacer/spacer_json.h index 131e72678..1aa1dfae3 100644 --- a/src/muz/spacer/spacer_json.h +++ b/src/muz/spacer/spacer_json.h @@ -17,8 +17,7 @@ Notes: --*/ -#ifndef Z3_SPACER_JSON_H -#define Z3_SPACER_JSON_H +#pragma once #include #include @@ -58,4 +57,3 @@ public: } -#endif //Z3_SPACER_JSON_H diff --git a/src/muz/spacer/spacer_legacy_mev.h b/src/muz/spacer/spacer_legacy_mev.h index ff8f63d1f..9f4fc909e 100644 --- a/src/muz/spacer/spacer_legacy_mev.h +++ b/src/muz/spacer/spacer_legacy_mev.h @@ -3,8 +3,7 @@ Copyright (c) 2017 Arie Gurfinkel Deprecated implementation of model evaluator. To be removed. */ -#ifndef OLD_MEV_H -#define OLD_MEV_H +#pragma once #include "ast/ast.h" #include "ast/ast_pp.h" @@ -113,4 +112,3 @@ public: -#endif /* OLD_MEV_H */ diff --git a/src/muz/spacer/spacer_manager.h b/src/muz/spacer/spacer_manager.h index d592a30a8..a8b1d57b4 100644 --- a/src/muz/spacer/spacer_manager.h +++ b/src/muz/spacer/spacer_manager.h @@ -19,8 +19,7 @@ Revision History: --*/ -#ifndef _SPACER_MANAGER_H_ -#define _SPACER_MANAGER_H_ +#pragma once #include #include @@ -136,4 +135,3 @@ struct sk_lt_proc {bool operator()(const app* a1, const app* a2);}; } -#endif diff --git a/src/muz/spacer/spacer_matrix.h b/src/muz/spacer/spacer_matrix.h index a93a749ae..334433ad7 100644 --- a/src/muz/spacer/spacer_matrix.h +++ b/src/muz/spacer/spacer_matrix.h @@ -15,8 +15,7 @@ Revision History: --*/ -#ifndef _SPACER_MATRIX_H_ -#define _SPACER_MATRIX_H_ +#pragma once #include "util/rational.h" #include "util/vector.h" @@ -44,4 +43,3 @@ namespace spacer { }; } -#endif diff --git a/src/muz/spacer/spacer_mbc.h b/src/muz/spacer/spacer_mbc.h index 5dbf50f6d..5c61f2d7b 100644 --- a/src/muz/spacer/spacer_mbc.h +++ b/src/muz/spacer/spacer_mbc.h @@ -17,8 +17,7 @@ Revision History: --*/ -#ifndef _SPACER_MBC_H_ -#define _SPACER_MBC_H_ +#pragma once #include "ast/ast.h" #include "util/obj_hashtable.h" @@ -42,4 +41,3 @@ public: }; } -#endif diff --git a/src/muz/spacer/spacer_mev_array.h b/src/muz/spacer/spacer_mev_array.h index 078925865..c5ef6fb71 100644 --- a/src/muz/spacer/spacer_mev_array.h +++ b/src/muz/spacer/spacer_mev_array.h @@ -15,8 +15,7 @@ Author: Revision History: --*/ -#ifndef _SPACER_MEV_ARRAY_H_ -#define _SPACER_MEV_ARRAY_H_ +#pragma once #include"ast/ast.h" #include"ast/rewriter/rewriter_types.h" @@ -49,4 +48,3 @@ public: void eval(model& mdl, expr* e, expr_ref& r, bool model_completion = true); }; -#endif diff --git a/src/muz/spacer/spacer_pdr.h b/src/muz/spacer/spacer_pdr.h index 36abb0bc9..124bf57cc 100644 --- a/src/muz/spacer/spacer_pdr.h +++ b/src/muz/spacer/spacer_pdr.h @@ -18,8 +18,7 @@ Author: Notes: --*/ -#ifndef _SPACER_PDR_H_ -#define _SPACER_PDR_H_ +#pragma once #include "muz/spacer/spacer_context.h" @@ -104,4 +103,3 @@ public: void enqueue_leaf(model_node &n); }; } -#endif diff --git a/src/muz/spacer/spacer_proof_utils.h b/src/muz/spacer/spacer_proof_utils.h index ead85f885..c3727870e 100644 --- a/src/muz/spacer/spacer_proof_utils.h +++ b/src/muz/spacer/spacer_proof_utils.h @@ -16,8 +16,7 @@ Revision History: --*/ -#ifndef _SPACER_PROOF_UTILS_H_ -#define _SPACER_PROOF_UTILS_H_ +#pragma once #include "ast/ast.h" namespace spacer { @@ -102,4 +101,3 @@ private: proof* mk_proof_core(proof* old, ptr_buffer& args); }; } -#endif diff --git a/src/muz/spacer/spacer_prop_solver.h b/src/muz/spacer/spacer_prop_solver.h index 0eed969bd..d7b0653f8 100644 --- a/src/muz/spacer/spacer_prop_solver.h +++ b/src/muz/spacer/spacer_prop_solver.h @@ -17,8 +17,7 @@ Revision History: --*/ -#ifndef _PROP_SOLVER_H_ -#define _PROP_SOLVER_H_ +#pragma once #include #include @@ -168,4 +167,3 @@ public: } -#endif diff --git a/src/muz/spacer/spacer_qe_project.h b/src/muz/spacer/spacer_qe_project.h index 65848f8f3..37d098540 100644 --- a/src/muz/spacer/spacer_qe_project.h +++ b/src/muz/spacer/spacer_qe_project.h @@ -17,8 +17,7 @@ Author: Notes: --*/ -#ifndef SPACER_QE_PROJECT_H_ -#define SPACER_QE_PROJECT_H_ +#pragma once #include "model/model.h" #include "ast/expr_map.h" @@ -46,4 +45,3 @@ namespace spacer_qe { void array_project (model& model, app_ref_vector& arr_vars, expr_ref& fml, app_ref_vector& aux_vars, bool reduce_all_selects = false); }; -#endif diff --git a/src/muz/spacer/spacer_sat_answer.h b/src/muz/spacer/spacer_sat_answer.h index daf2e5da0..0db4f9eff 100644 --- a/src/muz/spacer/spacer_sat_answer.h +++ b/src/muz/spacer/spacer_sat_answer.h @@ -17,8 +17,7 @@ Revision History: --*/ -#ifndef _SPACER_SAT_ANSWER_H_ -#define _SPACER_SAT_ANSWER_H_ +#pragma once #include "muz/spacer/spacer_context.h" #include "ast/ast.h" @@ -52,4 +51,3 @@ public: }; } -#endif diff --git a/src/muz/spacer/spacer_sem_matcher.h b/src/muz/spacer/spacer_sem_matcher.h index 7d169166e..f39aef307 100644 --- a/src/muz/spacer/spacer_sem_matcher.h +++ b/src/muz/spacer/spacer_sem_matcher.h @@ -17,8 +17,7 @@ Author: Revision History: --*/ -#ifndef SPACER_SEM_MATCHER_H_ -#define SPACER_SEM_MATCHER_H_ +#pragma once #include "ast/substitution/substitution.h" #include "ast/arith_decl_plugin.h" @@ -66,4 +65,3 @@ public: bool operator()(expr * e1, expr * e2, substitution & s, bool &pos); }; } -#endif /* SPACER_SEM_MATCHER_H_ */ diff --git a/src/muz/spacer/spacer_sym_mux.h b/src/muz/spacer/spacer_sym_mux.h index 5690370bd..93c21a3e0 100644 --- a/src/muz/spacer/spacer_sym_mux.h +++ b/src/muz/spacer/spacer_sym_mux.h @@ -19,8 +19,7 @@ Revision History: --*/ -#ifndef _SYM_MUX_H_ -#define _SYM_MUX_H_ +#pragma once #include @@ -91,4 +90,3 @@ public: }; } -#endif diff --git a/src/muz/spacer/spacer_unsat_core_learner.h b/src/muz/spacer/spacer_unsat_core_learner.h index ead430ca0..27915b6c9 100644 --- a/src/muz/spacer/spacer_unsat_core_learner.h +++ b/src/muz/spacer/spacer_unsat_core_learner.h @@ -16,8 +16,7 @@ Revision History: --*/ -#ifndef _SPACER_UNSAT_CORE_LEARNER_H_ -#define _SPACER_UNSAT_CORE_LEARNER_H_ +#pragma once #include "ast/ast.h" #include "muz/spacer/spacer_util.h" @@ -99,4 +98,3 @@ namespace spacer { }; } -#endif diff --git a/src/muz/spacer/spacer_unsat_core_plugin.h b/src/muz/spacer/spacer_unsat_core_plugin.h index 746f21b19..581a877cf 100644 --- a/src/muz/spacer/spacer_unsat_core_plugin.h +++ b/src/muz/spacer/spacer_unsat_core_plugin.h @@ -15,8 +15,7 @@ Revision History: --*/ -#ifndef _SPACER_UNSAT_CORE_PLUGIN_H_ -#define _SPACER_UNSAT_CORE_PLUGIN_H_ +#pragma once #include "ast/ast.h" #include "util/min_cut.h" @@ -102,4 +101,3 @@ namespace spacer { min_cut m_min_cut; }; } -#endif diff --git a/src/muz/spacer/spacer_util.h b/src/muz/spacer/spacer_util.h index ca171fa71..1c8c64f61 100644 --- a/src/muz/spacer/spacer_util.h +++ b/src/muz/spacer/spacer_util.h @@ -19,8 +19,7 @@ Revision History: --*/ -#ifndef _SPACER_UTIL_H_ -#define _SPACER_UTIL_H_ +#pragma once #include "ast/ast.h" #include "ast/ast_pp.h" @@ -145,4 +144,3 @@ namespace spacer { void set_true_in_mdl(model &model, func_decl *f); } -#endif diff --git a/src/muz/tab/tab_context.h b/src/muz/tab/tab_context.h index 84d6e2420..d5bda040e 100644 --- a/src/muz/tab/tab_context.h +++ b/src/muz/tab/tab_context.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef TAB_CONTEXT_H_ -#define TAB_CONTEXT_H_ +#pragma once #include "ast/ast.h" #include "util/lbool.h" @@ -42,4 +41,3 @@ namespace datalog { }; }; -#endif diff --git a/src/muz/transforms/dl_mk_array_blast.h b/src/muz/transforms/dl_mk_array_blast.h index ba2f826dd..6d1a69825 100644 --- a/src/muz/transforms/dl_mk_array_blast.h +++ b/src/muz/transforms/dl_mk_array_blast.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_MK_ARRAY_BLAST_H_ -#define DL_MK_ARRAY_BLAST_H_ +#pragma once #include "muz/base/dl_context.h" #include "muz/base/dl_rule_set.h" @@ -74,5 +73,4 @@ namespace datalog { }; -#endif /* DL_MK_ARRAY_BLAST_H_ */ diff --git a/src/muz/transforms/dl_mk_array_eq_rewrite.h b/src/muz/transforms/dl_mk_array_eq_rewrite.h index 298697998..7f6a29bf3 100644 --- a/src/muz/transforms/dl_mk_array_eq_rewrite.h +++ b/src/muz/transforms/dl_mk_array_eq_rewrite.h @@ -15,8 +15,7 @@ Revision History: --*/ -#ifndef DL_MK_ARRAY_EQ_REWRITE_H_ -#define DL_MK_ARRAY_EQ_REWRITE_H_ +#pragma once #include "muz/base/dl_rule_transformer.h" @@ -48,4 +47,3 @@ namespace datalog { }; -#endif /* DL_MK_ARRAY_EQ_REWRITE_H_ */ diff --git a/src/muz/transforms/dl_mk_array_instantiation.h b/src/muz/transforms/dl_mk_array_instantiation.h index 51a818a3f..0002f4ecd 100644 --- a/src/muz/transforms/dl_mk_array_instantiation.h +++ b/src/muz/transforms/dl_mk_array_instantiation.h @@ -66,8 +66,7 @@ Revision History: --*/ -#ifndef DL_MK_ARRAY_INSTANTIATION_H_ -#define DL_MK_ARRAY_INSTANTIATION_H_ +#pragma once #include "ast/rewriter/factor_equivs.h" @@ -120,4 +119,3 @@ namespace datalog { }; -#endif /* DL_MK_ARRAY_INSTANTIATION_H_ */ diff --git a/src/muz/transforms/dl_mk_backwards.h b/src/muz/transforms/dl_mk_backwards.h index 344da2afb..78a9d2fd0 100644 --- a/src/muz/transforms/dl_mk_backwards.h +++ b/src/muz/transforms/dl_mk_backwards.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_MK_BACKWARDS_H_ -#define DL_MK_BACKWARDS_H_ +#pragma once #include "muz/base/dl_rule_transformer.h" @@ -34,5 +33,4 @@ namespace datalog { }; -#endif /* DL_MK_BACKWARDS_H_ */ diff --git a/src/muz/transforms/dl_mk_bit_blast.h b/src/muz/transforms/dl_mk_bit_blast.h index a8be254a6..3681ecf38 100644 --- a/src/muz/transforms/dl_mk_bit_blast.h +++ b/src/muz/transforms/dl_mk_bit_blast.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_MK_BIT_BLAST_H_ -#define DL_MK_BIT_BLAST_H_ +#pragma once #include "muz/base/dl_rule_transformer.h" @@ -34,5 +33,4 @@ namespace datalog { }; -#endif /* DL_MK_BIT_BLAST_H_ */ diff --git a/src/muz/transforms/dl_mk_coalesce.h b/src/muz/transforms/dl_mk_coalesce.h index 7721d7556..f94ce3465 100644 --- a/src/muz/transforms/dl_mk_coalesce.h +++ b/src/muz/transforms/dl_mk_coalesce.h @@ -17,8 +17,7 @@ Author: Revision History: --*/ -#ifndef DL_MK_COALESCE_H_ -#define DL_MK_COALESCE_H_ +#pragma once #include "muz/base/dl_context.h" #include "muz/base/dl_rule_set.h" @@ -57,5 +56,4 @@ namespace datalog { }; -#endif /* DL_MK_COALESCE_H_ */ diff --git a/src/muz/transforms/dl_mk_coi_filter.h b/src/muz/transforms/dl_mk_coi_filter.h index d8f22ce18..7a2169d4b 100644 --- a/src/muz/transforms/dl_mk_coi_filter.h +++ b/src/muz/transforms/dl_mk_coi_filter.h @@ -17,8 +17,7 @@ Author: --*/ -#ifndef DL_MK_COI_FILTER_H_ -#define DL_MK_COI_FILTER_H_ +#pragma once #include "muz/base/dl_rule_transformer.h" #include "muz/base/dl_context.h" @@ -46,4 +45,3 @@ namespace datalog { }; } -#endif diff --git a/src/muz/transforms/dl_mk_different.h b/src/muz/transforms/dl_mk_different.h index 2190d38cd..c4675b890 100644 --- a/src/muz/transforms/dl_mk_different.h +++ b/src/muz/transforms/dl_mk_different.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_MK_DIFFERENT_SYMBOLIC_H_ -#define DL_MK_DIFFERENT_SYMBOLIC_H_ +#pragma once #include "muz/base/dl_rule_transformer.h" @@ -34,5 +33,4 @@ namespace datalog { }; -#endif /* DL_MK_DIFFERENT_SYMBOLIC_H_ */ diff --git a/src/muz/transforms/dl_mk_filter_rules.h b/src/muz/transforms/dl_mk_filter_rules.h index 3e357dc4e..3939c542b 100644 --- a/src/muz/transforms/dl_mk_filter_rules.h +++ b/src/muz/transforms/dl_mk_filter_rules.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_MK_FILTER_RULES_H_ -#define DL_MK_FILTER_RULES_H_ +#pragma once #include "util/map.h" @@ -83,5 +82,4 @@ namespace datalog { }; -#endif /* DL_MK_FILTER_RULES_H_ */ diff --git a/src/muz/transforms/dl_mk_interp_tail_simplifier.h b/src/muz/transforms/dl_mk_interp_tail_simplifier.h index b8af0ae4e..f1757dbce 100644 --- a/src/muz/transforms/dl_mk_interp_tail_simplifier.h +++ b/src/muz/transforms/dl_mk_interp_tail_simplifier.h @@ -17,8 +17,7 @@ Revision History: --*/ -#ifndef DL_MK_INTERP_TAIL_SIMPLIFIER_H_ -#define DL_MK_INTERP_TAIL_SIMPLIFIER_H_ +#pragma once #include "muz/base/dl_context.h" #include "muz/base/dl_rule_transformer.h" @@ -105,5 +104,4 @@ namespace datalog { }; -#endif /* DL_MK_INTERP_TAIL_SIMPLIFIER_H_ */ diff --git a/src/muz/transforms/dl_mk_karr_invariants.h b/src/muz/transforms/dl_mk_karr_invariants.h index f5c3b57b3..061ecdb3c 100644 --- a/src/muz/transforms/dl_mk_karr_invariants.h +++ b/src/muz/transforms/dl_mk_karr_invariants.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_MK_KARR_INVARIANTS_H_ -#define DL_MK_KARR_INVARIANTS_H_ +#pragma once #include "muz/base/dl_context.h" #include "muz/base/dl_rule_set.h" @@ -74,5 +73,4 @@ namespace datalog { }; -#endif /* DL_MK_KARR_INVARIANTS_H_ */ diff --git a/src/muz/transforms/dl_mk_loop_counter.h b/src/muz/transforms/dl_mk_loop_counter.h index cf79dc218..067945caf 100644 --- a/src/muz/transforms/dl_mk_loop_counter.h +++ b/src/muz/transforms/dl_mk_loop_counter.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_MK_LOOP_COUNTER_H_ -#define DL_MK_LOOP_COUNTER_H_ +#pragma once #include "muz/base/dl_rule_transformer.h" #include "ast/arith_decl_plugin.h" @@ -47,5 +46,4 @@ namespace datalog { }; -#endif /* DL_MK_LOOP_COUNTER_H_ */ diff --git a/src/muz/transforms/dl_mk_magic_sets.h b/src/muz/transforms/dl_mk_magic_sets.h index dc3ad03b7..689405724 100644 --- a/src/muz/transforms/dl_mk_magic_sets.h +++ b/src/muz/transforms/dl_mk_magic_sets.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_MK_MAGIC_SETS_H_ -#define DL_MK_MAGIC_SETS_H_ +#pragma once #include @@ -131,5 +130,4 @@ namespace datalog { }; -#endif /* DL_MK_MAGIC_SETS_H_ */ diff --git a/src/muz/transforms/dl_mk_magic_symbolic.h b/src/muz/transforms/dl_mk_magic_symbolic.h index 451b2c46f..208f79f45 100644 --- a/src/muz/transforms/dl_mk_magic_symbolic.h +++ b/src/muz/transforms/dl_mk_magic_symbolic.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_MK_MAGIC_SYMBOLIC_H_ -#define DL_MK_MAGIC_SYMBOLIC_H_ +#pragma once #include "muz/base/dl_rule_transformer.h" @@ -36,5 +35,4 @@ namespace datalog { }; -#endif /* DL_MK_MAGIC_SYMBOLIC_H_ */ diff --git a/src/muz/transforms/dl_mk_quantifier_abstraction.h b/src/muz/transforms/dl_mk_quantifier_abstraction.h index 83d0e975d..6cf546a50 100644 --- a/src/muz/transforms/dl_mk_quantifier_abstraction.h +++ b/src/muz/transforms/dl_mk_quantifier_abstraction.h @@ -22,8 +22,7 @@ Revision History: "On Solving Universally Quantified Horn Clauses" --*/ -#ifndef DL_MK_QUANTIFIER_ABSTRACTION_H_ -#define DL_MK_QUANTIFIER_ABSTRACTION_H_ +#pragma once #include "muz/base/dl_rule_transformer.h" @@ -60,5 +59,4 @@ namespace datalog { }; -#endif /* DL_MK_QUANTIFIER_ABSTRACTION_H_ */ diff --git a/src/muz/transforms/dl_mk_quantifier_instantiation.h b/src/muz/transforms/dl_mk_quantifier_instantiation.h index f8e12f712..5c0c28cd4 100644 --- a/src/muz/transforms/dl_mk_quantifier_instantiation.h +++ b/src/muz/transforms/dl_mk_quantifier_instantiation.h @@ -22,8 +22,7 @@ Revision History: "On Solving Universally Quantified Horn Clauses" --*/ -#ifndef DL_MK_QUANTIFIER_INSTANTIATION_H_ -#define DL_MK_QUANTIFIER_INSTANTIATION_H_ +#pragma once #include "muz/base/dl_rule_transformer.h" @@ -70,5 +69,4 @@ namespace datalog { }; -#endif /* DL_MK_QUANTIFIER_INSTANTIATION_H_ */ diff --git a/src/muz/transforms/dl_mk_rule_inliner.h b/src/muz/transforms/dl_mk_rule_inliner.h index aebf79e10..feae5405b 100644 --- a/src/muz/transforms/dl_mk_rule_inliner.h +++ b/src/muz/transforms/dl_mk_rule_inliner.h @@ -17,8 +17,7 @@ Revision History: --*/ -#ifndef DL_MK_RULE_INLINER_H_ -#define DL_MK_RULE_INLINER_H_ +#pragma once #include "muz/base/dl_context.h" #include "muz/base/dl_rule_transformer.h" @@ -203,5 +202,4 @@ namespace datalog { }; -#endif /* DL_MK_INTERP_TAIL_SIMPLIFIER_H_ */ diff --git a/src/muz/transforms/dl_mk_scale.h b/src/muz/transforms/dl_mk_scale.h index 94090ec93..a8e42f17e 100644 --- a/src/muz/transforms/dl_mk_scale.h +++ b/src/muz/transforms/dl_mk_scale.h @@ -18,8 +18,7 @@ Author: Revision History: --*/ -#ifndef DL_MK_SCALE_H_ -#define DL_MK_SCALE_H_ +#pragma once #include "muz/base/dl_rule_transformer.h" #include "ast/arith_decl_plugin.h" @@ -49,5 +48,4 @@ namespace datalog { }; -#endif /* DL_MK_SCALE_H_ */ diff --git a/src/muz/transforms/dl_mk_separate_negated_tails.h b/src/muz/transforms/dl_mk_separate_negated_tails.h index aae90b2db..e06ecb4c1 100644 --- a/src/muz/transforms/dl_mk_separate_negated_tails.h +++ b/src/muz/transforms/dl_mk_separate_negated_tails.h @@ -29,8 +29,7 @@ Revision History: --*/ -#ifndef DL_MK_SEPARAT_NEGATED_TAILS_H_ -#define DL_MK_SEPARAT_NEGATED_TAILS_H_ +#pragma once #include "muz/base/dl_rule_transformer.h" #include "muz/base/dl_context.h" @@ -55,4 +54,3 @@ namespace datalog { }; } -#endif diff --git a/src/muz/transforms/dl_mk_slice.h b/src/muz/transforms/dl_mk_slice.h index c06d55dff..4a6d707f0 100644 --- a/src/muz/transforms/dl_mk_slice.h +++ b/src/muz/transforms/dl_mk_slice.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_MK_SLICE_H_ -#define DL_MK_SLICE_H_ +#pragma once #include "muz/base/dl_context.h" #include "muz/base/dl_rule_set.h" @@ -111,5 +110,4 @@ namespace datalog { }; -#endif /* DL_MK_SLICE_H_ */ diff --git a/src/muz/transforms/dl_mk_subsumption_checker.h b/src/muz/transforms/dl_mk_subsumption_checker.h index 8c71096c3..87c5c8f2e 100644 --- a/src/muz/transforms/dl_mk_subsumption_checker.h +++ b/src/muz/transforms/dl_mk_subsumption_checker.h @@ -18,8 +18,7 @@ Revision History: --*/ -#ifndef DL_MK_SUBSUMPTION_CHECKER_H_ -#define DL_MK_SUBSUMPTION_CHECKER_H_ +#pragma once #include "muz/base/dl_context.h" #include "muz/base/dl_rule_transformer.h" @@ -89,5 +88,4 @@ namespace datalog { }; -#endif /* DL_MK_SUBSUMPTION_CHECKER_H_ */ diff --git a/src/muz/transforms/dl_mk_synchronize.h b/src/muz/transforms/dl_mk_synchronize.h index 6850533bb..3f3657cae 100644 --- a/src/muz/transforms/dl_mk_synchronize.h +++ b/src/muz/transforms/dl_mk_synchronize.h @@ -37,8 +37,7 @@ Author: Revision History: --*/ -#ifndef DL_MK_SYNCHRONIZE_H_ -#define DL_MK_SYNCHRONIZE_H_ +#pragma once #include"muz/base/dl_context.h" #include"muz/base/dl_rule_set.h" @@ -131,4 +130,3 @@ namespace datalog { }; -#endif /* DL_MK_SYNCHRONIZE_H_ */ diff --git a/src/muz/transforms/dl_mk_unbound_compressor.h b/src/muz/transforms/dl_mk_unbound_compressor.h index b37a2f1a7..63463dc5c 100644 --- a/src/muz/transforms/dl_mk_unbound_compressor.h +++ b/src/muz/transforms/dl_mk_unbound_compressor.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_MK_UNBOUND_COMPRESSOR_H_ -#define DL_MK_UNBOUND_COMPRESSOR_H_ +#pragma once #include @@ -91,5 +90,4 @@ namespace datalog { }; -#endif /* DL_MK_UNBOUND_COMPRESSOR_H_ */ diff --git a/src/muz/transforms/dl_mk_unfold.h b/src/muz/transforms/dl_mk_unfold.h index 02469e6fb..abba64c89 100644 --- a/src/muz/transforms/dl_mk_unfold.h +++ b/src/muz/transforms/dl_mk_unfold.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DL_MK_UNFOLD_H_ -#define DL_MK_UNFOLD_H_ +#pragma once #include "muz/base/dl_context.h" #include "muz/base/dl_rule_set.h" @@ -49,5 +48,4 @@ namespace datalog { }; -#endif /* DL_MK_UNFOLD_H_ */ diff --git a/src/muz/transforms/dl_transforms.h b/src/muz/transforms/dl_transforms.h index df34d2c1d..9881faf7c 100644 --- a/src/muz/transforms/dl_transforms.h +++ b/src/muz/transforms/dl_transforms.h @@ -18,8 +18,7 @@ Revision History: Extracted from dl_context --*/ -#ifndef DL_TRANSFORMS_H_ -#define DL_TRANSFORMS_H_ +#pragma once #include "muz/base/dl_context.h" @@ -27,4 +26,3 @@ namespace datalog { void apply_default_transformation(context& ctx); } -#endif diff --git a/src/nlsat/nlsat_assignment.h b/src/nlsat/nlsat_assignment.h index e1af7b46c..11e82fd30 100644 --- a/src/nlsat/nlsat_assignment.h +++ b/src/nlsat/nlsat_assignment.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef NLSAT_ASSIGNMENT_H_ -#define NLSAT_ASSIGNMENT_H_ +#pragma once #include "nlsat/nlsat_types.h" #include "math/polynomial/algebraic_numbers.h" @@ -101,4 +100,3 @@ namespace nlsat { }; }; -#endif diff --git a/src/nlsat/nlsat_clause.h b/src/nlsat/nlsat_clause.h index 93dfb0e80..06ede8a13 100644 --- a/src/nlsat/nlsat_clause.h +++ b/src/nlsat/nlsat_clause.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef NLSAT_CLAUSE_H_ -#define NLSAT_CLAUSE_H_ +#pragma once #include "nlsat/nlsat_types.h" #include "util/vector.h" @@ -60,4 +59,3 @@ namespace nlsat { }; -#endif diff --git a/src/nlsat/nlsat_evaluator.h b/src/nlsat/nlsat_evaluator.h index 7e6be0697..d2db3f41a 100644 --- a/src/nlsat/nlsat_evaluator.h +++ b/src/nlsat/nlsat_evaluator.h @@ -17,8 +17,7 @@ Author: Revision History: --*/ -#ifndef NLSAT_EVALUATOR_H_ -#define NLSAT_EVALUATOR_H_ +#pragma once #include "nlsat/nlsat_types.h" #include "nlsat/nlsat_assignment.h" @@ -60,4 +59,3 @@ namespace nlsat { }; -#endif diff --git a/src/nlsat/nlsat_explain.h b/src/nlsat/nlsat_explain.h index 37580e7bc..20322a680 100644 --- a/src/nlsat/nlsat_explain.h +++ b/src/nlsat/nlsat_explain.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef NLSAT_EXPLAIN_H_ -#define NLSAT_EXPLAIN_H_ +#pragma once #include "nlsat/nlsat_solver.h" #include "nlsat/nlsat_scoped_literal_vector.h" @@ -109,4 +108,3 @@ namespace nlsat { }; -#endif diff --git a/src/nlsat/nlsat_interval_set.h b/src/nlsat/nlsat_interval_set.h index 1091a1ffd..f1055118f 100644 --- a/src/nlsat/nlsat_interval_set.h +++ b/src/nlsat/nlsat_interval_set.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef NLSAT_INTERVAL_SET_H_ -#define NLSAT_INTERVAL_SET_H_ +#pragma once #include "nlsat/nlsat_types.h" @@ -120,4 +119,3 @@ namespace nlsat { }; -#endif diff --git a/src/nlsat/nlsat_justification.h b/src/nlsat/nlsat_justification.h index 3e6fcd5aa..d9567ebf9 100644 --- a/src/nlsat/nlsat_justification.h +++ b/src/nlsat/nlsat_justification.h @@ -17,8 +17,7 @@ Author: Revision History: --*/ -#ifndef NLSAT_JUSTIFICATION_H_ -#define NLSAT_JUSTIFICATION_H_ +#pragma once #include "nlsat/nlsat_types.h" #include "util/tptr.h" @@ -109,4 +108,3 @@ namespace nlsat { } }; -#endif diff --git a/src/nlsat/nlsat_scoped_literal_vector.h b/src/nlsat/nlsat_scoped_literal_vector.h index dffaa169f..eee258bbe 100644 --- a/src/nlsat/nlsat_scoped_literal_vector.h +++ b/src/nlsat/nlsat_scoped_literal_vector.h @@ -17,8 +17,7 @@ Author: Revision History: --*/ -#ifndef NLSAT_SCOPED_LITERAL_VECTOR_H_ -#define NLSAT_SCOPED_LITERAL_VECTOR_H_ +#pragma once #include "nlsat/nlsat_solver.h" @@ -94,4 +93,3 @@ namespace nlsat { }; }; -#endif diff --git a/src/nlsat/nlsat_solver.h b/src/nlsat/nlsat_solver.h index 211129a1c..1e3e5cdfd 100644 --- a/src/nlsat/nlsat_solver.h +++ b/src/nlsat/nlsat_solver.h @@ -18,8 +18,7 @@ Author: Revision History: --*/ -#ifndef NLSAT_SOLVER_H_ -#define NLSAT_SOLVER_H_ +#pragma once #include "nlsat/nlsat_types.h" #include "util/params.h" @@ -265,4 +264,3 @@ namespace nlsat { }; -#endif diff --git a/src/nlsat/nlsat_types.h b/src/nlsat/nlsat_types.h index 647a5e3ee..a6071cdba 100644 --- a/src/nlsat/nlsat_types.h +++ b/src/nlsat/nlsat_types.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef NLSAT_TYPES_H_ -#define NLSAT_TYPES_H_ +#pragma once #include "math/polynomial/polynomial.h" #include "util/buffer.h" @@ -161,4 +160,3 @@ namespace nlsat { } }; -#endif diff --git a/src/nlsat/tactic/goal2nlsat.h b/src/nlsat/tactic/goal2nlsat.h index 58d85946e..8dda03105 100644 --- a/src/nlsat/tactic/goal2nlsat.h +++ b/src/nlsat/tactic/goal2nlsat.h @@ -21,8 +21,7 @@ Author: Notes: --*/ -#ifndef GOAL2NLSAT_H_ -#define GOAL2NLSAT_H_ +#pragma once #include "nlsat/nlsat_types.h" #include "tactic/model_converter.h" @@ -69,4 +68,3 @@ public: }; -#endif diff --git a/src/nlsat/tactic/nlsat_tactic.h b/src/nlsat/tactic/nlsat_tactic.h index fe7737c4b..6a2eab25a 100644 --- a/src/nlsat/tactic/nlsat_tactic.h +++ b/src/nlsat/tactic/nlsat_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef NLSAT_TACTIC_H_ -#define NLSAT_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -29,4 +28,3 @@ tactic * mk_nlsat_tactic(ast_manager & m, params_ref const & p = params_ref()); ADD_TACTIC('nlsat', '(try to) solve goal using a nonlinear arithmetic solver.', 'mk_nlsat_tactic(m, p)') */ -#endif diff --git a/src/nlsat/tactic/qfnra_nlsat_tactic.h b/src/nlsat/tactic/qfnra_nlsat_tactic.h index 29dbadb9e..fe44a7865 100644 --- a/src/nlsat/tactic/qfnra_nlsat_tactic.h +++ b/src/nlsat/tactic/qfnra_nlsat_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef QFNRA_NLSAT_TACTIC_H_ -#define QFNRA_NLSAT_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -29,4 +28,3 @@ tactic * mk_qfnra_nlsat_tactic(ast_manager & m, params_ref const & p = params_re ADD_TACTIC("qfnra-nlsat", "builtin strategy for solving QF_NRA problems using only nlsat.", "mk_qfnra_nlsat_tactic(m, p)") */ -#endif diff --git a/src/opt/maxlex.h b/src/opt/maxlex.h index 55aab76d3..b5c1a6e20 100644 --- a/src/opt/maxlex.h +++ b/src/opt/maxlex.h @@ -17,8 +17,7 @@ Notes: --*/ -#ifndef MAXLEX_H_ -#define MAXLEX_H_ +#pragma once namespace opt { @@ -29,4 +28,3 @@ namespace opt { }; -#endif diff --git a/src/opt/maxres.h b/src/opt/maxres.h index f1b125e37..85c83efba 100644 --- a/src/opt/maxres.h +++ b/src/opt/maxres.h @@ -17,8 +17,7 @@ Notes: --*/ -#ifndef MAXRES_H_ -#define MAXRES_H_ +#pragma once namespace opt { @@ -28,4 +27,3 @@ namespace opt { }; -#endif diff --git a/src/opt/maxsmt.h b/src/opt/maxsmt.h index 02fc16e02..1bdc4d7a5 100644 --- a/src/opt/maxsmt.h +++ b/src/opt/maxsmt.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef OPT_MAXSMT_H_ -#define OPT_MAXSMT_H_ +#pragma once #include "ast/ast.h" #include "util/params.h" @@ -207,4 +206,3 @@ namespace opt { }; -#endif diff --git a/src/opt/opt_cmds.h b/src/opt/opt_cmds.h index 3ca8228df..51c987f0c 100644 --- a/src/opt/opt_cmds.h +++ b/src/opt/opt_cmds.h @@ -15,8 +15,7 @@ Author: Notes: --*/ -#ifndef OPT_CMDS_H_ -#define OPT_CMDS_H_ +#pragma once #include "ast/ast.h" #include "opt/opt_context.h" @@ -26,4 +25,3 @@ class cmd_context; void install_opt_cmds(cmd_context & ctx, opt::context* opt = nullptr); -#endif diff --git a/src/opt/opt_context.h b/src/opt/opt_context.h index 27d0eb791..c8e0ce92a 100644 --- a/src/opt/opt_context.h +++ b/src/opt/opt_context.h @@ -15,8 +15,7 @@ Author: Notes: --*/ -#ifndef OPT_CONTEXT_H_ -#define OPT_CONTEXT_H_ +#pragma once #include "ast/ast.h" #include "ast/arith_decl_plugin.h" @@ -329,4 +328,3 @@ namespace opt { } -#endif diff --git a/src/opt/opt_pareto.h b/src/opt/opt_pareto.h index 5a2aab6f3..f9c6fd912 100644 --- a/src/opt/opt_pareto.h +++ b/src/opt/opt_pareto.h @@ -17,8 +17,7 @@ Notes: --*/ -#ifndef OPT_PARETO_H_ -#define OPT_PARETO_H_ +#pragma once #include "solver/solver.h" #include "model/model.h" @@ -107,4 +106,3 @@ namespace opt { }; } -#endif diff --git a/src/opt/opt_parse.h b/src/opt/opt_parse.h index 6cf92bd9c..25752bbee 100644 --- a/src/opt/opt_parse.h +++ b/src/opt/opt_parse.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef OPT_PARSE_H_ -#define OPT_PARSE_H_ +#pragma once void parse_wcnf(opt::context& opt, std::istream& is, unsigned_vector& h); @@ -25,6 +24,5 @@ void parse_opb(opt::context& opt, std::istream& is, unsigned_vector& h); void parse_lp(opt::context& opt, std::istream& is, unsigned_vector& h); -#endif /* OPT_PARSE_H_ */ diff --git a/src/opt/opt_sls_solver.h b/src/opt/opt_sls_solver.h index a736c77a2..5256dd47a 100644 --- a/src/opt/opt_sls_solver.h +++ b/src/opt/opt_sls_solver.h @@ -17,8 +17,7 @@ Notes: --*/ -#ifndef OPT_SLS_SOLVER_H_ -#define OPT_SLS_SOLVER_H_ +#pragma once #include "solver/solver_na2as.h" #include "tactic/arith/card2bv_tactic.h" @@ -232,4 +231,3 @@ namespace opt { }; } -#endif diff --git a/src/opt/opt_solver.h b/src/opt/opt_solver.h index cb9469540..6442448cc 100644 --- a/src/opt/opt_solver.h +++ b/src/opt/opt_solver.h @@ -18,8 +18,7 @@ Notes: Based directly on smt_solver. --*/ -#ifndef OPT_SOLVER_H_ -#define OPT_SOLVER_H_ +#pragma once #include "util/inf_rational.h" #include "util/inf_eps_rational.h" @@ -151,4 +150,3 @@ namespace opt { }; } -#endif diff --git a/src/opt/optsmt.h b/src/opt/optsmt.h index df8760e3c..a7555977b 100644 --- a/src/opt/optsmt.h +++ b/src/opt/optsmt.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef OPTSMT_H_ -#define OPTSMT_H_ +#pragma once #include "opt/opt_solver.h" @@ -97,4 +96,3 @@ namespace opt { }; -#endif diff --git a/src/opt/pb_sls.h b/src/opt/pb_sls.h index f83057ce5..653757469 100644 --- a/src/opt/pb_sls.h +++ b/src/opt/pb_sls.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef PB_SLS_H_ -#define PB_SLS_H_ +#pragma once #include "ast/pb_decl_plugin.h" #include "model/model.h" @@ -47,4 +46,3 @@ namespace smt { }; -#endif diff --git a/src/opt/wmax.h b/src/opt/wmax.h index aabbe3a64..6cc3ed46b 100644 --- a/src/opt/wmax.h +++ b/src/opt/wmax.h @@ -17,8 +17,7 @@ Notes: --*/ -#ifndef WMAX_H_ -#define WMAX_H_ +#pragma once #include "opt/maxsmt.h" @@ -28,4 +27,3 @@ namespace opt { maxsmt_solver_base* mk_sortmax(maxsat_context& c, weights_t & ws, expr_ref_vector const& soft); } -#endif diff --git a/src/parsers/smt2/marshal.h b/src/parsers/smt2/marshal.h index ebc2c0426..0e996b41f 100644 --- a/src/parsers/smt2/marshal.h +++ b/src/parsers/smt2/marshal.h @@ -9,8 +9,7 @@ Abstract: marshaling and unmarshaling of expressions --*/ -#ifndef _SPACER_MARSHAL_H_ -#define _SPACER_MARSHAL_H_ +#pragma once #include #include @@ -24,4 +23,3 @@ expr_ref unmarshal(std::istream &is, ast_manager &m); -#endif diff --git a/src/parsers/smt2/smt2parser.h b/src/parsers/smt2/smt2parser.h index 9942f4f44..1b7834c9e 100644 --- a/src/parsers/smt2/smt2parser.h +++ b/src/parsers/smt2/smt2parser.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT2_PARSER_H_ -#define SMT2_PARSER_H_ +#pragma once #include "cmd_context/cmd_context.h" @@ -25,4 +24,3 @@ bool parse_smt2_commands(cmd_context & ctx, std::istream & is, bool interactive sexpr_ref parse_sexpr(cmd_context& ctx, std::istream& is, params_ref const& ps, char const* filename); -#endif diff --git a/src/parsers/smt2/smt2scanner.h b/src/parsers/smt2/smt2scanner.h index 857b1e065..ad0163545 100644 --- a/src/parsers/smt2/smt2scanner.h +++ b/src/parsers/smt2/smt2scanner.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT2SCANNER_H_ -#define SMT2SCANNER_H_ +#pragma once #include #include "util/symbol.h" @@ -108,5 +107,4 @@ namespace smt2 { }; -#endif /* SCANNER_H_ */ diff --git a/src/parsers/util/cost_parser.h b/src/parsers/util/cost_parser.h index d2a96dc25..e3e57e236 100644 --- a/src/parsers/util/cost_parser.h +++ b/src/parsers/util/cost_parser.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef COST_PARSER_H_ -#define COST_PARSER_H_ +#pragma once #include "parsers/util/simple_parser.h" #include "ast/arith_decl_plugin.h" @@ -35,5 +34,4 @@ public: void reset_vars(); }; -#endif /* COST_PARSER_H_ */ diff --git a/src/parsers/util/pattern_validation.h b/src/parsers/util/pattern_validation.h index 11656e1df..8f23d8c5f 100644 --- a/src/parsers/util/pattern_validation.h +++ b/src/parsers/util/pattern_validation.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef PATTERN_VALIDATION_H_ -#define PATTERN_VALIDATION_H_ +#pragma once #include "ast/ast.h" #include "util/uint_set.h" @@ -39,5 +38,4 @@ public: bool operator()(unsigned num_new_bindings, expr * n, unsigned line, unsigned pos) { return operator()(UINT_MAX, num_new_bindings, n, line, pos); } }; -#endif /* PATTERN_VALIDATION_H_ */ diff --git a/src/parsers/util/scanner.h b/src/parsers/util/scanner.h index d44c8c82f..bd1b29c33 100644 --- a/src/parsers/util/scanner.h +++ b/src/parsers/util/scanner.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SCANNER_H_ -#define SCANNER_H_ +#pragma once #include "ast/ast.h" @@ -88,5 +87,4 @@ private: bool state_ok(); }; -#endif /* SCANNER_H_ */ diff --git a/src/parsers/util/simple_parser.h b/src/parsers/util/simple_parser.h index 671412579..b40a0d983 100644 --- a/src/parsers/util/simple_parser.h +++ b/src/parsers/util/simple_parser.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SIMPLE_PARSER_H_ -#define SIMPLE_PARSER_H_ +#pragma once #include "ast/ast.h" #include "util/map.h" @@ -60,5 +59,4 @@ public: virtual expr * parse_float(rational const & r) { throw parser_error(); } }; -#endif /* SIMPLE_PARSER_H_ */ diff --git a/src/qe/nlarith_util.h b/src/qe/nlarith_util.h index 7106d2a27..4c6f0cd18 100644 --- a/src/qe/nlarith_util.h +++ b/src/qe/nlarith_util.h @@ -17,8 +17,7 @@ Author: Notes: --*/ -#ifndef NLARITH_UTIL_H_ -#define NLARITH_UTIL_H_ +#pragma once #include "ast/ast.h" #include "util/lbool.h" @@ -148,4 +147,3 @@ namespace nlarith { }; -#endif diff --git a/src/qe/nlqsat.h b/src/qe/nlqsat.h index 25cee55e3..26048ec5c 100644 --- a/src/qe/nlqsat.h +++ b/src/qe/nlqsat.h @@ -18,8 +18,7 @@ Revision History: --*/ -#ifndef QE_NLQSAT_H__ -#define QE_NLQSAT_H__ +#pragma once #include "tactic/tactic.h" @@ -35,4 +34,3 @@ tactic * mk_nlqe_tactic(ast_manager & m, params_ref const& p = params_ref()); // TBD_TACTIC("nlqe", "apply a NL-QE solver.", "mk_nlqe_tactic(m, p)") -#endif diff --git a/src/qe/qe.h b/src/qe/qe.h index e5a10db16..9bb8da08f 100644 --- a/src/qe/qe.h +++ b/src/qe/qe.h @@ -18,8 +18,7 @@ Revision History: --*/ -#ifndef QE_H_ -#define QE_H_ +#pragma once #include "ast/ast.h" #include "smt/params/smt_params.h" @@ -372,5 +371,4 @@ namespace qe { }; -#endif diff --git a/src/qe/qe_arith.h b/src/qe/qe_arith.h index acff8e13b..fdcb2296a 100644 --- a/src/qe/qe_arith.h +++ b/src/qe/qe_arith.h @@ -5,8 +5,7 @@ Copyright (c) 2015 Microsoft Corporation --*/ -#ifndef QE_ARITH_H_ -#define QE_ARITH_H_ +#pragma once #include "model/model.h" #include "ast/arith_decl_plugin.h" @@ -47,4 +46,3 @@ namespace qe { }; -#endif diff --git a/src/qe/qe_arrays.h b/src/qe/qe_arrays.h index 84e318426..3b1e304d2 100644 --- a/src/qe/qe_arrays.h +++ b/src/qe/qe_arrays.h @@ -18,8 +18,7 @@ Revision History: --*/ -#ifndef __QE_ARRAYS_H_ -#define __QE_ARRAYS_H_ +#pragma once #include "ast/array_decl_plugin.h" #include "qe/qe_mbp.h" @@ -43,4 +42,3 @@ namespace qe { }; -#endif diff --git a/src/qe/qe_cmd.h b/src/qe/qe_cmd.h index 97cd34753..9df773e6c 100644 --- a/src/qe/qe_cmd.h +++ b/src/qe/qe_cmd.h @@ -15,11 +15,9 @@ Author: Notes: --*/ -#ifndef QE_CMD_H_ -#define QE_CMD_H_ +#pragma once class cmd_context; void install_qe_cmd(cmd_context & ctx, char const * cmd_name = "elim-quantifiers"); -#endif diff --git a/src/qe/qe_datatypes.h b/src/qe/qe_datatypes.h index 50a3930e9..5ecf042e9 100644 --- a/src/qe/qe_datatypes.h +++ b/src/qe/qe_datatypes.h @@ -18,8 +18,7 @@ Revision History: --*/ -#ifndef __QE_DATATYPES_H_ -#define __QE_DATATYPES_H_ +#pragma once #include "ast/datatype_decl_plugin.h" #include "qe/qe_mbp.h" @@ -42,4 +41,3 @@ namespace qe { }; -#endif diff --git a/src/qe/qe_mbp.h b/src/qe/qe_mbp.h index 1b7dedbd4..c63f202bf 100644 --- a/src/qe/qe_mbp.h +++ b/src/qe/qe_mbp.h @@ -18,8 +18,7 @@ Revision History: --*/ -#ifndef __QE_MBP_H__ -#define __QE_MBP_H__ +#pragma once #include "ast/ast.h" #include "util/params.h" @@ -119,4 +118,3 @@ namespace qe { }; } -#endif diff --git a/src/qe/qe_tactic.h b/src/qe/qe_tactic.h index c50cc84de..2f6e3ff28 100644 --- a/src/qe/qe_tactic.h +++ b/src/qe/qe_tactic.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef QE_TACTIC_H_ -#define QE_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -27,4 +26,3 @@ tactic * mk_qe_tactic(ast_manager & m, params_ref const & p = params_ref()); /* ADD_TACTIC("qe", "apply quantifier elimination.", "mk_qe_tactic(m, p)") */ -#endif diff --git a/src/qe/qe_term_graph.h b/src/qe/qe_term_graph.h index c94f18441..4f443350e 100644 --- a/src/qe/qe_term_graph.h +++ b/src/qe/qe_term_graph.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef QE_TERM_GRAPH_H__ -#define QE_TERM_GRAPH_H__ +#pragma once #include "ast/ast.h" #include "util/plugin_manager.h" @@ -155,4 +154,3 @@ namespace qe { }; } -#endif diff --git a/src/qe/qe_vartest.h b/src/qe/qe_vartest.h index 52609893f..403856b56 100644 --- a/src/qe/qe_vartest.h +++ b/src/qe/qe_vartest.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef QE_VARTEST_H_ -#define QE_VARTEST_H_ +#pragma once #include "ast/ast.h" #include "util/uint_set.h" @@ -61,4 +60,3 @@ public: } }; -#endif diff --git a/src/qe/qsat.h b/src/qe/qsat.h index d1614dd5b..381d244e1 100644 --- a/src/qe/qsat.h +++ b/src/qe/qsat.h @@ -18,8 +18,7 @@ Revision History: --*/ -#ifndef QE_QSAT_H__ -#define QE_QSAT_H__ +#pragma once #include "tactic/tactic.h" #include "tactic/generic_model_converter.h" @@ -148,4 +147,3 @@ tactic * mk_qe_rec_tactic(ast_manager & m, params_ref const& p = params_ref()); */ -#endif diff --git a/src/sat/ba_solver.h b/src/sat/ba_solver.h index b99cb945f..8c67e9560 100644 --- a/src/sat/ba_solver.h +++ b/src/sat/ba_solver.h @@ -18,8 +18,7 @@ Author: Revision History: --*/ -#ifndef BA_SOLVER_H_ -#define BA_SOLVER_H_ +#pragma once #include "sat/sat_extension.h" #include "sat/sat_solver.h" @@ -582,4 +581,3 @@ namespace sat { }; -#endif diff --git a/src/sat/dimacs.h b/src/sat/dimacs.h index 4c5d51502..06629d26d 100644 --- a/src/sat/dimacs.h +++ b/src/sat/dimacs.h @@ -16,12 +16,10 @@ Author: Revision History: --*/ -#ifndef DIMACS_H_ -#define DIMACS_H_ +#pragma once #include "sat/sat_types.h" bool parse_dimacs(std::istream & s, std::ostream& err, sat::solver & solver); -#endif /* DIMACS_PARSER_H_ */ diff --git a/src/sat/sat_allocator.h b/src/sat/sat_allocator.h index e588c8478..e082e6ae3 100644 --- a/src/sat/sat_allocator.h +++ b/src/sat/sat_allocator.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SAT_ALLOCATOR_H_ -#define SAT_ALLOCATOR_H_ +#pragma once #include "util/vector.h" #include "util/machine.h" @@ -99,5 +98,4 @@ inline void * operator new[](size_t s, sat_allocator & r) { return r.allocate(s) inline void operator delete(void * p, sat_allocator & r) { UNREACHABLE(); } inline void operator delete[](void * p, sat_allocator & r) { UNREACHABLE(); } -#endif /* SAT_ALLOCATOR_H_ */ diff --git a/src/sat/sat_asymm_branch.h b/src/sat/sat_asymm_branch.h index 75b37dcca..20a561214 100644 --- a/src/sat/sat_asymm_branch.h +++ b/src/sat/sat_asymm_branch.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SAT_ASYMM_BRANCH_H_ -#define SAT_ASYMM_BRANCH_H_ +#pragma once #include "sat/sat_types.h" #include "sat/sat_big.h" @@ -109,4 +108,3 @@ namespace sat { }; -#endif diff --git a/src/sat/sat_big.h b/src/sat/sat_big.h index e6c7f40c4..8ee185f16 100644 --- a/src/sat/sat_big.h +++ b/src/sat/sat_big.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SAT_BIG_H_ -#define SAT_BIG_H_ +#pragma once #include "sat/sat_types.h" #include "util/statistics.h" @@ -90,4 +89,3 @@ namespace sat { }; }; -#endif diff --git a/src/sat/sat_binspr.h b/src/sat/sat_binspr.h index 743174c1d..8dab8305e 100644 --- a/src/sat/sat_binspr.h +++ b/src/sat/sat_binspr.h @@ -17,8 +17,7 @@ --*/ -#ifndef _SAT_BINSPR_ -#define _SAT_BINSPR_ +#pragma once #include "util/params.h" #include "util/statistics.h" @@ -106,4 +105,3 @@ namespace sat { }; } -#endif diff --git a/src/sat/sat_clause.h b/src/sat/sat_clause.h index ca46063ac..4b5ddf618 100644 --- a/src/sat/sat_clause.h +++ b/src/sat/sat_clause.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SAT_CLAUSE_H_ -#define SAT_CLAUSE_H_ +#pragma once #include "util/small_object_allocator.h" #include "util/id_gen.h" @@ -197,4 +196,3 @@ namespace sat { }; -#endif diff --git a/src/sat/sat_clause_set.h b/src/sat/sat_clause_set.h index f9da6a00d..aa0be6b62 100644 --- a/src/sat/sat_clause_set.h +++ b/src/sat/sat_clause_set.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SAT_CLAUSE_SET_H_ -#define SAT_CLAUSE_SET_H_ +#pragma once #include "sat/sat_clause.h" @@ -53,4 +52,3 @@ namespace sat { }; -#endif diff --git a/src/sat/sat_clause_use_list.h b/src/sat/sat_clause_use_list.h index 34477a708..6f313a952 100644 --- a/src/sat/sat_clause_use_list.h +++ b/src/sat/sat_clause_use_list.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SAT_CLAUSE_USE_LIST_H_ -#define SAT_CLAUSE_USE_LIST_H_ +#pragma once #include "sat/sat_types.h" #include "util/trace.h" @@ -137,4 +136,3 @@ namespace sat { }; -#endif diff --git a/src/sat/sat_cleaner.h b/src/sat/sat_cleaner.h index c740e81bf..08d73029a 100644 --- a/src/sat/sat_cleaner.h +++ b/src/sat/sat_cleaner.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SAT_CLEANER_H_ -#define SAT_CLEANER_H_ +#pragma once #include "sat/sat_types.h" #include "util/statistics.h" @@ -51,4 +50,3 @@ namespace sat { }; -#endif diff --git a/src/sat/sat_config.h b/src/sat/sat_config.h index 5079a61a1..ab97bf92a 100644 --- a/src/sat/sat_config.h +++ b/src/sat/sat_config.h @@ -17,8 +17,7 @@ Author: Revision History: --*/ -#ifndef SAT_CONFIG_H_ -#define SAT_CONFIG_H_ +#pragma once #include "util/params.h" @@ -205,4 +204,3 @@ namespace sat { }; }; -#endif diff --git a/src/sat/sat_ddfw.h b/src/sat/sat_ddfw.h index c74d3fe06..98a6873b9 100644 --- a/src/sat/sat_ddfw.h +++ b/src/sat/sat_ddfw.h @@ -18,8 +18,7 @@ http://www.ict.griffith.edu.au/~johnt/publications/CP2006raouf.pdf --*/ -#ifndef _SAT_DDFW_ -#define _SAT_DDFW_ +#pragma once #include "util/uint_set.h" #include "util/rlimit.h" @@ -224,4 +223,3 @@ namespace sat { }; } -#endif diff --git a/src/sat/sat_drat.h b/src/sat/sat_drat.h index 17c1868c0..8c32e3881 100644 --- a/src/sat/sat_drat.h +++ b/src/sat/sat_drat.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef SAT_DRAT_H_ -#define SAT_DRAT_H_ +#pragma once namespace sat { class drat { @@ -117,4 +116,3 @@ namespace sat { }; -#endif diff --git a/src/sat/sat_elim_eqs.h b/src/sat/sat_elim_eqs.h index de4e9b848..8bfc2c457 100644 --- a/src/sat/sat_elim_eqs.h +++ b/src/sat/sat_elim_eqs.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SAT_ELIM_EQS_H_ -#define SAT_ELIM_EQS_H_ +#pragma once #include "sat/sat_types.h" #include "util/union_find.h" @@ -50,4 +49,3 @@ namespace sat { }; -#endif diff --git a/src/sat/sat_elim_vars.h b/src/sat/sat_elim_vars.h index b3cc6b589..6465cbb87 100644 --- a/src/sat/sat_elim_vars.h +++ b/src/sat/sat_elim_vars.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SAT_ELIM_VARS_H_ -#define SAT_ELIM_VARS_H_ +#pragma once #include "sat/sat_types.h" #include "math/dd/dd_bdd.h" @@ -71,4 +70,3 @@ namespace sat { }; -#endif diff --git a/src/sat/sat_extension.h b/src/sat/sat_extension.h index 78fd59a23..c251d769e 100644 --- a/src/sat/sat_extension.h +++ b/src/sat/sat_extension.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SAT_EXTENSION_H_ -#define SAT_EXTENSION_H_ +#pragma once #include "sat/sat_types.h" #include "util/params.h" @@ -86,4 +85,3 @@ namespace sat { }; -#endif diff --git a/src/sat/sat_integrity_checker.h b/src/sat/sat_integrity_checker.h index 10fd2203c..22c8d0f5e 100644 --- a/src/sat/sat_integrity_checker.h +++ b/src/sat/sat_integrity_checker.h @@ -17,8 +17,7 @@ Author: Revision History: --*/ -#ifndef SAT_INTEGRITY_CHECKER_H_ -#define SAT_INTEGRITY_CHECKER_H_ +#pragma once #include "sat/sat_types.h" #include "sat/sat_watched.h" @@ -43,4 +42,3 @@ namespace sat { bool operator()() const; }; }; -#endif diff --git a/src/sat/sat_justification.h b/src/sat/sat_justification.h index 602767d27..8207808c1 100644 --- a/src/sat/sat_justification.h +++ b/src/sat/sat_justification.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SAT_JUSTIFICATIONS_H_ -#define SAT_JUSTIFICATIONS_H_ +#pragma once namespace sat { @@ -80,4 +79,3 @@ namespace sat { } }; -#endif diff --git a/src/sat/sat_local_search.h b/src/sat/sat_local_search.h index e7f942b4a..a8fb7829a 100644 --- a/src/sat/sat_local_search.h +++ b/src/sat/sat_local_search.h @@ -16,8 +16,7 @@ Notes: --*/ -#ifndef _SAT_LOCAL_SEARCH_H_ -#define _SAT_LOCAL_SEARCH_H_ +#pragma once #include "util/vector.h" #include "sat/sat_types.h" @@ -282,4 +281,3 @@ namespace sat { }; } -#endif diff --git a/src/sat/sat_lookahead.h b/src/sat/sat_lookahead.h index f1bae9667..55292b5ad 100644 --- a/src/sat/sat_lookahead.h +++ b/src/sat/sat_lookahead.h @@ -17,8 +17,7 @@ Author: Notes: --*/ -#ifndef _SAT_LOOKAHEAD_H_ -#define _SAT_LOOKAHEAD_H_ +#pragma once #include "util/small_object_allocator.h" @@ -632,5 +631,4 @@ namespace sat { }; } -#endif diff --git a/src/sat/sat_mus.h b/src/sat/sat_mus.h index 946f66ed6..5f67f6acd 100644 --- a/src/sat/sat_mus.h +++ b/src/sat/sat_mus.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef SAT_MUS_H_ -#define SAT_MUS_H_ +#pragma once namespace sat { class mus { @@ -65,4 +64,3 @@ namespace sat { }; -#endif diff --git a/src/sat/sat_parallel.h b/src/sat/sat_parallel.h index 9e331ed95..78befb4c0 100644 --- a/src/sat/sat_parallel.h +++ b/src/sat/sat_parallel.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SAT_PARALLEL_H_ -#define SAT_PARALLEL_H_ +#pragma once #include "sat/sat_types.h" #include "util/hashtable.h" @@ -114,4 +113,3 @@ namespace sat { }; -#endif diff --git a/src/sat/sat_prob.h b/src/sat/sat_prob.h index 803d8bae9..c29667bbe 100644 --- a/src/sat/sat_prob.h +++ b/src/sat/sat_prob.h @@ -18,8 +18,7 @@ http://www.ict.griffith.edu.au/~johnt/publications/CP2006raouf.pdf --*/ -#ifndef _SAT_PROB_ -#define _SAT_PROB_ +#pragma once #include "util/uint_set.h" #include "util/rlimit.h" @@ -157,4 +156,3 @@ namespace sat { }; } -#endif diff --git a/src/sat/sat_probing.h b/src/sat/sat_probing.h index 74c59233c..986bad6a8 100644 --- a/src/sat/sat_probing.h +++ b/src/sat/sat_probing.h @@ -17,8 +17,7 @@ Author: Revision History: --*/ -#ifndef SAT_PROBING_H_ -#define SAT_PROBING_H_ +#pragma once #include "sat/sat_types.h" #include "sat/sat_big.h" @@ -95,4 +94,3 @@ namespace sat { }; -#endif diff --git a/src/sat/sat_scc.h b/src/sat/sat_scc.h index 1ba646992..0554e09d4 100644 --- a/src/sat/sat_scc.h +++ b/src/sat/sat_scc.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SAT_SCC_H_ -#define SAT_SCC_H_ +#pragma once #include "util/statistics.h" #include "util/params.h" @@ -64,4 +63,3 @@ namespace sat { }; }; -#endif diff --git a/src/sat/sat_simplifier.h b/src/sat/sat_simplifier.h index 895ebdcb5..a0001d74e 100644 --- a/src/sat/sat_simplifier.h +++ b/src/sat/sat_simplifier.h @@ -18,8 +18,7 @@ Author: Revision History: --*/ -#ifndef SAT_SIMPLIFIER_H_ -#define SAT_SIMPLIFIER_H_ +#pragma once #include "sat/sat_types.h" #include "sat/sat_clause.h" @@ -243,4 +242,3 @@ namespace sat { }; }; -#endif diff --git a/src/sat/sat_solver.h b/src/sat/sat_solver.h index 38c8f97eb..0a98bd73b 100644 --- a/src/sat/sat_solver.h +++ b/src/sat/sat_solver.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SAT_SOLVER_H_ -#define SAT_SOLVER_H_ +#pragma once #include #include "sat/sat_types.h" @@ -794,4 +793,3 @@ namespace sat { std::ostream & operator<<(std::ostream & out, mk_stat const & stat); }; -#endif diff --git a/src/sat/sat_solver/inc_sat_solver.h b/src/sat/sat_solver/inc_sat_solver.h index b1cf7ad37..f0ee1c4a5 100644 --- a/src/sat/sat_solver/inc_sat_solver.h +++ b/src/sat/sat_solver/inc_sat_solver.h @@ -17,8 +17,7 @@ Notes: --*/ -#ifndef HS_INC_SAT_SOLVER_H_ -#define HS_INC_SAT_SOLVER_H_ +#pragma once #include "solver/solver.h" @@ -34,4 +33,3 @@ tactic* mk_psat_tactic(ast_manager& m, params_ref const& p); void inc_sat_display(std::ostream& out, solver& s, unsigned sz, expr*const* soft, rational const* _weights); -#endif diff --git a/src/sat/sat_solver_core.h b/src/sat/sat_solver_core.h index d49a00a6f..cbb9c1985 100644 --- a/src/sat/sat_solver_core.h +++ b/src/sat/sat_solver_core.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SAT_SOLVER_CORE_H_ -#define SAT_SOLVER_CORE_H_ +#pragma once #include "sat/sat_types.h" @@ -120,4 +119,3 @@ namespace sat { }; }; -#endif diff --git a/src/sat/sat_types.h b/src/sat/sat_types.h index 1991542bf..88a2ad935 100644 --- a/src/sat/sat_types.h +++ b/src/sat/sat_types.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SAT_TYPES_H_ -#define SAT_TYPES_H_ +#pragma once #include "util/debug.h" #include "util/approx_set.h" @@ -269,4 +268,3 @@ namespace sat { }; }; -#endif diff --git a/src/sat/sat_var_queue.h b/src/sat/sat_var_queue.h index 0c22766ba..e73a440ce 100644 --- a/src/sat/sat_var_queue.h +++ b/src/sat/sat_var_queue.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SAT_VAR_QUEUE_H_ -#define SAT_VAR_QUEUE_H_ +#pragma once #include "util/heap.h" #include "sat/sat_types.h" @@ -77,4 +76,3 @@ namespace sat { }; }; -#endif diff --git a/src/sat/sat_watched.h b/src/sat/sat_watched.h index a05e7c365..3e27f53c0 100644 --- a/src/sat/sat_watched.h +++ b/src/sat/sat_watched.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SAT_WATCHED_H_ -#define SAT_WATCHED_H_ +#pragma once #include "sat/sat_types.h" #include "util/vector.h" @@ -146,4 +145,3 @@ namespace sat { void conflict_cleanup(watch_list::iterator it, watch_list::iterator it2, watch_list& wlist); }; -#endif diff --git a/src/sat/tactic/atom2bool_var.h b/src/sat/tactic/atom2bool_var.h index b7f533537..f0244cbfd 100644 --- a/src/sat/tactic/atom2bool_var.h +++ b/src/sat/tactic/atom2bool_var.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef ATOM2BOOL_VAR_H_ -#define ATOM2BOOL_VAR_H_ +#pragma once #include "ast/expr2var.h" #include "sat/sat_types.h" @@ -41,4 +40,3 @@ class goal; void collect_boolean_interface(goal const & g, obj_hashtable & r); void collect_boolean_interface(ast_manager & m, unsigned num, expr * const * fs, obj_hashtable & r); -#endif diff --git a/src/sat/tactic/goal2sat.h b/src/sat/tactic/goal2sat.h index 31e94bd74..a226ed2ef 100644 --- a/src/sat/tactic/goal2sat.h +++ b/src/sat/tactic/goal2sat.h @@ -26,8 +26,7 @@ Author: Notes: --*/ -#ifndef GOAL2SAT_H_ -#define GOAL2SAT_H_ +#pragma once #include "tactic/goal.h" #include "sat/sat_solver.h" @@ -118,4 +117,3 @@ public: }; -#endif diff --git a/src/sat/tactic/sat_tactic.h b/src/sat/tactic/sat_tactic.h index 8525f1179..4bc361ba0 100644 --- a/src/sat/tactic/sat_tactic.h +++ b/src/sat/tactic/sat_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef SAT_TACTIC_H_ -#define SAT_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -32,4 +31,3 @@ tactic * mk_sat_preprocessor_tactic(ast_manager & m, params_ref const & p = para ADD_TACTIC('sat-preprocess', 'Apply SAT solver preprocessing procedures (bounded resolution, Boolean constant propagation, 2-SAT, subsumption, subsumption resolution).', 'mk_sat_preprocessor_tactic(m, p)') */ -#endif diff --git a/src/shell/datalog_frontend.h b/src/shell/datalog_frontend.h index 48ccb6c3d..4e288a677 100644 --- a/src/shell/datalog_frontend.h +++ b/src/shell/datalog_frontend.h @@ -16,12 +16,10 @@ Author: Revision History: --*/ -#ifndef DATALOG_FRONTEND_H_ -#define DATALOG_FRONTEND_H_ +#pragma once unsigned read_datalog(char const * file); -#endif /* DATALOG_FRONTEND_H_ */ diff --git a/src/shell/dimacs_frontend.h b/src/shell/dimacs_frontend.h index 263643c32..b1f322178 100644 --- a/src/shell/dimacs_frontend.h +++ b/src/shell/dimacs_frontend.h @@ -16,10 +16,8 @@ Author: Revision History: --*/ -#ifndef DIMACS_FRONTEND_H_ -#define DIMACS_FRONTEND_H_ +#pragma once unsigned read_dimacs(char const * benchmark_file); -#endif /* DIMACS_FRONTEND_H_ */ diff --git a/src/shell/opt_frontend.h b/src/shell/opt_frontend.h index 1266ed76b..72015fa8b 100644 --- a/src/shell/opt_frontend.h +++ b/src/shell/opt_frontend.h @@ -10,13 +10,11 @@ Author: Nikolaj Bjorner (nbjorner) 2014-10-10. --*/ -#ifndef OPT_FRONTEND_H_ -#define OPT_FRONTEND_H_ +#pragma once enum opt_format { opb_t, wcnf_t, lp_t }; unsigned parse_opt(char const* file_name, opt_format f); -#endif /* OPT_FRONTEND_H_ */ diff --git a/src/shell/smtlib_frontend.h b/src/shell/smtlib_frontend.h index 1d9bb55de..6d5bd6e60 100644 --- a/src/shell/smtlib_frontend.h +++ b/src/shell/smtlib_frontend.h @@ -16,12 +16,10 @@ Author: Revision History: --*/ -#ifndef SMTLIB_FRONTEND_H_ -#define SMTLIB_FRONTEND_H_ +#pragma once unsigned read_smtlib_file(char const * benchmark_file); unsigned read_smtlib2_commands(char const * command_file); -#endif /* SMTLIB_FRONTEND_H_ */ diff --git a/src/shell/z3_log_frontend.h b/src/shell/z3_log_frontend.h index 8eba9b774..9a07eb353 100644 --- a/src/shell/z3_log_frontend.h +++ b/src/shell/z3_log_frontend.h @@ -17,11 +17,9 @@ Author: Revision History: --*/ -#ifndef Z3_LOG_FRONTEND_H_ -#define Z3_LOG_FRONTEND_H_ +#pragma once void replay_z3_log(char const * benchmark_file); -#endif /* Z3_FRONTEND_H_ */ diff --git a/src/smt/arith_eq_adapter.h b/src/smt/arith_eq_adapter.h index 8e2a92139..22dfcacb0 100644 --- a/src/smt/arith_eq_adapter.h +++ b/src/smt/arith_eq_adapter.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef ARITH_EQ_ADAPTER_H_ -#define ARITH_EQ_ADAPTER_H_ +#pragma once #include "smt/smt_theory.h" #include "util/obj_pair_hashtable.h" @@ -88,5 +87,4 @@ namespace smt { }; }; -#endif /* ARITH_EQ_ADAPTER_H_ */ diff --git a/src/smt/arith_eq_solver.h b/src/smt/arith_eq_solver.h index 68e58334d..00256f0f2 100644 --- a/src/smt/arith_eq_solver.h +++ b/src/smt/arith_eq_solver.h @@ -14,8 +14,7 @@ Author: Nikolaj Bjorner (nbjorner) 2012-02-25 --*/ -#ifndef ARITH_EQ_SOLVER_H_ -#define ARITH_EQ_SOLVER_H_ +#pragma once #include "ast/arith_decl_plugin.h" #include "ast/rewriter/arith_rewriter.h" @@ -105,4 +104,3 @@ public: }; -#endif /* ARITH_EQ_SOLVER_H_ */ diff --git a/src/smt/asserted_formulas.h b/src/smt/asserted_formulas.h index 01545abb0..2f72aba1d 100644 --- a/src/smt/asserted_formulas.h +++ b/src/smt/asserted_formulas.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef ASSERTED_FORMULAS_H_ -#define ASSERTED_FORMULAS_H_ +#pragma once #include "util/statistics.h" #include "ast/static_features.h" @@ -280,5 +279,4 @@ public: }; -#endif /* ASSERTED_FORMULAS_H_ */ diff --git a/src/smt/cached_var_subst.h b/src/smt/cached_var_subst.h index 6f39841b6..54d462bf2 100644 --- a/src/smt/cached_var_subst.h +++ b/src/smt/cached_var_subst.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef CACHED_VAR_SUBST_H_ -#define CACHED_VAR_SUBST_H_ +#pragma once #include "ast/rewriter/var_subst.h" #include "util/map.h" @@ -49,5 +48,4 @@ public: void reset(); }; -#endif /* CACHED_VAR_SUBST_H_ */ diff --git a/src/smt/cost_evaluator.h b/src/smt/cost_evaluator.h index 18ca3f8a6..2857cf958 100644 --- a/src/smt/cost_evaluator.h +++ b/src/smt/cost_evaluator.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef COST_EVALUATOR_H_ -#define COST_EVALUATOR_H_ +#pragma once #include "ast/ast.h" #include "ast/arith_decl_plugin.h" @@ -39,5 +38,4 @@ public: float operator()(expr * f, unsigned num_args, float const * args); }; -#endif /* COST_EVALUATOR_H_ */ diff --git a/src/smt/diff_logic.h b/src/smt/diff_logic.h index 9cfb75122..fa0c8255d 100644 --- a/src/smt/diff_logic.h +++ b/src/smt/diff_logic.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DIFF_LOGIC_H_ -#define DIFF_LOGIC_H_ +#pragma once #include "util/vector.h" #include "util/heap.h" @@ -1901,5 +1900,4 @@ public: } }; -#endif /* DIFF_LOGIC_H_ */ diff --git a/src/smt/dyn_ack.h b/src/smt/dyn_ack.h index 0f8ae024a..627c23191 100644 --- a/src/smt/dyn_ack.h +++ b/src/smt/dyn_ack.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DYN_ACK_H_ -#define DYN_ACK_H_ +#pragma once #include "ast/ast.h" #include "smt/params/dyn_ack_params.h" @@ -133,5 +132,4 @@ namespace smt { }; -#endif /* DYN_ACK_H_ */ diff --git a/src/smt/elim_term_ite.h b/src/smt/elim_term_ite.h index 53c7aca1f..60f2ad8f7 100644 --- a/src/smt/elim_term_ite.h +++ b/src/smt/elim_term_ite.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef ELIM_TERM_ITE_H_ -#define ELIM_TERM_ITE_H_ +#pragma once #include "ast/normal_forms/defined_names.h" #include "ast/rewriter/rewriter.h" @@ -53,5 +52,4 @@ public: -#endif /* ELIM_TERM_ITE_H_ */ diff --git a/src/smt/expr_context_simplifier.h b/src/smt/expr_context_simplifier.h index b412d8646..4478245f9 100644 --- a/src/smt/expr_context_simplifier.h +++ b/src/smt/expr_context_simplifier.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef EXPR_CONTEXT_SIMPLIFIER_H_ -#define EXPR_CONTEXT_SIMPLIFIER_H_ +#pragma once #include "ast/ast.h" #include "util/obj_hashtable.h" @@ -79,5 +78,4 @@ public: void reset_statistics() { m_solver.reset_statistics(); } }; -#endif /* EXPR_CONTEXT_SIMPLIFIER_H_ */ diff --git a/src/smt/fingerprints.h b/src/smt/fingerprints.h index a5b993470..f3f96e057 100644 --- a/src/smt/fingerprints.h +++ b/src/smt/fingerprints.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef FINGERPRINTS_H_ -#define FINGERPRINTS_H_ +#pragma once #include "smt/smt_enode.h" #include "util/util.h" @@ -88,5 +87,4 @@ namespace smt { }; }; -#endif /* FINGERPRINTS_H_ */ diff --git a/src/smt/mam.h b/src/smt/mam.h index f6b2958c5..7e10440c9 100644 --- a/src/smt/mam.h +++ b/src/smt/mam.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef MAM_H_ -#define MAM_H_ +#pragma once #include "ast/ast.h" #include "smt/smt_types.h" @@ -70,4 +69,3 @@ namespace smt { mam * mk_mam(context & ctx); }; -#endif /* MAM_H_ */ diff --git a/src/smt/params/dyn_ack_params.h b/src/smt/params/dyn_ack_params.h index 223242788..71091ca94 100644 --- a/src/smt/params/dyn_ack_params.h +++ b/src/smt/params/dyn_ack_params.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DYN_ACK_PARAMS_H_ -#define DYN_ACK_PARAMS_H_ +#pragma once #include "util/params.h" @@ -52,5 +51,4 @@ public: }; -#endif /* DYN_ACK_PARAMS_H_ */ diff --git a/src/smt/params/preprocessor_params.h b/src/smt/params/preprocessor_params.h index f6724fada..886c60c94 100644 --- a/src/smt/params/preprocessor_params.h +++ b/src/smt/params/preprocessor_params.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef PREPROCESSOR_PARAMS_H_ -#define PREPROCESSOR_PARAMS_H_ +#pragma once #include "ast/pattern/pattern_inference_params.h" #include "ast/rewriter/bit_blaster/bit_blaster_params.h" @@ -79,4 +78,3 @@ public: void display(std::ostream & out) const; }; -#endif /* PREPROCESSOR_PARAMS_H_ */ diff --git a/src/smt/params/qi_params.h b/src/smt/params/qi_params.h index d1434103b..8ad7a8a90 100644 --- a/src/smt/params/qi_params.h +++ b/src/smt/params/qi_params.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef QI_PARAMS_H_ -#define QI_PARAMS_H_ +#pragma once #include "util/util.h" #include "util/params.h" @@ -108,5 +107,4 @@ struct qi_params { void display(std::ostream & out) const; }; -#endif /* QI_PARAMS_H_ */ diff --git a/src/smt/params/smt_params.h b/src/smt/params/smt_params.h index b79631d1a..2575f95c9 100644 --- a/src/smt/params/smt_params.h +++ b/src/smt/params/smt_params.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT_PARAMS_H_ -#define SMT_PARAMS_H_ +#pragma once #include "ast/ast.h" #include "smt/params/dyn_ack_params.h" @@ -320,5 +319,4 @@ struct smt_params : public preprocessor_params, void display(std::ostream & out) const; }; -#endif /* SMT_PARAMS_H_ */ diff --git a/src/smt/params/theory_arith_params.h b/src/smt/params/theory_arith_params.h index 305b71177..38587eaac 100644 --- a/src/smt/params/theory_arith_params.h +++ b/src/smt/params/theory_arith_params.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef THEORY_ARITH_PARAMS_H_ -#define THEORY_ARITH_PARAMS_H_ +#pragma once #include #include "util/params.h" @@ -165,5 +164,4 @@ struct theory_arith_params { void display(std::ostream & out) const; }; -#endif /* THEORY_ARITH_PARAMS_H_ */ diff --git a/src/smt/params/theory_array_params.h b/src/smt/params/theory_array_params.h index a3be083d7..8c1bf1a55 100644 --- a/src/smt/params/theory_array_params.h +++ b/src/smt/params/theory_array_params.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef THEORY_ARRAY_PARAMS_H_ -#define THEORY_ARRAY_PARAMS_H_ +#pragma once #include "util/params.h" @@ -81,5 +80,4 @@ struct theory_array_params { }; -#endif /* THEORY_ARRAY_PARAMS_H_ */ diff --git a/src/smt/params/theory_bv_params.h b/src/smt/params/theory_bv_params.h index e0bff3f17..90db967ac 100644 --- a/src/smt/params/theory_bv_params.h +++ b/src/smt/params/theory_bv_params.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef THEORY_BV_PARAMS_H_ -#define THEORY_BV_PARAMS_H_ +#pragma once #include "util/params.h" @@ -50,5 +49,4 @@ struct theory_bv_params { void display(std::ostream & out) const; }; -#endif /* THEORY_BV_PARAMS_H_ */ diff --git a/src/smt/params/theory_datatype_params.h b/src/smt/params/theory_datatype_params.h index d2d851ffe..05957bfe9 100644 --- a/src/smt/params/theory_datatype_params.h +++ b/src/smt/params/theory_datatype_params.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef THEORY_DATATYPE_PARAMS_H_ -#define THEORY_DATATYPE_PARAMS_H_ +#pragma once #include "smt/params/smt_params_helper.hpp" @@ -37,5 +36,4 @@ struct theory_datatype_params { }; -#endif /* THEORY_DATATYPE_PARAMS_H_ */ diff --git a/src/smt/params/theory_pb_params.h b/src/smt/params/theory_pb_params.h index 98c190b33..a706f844b 100644 --- a/src/smt/params/theory_pb_params.h +++ b/src/smt/params/theory_pb_params.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef THEORY_PB_PARAMS_H_ -#define THEORY_PB_PARAMS_H_ +#pragma once #include "util/params.h" @@ -35,5 +34,4 @@ struct theory_pb_params { void display(std::ostream & out) const; }; -#endif /* THEORY_PB_PARAMS_H_ */ diff --git a/src/smt/params/theory_seq_params.h b/src/smt/params/theory_seq_params.h index c08dda98b..d75d3bf2c 100644 --- a/src/smt/params/theory_seq_params.h +++ b/src/smt/params/theory_seq_params.h @@ -14,8 +14,7 @@ Revision History: --*/ -#ifndef THEORY_SEQ_PARAMS_H -#define THEORY_SEQ_PARAMS_H +#pragma once #include "util/params.h" @@ -41,4 +40,3 @@ struct theory_seq_params { void updt_params(params_ref const & p); }; -#endif /* THEORY_SEQ_PARAMS_H */ diff --git a/src/smt/params/theory_str_params.h b/src/smt/params/theory_str_params.h index 6ee9d75e9..971f4ba18 100644 --- a/src/smt/params/theory_str_params.h +++ b/src/smt/params/theory_str_params.h @@ -15,8 +15,7 @@ Revision History: --*/ -#ifndef THEORY_STR_PARAMS_H -#define THEORY_STR_PARAMS_H +#pragma once #include "util/params.h" @@ -137,4 +136,3 @@ struct theory_str_params { void display(std::ostream & out) const; }; -#endif /* THEORY_STR_PARAMS_H */ diff --git a/src/smt/proto_model/proto_model.h b/src/smt/proto_model/proto_model.h index ee8fc7adf..d0c1b97f2 100644 --- a/src/smt/proto_model/proto_model.h +++ b/src/smt/proto_model/proto_model.h @@ -25,8 +25,7 @@ Author: Revision History: --*/ -#ifndef PROTO_MODEL_H_ -#define PROTO_MODEL_H_ +#pragma once #include "model/model_core.h" #include "model/model_evaluator.h" @@ -111,5 +110,4 @@ public: typedef ref proto_model_ref; -#endif /* PROTO_MODEL_H_ */ diff --git a/src/smt/qi_queue.h b/src/smt/qi_queue.h index 72cc0feb9..e79b0cfb5 100644 --- a/src/smt/qi_queue.h +++ b/src/smt/qi_queue.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef QI_QUEUE_H_ -#define QI_QUEUE_H_ +#pragma once #include "ast/ast.h" #include "smt/smt_quantifier_stat.h" @@ -100,5 +99,4 @@ namespace smt { }; }; -#endif /* QI_QUEUE_H_ */ diff --git a/src/smt/smt2_extra_cmds.h b/src/smt/smt2_extra_cmds.h index 947f5ed7a..b3461de67 100644 --- a/src/smt/smt2_extra_cmds.h +++ b/src/smt/smt2_extra_cmds.h @@ -16,11 +16,9 @@ Author: Notes: --*/ -#ifndef SMT2_EXTRA_CMDS_H_ -#define SMT2_EXTRA_CMDS_H_ +#pragma once class cmd_context; void install_smt2_extra_cmds(cmd_context & ctx); -#endif /* SMT2_EXTRA_CMDS_H_ */ diff --git a/src/smt/smt_almost_cg_table.h b/src/smt/smt_almost_cg_table.h index d514f1478..6b0cc6652 100644 --- a/src/smt/smt_almost_cg_table.h +++ b/src/smt/smt_almost_cg_table.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT_ALMOST_CG_TABLE_H_ -#define SMT_ALMOST_CG_TABLE_H_ +#pragma once #include "smt/smt_enode.h" #include "util/map.h" @@ -68,5 +67,4 @@ namespace smt { }; -#endif /* SMT_ALMOST_CG_TABLE_H_ */ diff --git a/src/smt/smt_b_justification.h b/src/smt/smt_b_justification.h index 7aeb268cb..826587353 100644 --- a/src/smt/smt_b_justification.h +++ b/src/smt/smt_b_justification.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT_B_JUSTIFICATION_H_ -#define SMT_B_JUSTIFICATION_H_ +#pragma once #include "smt/smt_literal.h" #include "smt/smt_clause.h" @@ -106,5 +105,4 @@ namespace smt { typedef std::pair justified_literal; }; -#endif /* SMT_B_JUSTIFICATION_H_ */ diff --git a/src/smt/smt_bool_var_data.h b/src/smt/smt_bool_var_data.h index 4f83ece49..68d7a8d45 100644 --- a/src/smt/smt_bool_var_data.h +++ b/src/smt/smt_bool_var_data.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT_BOOL_VAR_DATA_H_ -#define SMT_BOOL_VAR_DATA_H_ +#pragma once #include "smt/smt_b_justification.h" @@ -134,5 +133,4 @@ namespace smt { }; }; -#endif /* SMT_BOOL_VAR_DATA_H_ */ diff --git a/src/smt/smt_case_split_queue.h b/src/smt/smt_case_split_queue.h index 3bad083c8..91f7fc036 100644 --- a/src/smt/smt_case_split_queue.h +++ b/src/smt/smt_case_split_queue.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT_CASE_SPLIT_QUEUE_H_ -#define SMT_CASE_SPLIT_QUEUE_H_ +#pragma once #include "smt/smt_types.h" #include "util/heap.h" @@ -55,5 +54,4 @@ namespace smt { case_split_queue * mk_case_split_queue(context & ctx, smt_params & p); }; -#endif /* SMT_CASE_SPLIT_QUEUE_H_ */ diff --git a/src/smt/smt_cg_table.h b/src/smt/smt_cg_table.h index 78babf3b3..9c2baed11 100644 --- a/src/smt/smt_cg_table.h +++ b/src/smt/smt_cg_table.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT_CG_TABLE_H_ -#define SMT_CG_TABLE_H_ +#pragma once #include "smt/smt_enode.h" #include "util/hashtable.h" @@ -219,5 +218,4 @@ namespace smt { }; -#endif /* SMT_CG_TABLE_H_ */ diff --git a/src/smt/smt_checker.h b/src/smt/smt_checker.h index beb32239c..f2f25e92e 100644 --- a/src/smt/smt_checker.h +++ b/src/smt/smt_checker.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT_CHECKER_H_ -#define SMT_CHECKER_H_ +#pragma once #include "ast/ast.h" #include "util/obj_hashtable.h" @@ -53,5 +52,4 @@ namespace smt { }; -#endif /* SMT_CHECKER_H_ */ diff --git a/src/smt/smt_clause.h b/src/smt/smt_clause.h index 5c4f5b111..950d0e17c 100644 --- a/src/smt/smt_clause.h +++ b/src/smt/smt_clause.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT_CLAUSE_H_ -#define SMT_CLAUSE_H_ +#pragma once #include "ast/ast.h" #include "smt/smt_literal.h" @@ -282,5 +281,4 @@ namespace smt { typedef obj_hashtable clause_set; }; -#endif /* SMT_CLAUSE_H_ */ diff --git a/src/smt/smt_clause_proof.h b/src/smt/smt_clause_proof.h index 289d4d1fe..e78c9943c 100644 --- a/src/smt/smt_clause_proof.h +++ b/src/smt/smt_clause_proof.h @@ -24,8 +24,7 @@ Author: Revision History: --*/ -#ifndef SMT_CLAUSE_PROOF_H_ -#define SMT_CLAUSE_PROOF_H_ +#pragma once #include "smt/smt_theory.h" #include "smt/smt_clause.h" @@ -73,5 +72,4 @@ namespace smt { std::ostream& operator<<(std::ostream& out, clause_proof::status st); }; -#endif /* SMT_CLAUSE_PROOF_H_ */ diff --git a/src/smt/smt_conflict_resolution.h b/src/smt/smt_conflict_resolution.h index b3a410ff7..444745cd4 100644 --- a/src/smt/smt_conflict_resolution.h +++ b/src/smt/smt_conflict_resolution.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT_CONFLICT_RESOLUTION_H_ -#define SMT_CONFLICT_RESOLUTION_H_ +#pragma once #include "smt/smt_literal.h" #include "smt/smt_bool_var_data.h" @@ -279,5 +278,4 @@ namespace smt { }; -#endif /* SMT_CONFLICT_RESOLUTION_H_ */ diff --git a/src/smt/smt_context.h b/src/smt/smt_context.h index d3fd26446..efa40e3f6 100644 --- a/src/smt/smt_context.h +++ b/src/smt/smt_context.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT_CONTEXT_H_ -#define SMT_CONTEXT_H_ +#pragma once #include "smt/smt_clause.h" #include "smt/smt_setup.h" @@ -1711,5 +1710,4 @@ namespace smt { }; -#endif /* SMT_CONTEXT_H_ */ diff --git a/src/smt/smt_enode.h b/src/smt/smt_enode.h index 16cdd91a1..6e2796dc1 100644 --- a/src/smt/smt_enode.h +++ b/src/smt/smt_enode.h @@ -17,7 +17,6 @@ Revision History: --*/ #ifndef SMT_ENODE_H_ -#define SMT_ENODE_H_ #include "ast/ast.h" #include "smt/smt_types.h" @@ -47,7 +46,7 @@ namespace smt { // #define SPARSE_MAP -#ifndef SPARSE_MAP +#pragma once typedef ptr_vector app2enode_t; // app -> enode #else class app2enode_t : public u_map { @@ -477,5 +476,4 @@ namespace smt { }; -#endif /* SMT_ENODE_H_ */ diff --git a/src/smt/smt_eq_justification.h b/src/smt/smt_eq_justification.h index 952caa2a5..cc8b3ceb6 100644 --- a/src/smt/smt_eq_justification.h +++ b/src/smt/smt_eq_justification.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT_EQ_JUSTIFICATION_H_ -#define SMT_EQ_JUSTIFICATION_H_ +#pragma once #include "smt/smt_literal.h" #include "util/tptr.h" @@ -81,5 +80,4 @@ namespace smt { const eq_justification null_eq_justification(static_cast(nullptr)); }; -#endif /* SMT_EQ_JUSTIFICATION_H_ */ diff --git a/src/smt/smt_failure.h b/src/smt/smt_failure.h index bd29fbafb..ab5f0827b 100644 --- a/src/smt/smt_failure.h +++ b/src/smt/smt_failure.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT_FAILURE_H_ -#define SMT_FAILURE_H_ +#pragma once namespace smt { @@ -37,4 +36,3 @@ namespace smt { }; -#endif diff --git a/src/smt/smt_farkas_util.h b/src/smt/smt_farkas_util.h index 73f7ff388..188b78c77 100644 --- a/src/smt/smt_farkas_util.h +++ b/src/smt/smt_farkas_util.h @@ -19,8 +19,7 @@ Revision History: --*/ -#ifndef FARKAS_UTIL_H_ -#define FARKAS_UTIL_H_ +#pragma once #include "ast/arith_decl_plugin.h" @@ -94,4 +93,3 @@ namespace smt { }; } -#endif diff --git a/src/smt/smt_for_each_relevant_expr.h b/src/smt/smt_for_each_relevant_expr.h index 3626e37c7..ef687ae01 100644 --- a/src/smt/smt_for_each_relevant_expr.h +++ b/src/smt/smt_for_each_relevant_expr.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT_FOR_EACH_RELEVANT_EXPR_H_ -#define SMT_FOR_EACH_RELEVANT_EXPR_H_ +#pragma once #include "ast/ast.h" #include "util/obj_hashtable.h" @@ -110,5 +109,4 @@ namespace smt { }; -#endif /* SMT_FOR_EACH_RELEVANT_EXPR_H_ */ diff --git a/src/smt/smt_implied_equalities.h b/src/smt/smt_implied_equalities.h index cc7acf22b..8a063a5d8 100644 --- a/src/smt/smt_implied_equalities.h +++ b/src/smt/smt_implied_equalities.h @@ -20,8 +20,7 @@ Revision History: --*/ -#ifndef SMT_IMPLIED_EQUALITIES_H_ -#define SMT_IMPLIED_EQUALITIES_H_ +#pragma once #include "smt/smt_solver.h" #include "util/lbool.h" @@ -40,4 +39,3 @@ namespace smt { }; -#endif diff --git a/src/smt/smt_justification.h b/src/smt/smt_justification.h index a7f62ee96..7d057d95c 100644 --- a/src/smt/smt_justification.h +++ b/src/smt/smt_justification.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT_JUSTIFICATION_H_ -#define SMT_JUSTIFICATION_H_ +#pragma once #include "ast/ast.h" #include "smt/smt_types.h" @@ -410,5 +409,4 @@ namespace smt { }; -#endif /* SMT_JUSTIFICATION_H_ */ diff --git a/src/smt/smt_kernel.h b/src/smt/smt_kernel.h index e9223f827..73797633e 100644 --- a/src/smt/smt_kernel.h +++ b/src/smt/smt_kernel.h @@ -24,8 +24,7 @@ Revision History: smt::solver ---> smt::kernel default_solver ---> smt::solver --*/ -#ifndef SMT_KERNEL_H_ -#define SMT_KERNEL_H_ +#pragma once #include "ast/ast.h" #include "util/params.h" @@ -283,4 +282,3 @@ namespace smt { }; }; -#endif diff --git a/src/smt/smt_literal.h b/src/smt/smt_literal.h index e18b5dc0a..863f4f13c 100644 --- a/src/smt/smt_literal.h +++ b/src/smt/smt_literal.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT_LITERAL_H_ -#define SMT_LITERAL_H_ +#pragma once #include "ast/ast.h" #include "smt/smt_types.h" @@ -120,5 +119,4 @@ namespace smt { bool backward_subsumption(unsigned num_lits1, literal const * lits1, unsigned num_lits2, literal const * lits2); }; -#endif /* SMT_LITERAL_H_ */ diff --git a/src/smt/smt_model_checker.h b/src/smt/smt_model_checker.h index b43711535..0c3097ef7 100644 --- a/src/smt/smt_model_checker.h +++ b/src/smt/smt_model_checker.h @@ -18,8 +18,7 @@ Author: Revision History: --*/ -#ifndef SMT_MODEL_CHECKER_H_ -#define SMT_MODEL_CHECKER_H_ +#pragma once #include "util/obj_hashtable.h" #include "ast/ast.h" @@ -108,4 +107,3 @@ namespace smt { }; }; -#endif // _SMT_MODEL_CHECKER_H_ diff --git a/src/smt/smt_model_finder.h b/src/smt/smt_model_finder.h index 726d83a9c..bedbae79e 100644 --- a/src/smt/smt_model_finder.h +++ b/src/smt/smt_model_finder.h @@ -43,8 +43,7 @@ Author: Revision History: --*/ -#ifndef SMT_MODEL_FINDER_H_ -#define SMT_MODEL_FINDER_H_ +#pragma once #include "ast/ast.h" #include "ast/func_decl_dependencies.h" @@ -126,4 +125,3 @@ namespace smt { }; }; -#endif diff --git a/src/smt/smt_model_generator.h b/src/smt/smt_model_generator.h index 18aec5101..80bd59799 100644 --- a/src/smt/smt_model_generator.h +++ b/src/smt/smt_model_generator.h @@ -25,8 +25,7 @@ Author: Revision History: --*/ -#ifndef SMT_MODEL_GENERATOR_H_ -#define SMT_MODEL_GENERATOR_H_ +#pragma once #include "ast/ast.h" #include "smt/smt_types.h" @@ -241,6 +240,5 @@ namespace smt { }; }; -#endif /* SMT_MODEL_GENERATOR_H_ */ diff --git a/src/smt/smt_quantifier.h b/src/smt/smt_quantifier.h index 34ba7c0f3..3868c19c9 100644 --- a/src/smt/smt_quantifier.h +++ b/src/smt/smt_quantifier.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT_QUANTIFIER_H_ -#define SMT_QUANTIFIER_H_ +#pragma once #include "ast/ast.h" #include "util/statistics.h" @@ -177,4 +176,3 @@ namespace smt { }; }; -#endif diff --git a/src/smt/smt_quantifier_instances.h b/src/smt/smt_quantifier_instances.h index 8f911da6c..6bd76a335 100644 --- a/src/smt/smt_quantifier_instances.h +++ b/src/smt/smt_quantifier_instances.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT_QUANTIFIER_INSTANCES_H_ -#define SMT_QUANTIFIER_INSTANCES_H_ +#pragma once namespace smt { @@ -62,5 +61,4 @@ namespace smt { }; -#endif /* SMT_QUANTIFIER_INSTANCES_H_ */ diff --git a/src/smt/smt_quantifier_stat.h b/src/smt/smt_quantifier_stat.h index 5c31032f9..c30881579 100644 --- a/src/smt/smt_quantifier_stat.h +++ b/src/smt/smt_quantifier_stat.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT_QUANTIFIER_STAT_H_ -#define SMT_QUANTIFIER_STAT_H_ +#pragma once #include "ast/ast.h" #include "util/obj_hashtable.h" @@ -136,5 +135,4 @@ namespace smt { }; -#endif /* SMT_QUANTIFIER_STAT_H_ */ diff --git a/src/smt/smt_quick_checker.h b/src/smt/smt_quick_checker.h index 2ba505923..8c8fd6c81 100644 --- a/src/smt/smt_quick_checker.h +++ b/src/smt/smt_quick_checker.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT_QUICK_CHECKER_H_ -#define SMT_QUICK_CHECKER_H_ +#pragma once #include "ast/ast.h" #include "ast/rewriter/th_rewriter.h" @@ -101,5 +100,4 @@ namespace smt { }; }; -#endif /* SMT_QUICK_CHECKER_H_ */ diff --git a/src/smt/smt_relevancy.h b/src/smt/smt_relevancy.h index 25e9bb1ce..29032e915 100644 --- a/src/smt/smt_relevancy.h +++ b/src/smt/smt_relevancy.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT_RELEVANCY_H_ -#define SMT_RELEVANCY_H_ +#pragma once #include "ast/ast.h" @@ -201,5 +200,4 @@ namespace smt { }; -#endif /* SMT_RELEVANCY_H_ */ diff --git a/src/smt/smt_setup.h b/src/smt/smt_setup.h index 53186f91c..fad499bec 100644 --- a/src/smt/smt_setup.h +++ b/src/smt/smt_setup.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT_SETUP_H_ -#define SMT_SETUP_H_ +#pragma once #include "ast/ast.h" #include "smt/params/smt_params.h" @@ -123,5 +122,4 @@ namespace smt { }; }; -#endif /* SMT_SETUP_H_ */ diff --git a/src/smt/smt_solver.h b/src/smt/smt_solver.h index 7d2677b35..e8d76b5f3 100644 --- a/src/smt/smt_solver.h +++ b/src/smt/smt_solver.h @@ -18,8 +18,7 @@ Notes: This file was called default_solver.h. It was a bad name. --*/ -#ifndef SMT_SOLVER_H_ -#define SMT_SOLVER_H_ +#pragma once #include "ast/ast.h" #include "util/params.h" @@ -30,4 +29,3 @@ class solver_factory; solver * mk_smt_solver(ast_manager & m, params_ref const & p, symbol const & logic); solver_factory * mk_smt_solver_factory(); -#endif diff --git a/src/smt/smt_statistics.h b/src/smt/smt_statistics.h index 4dfd0e5f1..587c35c63 100644 --- a/src/smt/smt_statistics.h +++ b/src/smt/smt_statistics.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT_STATISTICS_H_ -#define SMT_STATISTICS_H_ +#pragma once #include @@ -56,5 +55,4 @@ namespace smt { -#endif /* SMT_STATISTICS_H_ */ diff --git a/src/smt/smt_theory.h b/src/smt/smt_theory.h index c9a21c115..6aca2f5b4 100644 --- a/src/smt/smt_theory.h +++ b/src/smt/smt_theory.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT_THEORY_H_ -#define SMT_THEORY_H_ +#pragma once #include "smt/smt_enode.h" #include "smt/smt_quantifier.h" @@ -584,5 +583,4 @@ namespace smt { }; -#endif /* SMT_THEORY_H_ */ diff --git a/src/smt/smt_theory_var_list.h b/src/smt/smt_theory_var_list.h index 69180ad66..68b27624f 100644 --- a/src/smt/smt_theory_var_list.h +++ b/src/smt/smt_theory_var_list.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT_THEORY_VAR_LIST_H_ -#define SMT_THEORY_VAR_LIST_H_ +#pragma once #include "smt/smt_types.h" @@ -72,5 +71,4 @@ namespace smt { static_assert(sizeof(expr*) != 8 || sizeof(theory_var_list) == sizeof(theory_var_list *) + sizeof(int) + /* a structure must be aligned */ sizeof(int), "64 bit"); }; -#endif /* SMT_THEORY_VAR_LIST_H_ */ diff --git a/src/smt/smt_types.h b/src/smt/smt_types.h index e062a4ad6..510885d67 100644 --- a/src/smt/smt_types.h +++ b/src/smt/smt_types.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT_TYPES_H_ -#define SMT_TYPES_H_ +#pragma once #include "util/list.h" #include "util/vector.h" @@ -76,5 +75,4 @@ namespace smt { }; -#endif /* SMT_TYPES_H_ */ diff --git a/src/smt/smt_value_sort.h b/src/smt/smt_value_sort.h index d7228f21c..979afebf2 100644 --- a/src/smt/smt_value_sort.h +++ b/src/smt/smt_value_sort.h @@ -19,8 +19,7 @@ Revision History: --*/ -#ifndef SMT_VALUE_SORT_H_ -#define SMT_VALUE_SORT_H_ +#pragma once #include "ast/ast.h" @@ -34,4 +33,3 @@ namespace smt { }; -#endif diff --git a/src/smt/spanning_tree.h b/src/smt/spanning_tree.h index 8ba5e754f..ff02f2155 100644 --- a/src/smt/spanning_tree.h +++ b/src/smt/spanning_tree.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef SPANNING_TREE_H_ -#define SPANNING_TREE_H_ +#pragma once #include "smt/diff_logic.h" #include "smt/spanning_tree_base.h" @@ -79,4 +78,3 @@ namespace smt { } -#endif diff --git a/src/smt/spanning_tree_base.h b/src/smt/spanning_tree_base.h index fe407f87b..cb1e722cf 100644 --- a/src/smt/spanning_tree_base.h +++ b/src/smt/spanning_tree_base.h @@ -17,8 +17,7 @@ Notes: --*/ -#ifndef SPANNING_TREE_BASE_H_ -#define SPANNING_TREE_BASE_H_ +#pragma once #include "util/util.h" #include "util/vector.h" @@ -50,4 +49,3 @@ namespace smt { }; } -#endif diff --git a/src/smt/spanning_tree_def.h b/src/smt/spanning_tree_def.h index e299e3028..478889c90 100644 --- a/src/smt/spanning_tree_def.h +++ b/src/smt/spanning_tree_def.h @@ -16,8 +16,7 @@ Notes: --*/ -#ifndef SPANNING_TREE_DEF_H_ -#define SPANNING_TREE_DEF_H_ +#pragma once #include "smt/spanning_tree.h" @@ -486,4 +485,3 @@ namespace smt { } -#endif diff --git a/src/smt/tactic/ctx_solver_simplify_tactic.h b/src/smt/tactic/ctx_solver_simplify_tactic.h index 28006cefc..a1adba0d6 100644 --- a/src/smt/tactic/ctx_solver_simplify_tactic.h +++ b/src/smt/tactic/ctx_solver_simplify_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef CTX_SOLVER_SIMPLIFY_TACTIC_H_ -#define CTX_SOLVER_SIMPLIFY_TACTIC_H_ +#pragma once #include "tactic/tactical.h" @@ -26,4 +25,3 @@ tactic * mk_ctx_solver_simplify_tactic(ast_manager & m, params_ref const & p = p ADD_TACTIC("ctx-solver-simplify", "apply solver-based contextual simplification rules.", "mk_ctx_solver_simplify_tactic(m, p)") */ -#endif diff --git a/src/smt/tactic/smt_tactic.h b/src/smt/tactic/smt_tactic.h index 733413bb2..bb9a1b69a 100644 --- a/src/smt/tactic/smt_tactic.h +++ b/src/smt/tactic/smt_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef SMT_TACTIC_H_ -#define SMT_TACTIC_H_ +#pragma once #include "util/params.h" #include "ast/ast.h" @@ -38,4 +37,3 @@ tactic * mk_parallel_smt_tactic(ast_manager& m, params_ref const& p); ADD_TACTIC("smt", "apply a SAT based SMT solver.", "mk_smt_tactic(m, p)") ADD_TACTIC("psmt", "builtin strategy for SMT tactic in parallel.", "mk_parallel_smt_tactic(m, p)") */ -#endif diff --git a/src/smt/tactic/unit_subsumption_tactic.h b/src/smt/tactic/unit_subsumption_tactic.h index 09db59295..cdb441b30 100644 --- a/src/smt/tactic/unit_subsumption_tactic.h +++ b/src/smt/tactic/unit_subsumption_tactic.h @@ -21,8 +21,7 @@ Notes: It uses the smt_context for the solver. --*/ -#ifndef UNIT_SUBSUMPTION_TACTIC_H_ -#define UNIT_SUBSUMPTION_TACTIC_H_ +#pragma once #include "tactic/tactic.h" tactic * mk_unit_subsumption_tactic(ast_manager & m, params_ref const & p = params_ref()); @@ -30,4 +29,3 @@ tactic * mk_unit_subsumption_tactic(ast_manager & m, params_ref const & p = para ADD_TACTIC("unit-subsume-simplify", "unit subsumption simplification.", "mk_unit_subsumption_tactic(m, p)") */ -#endif diff --git a/src/smt/theory_arith.h b/src/smt/theory_arith.h index a8e7c58b1..41bdb1872 100644 --- a/src/smt/theory_arith.h +++ b/src/smt/theory_arith.h @@ -17,8 +17,7 @@ Author: Revision History: --*/ -#ifndef THEORY_ARITH_H_ -#define THEORY_ARITH_H_ +#pragma once #include "util/map.h" #include "util/heap.h" @@ -1288,5 +1287,4 @@ namespace smt { }; -#endif /* THEORY_ARITH_H_ */ diff --git a/src/smt/theory_arith_aux.h b/src/smt/theory_arith_aux.h index a9cf2ba03..1ae97bba1 100644 --- a/src/smt/theory_arith_aux.h +++ b/src/smt/theory_arith_aux.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef THEORY_ARITH_AUX_H_ -#define THEORY_ARITH_AUX_H_ +#pragma once #include "util/inf_eps_rational.h" #include "smt/theory_arith.h" @@ -2290,5 +2289,4 @@ namespace smt { }; -#endif /* THEORY_ARITH_AUX_H_ */ diff --git a/src/smt/theory_arith_core.h b/src/smt/theory_arith_core.h index 643ef9e36..88696629a 100644 --- a/src/smt/theory_arith_core.h +++ b/src/smt/theory_arith_core.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef THEORY_ARITH_CORE_H_ -#define THEORY_ARITH_CORE_H_ +#pragma once #include "ast/ast_pp.h" #include "ast/ast_ll_pp.h" @@ -3557,4 +3556,3 @@ namespace smt { }; -#endif /* THEORY_ARITH_CORE_H_ */ diff --git a/src/smt/theory_arith_def.h b/src/smt/theory_arith_def.h index 962f55f02..7ef60479a 100644 --- a/src/smt/theory_arith_def.h +++ b/src/smt/theory_arith_def.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef THEORY_ARITH_DEF_H_ -#define THEORY_ARITH_DEF_H_ +#pragma once #include "smt/theory_arith.h" #include "smt/theory_arith_core.h" @@ -28,5 +27,4 @@ Revision History: #include "smt/theory_arith_eq.h" #include "smt/theory_arith_nl.h" -#endif /* THEORY_ARITH_DEF_H_ */ diff --git a/src/smt/theory_arith_eq.h b/src/smt/theory_arith_eq.h index 5a6ee094e..9e2da768e 100644 --- a/src/smt/theory_arith_eq.h +++ b/src/smt/theory_arith_eq.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef THEORY_ARITH_EQ_H_ -#define THEORY_ARITH_EQ_H_ +#pragma once // #define PROFILE_OFFSET_ROW @@ -358,5 +357,4 @@ namespace smt { } }; -#endif /* THEORY_ARITH_EQ_H_ */ diff --git a/src/smt/theory_arith_int.h b/src/smt/theory_arith_int.h index 9fd548aea..91daf23c4 100644 --- a/src/smt/theory_arith_int.h +++ b/src/smt/theory_arith_int.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef THEORY_ARITH_INT_H_ -#define THEORY_ARITH_INT_H_ +#pragma once #include "util/numeral_buffer.h" #include "ast/ast_ll_pp.h" @@ -1128,5 +1127,4 @@ namespace smt { }; -#endif /* THEORY_ARITH_INT_H_ */ diff --git a/src/smt/theory_arith_inv.h b/src/smt/theory_arith_inv.h index 9517f558f..30a4b5330 100644 --- a/src/smt/theory_arith_inv.h +++ b/src/smt/theory_arith_inv.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef THEORY_ARITH_INV_H_ -#define THEORY_ARITH_INV_H_ +#pragma once #include "smt/theory_arith.h" #include "ast/ast_pp.h" @@ -232,5 +231,4 @@ namespace smt { }; -#endif /* THEORY_ARITH_INV_H_ */ diff --git a/src/smt/theory_arith_nl.h b/src/smt/theory_arith_nl.h index d75ab0f13..917ba4fd4 100644 --- a/src/smt/theory_arith_nl.h +++ b/src/smt/theory_arith_nl.h @@ -16,8 +16,7 @@ Revision History: --*/ -#ifndef THEORY_ARITH_NL_H_ -#define THEORY_ARITH_NL_H_ +#pragma once #include "ast/ast_smt2_pp.h" @@ -2395,5 +2394,4 @@ final_check_status theory_arith::process_non_linear() { }; -#endif /* THEORY_ARITH_NL_H_ */ diff --git a/src/smt/theory_arith_pp.h b/src/smt/theory_arith_pp.h index 0277a5717..222321e65 100644 --- a/src/smt/theory_arith_pp.h +++ b/src/smt/theory_arith_pp.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef THEORY_ARITH_PP_H_ -#define THEORY_ARITH_PP_H_ +#pragma once #include "smt/theory_arith.h" #include "ast/ast_smt_pp.h" @@ -560,5 +559,4 @@ namespace smt { }; -#endif /* THEORY_ARITH_PP_H_ */ diff --git a/src/smt/theory_array.h b/src/smt/theory_array.h index 4ab915aa1..2b38aaa2d 100644 --- a/src/smt/theory_array.h +++ b/src/smt/theory_array.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef THEORY_ARRAY_H_ -#define THEORY_ARRAY_H_ +#pragma once #include "smt/theory_array_base.h" #include "smt/params/theory_array_params.h" @@ -115,5 +114,4 @@ namespace smt { }; -#endif /* THEORY_ARRAY_H_ */ diff --git a/src/smt/theory_array_bapa.h b/src/smt/theory_array_bapa.h index 0a1e39066..98fcdd148 100644 --- a/src/smt/theory_array_bapa.h +++ b/src/smt/theory_array_bapa.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef THEORY_ARRAY_BAPA_H_ -#define THEORY_ARRAY_BAPA_H_ +#pragma once #include "ast/ast.h" #include "smt/smt_theory.h" @@ -41,5 +40,4 @@ namespace smt { }; -#endif /* THEORY_ARRAY_BAPA_H_ */ diff --git a/src/smt/theory_array_base.h b/src/smt/theory_array_base.h index b6607cb2f..95e2d2125 100644 --- a/src/smt/theory_array_base.h +++ b/src/smt/theory_array_base.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef THEORY_ARRAY_BASE_H_ -#define THEORY_ARRAY_BASE_H_ +#pragma once #include "smt/smt_theory.h" #include "smt/theory_array_bapa.h" @@ -213,5 +212,4 @@ namespace smt { }; -#endif /* THEORY_ARRAY_BASE_H_ */ diff --git a/src/smt/theory_array_full.h b/src/smt/theory_array_full.h index 37a967c2a..559cf6fed 100644 --- a/src/smt/theory_array_full.h +++ b/src/smt/theory_array_full.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef THEORY_ARRAY_FULL_H_ -#define THEORY_ARRAY_FULL_H_ +#pragma once #include "smt/theory_array.h" #include "ast/ast_trail.h" @@ -107,5 +106,4 @@ namespace smt { }; -#endif /* THEORY_ARRAY_H_ */ diff --git a/src/smt/theory_datatype.h b/src/smt/theory_datatype.h index c5a2f29be..9e93b3b37 100644 --- a/src/smt/theory_datatype.h +++ b/src/smt/theory_datatype.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef THEORY_DATATYPE_H_ -#define THEORY_DATATYPE_H_ +#pragma once #include "util/union_find.h" #include "ast/array_decl_plugin.h" @@ -148,5 +147,4 @@ namespace smt { }; -#endif /* THEORY_DATATYPE_H_ */ diff --git a/src/smt/theory_dense_diff_logic.h b/src/smt/theory_dense_diff_logic.h index a06502e6d..8ab091a27 100644 --- a/src/smt/theory_dense_diff_logic.h +++ b/src/smt/theory_dense_diff_logic.h @@ -18,8 +18,7 @@ Revision History: TODO: eager equality propagation --*/ -#ifndef THEORY_DENSE_DIFF_LOGIC_H_ -#define THEORY_DENSE_DIFF_LOGIC_H_ +#pragma once #include "smt/theory_arith.h" #include "smt/params/theory_arith_params.h" @@ -296,5 +295,4 @@ namespace smt { typedef theory_dense_diff_logic theory_dense_si; }; -#endif /* THEORY_DENSE_DIFF_LOGIC_H_ */ diff --git a/src/smt/theory_dense_diff_logic_def.h b/src/smt/theory_dense_diff_logic_def.h index f0fa3d010..79e6c9ca0 100644 --- a/src/smt/theory_dense_diff_logic_def.h +++ b/src/smt/theory_dense_diff_logic_def.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef THEORY_DENSE_DIFF_LOGIC_DEF_H_ -#define THEORY_DENSE_DIFF_LOGIC_DEF_H_ +#pragma once #include "smt/smt_context.h" #include "smt/theory_dense_diff_logic.h" @@ -1131,5 +1130,4 @@ namespace smt { }; -#endif /* THEORY_DENSE_DIFF_LOGIC_DEF_H_ */ diff --git a/src/smt/theory_diff_logic.h b/src/smt/theory_diff_logic.h index df946be0a..285c03b35 100644 --- a/src/smt/theory_diff_logic.h +++ b/src/smt/theory_diff_logic.h @@ -19,8 +19,7 @@ Revision History: --*/ -#ifndef THEORY_DIFF_LOGIC_H_ -#define THEORY_DIFF_LOGIC_H_ +#pragma once #include "util/rational.h" #include "util/inf_rational.h" @@ -419,4 +418,3 @@ namespace smt { -#endif /* THEORY_DIFF_LOGIC_H_ */ diff --git a/src/smt/theory_diff_logic_def.h b/src/smt/theory_diff_logic_def.h index b09a7a8ad..da6b7a6d2 100644 --- a/src/smt/theory_diff_logic_def.h +++ b/src/smt/theory_diff_logic_def.h @@ -19,8 +19,7 @@ Revision History: 2008-05-11 ported from v1.2. Add theory propagation. --*/ -#ifndef THEORY_DIFF_LOGIC_DEF_H_ -#define THEORY_DIFF_LOGIC_DEF_H_ +#pragma once #include "util/map.h" #include "util/warning.h" @@ -1469,5 +1468,4 @@ void theory_diff_logic::init_zero() { m_rzero = mk_var(e); } -#endif /* THEORY_DIFF_LOGIC_DEF_H_ */ diff --git a/src/smt/theory_dl.h b/src/smt/theory_dl.h index 57aef16e6..4bcd94e83 100644 --- a/src/smt/theory_dl.h +++ b/src/smt/theory_dl.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef THEORY_DL_H_ -#define THEORY_DL_H_ +#pragma once namespace smt { @@ -26,5 +25,4 @@ namespace smt { }; -#endif /* THEORY_DL_H_ */ diff --git a/src/smt/theory_dummy.h b/src/smt/theory_dummy.h index 9d2bfcddb..6f2e641fd 100644 --- a/src/smt/theory_dummy.h +++ b/src/smt/theory_dummy.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef THEORY_DUMMY_H_ -#define THEORY_DUMMY_H_ +#pragma once #include "smt/smt_theory.h" @@ -55,5 +54,4 @@ namespace smt { }; }; -#endif /* THEORY_DUMMY_H_ */ diff --git a/src/smt/theory_fpa.h b/src/smt/theory_fpa.h index f1c496962..b485d1e39 100644 --- a/src/smt/theory_fpa.h +++ b/src/smt/theory_fpa.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef THEORY_FPA_H_ -#define THEORY_FPA_H_ +#pragma once #include "smt/smt_theory.h" #include "util/trail.h" @@ -202,4 +201,3 @@ namespace smt { }; -#endif /* THEORY_FPA_H_ */ diff --git a/src/smt/theory_opt.h b/src/smt/theory_opt.h index 2947d86c1..a9eb2321b 100644 --- a/src/smt/theory_opt.h +++ b/src/smt/theory_opt.h @@ -22,8 +22,7 @@ Notes: #include "util/inf_eps_rational.h" #include "ast/arith_decl_plugin.h" -#ifndef THEORY_OPT_H_ -#define THEORY_OPT_H_ +#pragma once class generic_model_converter; namespace smt { @@ -38,4 +37,3 @@ namespace smt { }; } -#endif diff --git a/src/smt/theory_recfun.h b/src/smt/theory_recfun.h index db9d28e9c..4ee626434 100644 --- a/src/smt/theory_recfun.h +++ b/src/smt/theory_recfun.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef THEORY_RECFUN_H_ -#define THEORY_RECFUN_H_ +#pragma once #include "smt/smt_theory.h" #include "smt/smt_context.h" @@ -168,4 +167,3 @@ namespace smt { }; } -#endif diff --git a/src/smt/theory_seq.h b/src/smt/theory_seq.h index e4efeb55e..b6b810b5f 100644 --- a/src/smt/theory_seq.h +++ b/src/smt/theory_seq.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef THEORY_SEQ_H_ -#define THEORY_SEQ_H_ +#pragma once #include "ast/seq_decl_plugin.h" #include "ast/rewriter/th_rewriter.h" @@ -701,5 +700,4 @@ namespace smt { }; }; -#endif /* THEORY_SEQ_H_ */ diff --git a/src/smt/theory_seq_empty.h b/src/smt/theory_seq_empty.h index e06a5eaeb..590878daa 100644 --- a/src/smt/theory_seq_empty.h +++ b/src/smt/theory_seq_empty.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef THEORY_SEQ_EMPTY_H_ -#define THEORY_SEQ_EMPTY_H_ +#pragma once #include "ast/seq_decl_plugin.h" #include "model/seq_factory.h" @@ -46,5 +45,4 @@ namespace smt { }; -#endif /* THEORY_SEQ_EMPTY_H_ */ diff --git a/src/smt/theory_special_relations.h b/src/smt/theory_special_relations.h index f1ac66963..44eee7395 100644 --- a/src/smt/theory_special_relations.h +++ b/src/smt/theory_special_relations.h @@ -17,8 +17,7 @@ Notes: --*/ -#ifndef THEORY_SPECIAL_RELATIONS_H_ -#define THEORY_SPECIAL_RELATIONS_H_ +#pragma once #include "ast/special_relations_decl_plugin.h" #include "smt/smt_theory.h" @@ -204,4 +203,3 @@ namespace smt { }; } -#endif diff --git a/src/smt/theory_str.h b/src/smt/theory_str.h index f3e620157..214ad0efa 100644 --- a/src/smt/theory_str.h +++ b/src/smt/theory_str.h @@ -14,8 +14,7 @@ Revision History: --*/ -#ifndef _THEORY_STR_H_ -#define _THEORY_STR_H_ +#pragma once #include "util/trail.h" #include "util/union_find.h" @@ -837,4 +836,3 @@ protected: }; -#endif /* _THEORY_STR_H_ */ diff --git a/src/smt/theory_utvpi.h b/src/smt/theory_utvpi.h index 531a99dd2..6ea13a2f6 100644 --- a/src/smt/theory_utvpi.h +++ b/src/smt/theory_utvpi.h @@ -19,8 +19,7 @@ Revision History: --*/ -#ifndef THEORY_UTVPI_H_ -#define THEORY_UTVPI_H_ +#pragma once #include "smt/theory_diff_logic.h" @@ -365,4 +364,3 @@ namespace smt { -#endif /* THEORY_UTVPI_H_ */ diff --git a/src/smt/theory_wmaxsat.h b/src/smt/theory_wmaxsat.h index f3d3b24a5..3a24dca10 100644 --- a/src/smt/theory_wmaxsat.h +++ b/src/smt/theory_wmaxsat.h @@ -17,8 +17,7 @@ Notes: --*/ -#ifndef THEORY_WMAXSAT_H_ -#define THEORY_WMAXSAT_H_ +#pragma once #include "smt/smt_theory.h" #include "smt/smt_clause.h" @@ -140,4 +139,3 @@ namespace smt { }; }; -#endif diff --git a/src/smt/uses_theory.h b/src/smt/uses_theory.h index 948d05f77..2af11ccf7 100644 --- a/src/smt/uses_theory.h +++ b/src/smt/uses_theory.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef USES_THEORY_H_ -#define USES_THEORY_H_ +#pragma once #include "ast/ast.h" @@ -33,5 +32,4 @@ bool uses_theory(expr * n, family_id fid); */ bool uses_theory(expr * n, family_id fid, expr_mark & visited); -#endif /* USES_THEORY_H_ */ diff --git a/src/smt/watch_list.h b/src/smt/watch_list.h index 6d7a509d5..9c05fa6ce 100644 --- a/src/smt/watch_list.h +++ b/src/smt/watch_list.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef WATCH_LIST_H_ -#define WATCH_LIST_H_ +#pragma once #include "smt/smt_clause.h" #include "util/memory_manager.h" @@ -186,5 +185,4 @@ namespace smt { }; -#endif /* WATCH_LIST_H_ */ diff --git a/src/solver/check_sat_result.h b/src/solver/check_sat_result.h index 7e698b806..1a52e2d3c 100644 --- a/src/solver/check_sat_result.h +++ b/src/solver/check_sat_result.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef CHECK_SAT_RESULT_H_ -#define CHECK_SAT_RESULT_H_ +#pragma once #include "model/model.h" #include "util/lbool.h" @@ -90,4 +89,3 @@ struct simple_check_sat_result : public check_sat_result { void set_reason_unknown(char const* msg) override { m_unknown = msg; } }; -#endif diff --git a/src/solver/combined_solver.h b/src/solver/combined_solver.h index 70637070c..f6ccae24d 100644 --- a/src/solver/combined_solver.h +++ b/src/solver/combined_solver.h @@ -18,8 +18,7 @@ Author: Notes: --*/ -#ifndef COMBINED_SOLVER_H_ -#define COMBINED_SOLVER_H_ +#pragma once #include "util/params.h" @@ -30,4 +29,3 @@ solver * mk_combined_solver(solver * s1, solver * s2, params_ref const & p); solver_factory * mk_combined_solver_factory(solver_factory * f1, solver_factory * f2); -#endif diff --git a/src/solver/mus.h b/src/solver/mus.h index 807b07873..dcd5b8f8a 100644 --- a/src/solver/mus.h +++ b/src/solver/mus.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef MUS_H_ -#define MUS_H_ +#pragma once class mus { struct imp; @@ -64,4 +63,3 @@ class mus { }; -#endif diff --git a/src/solver/parallel_tactic.h b/src/solver/parallel_tactic.h index ae8fb6041..18843077b 100644 --- a/src/solver/parallel_tactic.h +++ b/src/solver/parallel_tactic.h @@ -16,12 +16,10 @@ Author: Notes: --*/ -#ifndef PARALLEL_TACTIC_H_ -#define PARALLEL_TACTIC_H_ +#pragma once class tactic; class solver; tactic * mk_parallel_tactic(solver* s, params_ref const& p); -#endif diff --git a/src/solver/progress_callback.h b/src/solver/progress_callback.h index 0ddaae4a9..e8c463609 100644 --- a/src/solver/progress_callback.h +++ b/src/solver/progress_callback.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef PROGRESS_CALLBACK_H_ -#define PROGRESS_CALLBACK_H_ +#pragma once class progress_callback { public: @@ -30,4 +29,3 @@ public: virtual void slow_progress_sample() {} }; -#endif diff --git a/src/solver/smt_logics.h b/src/solver/smt_logics.h index 4382f575b..14fdffc06 100644 --- a/src/solver/smt_logics.h +++ b/src/solver/smt_logics.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SMT_LOGICS_H_ -#define SMT_LOGICS_H_ +#pragma once class smt_logics { public: @@ -40,5 +39,4 @@ public: static bool logic_has_datatype(symbol const& s); }; -#endif /* SMT_LOGICS_H_ */ diff --git a/src/solver/solver.h b/src/solver/solver.h index 1dd08c250..42a3f3cbd 100644 --- a/src/solver/solver.h +++ b/src/solver/solver.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef SOLVER_H_ -#define SOLVER_H_ +#pragma once #include "solver/check_sat_result.h" #include "solver/progress_callback.h" @@ -282,4 +281,3 @@ inline std::ostream& operator<<(std::ostream& out, solver const& s) { return s.display(out); } -#endif diff --git a/src/solver/solver2tactic.h b/src/solver/solver2tactic.h index 8c6466ddb..a5b529f69 100644 --- a/src/solver/solver2tactic.h +++ b/src/solver/solver2tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef SOLVER2TACTIC_H_ -#define SOLVER2TACTIC_H_ +#pragma once #include "tactic/tactic.h" #include "tactic/generic_model_converter.h" @@ -27,4 +26,3 @@ tactic * mk_solver2tactic(solver* s); void extract_clauses_and_dependencies(goal_ref const& g, expr_ref_vector& clauses, ptr_vector& assumptions, obj_map& bool2dep, ref& fmc); -#endif diff --git a/src/solver/solver_na2as.h b/src/solver/solver_na2as.h index cf034424d..c8340bd6e 100644 --- a/src/solver/solver_na2as.h +++ b/src/solver/solver_na2as.h @@ -19,8 +19,7 @@ Author: Notes: --*/ -#ifndef SOLVER_NA2AS_H_ -#define SOLVER_NA2AS_H_ +#pragma once #include "solver/solver.h" @@ -55,4 +54,3 @@ protected: }; -#endif diff --git a/src/solver/solver_pool.h b/src/solver/solver_pool.h index 42c13fc58..d2f48a15b 100644 --- a/src/solver/solver_pool.h +++ b/src/solver/solver_pool.h @@ -22,8 +22,7 @@ Notes: Use this module as a replacement for spacer_smt_context_manager. --*/ -#ifndef SOLVER_POOL_H_ -#define SOLVER_POOL_H_ +#pragma once #include "solver/solver.h" #include "util/stopwatch.h" @@ -71,4 +70,3 @@ public: }; -#endif diff --git a/src/solver/tactic2solver.h b/src/solver/tactic2solver.h index d9fffba24..47284278e 100644 --- a/src/solver/tactic2solver.h +++ b/src/solver/tactic2solver.h @@ -19,8 +19,7 @@ Author: Notes: --*/ -#ifndef TACTIC2SOLVER_H_ -#define TACTIC2SOLVER_H_ +#pragma once #include "util/params.h" @@ -43,4 +42,3 @@ solver * mk_tactic2solver(ast_manager & m, solver_factory * mk_tactic2solver_factory(tactic * t); solver_factory * mk_tactic_factory2solver_factory(tactic_factory f); -#endif diff --git a/src/tactic/aig/aig.h b/src/tactic/aig/aig.h index 5e0add752..2b82dad5b 100644 --- a/src/tactic/aig/aig.h +++ b/src/tactic/aig/aig.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef AIG_H_ -#define AIG_H_ +#pragma once #include "ast/ast.h" #include "tactic/tactic_exception.h" @@ -75,4 +74,3 @@ public: unsigned get_num_aigs() const; }; -#endif diff --git a/src/tactic/aig/aig_tactic.h b/src/tactic/aig/aig_tactic.h index 2ba97e3b4..33c00d692 100644 --- a/src/tactic/aig/aig_tactic.h +++ b/src/tactic/aig/aig_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef AIG_TACTIC_H_ -#define AIG_TACTIC_H_ +#pragma once #include "util/params.h" class tactic; @@ -26,4 +25,3 @@ tactic * mk_aig_tactic(params_ref const & p = params_ref()); /* ADD_TACTIC("aig", "simplify Boolean structure using AIGs.", "mk_aig_tactic()") */ -#endif diff --git a/src/tactic/arith/add_bounds_tactic.h b/src/tactic/arith/add_bounds_tactic.h index b7b8f419c..0d42d8e61 100644 --- a/src/tactic/arith/add_bounds_tactic.h +++ b/src/tactic/arith/add_bounds_tactic.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef ADD_BOUNDS_H_ -#define ADD_BOUNDS_H_ +#pragma once #include "util/params.h" @@ -36,4 +35,3 @@ tactic * mk_add_bounds_tactic(ast_manager & m, params_ref const & p = params_ref ADD_PROBE("is-unbounded", "true if the goal contains integer/real constants that do not have lower/upper bounds.", "mk_is_unbounded_probe()") */ -#endif diff --git a/src/tactic/arith/arith_bounds_tactic.h b/src/tactic/arith/arith_bounds_tactic.h index 92bc85564..4606f6144 100644 --- a/src/tactic/arith/arith_bounds_tactic.h +++ b/src/tactic/arith/arith_bounds_tactic.h @@ -28,10 +28,8 @@ Notes: subsumption of atoms. --*/ -#ifndef ARITH_BOUNDS_TACTIC_H_ -#define ARITH_BOUNDS_TACTIC_H_ +#pragma once #include "tactic/tactic.h" tactic * mk_arith_bounds_tactic(ast_manager & m, params_ref const & p = params_ref()); -#endif diff --git a/src/tactic/arith/bound_manager.h b/src/tactic/arith/bound_manager.h index 378a240d3..6047dd36d 100644 --- a/src/tactic/arith/bound_manager.h +++ b/src/tactic/arith/bound_manager.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef BOUND_MANAGER_H_ -#define BOUND_MANAGER_H_ +#pragma once #include "ast/ast.h" #include "ast/arith_decl_plugin.h" @@ -112,4 +111,3 @@ public: void display(std::ostream & out) const; }; -#endif diff --git a/src/tactic/arith/bound_propagator.h b/src/tactic/arith/bound_propagator.h index 042e39e5f..d7b649c39 100644 --- a/src/tactic/arith/bound_propagator.h +++ b/src/tactic/arith/bound_propagator.h @@ -17,8 +17,7 @@ Author: Revision History: --*/ -#ifndef BOUND_PROPAGATOR_H_ -#define BOUND_PROPAGATOR_H_ +#pragma once #include "util/mpq.h" #include "util/vector.h" @@ -262,4 +261,3 @@ public: unsigned get_num_propagations() const { return m_propagations; } }; -#endif diff --git a/src/tactic/arith/bv2int_rewriter.h b/src/tactic/arith/bv2int_rewriter.h index 698328459..335404651 100644 --- a/src/tactic/arith/bv2int_rewriter.h +++ b/src/tactic/arith/bv2int_rewriter.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef BV2INT_REWRITER_H_ -#define BV2INT_REWRITER_H_ +#pragma once #include "ast/ast.h" #include "ast/rewriter/rewriter.h" @@ -119,4 +118,3 @@ public: m_cfg(m, ctx) {} }; -#endif diff --git a/src/tactic/arith/bv2real_rewriter.h b/src/tactic/arith/bv2real_rewriter.h index e03637453..c17dbf0c7 100644 --- a/src/tactic/arith/bv2real_rewriter.h +++ b/src/tactic/arith/bv2real_rewriter.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef BV2REAL_REWRITER_H_ -#define BV2REAL_REWRITER_H_ +#pragma once #include "ast/ast.h" #include "ast/rewriter/rewriter.h" @@ -230,4 +229,3 @@ public: m_cfg(u) {} }; -#endif diff --git a/src/tactic/arith/card2bv_tactic.h b/src/tactic/arith/card2bv_tactic.h index 5e2051b50..81296f18d 100644 --- a/src/tactic/arith/card2bv_tactic.h +++ b/src/tactic/arith/card2bv_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef CARD2BV_TACTIC_H_ -#define CARD2BV_TACTIC_H_ +#pragma once #include "util/params.h" #include "ast/pb_decl_plugin.h" @@ -108,4 +107,3 @@ tactic * mk_card2bv_tactic(ast_manager & m, params_ref const & p = params_ref()) */ -#endif diff --git a/src/tactic/arith/degree_shift_tactic.h b/src/tactic/arith/degree_shift_tactic.h index 3456e19e5..9f3f9f09d 100644 --- a/src/tactic/arith/degree_shift_tactic.h +++ b/src/tactic/arith/degree_shift_tactic.h @@ -19,8 +19,7 @@ Author: Revision History: --*/ -#ifndef DEGREE_SHIFT_TACTIC_H_ -#define DEGREE_SHIFT_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -32,4 +31,3 @@ tactic * mk_degree_shift_tactic(ast_manager & m, params_ref const & p = params_r ADD_TACTIC("degree-shift", "try to reduce degree of polynomials (remark: :mul2power simplification is automatically applied).", "mk_degree_shift_tactic(m, p)") */ -#endif diff --git a/src/tactic/arith/diff_neq_tactic.h b/src/tactic/arith/diff_neq_tactic.h index 3fbe616dc..2280a5d77 100644 --- a/src/tactic/arith/diff_neq_tactic.h +++ b/src/tactic/arith/diff_neq_tactic.h @@ -20,8 +20,7 @@ Author: Revision History: --*/ -#ifndef DIFF_NEQ_TACTIC_H_ -#define DIFF_NEQ_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -31,4 +30,3 @@ tactic * mk_diff_neq_tactic(ast_manager & m, params_ref const & p = params_ref() /* ADD_TACTIC("diff-neq", "specialized solver for integer arithmetic problems that contain only atoms of the form (<= k x) (<= x k) and (not (= (- x y) k)), where x and y are constants and k is a numeral, and all constants are bounded.", "mk_diff_neq_tactic(m, p)") */ -#endif diff --git a/src/tactic/arith/eq2bv_tactic.h b/src/tactic/arith/eq2bv_tactic.h index 9441bfed3..e8c29715c 100644 --- a/src/tactic/arith/eq2bv_tactic.h +++ b/src/tactic/arith/eq2bv_tactic.h @@ -17,8 +17,7 @@ Author: Notes: --*/ -#ifndef EQ2BV_TACTIC_H_ -#define EQ2BV_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -31,4 +30,3 @@ tactic * mk_eq2bv_tactic(ast_manager & m); */ -#endif diff --git a/src/tactic/arith/factor_tactic.h b/src/tactic/arith/factor_tactic.h index 3b48f9f6d..b02f67448 100644 --- a/src/tactic/arith/factor_tactic.h +++ b/src/tactic/arith/factor_tactic.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef FACTOR_TACTIC_H_ -#define FACTOR_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -27,4 +26,3 @@ tactic * mk_factor_tactic(ast_manager & m, params_ref const & p = params_ref()); /* ADD_TACTIC("factor", "polynomial factorization.", "mk_factor_tactic(m, p)") */ -#endif diff --git a/src/tactic/arith/fix_dl_var_tactic.h b/src/tactic/arith/fix_dl_var_tactic.h index 9e204bf1b..d7a79bf4b 100644 --- a/src/tactic/arith/fix_dl_var_tactic.h +++ b/src/tactic/arith/fix_dl_var_tactic.h @@ -21,8 +21,7 @@ Author: Notes: --*/ -#ifndef FIX_DL_VAR_TACTIC_H_ -#define FIX_DL_VAR_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -34,4 +33,3 @@ tactic * mk_fix_dl_var_tactic(ast_manager & m, params_ref const & p = params_ref ADD_TACTIC("fix-dl-var", "if goal is in the difference logic fragment, then fix the variable with the most number of occurrences at 0.", "mk_fix_dl_var_tactic(m, p)") */ -#endif diff --git a/src/tactic/arith/fm_tactic.h b/src/tactic/arith/fm_tactic.h index 0b59ab98f..622007703 100644 --- a/src/tactic/arith/fm_tactic.h +++ b/src/tactic/arith/fm_tactic.h @@ -21,8 +21,7 @@ Author: Revision History: --*/ -#ifndef FM_TACTIC_H_ -#define FM_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -33,4 +32,3 @@ tactic * mk_fm_tactic(ast_manager & m, params_ref const & p = params_ref()); ADD_TACTIC("fm", "eliminate variables using fourier-motzkin elimination.", "mk_fm_tactic(m, p)") */ -#endif diff --git a/src/tactic/arith/lia2card_tactic.h b/src/tactic/arith/lia2card_tactic.h index 4a8334f10..ff076aa42 100644 --- a/src/tactic/arith/lia2card_tactic.h +++ b/src/tactic/arith/lia2card_tactic.h @@ -17,8 +17,7 @@ Author: Notes: --*/ -#ifndef LIA2CARD_TACTIC_H_ -#define LIA2CARD_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -32,4 +31,3 @@ tactic * mk_lia2card_tactic(ast_manager & m, params_ref const & p = params_ref() bool get_pb_sum(expr* term, expr_ref_vector& args, vector& coeffs, rational& coeff); -#endif diff --git a/src/tactic/arith/lia2pb_tactic.h b/src/tactic/arith/lia2pb_tactic.h index 29c05d52a..860b04d1c 100644 --- a/src/tactic/arith/lia2pb_tactic.h +++ b/src/tactic/arith/lia2pb_tactic.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef LIA2PB_TACTIC_H_ -#define LIA2PB_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -28,4 +27,3 @@ tactic * mk_lia2pb_tactic(ast_manager & m, params_ref const & p = params_ref()); ADD_TACTIC("lia2pb", "convert bounded integer variables into a sequence of 0-1 variables.", "mk_lia2pb_tactic(m, p)") */ -#endif diff --git a/src/tactic/arith/linear_equation.h b/src/tactic/arith/linear_equation.h index 1bfa94d1a..b3d43ab5e 100644 --- a/src/tactic/arith/linear_equation.h +++ b/src/tactic/arith/linear_equation.h @@ -18,8 +18,7 @@ Author: Revision History: --*/ -#ifndef LINEAR_EQUATION_H_ -#define LINEAR_EQUATION_H_ +#pragma once #include "util/mpq.h" #include "util/small_object_allocator.h" @@ -82,4 +81,3 @@ public: void display(std::ostream & out, linear_equation const & eq) const; }; -#endif diff --git a/src/tactic/arith/nla2bv_tactic.h b/src/tactic/arith/nla2bv_tactic.h index c6be722a3..80a60b30f 100644 --- a/src/tactic/arith/nla2bv_tactic.h +++ b/src/tactic/arith/nla2bv_tactic.h @@ -17,8 +17,7 @@ Notes: Ported to tactic framework on 2012-02-28 --*/ -#ifndef NLA2BV_TACTIC_H_ -#define NLA2BV_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -29,5 +28,4 @@ tactic * mk_nla2bv_tactic(ast_manager & m, params_ref const & p = params_ref()); ADD_TACTIC("nla2bv", "convert a nonlinear arithmetic problem into a bit-vector problem, in most cases the resultant goal is an under approximation and is useul for finding models.", "mk_nla2bv_tactic(m, p)") */ -#endif diff --git a/src/tactic/arith/normalize_bounds_tactic.h b/src/tactic/arith/normalize_bounds_tactic.h index f8473842f..dec4d486e 100644 --- a/src/tactic/arith/normalize_bounds_tactic.h +++ b/src/tactic/arith/normalize_bounds_tactic.h @@ -18,8 +18,7 @@ Author: Revision History: --*/ -#ifndef NORMALIZE_BOUNDS_TACTIC_H_ -#define NORMALIZE_BOUNDS_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -31,4 +30,3 @@ tactic * mk_normalize_bounds_tactic(ast_manager & m, params_ref const & p = para ADD_TACTIC("normalize-bounds", "replace a variable x with lower bound k <= x with x' = x - k.", "mk_normalize_bounds_tactic(m, p)") */ -#endif diff --git a/src/tactic/arith/pb2bv_model_converter.h b/src/tactic/arith/pb2bv_model_converter.h index 2d69bf7e4..5560ce7da 100644 --- a/src/tactic/arith/pb2bv_model_converter.h +++ b/src/tactic/arith/pb2bv_model_converter.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef PB2BV_MODEL_CONVERTER_H_ -#define PB2BV_MODEL_CONVERTER_H_ +#pragma once #include "tactic/model_converter.h" #include "tactic/arith/bound_manager.h" @@ -37,4 +36,3 @@ public: model_converter * translate(ast_translation & translator) override; }; -#endif diff --git a/src/tactic/arith/pb2bv_tactic.h b/src/tactic/arith/pb2bv_tactic.h index 49e87a8f7..e23c54d83 100644 --- a/src/tactic/arith/pb2bv_tactic.h +++ b/src/tactic/arith/pb2bv_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef PB2BV_TACTIC_H_ -#define PB2BV_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -34,4 +33,3 @@ probe * mk_is_pb_probe(); ADD_PROBE("is-pb", "true if the goal is a pseudo-boolean problem.", "mk_is_pb_probe()") */ -#endif diff --git a/src/tactic/arith/probe_arith.h b/src/tactic/arith/probe_arith.h index 0ff2efb90..83a123699 100644 --- a/src/tactic/arith/probe_arith.h +++ b/src/tactic/arith/probe_arith.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef PROBE_ARITH_H_ -#define PROBE_ARITH_H_ +#pragma once class probe; probe * mk_arith_avg_bw_probe(); @@ -68,4 +67,3 @@ probe * mk_is_qfufnra_probe(); ADD_PROBE("is-lira", "true if the goal is in LIRA (linear integer and real arithmetic, formula may have quantifiers).", "mk_is_lira_probe()") ADD_PROBE("is-qfufnra", "true if the goal is QF_UFNRA (quantifier-free nonlinear real arithmetic with other theories).", "mk_is_qfufnra_probe()") */ -#endif diff --git a/src/tactic/arith/propagate_ineqs_tactic.h b/src/tactic/arith/propagate_ineqs_tactic.h index fb5e370c6..47806a341 100644 --- a/src/tactic/arith/propagate_ineqs_tactic.h +++ b/src/tactic/arith/propagate_ineqs_tactic.h @@ -30,8 +30,7 @@ Author: Notes: --*/ -#ifndef PROPAGATE_INEQS_TACTIC_H_ -#define PROPAGATE_INEQS_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -42,4 +41,3 @@ tactic * mk_propagate_ineqs_tactic(ast_manager & m, params_ref const & p = param ADD_TACTIC("propagate-ineqs", "propagate ineqs/bounds, remove subsumed inequalities.", "mk_propagate_ineqs_tactic(m, p)") */ -#endif diff --git a/src/tactic/arith/purify_arith_tactic.h b/src/tactic/arith/purify_arith_tactic.h index 44b4f9b58..ef5f08b61 100644 --- a/src/tactic/arith/purify_arith_tactic.h +++ b/src/tactic/arith/purify_arith_tactic.h @@ -45,8 +45,7 @@ Author: Revision History: --*/ -#ifndef PURIFY_ARITH_TACTIC_H_ -#define PURIFY_ARITH_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -58,5 +57,4 @@ tactic * mk_purify_arith_tactic(ast_manager & m, params_ref const & p = params_r ADD_TACTIC("purify-arith", "eliminate unnecessary operators: -, /, div, mod, rem, is-int, to-int, ^, root-objects.", "mk_purify_arith_tactic(m, p)") */ -#endif diff --git a/src/tactic/arith/recover_01_tactic.h b/src/tactic/arith/recover_01_tactic.h index 898586481..4e16dbf4a 100644 --- a/src/tactic/arith/recover_01_tactic.h +++ b/src/tactic/arith/recover_01_tactic.h @@ -30,8 +30,7 @@ Author: Revision History: --*/ -#ifndef RECOVER_01_TACTIC_H_ -#define RECOVER_01_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -42,4 +41,3 @@ tactic * mk_recover_01_tactic(ast_manager & m, params_ref const & p = params_ref ADD_TACTIC("recover-01", "recover 0-1 variables hidden as Boolean variables.", "mk_recover_01_tactic(m, p)") */ -#endif diff --git a/src/tactic/bv/bit_blaster_model_converter.h b/src/tactic/bv/bit_blaster_model_converter.h index 057891ec6..debfdd526 100644 --- a/src/tactic/bv/bit_blaster_model_converter.h +++ b/src/tactic/bv/bit_blaster_model_converter.h @@ -16,12 +16,10 @@ Author: Notes: --*/ -#ifndef BIT_BLASTER_MODEL_CONVERTER_H_ -#define BIT_BLASTER_MODEL_CONVERTER_H_ +#pragma once #include "tactic/model_converter.h" model_converter * mk_bit_blaster_model_converter(ast_manager & m, obj_map const & const2bits, ptr_vector const& newbits); model_converter * mk_bv1_blaster_model_converter(ast_manager & m, obj_map const & const2bits, ptr_vector const& newbits); -#endif diff --git a/src/tactic/bv/bit_blaster_tactic.h b/src/tactic/bv/bit_blaster_tactic.h index 2dccafb6d..e90a675aa 100644 --- a/src/tactic/bv/bit_blaster_tactic.h +++ b/src/tactic/bv/bit_blaster_tactic.h @@ -16,8 +16,7 @@ Copyright (c) 2011 Microsoft Corporation Notes: --*/ -#ifndef BIT_BLASTER_TACTIC_H_ -#define BIT_BLASTER_TACTIC_H_ +#pragma once #include "util/params.h" #include "ast/rewriter/bit_blaster/bit_blaster_rewriter.h" @@ -29,5 +28,4 @@ tactic * mk_bit_blaster_tactic(ast_manager & m, bit_blaster_rewriter* rw, params /* ADD_TACTIC("bit-blast", "reduce bit-vector expressions into SAT.", "mk_bit_blaster_tactic(m, p)") */ - #endif diff --git a/src/tactic/bv/bv1_blaster_tactic.h b/src/tactic/bv/bv1_blaster_tactic.h index 5c8632fbc..c150778fd 100644 --- a/src/tactic/bv/bv1_blaster_tactic.h +++ b/src/tactic/bv/bv1_blaster_tactic.h @@ -22,8 +22,7 @@ Author: Notes: --*/ -#ifndef BV1_BLASTER_TACTIC_H_ -#define BV1_BLASTER_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -35,4 +34,3 @@ probe * mk_is_qfbv_eq_probe(); ADD_TACTIC("bv1-blast", "reduce bit-vector expressions into bit-vectors of size 1 (notes: only equality, extract and concat are supported).", "mk_bv1_blaster_tactic(m, p)") ADD_PROBE("is-qfbv-eq", "true if the goal is in a fragment of QF_BV which uses only =, extract, concat.", "mk_is_qfbv_eq_probe()") */ -#endif diff --git a/src/tactic/bv/bv_bound_chk_tactic.h b/src/tactic/bv/bv_bound_chk_tactic.h index 0cdadb0de..60411e693 100644 --- a/src/tactic/bv/bv_bound_chk_tactic.h +++ b/src/tactic/bv/bv_bound_chk_tactic.h @@ -14,8 +14,7 @@ Revision History: --*/ -#ifndef BV_BOUND_CHK_TACTIC_H_ -#define BV_BOUND_CHK_TACTIC_H_ +#pragma once #include "tactic/tactical.h" #include "util/params.h" @@ -27,4 +26,3 @@ tactic* mk_bv_bound_chk_tactic(ast_manager & m, params_ref const & p = params_re ADD_TACTIC("bv_bound_chk", "attempts to detect inconsistencies of bounds on bv expressions.", "mk_bv_bound_chk_tactic(m, p)") */ -#endif /* BV_BOUND_CHK_TACTIC_H_*/ diff --git a/src/tactic/bv/bv_bounds_tactic.h b/src/tactic/bv/bv_bounds_tactic.h index 1d6748b27..58de42199 100644 --- a/src/tactic/bv/bv_bounds_tactic.h +++ b/src/tactic/bv/bv_bounds_tactic.h @@ -16,8 +16,7 @@ Author: --*/ -#ifndef BV_BOUNDS_TACTIC_H_ -#define BV_BOUNDS_TACTIC_H_ +#pragma once #include "tactic/tactic.h" tactic * mk_bv_bounds_tactic(ast_manager & m, params_ref const & p = params_ref()); @@ -33,4 +32,3 @@ tactic * mk_dom_bv_bounds_tactic(ast_manager & m, params_ref const & p = params_ */ -#endif diff --git a/src/tactic/bv/bvarray2uf_rewriter.h b/src/tactic/bv/bvarray2uf_rewriter.h index 9984d3469..df5c93a14 100644 --- a/src/tactic/bv/bvarray2uf_rewriter.h +++ b/src/tactic/bv/bvarray2uf_rewriter.h @@ -17,8 +17,7 @@ Author: Notes: --*/ -#ifndef BVARRAY2UF_REWRITER_H_ -#define BVARRAY2UF_REWRITER_H_ +#pragma once #include "ast/rewriter/rewriter.h" #include "tactic/generic_model_converter.h" @@ -80,5 +79,4 @@ struct bvarray2uf_rewriter : public rewriter_tpl { void set_mcs(generic_model_converter * fmc) { m_cfg.set_mcs(fmc); } }; -#endif diff --git a/src/tactic/bv/bvarray2uf_tactic.h b/src/tactic/bv/bvarray2uf_tactic.h index 84ad413f6..a22a78f86 100644 --- a/src/tactic/bv/bvarray2uf_tactic.h +++ b/src/tactic/bv/bvarray2uf_tactic.h @@ -17,8 +17,7 @@ Author: Notes: --*/ -#ifndef BV_ARRAY2UF_TACTIC_H_ -#define BV_ARRAY2UF_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -30,4 +29,3 @@ tactic * mk_bvarray2uf_tactic(ast_manager & m, params_ref const & p = params_ref */ -#endif diff --git a/src/tactic/bv/dt2bv_tactic.h b/src/tactic/bv/dt2bv_tactic.h index 1e6567995..906386ed4 100644 --- a/src/tactic/bv/dt2bv_tactic.h +++ b/src/tactic/bv/dt2bv_tactic.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DT2BV_TACTIC_H_ -#define DT2BV_TACTIC_H_ +#pragma once #include "util/params.h" #include "util/obj_hashtable.h" @@ -30,4 +29,3 @@ tactic * mk_dt2bv_tactic(ast_manager & m, params_ref const & p = params_ref()); ADD_TACTIC("dt2bv", "eliminate finite domain data-types. Replace by bit-vectors.", "mk_dt2bv_tactic(m, p)") */ -#endif diff --git a/src/tactic/bv/max_bv_sharing_tactic.h b/src/tactic/bv/max_bv_sharing_tactic.h index b8bc0753d..00de41256 100644 --- a/src/tactic/bv/max_bv_sharing_tactic.h +++ b/src/tactic/bv/max_bv_sharing_tactic.h @@ -19,8 +19,7 @@ Author: Revision History: --*/ -#ifndef MAX_BV_SHARING_TACTIC_H_ -#define MAX_BV_SHARING_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -31,5 +30,4 @@ tactic * mk_max_bv_sharing_tactic(ast_manager & m, params_ref const & p = params ADD_TACTIC("max-bv-sharing", "use heuristics to maximize the sharing of bit-vector expressions such as adders and multipliers.", "mk_max_bv_sharing_tactic(m, p)") */ -#endif diff --git a/src/tactic/converter.h b/src/tactic/converter.h index 5db95c320..1731689a5 100644 --- a/src/tactic/converter.h +++ b/src/tactic/converter.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef CONVERTER_H_ -#define CONVERTER_H_ +#pragma once #include "util/vector.h" #include "util/ref.h" @@ -124,5 +123,4 @@ public: } }; -#endif diff --git a/src/tactic/core/blast_term_ite_tactic.h b/src/tactic/core/blast_term_ite_tactic.h index fcad6c068..b5f643a1e 100644 --- a/src/tactic/core/blast_term_ite_tactic.h +++ b/src/tactic/core/blast_term_ite_tactic.h @@ -20,8 +20,7 @@ Author: Notes: --*/ -#ifndef BLAST_TERM_ITE_TACTIC_H_ -#define BLAST_TERM_ITE_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -35,4 +34,3 @@ tactic * mk_blast_term_ite_tactic(ast_manager & m, params_ref const & p = params void blast_term_ite(expr_ref& fml, unsigned max_inflation); -#endif diff --git a/src/tactic/core/cofactor_elim_term_ite.h b/src/tactic/core/cofactor_elim_term_ite.h index dfbb66a63..05abb6110 100644 --- a/src/tactic/core/cofactor_elim_term_ite.h +++ b/src/tactic/core/cofactor_elim_term_ite.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef COFACTOR_ELIM_TERM_ITE_H_ -#define COFACTOR_ELIM_TERM_ITE_H_ +#pragma once #include "ast/ast.h" #include "util/params.h" @@ -39,4 +38,3 @@ public: }; -#endif diff --git a/src/tactic/core/cofactor_term_ite_tactic.h b/src/tactic/core/cofactor_term_ite_tactic.h index c6e2dfff2..e10a310f2 100644 --- a/src/tactic/core/cofactor_term_ite_tactic.h +++ b/src/tactic/core/cofactor_term_ite_tactic.h @@ -17,8 +17,7 @@ Author: Revision History: --*/ -#ifndef COFACTOR_TERM_ITE_TACTIC_H_ -#define COFACTOR_TERM_ITE_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -29,4 +28,3 @@ tactic * mk_cofactor_term_ite_tactic(ast_manager & m, params_ref const & p = par ADD_TACTIC("cofactor-term-ite", "eliminate term if-the-else using cofactors.", "mk_cofactor_term_ite_tactic(m, p)") */ -#endif diff --git a/src/tactic/core/collect_occs.h b/src/tactic/core/collect_occs.h index 7b42e44a6..1b83e6e60 100644 --- a/src/tactic/core/collect_occs.h +++ b/src/tactic/core/collect_occs.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef COLLECT_OCCS_H_ -#define COLLECT_OCCS_H_ +#pragma once class collect_occs { expr_fast_mark1 m_visited; @@ -35,4 +34,3 @@ public: }; -#endif diff --git a/src/tactic/core/collect_statistics_tactic.h b/src/tactic/core/collect_statistics_tactic.h index a71ddc376..dbbf9ef87 100644 --- a/src/tactic/core/collect_statistics_tactic.h +++ b/src/tactic/core/collect_statistics_tactic.h @@ -17,8 +17,7 @@ Author: Notes: --*/ -#ifndef COLLECT_STATISTICS_H_ -#define COLLECT_STATISTICS_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -30,4 +29,3 @@ tactic * mk_collect_statistics_tactic(ast_manager & m, params_ref const & p = pa */ -#endif diff --git a/src/tactic/core/ctx_simplify_tactic.h b/src/tactic/core/ctx_simplify_tactic.h index 2d476660a..e7c1660c8 100644 --- a/src/tactic/core/ctx_simplify_tactic.h +++ b/src/tactic/core/ctx_simplify_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef CTX_SIMPLIFY_TACTIC_H_ -#define CTX_SIMPLIFY_TACTIC_H_ +#pragma once #include "tactic/tactical.h" #include "tactic/goal_num_occurs.h" @@ -65,4 +64,3 @@ tactic * mk_ctx_simplify_tactic(ast_manager & m, params_ref const & p = params_r ADD_TACTIC("ctx-simplify", "apply contextual simplification rules.", "mk_ctx_simplify_tactic(m, p)") */ -#endif diff --git a/src/tactic/core/der_tactic.h b/src/tactic/core/der_tactic.h index f9dbabe9b..01417c08d 100644 --- a/src/tactic/core/der_tactic.h +++ b/src/tactic/core/der_tactic.h @@ -14,8 +14,7 @@ Author: Leonardo de Moura (leonardo) 2012-10-20 --*/ -#ifndef DER_TACTIC_H_ -#define DER_TACTIC_H_ +#pragma once class ast_manager; class tactic; @@ -26,4 +25,3 @@ tactic * mk_der_tactic(ast_manager & m); ADD_TACTIC("der", "destructive equality resolution.", "mk_der_tactic(m)") */ -#endif /* DER_TACTIC_H_ */ diff --git a/src/tactic/core/distribute_forall_tactic.h b/src/tactic/core/distribute_forall_tactic.h index a58a53d4e..d7a030500 100644 --- a/src/tactic/core/distribute_forall_tactic.h +++ b/src/tactic/core/distribute_forall_tactic.h @@ -14,8 +14,7 @@ Author: Leonardo de Moura (leonardo) 2012-02-18. --*/ -#ifndef DISTRIBUTE_FORALL_TACTIC_H_ -#define DISTRIBUTE_FORALL_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -27,4 +26,3 @@ tactic * mk_distribute_forall_tactic(ast_manager & m, params_ref const & p); ADD_TACTIC("distribute-forall", "distribute forall over conjunctions.", "mk_distribute_forall_tactic(m, p)") */ -#endif diff --git a/src/tactic/core/dom_simplify_tactic.h b/src/tactic/core/dom_simplify_tactic.h index fa9886dbe..3b5005347 100644 --- a/src/tactic/core/dom_simplify_tactic.h +++ b/src/tactic/core/dom_simplify_tactic.h @@ -18,8 +18,7 @@ Notes: --*/ -#ifndef DOM_SIMPLIFY_TACTIC_H_ -#define DOM_SIMPLIFY_TACTIC_H_ +#pragma once #include "ast/ast.h" #include "ast/expr_substitution.h" @@ -148,4 +147,3 @@ tactic * mk_dom_simplify_tactic(ast_manager & m, params_ref const & p = params_r ADD_TACTIC("dom-simplify", "apply dominator simplification rules.", "mk_dom_simplify_tactic(m, p)") */ -#endif diff --git a/src/tactic/core/elim_term_ite_tactic.h b/src/tactic/core/elim_term_ite_tactic.h index 4a98947c9..8fa9f9031 100644 --- a/src/tactic/core/elim_term_ite_tactic.h +++ b/src/tactic/core/elim_term_ite_tactic.h @@ -17,8 +17,7 @@ Author: Notes: --*/ -#ifndef ELIM_TERM_ITE_TACTIC_H_ -#define ELIM_TERM_ITE_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -30,4 +29,3 @@ tactic * mk_elim_term_ite_tactic(ast_manager & m, params_ref const & p = params_ ADD_TACTIC("elim-term-ite", "eliminate term if-then-else by adding fresh auxiliary declarations.", "mk_elim_term_ite_tactic(m, p)") */ -#endif diff --git a/src/tactic/core/injectivity_tactic.h b/src/tactic/core/injectivity_tactic.h index 447357912..e23f82163 100644 --- a/src/tactic/core/injectivity_tactic.h +++ b/src/tactic/core/injectivity_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef INJECTIVITY_TACTIC_H_ -#define INJECTIVITY_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -29,4 +28,3 @@ tactic * mk_injectivity_tactic(ast_manager & m, params_ref const & p = params_re ADD_TACTIC("injectivity", "Identifies and applies injectivity axioms.", "mk_injectivity_tactic(m, p)") */ -#endif diff --git a/src/tactic/core/nnf_tactic.h b/src/tactic/core/nnf_tactic.h index 2070db32e..a821f56d0 100644 --- a/src/tactic/core/nnf_tactic.h +++ b/src/tactic/core/nnf_tactic.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef NNF_TACTIC_H_ -#define NNF_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -31,5 +30,4 @@ tactic * mk_nnf_tactic(ast_manager & m, params_ref const & p = params_ref()); ADD_TACTIC("nnf", "put goal in negation normal form.", "mk_nnf_tactic(m, p)") */ -#endif diff --git a/src/tactic/core/occf_tactic.h b/src/tactic/core/occf_tactic.h index 0ef7eb1f6..2e211c9d7 100644 --- a/src/tactic/core/occf_tactic.h +++ b/src/tactic/core/occf_tactic.h @@ -21,8 +21,7 @@ Author: Revision History: --*/ -#ifndef OCCF_TACTIC_H_ -#define OCCF_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -34,5 +33,4 @@ tactic * mk_occf_tactic(ast_manager & m, params_ref const & p = params_ref()); ADD_TACTIC("occf", "put goal in one constraint per clause normal form (notes: fails if proof generation is enabled; only clauses are considered).", "mk_occf_tactic(m, p)") */ -#endif diff --git a/src/tactic/core/pb_preprocess_tactic.h b/src/tactic/core/pb_preprocess_tactic.h index 765fc1545..ec387e6e0 100644 --- a/src/tactic/core/pb_preprocess_tactic.h +++ b/src/tactic/core/pb_preprocess_tactic.h @@ -17,8 +17,7 @@ Author: Notes: --*/ -#ifndef PB_PREPROCESS_TACTIC_H_ -#define PB_PREPROCESS_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -31,4 +30,3 @@ tactic * mk_pb_preprocess_tactic(ast_manager & m, params_ref const & p = params_ */ -#endif diff --git a/src/tactic/core/reduce_args_tactic.h b/src/tactic/core/reduce_args_tactic.h index 394d7d4ab..ed4dc3fb3 100644 --- a/src/tactic/core/reduce_args_tactic.h +++ b/src/tactic/core/reduce_args_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef REDUCE_ARGS_TACTIC_H_ -#define REDUCE_ARGS_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -28,4 +27,3 @@ tactic * mk_reduce_args_tactic(ast_manager & m, params_ref const & p = params_re ADD_TACTIC("reduce-args", "reduce the number of arguments of function applications, when for all occurrences of a function f the i-th is a value.", "mk_reduce_args_tactic(m, p)") */ -#endif diff --git a/src/tactic/core/simplify_tactic.h b/src/tactic/core/simplify_tactic.h index e64408a29..9fff34190 100644 --- a/src/tactic/core/simplify_tactic.h +++ b/src/tactic/core/simplify_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef SIMPLIFY_TACTIC_H_ -#define SIMPLIFY_TACTIC_H_ +#pragma once #include "tactic/tactic.h" #include "tactic/tactical.h" @@ -54,4 +53,3 @@ tactic * mk_elim_and_tactic(ast_manager & m, params_ref const & p = params_ref() ADD_TACTIC("elim-and", "convert (and a b) into (not (or (not a) (not b))).", "mk_elim_and_tactic(m, p)") */ -#endif diff --git a/src/tactic/core/solve_eqs_tactic.h b/src/tactic/core/solve_eqs_tactic.h index a84ffdd43..d986b0dbf 100644 --- a/src/tactic/core/solve_eqs_tactic.h +++ b/src/tactic/core/solve_eqs_tactic.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SOLVE_EQS_TACTIC_H_ -#define SOLVE_EQS_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -30,5 +29,4 @@ tactic * mk_solve_eqs_tactic(ast_manager & m, params_ref const & p = params_ref( ADD_TACTIC("solve-eqs", "eliminate variables by solving equations.", "mk_solve_eqs_tactic(m, p)") */ -#endif diff --git a/src/tactic/core/special_relations_tactic.h b/src/tactic/core/special_relations_tactic.h index c706c78e8..6bb72852d 100644 --- a/src/tactic/core/special_relations_tactic.h +++ b/src/tactic/core/special_relations_tactic.h @@ -17,8 +17,7 @@ Author: Notes: --*/ -#ifndef SPECIAL_RELATIONS_TACTIC_H_ -#define SPECIAL_RELATIONS_TACTIC_H_ +#pragma once #include "tactic/tactic.h" #include "tactic/tactical.h" @@ -69,4 +68,3 @@ tactic * mk_special_relations_tactic(ast_manager & m, params_ref const & p = par ADD_TACTIC("special-relations", "detect and replace by special relations.", "mk_special_relations_tactic(m, p)") */ -#endif diff --git a/src/tactic/core/split_clause_tactic.h b/src/tactic/core/split_clause_tactic.h index fcbdbf857..7573f075e 100644 --- a/src/tactic/core/split_clause_tactic.h +++ b/src/tactic/core/split_clause_tactic.h @@ -17,8 +17,7 @@ Author: Notes: --*/ -#ifndef SPLIT_CLAUSE_TACTIC_H_ -#define SPLIT_CLAUSE_TACTIC_H_ +#pragma once #include "util/params.h" class tactic; @@ -29,4 +28,3 @@ tactic * mk_split_clause_tactic(params_ref const & p = params_ref()); ADD_TACTIC("split-clause", "split a clause in many subgoals.", "mk_split_clause_tactic(p)") */ -#endif diff --git a/src/tactic/core/symmetry_reduce_tactic.h b/src/tactic/core/symmetry_reduce_tactic.h index 0e92b5e29..90c032323 100644 --- a/src/tactic/core/symmetry_reduce_tactic.h +++ b/src/tactic/core/symmetry_reduce_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef SYMMETRY_REDUCE_TACTIC_H_ -#define SYMMETRY_REDUCE_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -29,4 +28,3 @@ tactic * mk_symmetry_reduce_tactic(ast_manager & m, params_ref const & p); ADD_TACTIC("symmetry-reduce", "apply symmetry reduction.", "mk_symmetry_reduce_tactic(m, p)") */ -#endif diff --git a/src/tactic/core/tseitin_cnf_tactic.h b/src/tactic/core/tseitin_cnf_tactic.h index 5dd4f6c02..363a1fafc 100644 --- a/src/tactic/core/tseitin_cnf_tactic.h +++ b/src/tactic/core/tseitin_cnf_tactic.h @@ -17,8 +17,7 @@ Author: Notes: --*/ -#ifndef TSEITIN_CNF_TACTIC_H_ -#define TSEITIN_CNF_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -33,4 +32,3 @@ tactic * mk_tseitin_cnf_tactic(ast_manager & m, params_ref const & p = params_re ADD_TACTIC("tseitin-cnf-core", "convert goal into CNF using tseitin-like encoding (note: quantifiers are ignored). This tactic does not apply required simplifications to the input goal like the tseitin-cnf tactic.", "mk_tseitin_cnf_core_tactic(m, p)") */ -#endif diff --git a/src/tactic/dependency_converter.h b/src/tactic/dependency_converter.h index 4ea0c6672..474767a98 100644 --- a/src/tactic/dependency_converter.h +++ b/src/tactic/dependency_converter.h @@ -17,8 +17,7 @@ Notes: --*/ -#ifndef DEPENDENCY_CONVERTER_H_ -#define DEPENDENCY_CONVERTER_H_ +#pragma once #include "util/ref.h" #include "ast/ast_pp_util.h" @@ -44,4 +43,3 @@ typedef ref dependency_converter_ref; typedef sref_vector dependency_converter_ref_vector; typedef sref_buffer dependency_converter_ref_buffer; -#endif diff --git a/src/tactic/equiv_proof_converter.h b/src/tactic/equiv_proof_converter.h index 5f72b3b07..4a479a7ae 100644 --- a/src/tactic/equiv_proof_converter.h +++ b/src/tactic/equiv_proof_converter.h @@ -21,8 +21,7 @@ Revision History: --*/ -#ifndef EQUIV_PROOF_CONVERTER_H_ -#define EQUIV_PROOF_CONVERTER_H_ +#pragma once #include "tactic/replace_proof_converter.h" @@ -50,4 +49,3 @@ public: void display(std::ostream & out) override {} }; -#endif diff --git a/src/tactic/fd_solver/bounded_int2bv_solver.h b/src/tactic/fd_solver/bounded_int2bv_solver.h index 1d048d54e..6ea3f16fa 100644 --- a/src/tactic/fd_solver/bounded_int2bv_solver.h +++ b/src/tactic/fd_solver/bounded_int2bv_solver.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef BOUNDED_INT2BV_SOLVER_H_ -#define BOUNDED_INT2BV_SOLVER_H_ +#pragma once #include "ast/ast.h" #include "util/params.h" @@ -26,4 +25,3 @@ class solver; solver * mk_bounded_int2bv_solver(ast_manager & m, params_ref const & p, solver* s); -#endif diff --git a/src/tactic/fd_solver/enum2bv_solver.h b/src/tactic/fd_solver/enum2bv_solver.h index 08f753cc5..f715fe3ad 100644 --- a/src/tactic/fd_solver/enum2bv_solver.h +++ b/src/tactic/fd_solver/enum2bv_solver.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef ENUM2BV_SOLVER_H_ -#define ENUM2BV_SOLVER_H_ +#pragma once #include "ast/ast.h" #include "util/params.h" @@ -26,4 +25,3 @@ class solver; solver * mk_enum2bv_solver(ast_manager & m, params_ref const & p, solver* s); -#endif diff --git a/src/tactic/fd_solver/fd_solver.h b/src/tactic/fd_solver/fd_solver.h index e1c5b909c..dfec016a0 100644 --- a/src/tactic/fd_solver/fd_solver.h +++ b/src/tactic/fd_solver/fd_solver.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef FD_SOLVER_H_ -#define FD_SOLVER_H_ +#pragma once #include "ast/ast.h" #include "util/params.h" @@ -34,4 +33,3 @@ tactic * mk_parallel_qffd_tactic(ast_manager& m, params_ref const& p); ADD_TACTIC("pqffd", "builtin strategy for solving QF_FD problems in parallel.", "mk_parallel_qffd_tactic(m, p)") */ -#endif diff --git a/src/tactic/fd_solver/pb2bv_solver.h b/src/tactic/fd_solver/pb2bv_solver.h index ea53d8d89..ced338542 100644 --- a/src/tactic/fd_solver/pb2bv_solver.h +++ b/src/tactic/fd_solver/pb2bv_solver.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef PB2BV_SOLVER_H_ -#define PB2BV_SOLVER_H_ +#pragma once #include "ast/ast.h" #include "util/params.h" @@ -26,4 +25,3 @@ class solver; solver * mk_pb2bv_solver(ast_manager & m, params_ref const & p, solver* s); -#endif diff --git a/src/tactic/fd_solver/smtfd_solver.h b/src/tactic/fd_solver/smtfd_solver.h index 7b1e52c83..0ab5cecdb 100644 --- a/src/tactic/fd_solver/smtfd_solver.h +++ b/src/tactic/fd_solver/smtfd_solver.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef SMTFD_SOLVER_H_ -#define SMTFD_SOLVER_H_ +#pragma once #include "ast/ast.h" #include "util/params.h" @@ -32,4 +31,3 @@ tactic * mk_smtfd_tactic(ast_manager & m, params_ref const & p); ADD_TACTIC("smtfd", "builtin strategy for solving SMT problems by reduction to FD.", "mk_smtfd_tactic(m, p)") */ -#endif diff --git a/src/tactic/filter_model_converter.h b/src/tactic/filter_model_converter.h index 012c43fb6..56dda91db 100644 --- a/src/tactic/filter_model_converter.h +++ b/src/tactic/filter_model_converter.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef FILTER_MODEL_CONVERTER_H_ -#define FILTER_MODEL_CONVERTER_H_ +#pragma once #include "tactic/model_converter.h" @@ -49,4 +48,3 @@ public: typedef ref filter_model_converter_ref; -#endif diff --git a/src/tactic/fpa/fpa2bv_model_converter.h b/src/tactic/fpa/fpa2bv_model_converter.h index cad7888e3..452a629c4 100644 --- a/src/tactic/fpa/fpa2bv_model_converter.h +++ b/src/tactic/fpa/fpa2bv_model_converter.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef FPA2BV_MODEL_CONVERTER_H_ -#define FPA2BV_MODEL_CONVERTER_H_ +#pragma once #include "ast/fpa/fpa2bv_converter.h" #include "tactic/model_converter.h" @@ -58,4 +57,3 @@ protected: model_converter * mk_fpa2bv_model_converter(ast_manager & m, fpa2bv_converter & conv); -#endif diff --git a/src/tactic/fpa/fpa2bv_tactic.h b/src/tactic/fpa/fpa2bv_tactic.h index e7e472d8d..0845aafa2 100644 --- a/src/tactic/fpa/fpa2bv_tactic.h +++ b/src/tactic/fpa/fpa2bv_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef FPA2BV_TACTIC_H_ -#define FPA2BV_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -28,4 +27,3 @@ tactic * mk_fpa2bv_tactic(ast_manager & m, params_ref const & p = params_ref()); ADD_TACTIC("fpa2bv", "convert floating point numbers to bit-vectors.", "mk_fpa2bv_tactic(m, p)") */ -#endif diff --git a/src/tactic/fpa/qffp_tactic.h b/src/tactic/fpa/qffp_tactic.h index f696ba2d6..e4c8eb386 100644 --- a/src/tactic/fpa/qffp_tactic.h +++ b/src/tactic/fpa/qffp_tactic.h @@ -17,8 +17,7 @@ Notes: --*/ -#ifndef QFFP_TACTIC_H_ -#define QFFP_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -38,4 +37,3 @@ probe * mk_is_qffpbv_probe(); ADD_PROBE("is-qffpbv", "true if the goal is in QF_FPBV (floats+bit-vectors).", "mk_is_qffpbv_probe()") */ -#endif diff --git a/src/tactic/fpa/qffplra_tactic.h b/src/tactic/fpa/qffplra_tactic.h index b5a741ac3..af862db29 100644 --- a/src/tactic/fpa/qffplra_tactic.h +++ b/src/tactic/fpa/qffplra_tactic.h @@ -18,8 +18,7 @@ Notes: --*/ -#ifndef QFFPLRA_TACTIC_H_ -#define QFFPLRA_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -35,4 +34,3 @@ probe * mk_is_qffplra_probe(); ADD_PROBE("is-qffplra", "true if the goal is in QF_FPLRA.", "mk_is_qffplra_probe()") */ -#endif diff --git a/src/tactic/generic_model_converter.h b/src/tactic/generic_model_converter.h index 750a22cd4..bd937870f 100644 --- a/src/tactic/generic_model_converter.h +++ b/src/tactic/generic_model_converter.h @@ -17,8 +17,7 @@ Author: Notes: --*/ -#ifndef GENERIC_MODEL_CONVERTER_H_ -#define GENERIC_MODEL_CONVERTER_H_ +#pragma once #include "tactic/model_converter.h" @@ -70,4 +69,3 @@ public: typedef ref generic_model_converter_ref; -#endif diff --git a/src/tactic/goal.h b/src/tactic/goal.h index b7bb16102..f7f927bb3 100644 --- a/src/tactic/goal.h +++ b/src/tactic/goal.h @@ -25,8 +25,7 @@ Author: Revision History: --*/ -#ifndef GOAL_H_ -#define GOAL_H_ +#pragma once #include "ast/ast.h" #include "ast/ast_translation.h" @@ -208,4 +207,3 @@ bool test(goal const & g) { return test(g, proc); } -#endif diff --git a/src/tactic/goal_num_occurs.h b/src/tactic/goal_num_occurs.h index 32193163e..931b06445 100644 --- a/src/tactic/goal_num_occurs.h +++ b/src/tactic/goal_num_occurs.h @@ -15,8 +15,7 @@ Author: Revision History: --*/ -#ifndef GOAL_NUM_OCCURS_H_ -#define GOAL_NUM_OCCURS_H_ +#pragma once #include "ast/num_occurs.h" @@ -35,4 +34,3 @@ public: }; -#endif diff --git a/src/tactic/goal_shared_occs.h b/src/tactic/goal_shared_occs.h index 8280cef43..e8c32c388 100644 --- a/src/tactic/goal_shared_occs.h +++ b/src/tactic/goal_shared_occs.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef GOAL_SHARED_OCCS_H_ -#define GOAL_SHARED_OCCS_H_ +#pragma once #include "tactic/goal.h" #include "ast/shared_occs.h" @@ -42,4 +41,3 @@ public: }; -#endif diff --git a/src/tactic/goal_util.h b/src/tactic/goal_util.h index 30c7f685f..15dea083c 100644 --- a/src/tactic/goal_util.h +++ b/src/tactic/goal_util.h @@ -16,10 +16,8 @@ Author: Revision History: --*/ -#ifndef GOAL_UTIL_H_ -#define GOAL_UTIL_H_ +#pragma once class goal; bool has_term_ite(goal const & g); -#endif diff --git a/src/tactic/horn_subsume_model_converter.h b/src/tactic/horn_subsume_model_converter.h index 6d27ceec2..f007a63f3 100644 --- a/src/tactic/horn_subsume_model_converter.h +++ b/src/tactic/horn_subsume_model_converter.h @@ -32,8 +32,7 @@ Subsumption transformation (remove Horn clause): --*/ -#ifndef HORN_SUBSUME_MODEL_CONVERTER_H_ -#define HORN_SUBSUME_MODEL_CONVERTER_H_ +#pragma once #include "tactic/model_converter.h" #include "ast/rewriter/th_rewriter.h" @@ -85,4 +84,3 @@ public: }; -#endif diff --git a/src/tactic/model_converter.h b/src/tactic/model_converter.h index 73432219f..2b3a1b510 100644 --- a/src/tactic/model_converter.h +++ b/src/tactic/model_converter.h @@ -52,8 +52,7 @@ Notes: that are required to interpret G fully in the context of F_s. --*/ -#ifndef MODEL_CONVERTER_H_ -#define MODEL_CONVERTER_H_ +#pragma once #include "util/ref.h" #include "ast/ast_pp_util.h" @@ -107,4 +106,3 @@ void model_converter2model(ast_manager & mng, model_converter * mc, model_ref & void apply(model_converter_ref & mc, model_ref & m); -#endif diff --git a/src/tactic/portfolio/default_tactic.h b/src/tactic/portfolio/default_tactic.h index 8992cfee3..dcd85ca44 100644 --- a/src/tactic/portfolio/default_tactic.h +++ b/src/tactic/portfolio/default_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef DEFAULT_TACTIC_H_ -#define DEFAULT_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -29,4 +28,3 @@ tactic * mk_default_tactic(ast_manager & m, params_ref const & p = params_ref()) ADD_TACTIC("default", "default strategy used when no logic is specified.", "mk_default_tactic(m, p)") */ -#endif diff --git a/src/tactic/portfolio/solver2lookahead.h b/src/tactic/portfolio/solver2lookahead.h index 80d73ddf3..7b1feac64 100644 --- a/src/tactic/portfolio/solver2lookahead.h +++ b/src/tactic/portfolio/solver2lookahead.h @@ -16,11 +16,9 @@ Author: Notes: --*/ -#ifndef SOLVER2LOOKAHEAD_H_ -#define SOLVER2LOOKAHEAD_H_ +#pragma once class solver; solver * mk_solver2lookahead(solver* s); -#endif diff --git a/src/tactic/probe.h b/src/tactic/probe.h index 294a6cbd0..ae2879163 100644 --- a/src/tactic/probe.h +++ b/src/tactic/probe.h @@ -21,8 +21,7 @@ Author: Revision History: --*/ -#ifndef PROBE_H_ -#define PROBE_H_ +#pragma once #include "tactic/goal.h" @@ -126,4 +125,3 @@ probe * mk_is_qfufbv_probe(); ADD_PROBE("is-qfaufbv", "true if the goal is in QF_AUFBV.", "mk_is_qfaufbv_probe()") */ -#endif diff --git a/src/tactic/proof_converter.h b/src/tactic/proof_converter.h index df8462de7..fd4df7311 100644 --- a/src/tactic/proof_converter.h +++ b/src/tactic/proof_converter.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef PROOF_CONVERTER_H_ -#define PROOF_CONVERTER_H_ +#pragma once #include "ast/ast.h" #include "util/ref.h" @@ -50,4 +49,3 @@ void apply(ast_manager & m, proof_converter * pc, proof_ref & pr); proof_ref apply(ast_manager & m, proof_converter_ref & pc1, proof_converter_ref_buffer & pc2s); -#endif diff --git a/src/tactic/replace_proof_converter.h b/src/tactic/replace_proof_converter.h index 67cd77a0f..cc9a9c6c2 100644 --- a/src/tactic/replace_proof_converter.h +++ b/src/tactic/replace_proof_converter.h @@ -20,8 +20,7 @@ Revision History: --*/ -#ifndef REPLACE_PROOF_CONVERTER_H_ -#define REPLACE_PROOF_CONVERTER_H_ +#pragma once #include "tactic/proof_converter.h" @@ -49,4 +48,3 @@ public: }; -#endif diff --git a/src/tactic/sine_filter.h b/src/tactic/sine_filter.h index 72964219e..d7e5ed59a 100644 --- a/src/tactic/sine_filter.h +++ b/src/tactic/sine_filter.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SINE_TACTIC_H_ -#define SINE_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -29,4 +28,3 @@ tactic * mk_sine_tactic(ast_manager & m, params_ref const & p = params_ref()); ADD_TACTIC("sine-filter", "eliminate premises using Sine Qua Non", "mk_sine_tactic(m, p)") */ -#endif diff --git a/src/tactic/sls/bvsls_opt_engine.h b/src/tactic/sls/bvsls_opt_engine.h index 3acce8f0a..1f082823f 100644 --- a/src/tactic/sls/bvsls_opt_engine.h +++ b/src/tactic/sls/bvsls_opt_engine.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef BVSLS_OPT_ENGINE_H_ -#define BVSLS_OPT_ENGINE_H_ +#pragma once #include "tactic/sls/sls_engine.h" @@ -79,4 +78,3 @@ protected: bool randomize_wrt_hard(); }; -#endif diff --git a/src/tactic/sls/sls_engine.h b/src/tactic/sls/sls_engine.h index da9a8a2c8..bf726beb9 100644 --- a/src/tactic/sls/sls_engine.h +++ b/src/tactic/sls/sls_engine.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef SLS_ENGINE_H_ -#define SLS_ENGINE_H_ +#pragma once #include "util/stopwatch.h" #include "util/lbool.h" @@ -138,4 +137,3 @@ protected: unsigned check_restart(unsigned curr_value); }; -#endif diff --git a/src/tactic/sls/sls_evaluator.h b/src/tactic/sls/sls_evaluator.h index 4e006d219..91fee752c 100644 --- a/src/tactic/sls/sls_evaluator.h +++ b/src/tactic/sls/sls_evaluator.h @@ -17,8 +17,7 @@ Notes: --*/ -#ifndef SLS_EVALUATOR_H_ -#define SLS_EVALUATOR_H_ +#pragma once #include "model/model_evaluator.h" @@ -820,4 +819,3 @@ public: } }; -#endif diff --git a/src/tactic/sls/sls_powers.h b/src/tactic/sls/sls_powers.h index 81e9540a0..9616c43ab 100644 --- a/src/tactic/sls/sls_powers.h +++ b/src/tactic/sls/sls_powers.h @@ -17,8 +17,7 @@ Notes: --*/ -#ifndef SLS_POWERS_H_ -#define SLS_POWERS_H_ +#pragma once #include "util/mpz.h" @@ -46,4 +45,3 @@ public: } }; -#endif diff --git a/src/tactic/sls/sls_tactic.h b/src/tactic/sls/sls_tactic.h index ab79bfc0f..3c0612e6e 100644 --- a/src/tactic/sls/sls_tactic.h +++ b/src/tactic/sls/sls_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef SLS_TACTIC_H_ -#define SLS_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -29,4 +28,3 @@ tactic * mk_qfbv_sls_tactic(ast_manager & m, params_ref const & p = params_ref() ADD_TACTIC("qfbv-sls", "(try to) solve using stochastic local search for QF_BV.", "mk_qfbv_sls_tactic(m, p)") */ -#endif diff --git a/src/tactic/sls/sls_tracker.h b/src/tactic/sls/sls_tracker.h index 3c884e067..82ba38c21 100644 --- a/src/tactic/sls/sls_tracker.h +++ b/src/tactic/sls/sls_tracker.h @@ -17,8 +17,7 @@ Notes: --*/ -#ifndef SLS_TRACKER_H_ -#define SLS_TRACKER_H_ +#pragma once #include #include "ast/for_each_expr.h" @@ -1108,4 +1107,3 @@ public: } }; -#endif diff --git a/src/tactic/smtlogics/nra_tactic.h b/src/tactic/smtlogics/nra_tactic.h index fc1e518b3..5d91b6acf 100644 --- a/src/tactic/smtlogics/nra_tactic.h +++ b/src/tactic/smtlogics/nra_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef NRA_TACTIC_H_ -#define NRA_TACTIC_H_ +#pragma once tactic * mk_nra_tactic(ast_manager & m, params_ref const & p = params_ref()); @@ -25,4 +24,3 @@ tactic * mk_nra_tactic(ast_manager & m, params_ref const & p = params_ref()); ADD_TACTIC("nra", "builtin strategy for solving NRA problems.", "mk_nra_tactic(m, p)") */ -#endif diff --git a/src/tactic/smtlogics/qfaufbv_tactic.h b/src/tactic/smtlogics/qfaufbv_tactic.h index 06b046bd3..c28e2611c 100644 --- a/src/tactic/smtlogics/qfaufbv_tactic.h +++ b/src/tactic/smtlogics/qfaufbv_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef QFAUFBV_TACTIC_H_ -#define QFAUFBV_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -29,4 +28,3 @@ tactic * mk_qfaufbv_tactic(ast_manager & m, params_ref const & p = params_ref()) ADD_TACTIC("qfaufbv", "builtin strategy for solving QF_AUFBV problems.", "mk_qfaufbv_tactic(m, p)") */ -#endif diff --git a/src/tactic/smtlogics/qfauflia_tactic.h b/src/tactic/smtlogics/qfauflia_tactic.h index f1b3c74e0..d4b790ae4 100644 --- a/src/tactic/smtlogics/qfauflia_tactic.h +++ b/src/tactic/smtlogics/qfauflia_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef QFAUFLIA_TACTIC_H_ -#define QFAUFLIA_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -29,4 +28,3 @@ tactic * mk_qfauflia_tactic(ast_manager & m, params_ref const & p = params_ref() ADD_TACTIC("qfauflia", "builtin strategy for solving QF_AUFLIA problems.", "mk_qfauflia_tactic(m, p)") */ -#endif diff --git a/src/tactic/smtlogics/qfbv_tactic.h b/src/tactic/smtlogics/qfbv_tactic.h index 52f07f2a6..1c207cee0 100644 --- a/src/tactic/smtlogics/qfbv_tactic.h +++ b/src/tactic/smtlogics/qfbv_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef QFBV_TACTIC_H_ -#define QFBV_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -33,4 +32,3 @@ tactic * mk_qfbv_preamble(ast_manager& m, params_ref const& p); tactic * mk_qfbv_tactic(ast_manager & m, params_ref const & p, tactic* sat, tactic* smt); -#endif diff --git a/src/tactic/smtlogics/qfidl_tactic.h b/src/tactic/smtlogics/qfidl_tactic.h index c36b857d4..0145d3d1c 100644 --- a/src/tactic/smtlogics/qfidl_tactic.h +++ b/src/tactic/smtlogics/qfidl_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef QFIDL_TACTIC_H_ -#define QFIDL_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -29,4 +28,3 @@ tactic * mk_qfidl_tactic(ast_manager & m, params_ref const & p = params_ref()); ADD_TACTIC("qfidl", "builtin strategy for solving QF_IDL problems.", "mk_qfidl_tactic(m, p)") */ -#endif diff --git a/src/tactic/smtlogics/qflia_tactic.h b/src/tactic/smtlogics/qflia_tactic.h index 90e86e494..8b4206d12 100644 --- a/src/tactic/smtlogics/qflia_tactic.h +++ b/src/tactic/smtlogics/qflia_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef QFLIA_TACTIC_H_ -#define QFLIA_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -37,4 +36,3 @@ probe * mk_is_quasi_pb_probe(); ADD_PROBE("is-quasi-pb", "true if the goal is quasi-pb.", "mk_is_quasi_pb_probe()") */ -#endif diff --git a/src/tactic/smtlogics/qflra_tactic.h b/src/tactic/smtlogics/qflra_tactic.h index 42829e390..19851399a 100644 --- a/src/tactic/smtlogics/qflra_tactic.h +++ b/src/tactic/smtlogics/qflra_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef QFLRA_TACTIC_H_ -#define QFLRA_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -28,4 +27,3 @@ tactic * mk_qflra_tactic(ast_manager & m, params_ref const & p = params_ref()); ADD_TACTIC("qflra", "builtin strategy for solving QF_LRA problems.", "mk_qflra_tactic(m, p)") */ -#endif diff --git a/src/tactic/smtlogics/qfnia_tactic.h b/src/tactic/smtlogics/qfnia_tactic.h index 84a35e6ec..6286bdef9 100644 --- a/src/tactic/smtlogics/qfnia_tactic.h +++ b/src/tactic/smtlogics/qfnia_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef QFNIA_TACTIC_H_ -#define QFNIA_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -28,4 +27,3 @@ tactic * mk_qfnia_tactic(ast_manager & m, params_ref const & p = params_ref()); ADD_TACTIC("qfnia", "builtin strategy for solving QF_NIA problems.", "mk_qfnia_tactic(m, p)") */ -#endif diff --git a/src/tactic/smtlogics/qfnra_tactic.h b/src/tactic/smtlogics/qfnra_tactic.h index 34381d47a..09a5d0480 100644 --- a/src/tactic/smtlogics/qfnra_tactic.h +++ b/src/tactic/smtlogics/qfnra_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef QFNRA_TACTIC_H_ -#define QFNRA_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -28,4 +27,3 @@ tactic * mk_qfnra_tactic(ast_manager & m, params_ref const & p = params_ref()); ADD_TACTIC("qfnra", "builtin strategy for solving QF_NRA problems.", "mk_qfnra_tactic(m, p)") */ -#endif diff --git a/src/tactic/smtlogics/qfuf_tactic.h b/src/tactic/smtlogics/qfuf_tactic.h index 98ddd3422..ed93633d0 100644 --- a/src/tactic/smtlogics/qfuf_tactic.h +++ b/src/tactic/smtlogics/qfuf_tactic.h @@ -17,8 +17,7 @@ Author: Notes: --*/ -#ifndef QFUF_TACTIC_H_ -#define QFUF_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -30,4 +29,3 @@ tactic * mk_qfuf_tactic(ast_manager & m, params_ref const & p); ADD_TACTIC("qfuf", "builtin strategy for solving QF_UF problems.", "mk_qfuf_tactic(m, p)") */ -#endif diff --git a/src/tactic/smtlogics/qfufbv_ackr_model_converter.h b/src/tactic/smtlogics/qfufbv_ackr_model_converter.h index efc039560..092e41634 100644 --- a/src/tactic/smtlogics/qfufbv_ackr_model_converter.h +++ b/src/tactic/smtlogics/qfufbv_ackr_model_converter.h @@ -14,12 +14,10 @@ Revision History: --*/ -#ifndef QFUFBV_ACKR_MODEL_CONVERTER_H_ -#define QFUFBV_ACKR_MODEL_CONVERTER_H_ +#pragma once #include "tactic/model_converter.h" #include "ackermannization/ackr_info.h" model_converter * mk_qfufbv_ackr_model_converter(ast_manager & m, const ackr_info_ref& info, model_ref& abstr_model); -#endif /* QFUFBV_ACKR_MODEL_CONVERTER_H_ */ diff --git a/src/tactic/smtlogics/qfufbv_tactic.h b/src/tactic/smtlogics/qfufbv_tactic.h index 3e6d9d817..188c24fe6 100644 --- a/src/tactic/smtlogics/qfufbv_tactic.h +++ b/src/tactic/smtlogics/qfufbv_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef QFUFBV_TACTIC_H_ -#define QFUFBV_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -32,4 +31,3 @@ tactic * mk_qfufbv_ackr_tactic(ast_manager & m, params_ref const & p); ADD_TACTIC("qfufbv_ackr", "A tactic for solving QF_UFBV based on Ackermannization.", "mk_qfufbv_ackr_tactic(m, p)") */ -#endif diff --git a/src/tactic/smtlogics/quant_tactics.h b/src/tactic/smtlogics/quant_tactics.h index da3594500..9bea980c5 100644 --- a/src/tactic/smtlogics/quant_tactics.h +++ b/src/tactic/smtlogics/quant_tactics.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef QUANT_TACTICS_H_ -#define QUANT_TACTICS_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -45,4 +44,3 @@ tactic * mk_lira_tactic(ast_manager & m, params_ref const & p); */ -#endif diff --git a/src/tactic/tactic.h b/src/tactic/tactic.h index 3458567c0..a044dcd32 100644 --- a/src/tactic/tactic.h +++ b/src/tactic/tactic.h @@ -18,8 +18,7 @@ Author: Notes: --*/ -#ifndef TACTIC_H_ -#define TACTIC_H_ +#pragma once #include "tactic/goal.h" #include "util/params.h" @@ -130,4 +129,3 @@ void fail_if_unsat_core_generation(char const * tactic_name, goal_ref const & in void fail_if_model_generation(char const * tactic_name, goal_ref const & in); void fail_if_has_quantifiers(char const* tactic_name, goal_ref const& in); -#endif diff --git a/src/tactic/tactic_exception.h b/src/tactic/tactic_exception.h index 0af6d66b1..f230d417b 100644 --- a/src/tactic/tactic_exception.h +++ b/src/tactic/tactic_exception.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef TACTIC_EXCEPTION_H_ -#define TACTIC_EXCEPTION_H_ +#pragma once #include "util/z3_exception.h" #include "util/common_msgs.h" @@ -38,4 +37,3 @@ public: #define TACTIC_MAX_FRAMES_MSG Z3_MAX_FRAMES_MSG #define TACTIC_NO_PROOF_GEN_MSG Z3_NO_PROOF_GEN_MSG -#endif diff --git a/src/tactic/tactical.h b/src/tactic/tactical.h index 9ec2f901f..3eba1a9d6 100644 --- a/src/tactic/tactical.h +++ b/src/tactic/tactical.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef TACTICAL_H_ -#define TACTICAL_H_ +#pragma once #include "tactic/tactic.h" #include "tactic/probe.h" @@ -82,4 +81,3 @@ tactic * if_no_proofs(tactic * t); tactic * if_no_unsat_cores(tactic * t); tactic * if_no_models(tactic * t); -#endif diff --git a/src/tactic/ufbv/macro_finder_tactic.h b/src/tactic/ufbv/macro_finder_tactic.h index 659748dec..03b5adc17 100644 --- a/src/tactic/ufbv/macro_finder_tactic.h +++ b/src/tactic/ufbv/macro_finder_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef MACRO_FINDER_TACTIC_H_ -#define MACRO_FINDER_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -29,4 +28,3 @@ tactic * mk_macro_finder_tactic(ast_manager & m, params_ref const & p = params_r ADD_TACTIC("macro-finder", "Identifies and applies macros.", "mk_macro_finder_tactic(m, p)") */ -#endif diff --git a/src/tactic/ufbv/quasi_macros_tactic.h b/src/tactic/ufbv/quasi_macros_tactic.h index 55fc5fcfb..a33466e9b 100644 --- a/src/tactic/ufbv/quasi_macros_tactic.h +++ b/src/tactic/ufbv/quasi_macros_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef QUASI_MACROS_TACTIC_H_ -#define QUASI_MACROS_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -29,4 +28,3 @@ tactic * mk_quasi_macros_tactic(ast_manager & m, params_ref const & p = params_r ADD_TACTIC("quasi-macros", "Identifies and applies quasi-macros.", "mk_quasi_macros_tactic(m, p)") */ -#endif diff --git a/src/tactic/ufbv/ufbv_rewriter.h b/src/tactic/ufbv/ufbv_rewriter.h index 33ed39932..96a3dcf06 100644 --- a/src/tactic/ufbv/ufbv_rewriter.h +++ b/src/tactic/ufbv/ufbv_rewriter.h @@ -18,8 +18,7 @@ Revision History: Christoph M. Wintersteiger (cwinter) 2012-10-24: Moved from demodulator.h to ufbv_rewriter.h --*/ -#ifndef UFBV_REWRITER_H_ -#define UFBV_REWRITER_H_ +#pragma once #include "ast/ast.h" #include "ast/substitution/substitution.h" @@ -264,5 +263,4 @@ public: */ }; -#endif /* UFBV_REWRITER_H_ */ diff --git a/src/tactic/ufbv/ufbv_rewriter_tactic.h b/src/tactic/ufbv/ufbv_rewriter_tactic.h index d0bdcd021..939f74fff 100644 --- a/src/tactic/ufbv/ufbv_rewriter_tactic.h +++ b/src/tactic/ufbv/ufbv_rewriter_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef UFBV_REWRITER_TACTIC_H_ -#define UFBV_REWRITER_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -29,4 +28,3 @@ tactic * mk_ufbv_rewriter_tactic(ast_manager & m, params_ref const & p = params_ ADD_TACTIC("ufbv-rewriter", "Applies UFBV-specific rewriting rules, mainly demodulation.", "mk_quasi_macros_tactic(m, p)") */ -#endif diff --git a/src/tactic/ufbv/ufbv_tactic.h b/src/tactic/ufbv/ufbv_tactic.h index ee97cd35e..a686706a6 100644 --- a/src/tactic/ufbv/ufbv_tactic.h +++ b/src/tactic/ufbv/ufbv_tactic.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef UFBV_TACTIC_H_ -#define UFBV_TACTIC_H_ +#pragma once #include "util/params.h" class ast_manager; @@ -30,4 +29,3 @@ tactic * mk_ufbv_tactic(ast_manager & m, params_ref const & p = params_ref()); ADD_TACTIC("ufbv", "builtin strategy for solving UFBV problems (with quantifiers).", "mk_ufbv_tactic(m, p)") */ -#endif diff --git a/src/test/for_each_file.h b/src/test/for_each_file.h index 17d7ab85d..f6cc7ae32 100644 --- a/src/test/for_each_file.h +++ b/src/test/for_each_file.h @@ -19,8 +19,7 @@ Revision History: --*/ #pragma once -#ifndef FOR_EACH_FILE_H_ -#define FOR_EACH_FILE_H_ +#pragma once struct for_each_file_proc { virtual bool operator()(const char* file_path) = 0; @@ -29,5 +28,4 @@ struct for_each_file_proc { bool for_each_file(for_each_file_proc& proc, const char* base, const char* suffix); -#endif /* FOR_EACH_FILE_H_ */ diff --git a/src/test/fuzzing/expr_delta.h b/src/test/fuzzing/expr_delta.h index f59e4c4d5..1d4d9e13a 100644 --- a/src/test/fuzzing/expr_delta.h +++ b/src/test/fuzzing/expr_delta.h @@ -17,8 +17,7 @@ Author: Revision History: --*/ -#ifndef EXPR_DELTA_H_ -#define EXPR_DELTA_H_ +#pragma once #include "ast/ast.h" @@ -49,4 +48,3 @@ private: }; -#endif diff --git a/src/test/fuzzing/expr_rand.h b/src/test/fuzzing/expr_rand.h index 4cdee81fd..95a8fe693 100644 --- a/src/test/fuzzing/expr_rand.h +++ b/src/test/fuzzing/expr_rand.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef EXPR_RAND_H_ -#define EXPR_RAND_H_ +#pragma once #include "ast/ast.h" #include "util/obj_hashtable.h" @@ -55,4 +54,3 @@ private: }; -#endif diff --git a/src/test/im_float_config.h b/src/test/im_float_config.h index 3905358ea..3aab65836 100644 --- a/src/test/im_float_config.h +++ b/src/test/im_float_config.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef IM_FLOAT_CONFIG_H_ -#define IM_FLOAT_CONFIG_H_ +#pragma once #include "util/f2n.h" #include "util/mpf.h" @@ -63,4 +62,3 @@ public: numeral_manager & m() const { return const_cast(m_manager); } }; -#endif diff --git a/src/util/approx_nat.h b/src/util/approx_nat.h index 354ead92b..08b1274d2 100644 --- a/src/util/approx_nat.h +++ b/src/util/approx_nat.h @@ -17,8 +17,7 @@ Author: Notes: --*/ -#ifndef APPROX_NAT_H_ -#define APPROX_NAT_H_ +#pragma once #include #include @@ -42,4 +41,3 @@ public: std::ostream & operator<<(std::ostream & target, approx_nat const & w); -#endif /* APPROX_NAT_H_ */ diff --git a/src/util/approx_set.h b/src/util/approx_set.h index 1cb7ae9f2..5ef2e650e 100644 --- a/src/util/approx_set.h +++ b/src/util/approx_set.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef APPROX_SET_H_ -#define APPROX_SET_H_ +#pragma once #include #include "util/debug.h" @@ -232,5 +231,4 @@ inline std::ostream & operator<<(std::ostream & out, approx_set const & s) { return out; } -#endif /* APPROX_SET_H_ */ diff --git a/src/util/array.h b/src/util/array.h index 41b36693a..8cdd6404b 100644 --- a/src/util/array.h +++ b/src/util/array.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef ARRAY_H_ -#define ARRAY_H_ +#pragma once template class array { @@ -215,4 +214,3 @@ public: sarray(Allocator & a, unsigned sz, bool init_mem):array(a, sz, init_mem) {} }; -#endif diff --git a/src/util/backtrackable_set.h b/src/util/backtrackable_set.h index 13a741cff..a02ec4c9b 100644 --- a/src/util/backtrackable_set.h +++ b/src/util/backtrackable_set.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef BACKTRACKABLE_SET_H_ -#define BACKTRACKABLE_SET_H_ +#pragma once #include "util/vector.h" @@ -111,4 +110,3 @@ public: } }; -#endif diff --git a/src/util/basic_interval.h b/src/util/basic_interval.h index a7bbff3e7..1c15317e0 100644 --- a/src/util/basic_interval.h +++ b/src/util/basic_interval.h @@ -21,8 +21,7 @@ Author: Revision History: --*/ -#ifndef BASIC_INTERVAL_H_ -#define BASIC_INTERVAL_H_ +#pragma once template class basic_interval_manager { @@ -360,4 +359,3 @@ public: } }; -#endif diff --git a/src/util/bit_util.h b/src/util/bit_util.h index 7a0923400..8226bc7c9 100644 --- a/src/util/bit_util.h +++ b/src/util/bit_util.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef BIT_UTIL_H_ -#define BIT_UTIL_H_ +#pragma once /** \brief Return the position of the most significant (set) bit of a @@ -129,4 +128,3 @@ bool lt(unsigned sz, unsigned * data1, unsigned * data2); */ bool add(unsigned sz, unsigned const * a, unsigned const * b, unsigned * c); -#endif diff --git a/src/util/cancel_eh.h b/src/util/cancel_eh.h index 1e56e060c..5ccf31636 100644 --- a/src/util/cancel_eh.h +++ b/src/util/cancel_eh.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef CANCEL_EH_H_ -#define CANCEL_EH_H_ +#pragma once #include "util/event_handler.h" @@ -42,4 +41,3 @@ public: void reset() { m_canceled = false; } }; -#endif diff --git a/src/util/chashtable.h b/src/util/chashtable.h index 989131609..3a2d2685b 100644 --- a/src/util/chashtable.h +++ b/src/util/chashtable.h @@ -25,8 +25,7 @@ Author: Revision History: --*/ -#ifndef CHASHTABLE_H_ -#define CHASHTABLE_H_ +#pragma once #include "util/memory_manager.h" #include "util/debug.h" @@ -703,4 +702,3 @@ public: } }; -#endif diff --git a/src/util/cmd_context_types.h b/src/util/cmd_context_types.h index 564ae6325..450579d8d 100644 --- a/src/util/cmd_context_types.h +++ b/src/util/cmd_context_types.h @@ -14,8 +14,7 @@ Author: Notes: --*/ -#ifndef CMD_CONTEXT_TYPES_H_ -#define CMD_CONTEXT_TYPES_H_ +#pragma once #include "util/symbol.h" #include "util/z3_exception.h" @@ -120,4 +119,3 @@ public: }; -#endif diff --git a/src/util/common_msgs.h b/src/util/common_msgs.h index 7f7194ece..83434aa55 100644 --- a/src/util/common_msgs.h +++ b/src/util/common_msgs.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef COMMON_MSGS_H_ -#define COMMON_MSGS_H_ +#pragma once class common_msgs { public: @@ -38,4 +37,3 @@ public: #define Z3_NO_PROOF_GEN_MSG common_msgs::g_no_proofs_msg #define Z3_MAX_RESOURCE_MSG common_msgs::g_max_resource_msg -#endif diff --git a/src/util/container_util.h b/src/util/container_util.h index e68ab7199..efee89952 100644 --- a/src/util/container_util.h +++ b/src/util/container_util.h @@ -19,8 +19,7 @@ Revision History: --*/ -#ifndef CONTAINER_UTIL_H_ -#define CONTAINER_UTIL_H_ +#pragma once // ----------------------------------- // @@ -119,4 +118,3 @@ bool containers_equal(const T & begin1, const T & end1, const U & begin2, const return it1 == end1 && it2 == end2; } -#endif diff --git a/src/util/dec_ref_util.h b/src/util/dec_ref_util.h index 15cfedd49..8a3f59000 100644 --- a/src/util/dec_ref_util.h +++ b/src/util/dec_ref_util.h @@ -17,8 +17,7 @@ Author: Notes: --*/ -#ifndef MAP_UTIL_H_ -#define MAP_UTIL_H_ +#pragma once /** \brief Decrement the reference counter of the keys and values stored in the map, @@ -65,4 +64,3 @@ void dec_ref_values(Mng & m, Map & map) { } -#endif diff --git a/src/util/dependency.h b/src/util/dependency.h index c1aaac724..7ccba716a 100644 --- a/src/util/dependency.h +++ b/src/util/dependency.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DEPENDENCY_H_ -#define DEPENDENCY_H_ +#pragma once #include "util/vector.h" #include "util/region.h" @@ -324,5 +323,4 @@ typedef scoped_dependency_manager::dependency v_dependency; typedef scoped_dependency_manager u_dependency_manager; typedef scoped_dependency_manager::dependency u_dependency; -#endif /* DEPENDENCY_H_ */ diff --git a/src/util/dictionary.h b/src/util/dictionary.h index 7dd55bc16..dab52f938 100644 --- a/src/util/dictionary.h +++ b/src/util/dictionary.h @@ -14,8 +14,7 @@ Author: Notes: --*/ -#ifndef DICTIONARY_H_ -#define DICTIONARY_H_ +#pragma once #include "util/map.h" #include "util/symbol.h" @@ -26,4 +25,3 @@ public: dictionary() {} }; -#endif diff --git a/src/util/dlist.h b/src/util/dlist.h index abb41225c..4dcaa205a 100644 --- a/src/util/dlist.h +++ b/src/util/dlist.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DLIST_H_ -#define DLIST_H_ +#pragma once /** Add element \c elem to the list headed by \c head. @@ -132,6 +131,5 @@ bool dlist_check_invariant(T * head, NextProc const & next = NextProc(), PrevPro return true; } -#endif diff --git a/src/util/double_manager.h b/src/util/double_manager.h index 481701f42..6bd691d24 100644 --- a/src/util/double_manager.h +++ b/src/util/double_manager.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef DOUBLE_MANAGER_H_ -#define DOUBLE_MANAGER_H_ +#pragma once #include #include @@ -99,5 +98,4 @@ public: static_assert(sizeof(uint64_t) == sizeof(double), ""); -#endif /* DOUBLE_MANAGER_H_ */ diff --git a/src/util/ema.h b/src/util/ema.h index 7391d8ea0..9e18fb98f 100644 --- a/src/util/ema.h +++ b/src/util/ema.h @@ -18,8 +18,7 @@ Author: Revision History: --*/ -#ifndef EMA_H_ -#define EMA_H_ +#pragma once class ema { double m_alpha, m_beta, m_value; @@ -57,4 +56,3 @@ class ema { } }; -#endif diff --git a/src/util/env_params.h b/src/util/env_params.h index 7bfc8df5c..952833cd2 100644 --- a/src/util/env_params.h +++ b/src/util/env_params.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef ENV_PARAMS_H_ -#define ENV_PARAMS_H_ +#pragma once class param_descrs; @@ -29,4 +28,3 @@ struct env_params { */ }; -#endif diff --git a/src/util/error_codes.h b/src/util/error_codes.h index 305c02f7e..4f6531115 100644 --- a/src/util/error_codes.h +++ b/src/util/error_codes.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef ERROR_CODES_H_ -#define ERROR_CODES_H_ +#pragma once #define ERR_OK 0 #define ERR_MEMOUT 101 @@ -35,5 +34,4 @@ Revision History: #define ERR_ALLOC_EXCEEDED 113 #define ERR_UNREACHABLE 114 -#endif /* ERROR_CODES_H_ */ diff --git a/src/util/event_handler.h b/src/util/event_handler.h index 2a951c3ce..8993162e6 100644 --- a/src/util/event_handler.h +++ b/src/util/event_handler.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef EVENT_HANDLER_H_ -#define EVENT_HANDLER_H_ +#pragma once enum event_handler_caller_t { UNSET_EH_CALLER, @@ -37,4 +36,3 @@ public: event_handler_caller_t caller_id() const { return m_caller_id; } }; -#endif diff --git a/src/util/ext_gcd.h b/src/util/ext_gcd.h index 9534bd386..50226ea26 100644 --- a/src/util/ext_gcd.h +++ b/src/util/ext_gcd.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef EXT_GCD_H_ -#define EXT_GCD_H_ +#pragma once template void extended_gcd(const numeral & in_a, const numeral & in_b, numeral & gcd, numeral & x, numeral & y) { @@ -48,5 +47,4 @@ void extended_gcd(const numeral & in_a, const numeral & in_b, numeral & gcd, num y = lasty; } -#endif /* EXT_GCD_H_ */ diff --git a/src/util/ext_numeral.h b/src/util/ext_numeral.h index 9cb5a1f09..93bda8d32 100644 --- a/src/util/ext_numeral.h +++ b/src/util/ext_numeral.h @@ -17,8 +17,7 @@ Author: Revision History: --*/ -#ifndef EXT_NUMERAL_H_ -#define EXT_NUMERAL_H_ +#pragma once #include #include "util/debug.h" @@ -344,4 +343,3 @@ void display_pp(std::ostream & out, } } -#endif diff --git a/src/util/f2n.h b/src/util/f2n.h index d55b21d3d..2b6c9799a 100644 --- a/src/util/f2n.h +++ b/src/util/f2n.h @@ -17,8 +17,7 @@ Author: Revision History: --*/ -#ifndef F2N_H_ -#define F2N_H_ +#pragma once #include "util/mpf.h" @@ -167,4 +166,3 @@ public: void display_smt2(std::ostream & out, numeral const & a, bool decimal) { m().display_smt2(out, a, decimal); } }; -#endif diff --git a/src/util/file_path.h b/src/util/file_path.h index dbd8130c7..7da154642 100644 --- a/src/util/file_path.h +++ b/src/util/file_path.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef FILE_PATH_H_ -#define FILE_PATH_H_ +#pragma once #include inline char const * get_extension(char const * file_name) { @@ -34,6 +33,5 @@ inline char const * get_extension(char const * file_name) { } } -#endif /* FILE_PATH_H_ */ diff --git a/src/util/fixed_bit_vector.h b/src/util/fixed_bit_vector.h index 3c03ce676..c88e0a372 100644 --- a/src/util/fixed_bit_vector.h +++ b/src/util/fixed_bit_vector.h @@ -18,8 +18,7 @@ Revision History: Related to bit_vector, but is based on a manager. --*/ -#ifndef FIXED_BIT_VECTOR_H_ -#define FIXED_BIT_VECTOR_H_ +#pragma once #include #include "util/debug.h" @@ -137,5 +136,4 @@ public: -#endif /* FIXED_BIT_VECTOR_H_ */ diff --git a/src/util/gparams.h b/src/util/gparams.h index 1ed5b8f10..75e8cb02c 100644 --- a/src/util/gparams.h +++ b/src/util/gparams.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef GPARAMS_H_ -#define GPARAMS_H_ +#pragma once #include "util/params.h" @@ -138,4 +137,3 @@ public: -#endif diff --git a/src/util/hash.h b/src/util/hash.h index 9b1252e3c..5643954e2 100644 --- a/src/util/hash.h +++ b/src/util/hash.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef HASH_H_ -#define HASH_H_ +#pragma once #include #include "util/util.h" @@ -250,5 +249,4 @@ inline unsigned mk_mix(unsigned a, unsigned b, unsigned c) { return c; } -#endif /* HASH_H_ */ diff --git a/src/util/id_gen.h b/src/util/id_gen.h index 951ab3f52..e5f2b3d41 100644 --- a/src/util/id_gen.h +++ b/src/util/id_gen.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef ID_GEN_H_ -#define ID_GEN_H_ +#pragma once #include "util/vector.h" #include "util/util.h" @@ -85,4 +84,3 @@ public: }; -#endif /* ID_GEN_H_ */ diff --git a/src/util/inf_eps_rational.h b/src/util/inf_eps_rational.h index d0b6f2d99..d29aa629e 100644 --- a/src/util/inf_eps_rational.h +++ b/src/util/inf_eps_rational.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef INF_EPS_RATIONAL_H_ -#define INF_EPS_RATIONAL_H_ +#pragma once #include #include #include "util/debug.h" @@ -442,4 +441,3 @@ inline inf_eps_rational abs(const inf_eps_rational & r) { return result; } -#endif /* INF_EPS_RATIONAL_H_ */ diff --git a/src/util/inf_int_rational.h b/src/util/inf_int_rational.h index 44ed76ebd..c77617320 100644 --- a/src/util/inf_int_rational.h +++ b/src/util/inf_int_rational.h @@ -17,8 +17,7 @@ Author: Revision History: --*/ -#ifndef INF_INT_RATIONAL_H_ -#define INF_INT_RATIONAL_H_ +#pragma once #include #include #include "util/debug.h" @@ -386,4 +385,3 @@ inline inf_int_rational abs(const inf_int_rational & r) { return result; } -#endif /* INF_INT_RATIONAL_H_ */ diff --git a/src/util/lbool.h b/src/util/lbool.h index dfc28926d..d9c44fc7a 100644 --- a/src/util/lbool.h +++ b/src/util/lbool.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef LBOOL_H_ -#define LBOOL_H_ +#pragma once #include "util/util.h" @@ -38,5 +37,4 @@ std::ostream & operator<<(std::ostream & out, lbool b); */ char const * to_sat_str(lbool l); -#endif /* LBOOL_H_ */ diff --git a/src/util/list.h b/src/util/list.h index 82ca73308..208828ea0 100644 --- a/src/util/list.h +++ b/src/util/list.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef LIST_H_ -#define LIST_H_ +#pragma once #include "util/buffer.h" #include "util/region.h" @@ -92,5 +91,4 @@ list * append(region & r, list * l1, list * l2) { return result; } -#endif /* LIST_H_ */ diff --git a/src/util/luby.h b/src/util/luby.h index 1b0716f33..55cbdb250 100644 --- a/src/util/luby.h +++ b/src/util/luby.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef LUBY_H_ -#define LUBY_H_ +#pragma once /** \brief Return the i-th element of the Luby sequence: 1,1,2,1,1,2,4,1,1,2,1,1,2,4,8,... @@ -27,5 +26,4 @@ Revision History: */ unsigned get_luby(unsigned i); -#endif /* LUBY_H_ */ diff --git a/src/util/machine.h b/src/util/machine.h index 1ccff6330..a188d7a4c 100644 --- a/src/util/machine.h +++ b/src/util/machine.h @@ -17,8 +17,7 @@ Revision History: --*/ -#ifndef MACHINE_H_ -#define MACHINE_H_ +#pragma once #if defined(__LP64__) || defined(_WIN64) #define PTR_ALIGNMENT 3 @@ -26,5 +25,4 @@ Revision History: #define PTR_ALIGNMENT 2 #endif -#endif /* MACHINE_H_ */ diff --git a/src/util/map.h b/src/util/map.h index 67e794d3f..602c042fb 100644 --- a/src/util/map.h +++ b/src/util/map.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef MAP_H_ -#define MAP_H_ +#pragma once #include "util/hashtable.h" @@ -305,4 +304,3 @@ class size_t_map : public map {}; template class u64_map : public map {}; -#endif diff --git a/src/util/memory_manager.h b/src/util/memory_manager.h index 94b969531..112f6e682 100644 --- a/src/util/memory_manager.h +++ b/src/util/memory_manager.h @@ -17,13 +17,12 @@ Revision History: --*/ #ifndef MEMORY_H_ -#define MEMORY_H_ #include #include #include "util/z3_exception.h" -#ifndef __has_builtin +#pragma once # define __has_builtin(x) 0 #endif @@ -129,5 +128,4 @@ void dealloc_svect(T * ptr) { } -#endif /* MEMORY_H_ */ diff --git a/src/util/min_cut.h b/src/util/min_cut.h index 85b48e7a2..d53923565 100644 --- a/src/util/min_cut.h +++ b/src/util/min_cut.h @@ -16,8 +16,7 @@ Revision History: --*/ -#ifndef MIN_CUT_H_ -#define MIN_CUT_H_ +#pragma once #include "util/vector.h" @@ -59,4 +58,3 @@ private: void compute_cut_and_add_lemmas(bool_vector& reachable, unsigned_vector& cut_nodes); }; -#endif diff --git a/src/util/mpbq.h b/src/util/mpbq.h index ed8a8c523..cfd6971bc 100644 --- a/src/util/mpbq.h +++ b/src/util/mpbq.h @@ -24,8 +24,7 @@ Author: Revision History: --*/ -#ifndef MPBQ_H_ -#define MPBQ_H_ +#pragma once #include "util/mpq.h" #include "util/rational.h" @@ -360,4 +359,3 @@ MPBQ_MK_BINARY(operator*, mul) #undef MPBQ_MK_BINARY #undef MPBQ_MK_BINARY_CORE -#endif diff --git a/src/util/mpbqi.h b/src/util/mpbqi.h index 924e1e121..db076af43 100644 --- a/src/util/mpbqi.h +++ b/src/util/mpbqi.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef MPBQI_H_ -#define MPBQI_H_ +#pragma once #include "util/mpbq.h" #include "util/basic_interval.h" @@ -47,4 +46,3 @@ public: typedef mpbqi_manager::interval mpbqi; typedef mpbqi_manager::scoped_interval scoped_mpbqi; -#endif diff --git a/src/util/mpff.h b/src/util/mpff.h index c7d14bac4..956b56418 100644 --- a/src/util/mpff.h +++ b/src/util/mpff.h @@ -21,7 +21,6 @@ Revision History: --*/ #ifndef MPFF_H_ -#define MPFF_H_ #include "util/id_gen.h" #include "util/util.h" @@ -447,7 +446,7 @@ public: */ void to_mpq(mpff const & n, unsynch_mpq_manager & m, mpq & t); -#ifndef SINGLE_THREAD +#pragma once /** \brief Convert n into a mpq numeral. @@ -492,4 +491,3 @@ public: typedef _scoped_numeral scoped_mpff; typedef _scoped_numeral_vector scoped_mpff_vector; -#endif diff --git a/src/util/mpfx.h b/src/util/mpfx.h index ddaf6f89a..2320426d5 100644 --- a/src/util/mpfx.h +++ b/src/util/mpfx.h @@ -17,7 +17,6 @@ Revision History: --*/ #ifndef MPFX_H_ -#define MPFX_H_ #include "util/id_gen.h" #include "util/util.h" @@ -380,7 +379,7 @@ public: */ void to_mpq(mpfx const & n, unsynch_mpq_manager & m, mpq & t); -#ifndef SINGLE_THREAD +#pragma once /** \brief Convert n into a mpq numeral. */ @@ -409,4 +408,3 @@ public: typedef _scoped_numeral scoped_mpfx; typedef _scoped_numeral_vector scoped_mpfx_vector; -#endif diff --git a/src/util/mpn.h b/src/util/mpn.h index 3abbd87e4..7b3b392e9 100644 --- a/src/util/mpn.h +++ b/src/util/mpn.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef MPN_H_ -#define MPN_H_ +#pragma once #include #include "util/util.h" @@ -106,4 +105,3 @@ private: void trace_nl(mpn_digit const * a, size_t lnga) const; }; -#endif diff --git a/src/util/mpq_inf.h b/src/util/mpq_inf.h index 607535063..16d3da866 100644 --- a/src/util/mpq_inf.h +++ b/src/util/mpq_inf.h @@ -17,7 +17,6 @@ Revision History: --*/ #ifndef MPQ_INF_H_ -#define MPQ_INF_H_ #include "util/mpq.h" #include "util/hash.h" @@ -279,7 +278,7 @@ public: mpq_manager& get_mpq_manager() { return m; } }; -#ifndef SINGLE_THREAD +#pragma once typedef mpq_inf_manager synch_mpq_inf_manager; #else typedef mpq_inf_manager synch_mpq_inf_manager; @@ -290,4 +289,3 @@ typedef _scoped_numeral scoped_mpq_inf; typedef _scoped_numeral scoped_synch_mpq_inf; typedef _scoped_numeral_vector scoped_mpq_inf_vector; -#endif diff --git a/src/util/mpzzp.h b/src/util/mpzzp.h index 82ed55bbc..731b116ce 100644 --- a/src/util/mpzzp.h +++ b/src/util/mpzzp.h @@ -23,8 +23,7 @@ Revision History: In the future, it will replace it. --*/ -#ifndef MPZZP_H_ -#define MPZZP_H_ +#pragma once #include "util/mpz.h" @@ -281,5 +280,4 @@ public: }; -#endif diff --git a/src/util/nat_set.h b/src/util/nat_set.h index f2f2cb8e1..94923ae57 100644 --- a/src/util/nat_set.h +++ b/src/util/nat_set.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef NAT_SET_H_ -#define NAT_SET_H_ +#pragma once #include #include "util/vector.h" @@ -84,5 +83,4 @@ public: } }; -#endif /* NAT_SET_H_ */ diff --git a/src/util/numeral_buffer.h b/src/util/numeral_buffer.h index eee415efb..a0791f42a 100644 --- a/src/util/numeral_buffer.h +++ b/src/util/numeral_buffer.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef NUMERAL_BUFFER_H_ -#define NUMERAL_BUFFER_H_ +#pragma once #include "util/vector.h" @@ -88,4 +87,3 @@ public: }; -#endif diff --git a/src/util/obj_hashtable.h b/src/util/obj_hashtable.h index 39675fde1..6ef7ec76e 100644 --- a/src/util/obj_hashtable.h +++ b/src/util/obj_hashtable.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef OBJ_HASHTABLE_H_ -#define OBJ_HASHTABLE_H_ +#pragma once #include "util/hash.h" #include "util/hashtable.h" @@ -241,5 +240,4 @@ void erase_dealloc_value(obj_map & m, Key * k) { } } -#endif /* OBJ_HASHTABLE_H_ */ diff --git a/src/util/obj_mark.h b/src/util/obj_mark.h index d2fa65d32..07fa9b41b 100644 --- a/src/util/obj_mark.h +++ b/src/util/obj_mark.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef OBJ_MARK_H_ -#define OBJ_MARK_H_ +#pragma once #include "util/bit_vector.h" @@ -50,4 +49,3 @@ public: void reset() { m_marks.reset(); } }; -#endif /* OBJ_MARK_H_ */ diff --git a/src/util/obj_pair_hashtable.h b/src/util/obj_pair_hashtable.h index 9856973cf..03fdcc017 100644 --- a/src/util/obj_pair_hashtable.h +++ b/src/util/obj_pair_hashtable.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef OBJ_PAIR_HASHTABLE_H_ -#define OBJ_PAIR_HASHTABLE_H_ +#pragma once #include "util/hash.h" #include "util/hashtable.h" @@ -184,5 +183,4 @@ public: } }; -#endif /* OBJ_PAIR_HASHTABLE_H_ */ diff --git a/src/util/obj_pair_set.h b/src/util/obj_pair_set.h index d565d31b9..6b08d6fad 100644 --- a/src/util/obj_pair_set.h +++ b/src/util/obj_pair_set.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef OBJ_PAIR_SET_H_ -#define OBJ_PAIR_SET_H_ +#pragma once #include "util/chashtable.h" @@ -53,4 +52,3 @@ public: iterator end() { return m_set.end(); } }; -#endif diff --git a/src/util/obj_ref_hashtable.h b/src/util/obj_ref_hashtable.h index 80d198607..d3e17a4a3 100644 --- a/src/util/obj_ref_hashtable.h +++ b/src/util/obj_ref_hashtable.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef OBJ_REF_HASHTABLE_H_ -#define OBJ_REF_HASHTABLE_H_ +#pragma once #include "util/obj_hashtable.h" @@ -113,5 +112,4 @@ public: }; -#endif /* OBJ_REF_HASHTABLE_H_ */ diff --git a/src/util/obj_triple_hashtable.h b/src/util/obj_triple_hashtable.h index d9034c2e3..cd1f17651 100644 --- a/src/util/obj_triple_hashtable.h +++ b/src/util/obj_triple_hashtable.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef OBJ_TRIPLE_HASHTABLE_H_ -#define OBJ_TRIPLE_HASHTABLE_H_ +#pragma once #include "util/hashtable.h" @@ -176,5 +175,4 @@ public: } }; -#endif /* OBJ_TRIPLE_HASHTABLE_H_ */ diff --git a/src/util/object_allocator.h b/src/util/object_allocator.h index e51f7a438..10c02665e 100644 --- a/src/util/object_allocator.h +++ b/src/util/object_allocator.h @@ -17,8 +17,7 @@ Author: Revision History: --*/ -#ifndef OBJECT_ALLOCATOR_H_ -#define OBJECT_ALLOCATOR_H_ +#pragma once #include "util/util.h" #include "util/vector.h" @@ -285,5 +284,4 @@ public: }; -#endif /* OBJECT_ALLOCATOR_H_ */ diff --git a/src/util/page.h b/src/util/page.h index 0f44d6794..5f01d698c 100644 --- a/src/util/page.h +++ b/src/util/page.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef PAGE_H_ -#define PAGE_H_ +#pragma once #include "util/memory_manager.h" @@ -39,4 +38,3 @@ char * allocate_default_page(char * prev, char * & free_pages); char * allocate_page(char * prev, size_t sz); void recycle_page(char * p, char * & free_pages); -#endif diff --git a/src/util/params.h b/src/util/params.h index 8d036456d..989d112bd 100644 --- a/src/util/params.h +++ b/src/util/params.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef PARAMS_H_ -#define PARAMS_H_ +#pragma once #include "util/cmd_context_types.h" #include "util/vector.h" @@ -142,4 +141,3 @@ void insert_timeout(param_descrs & r); void insert_rlimit(param_descrs & r); void insert_ctrl_c(param_descrs & r); -#endif diff --git a/src/util/parray.h b/src/util/parray.h index d02d47c83..23c264022 100644 --- a/src/util/parray.h +++ b/src/util/parray.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef PARRAY_H_ -#define PARRAY_H_ +#pragma once #include "util/vector.h" #include "util/trace.h" @@ -638,4 +637,3 @@ struct dummy_value_manager { void dec_ref(T const &) {} }; -#endif diff --git a/src/util/permutation.h b/src/util/permutation.h index 77205bb1d..2b0623fe9 100644 --- a/src/util/permutation.h +++ b/src/util/permutation.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef PERMUTATION_H_ -#define PERMUTATION_H_ +#pragma once #include #include "util/vector.h" @@ -90,4 +89,3 @@ void apply_permutation(unsigned sz, T * data, unsigned const * p) { } } -#endif diff --git a/src/util/plugin_manager.h b/src/util/plugin_manager.h index 4bf04da34..f289c0f4e 100644 --- a/src/util/plugin_manager.h +++ b/src/util/plugin_manager.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef PLUGIN_MANAGER_H_ -#define PLUGIN_MANAGER_H_ +#pragma once #include "util/util.h" @@ -69,5 +68,4 @@ public: } }; -#endif /* PLUGIN_MANAGER_H_ */ diff --git a/src/util/pool.h b/src/util/pool.h index 184f6470e..a94386c29 100644 --- a/src/util/pool.h +++ b/src/util/pool.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef POOL_H_ -#define POOL_H_ +#pragma once #include "util/util.h" #include "util/vector.h" @@ -46,5 +45,4 @@ public: } }; -#endif /* POOL_H_ */ diff --git a/src/util/pop_scopes.h b/src/util/pop_scopes.h index 0fa612be7..a23f9b7c1 100644 --- a/src/util/pop_scopes.h +++ b/src/util/pop_scopes.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef POP_SCOPES_H_ -#define POP_SCOPES_H_ +#pragma once #define POP_SCOPES(_num_scopes, _lim, _trail, _action) \ if (_num_scopes > 0) \ @@ -33,5 +32,4 @@ Revision History: _lim.shrink(new_lvl); \ } -#endif /* POP_SCOPES_H_ */ diff --git a/src/util/prime_generator.h b/src/util/prime_generator.h index 076a68c14..6316fa0cf 100644 --- a/src/util/prime_generator.h +++ b/src/util/prime_generator.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef PRIME_GENERATOR_H_ -#define PRIME_GENERATOR_H_ +#pragma once #include "util/vector.h" #include "util/z3_exception.h" @@ -55,4 +54,3 @@ public: */ }; -#endif diff --git a/src/util/ptr_scoped_buffer.h b/src/util/ptr_scoped_buffer.h index d6b4c6563..c0a484c2c 100644 --- a/src/util/ptr_scoped_buffer.h +++ b/src/util/ptr_scoped_buffer.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef PTR_SCOPED_BUFFER_H_ -#define PTR_SCOPED_BUFFER_H_ +#pragma once #include "util/util.h" #include "util/debug.h" @@ -52,5 +51,4 @@ public: void append(unsigned n, T * const * elems) { ptr_buffer::append(n, elems); } }; -#endif diff --git a/src/util/queue.h b/src/util/queue.h index a517efc24..059dea573 100644 --- a/src/util/queue.h +++ b/src/util/queue.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef _QUEUE_H_ -#define _QUEUE_H_ +#pragma once #include "vector.h" @@ -69,5 +68,4 @@ public: } }; -#endif diff --git a/src/util/ref.h b/src/util/ref.h index ea6b7a624..c9ba6697f 100644 --- a/src/util/ref.h +++ b/src/util/ref.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef REF_H_ -#define REF_H_ +#pragma once template class ref { @@ -134,5 +133,4 @@ class unmanged_ref_manager { static void dec_ref(T * o) { o->dec_ref(); } }; -#endif /* REF_H_ */ diff --git a/src/util/ref_buffer.h b/src/util/ref_buffer.h index 49213cc62..00350c5bc 100644 --- a/src/util/ref_buffer.h +++ b/src/util/ref_buffer.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef REF_BUFFER_H_ -#define REF_BUFFER_H_ +#pragma once #include "util/buffer.h" #include "util/obj_ref.h" @@ -180,4 +179,3 @@ class sref_buffer : public ref_buffer_core, INITIAL_ public: }; -#endif /* REF_BUFFER_H_ */ diff --git a/src/util/ref_util.h b/src/util/ref_util.h index ade7accad..5a986981d 100644 --- a/src/util/ref_util.h +++ b/src/util/ref_util.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef REF_UTIL_H_ -#define REF_UTIL_H_ +#pragma once /** \brief Decrement the reference counter of the keys and values stored in the map, @@ -88,4 +87,3 @@ void dec_ref_collection_values(Mng & m, C & c) { } -#endif diff --git a/src/util/region.h b/src/util/region.h index 60c5378e1..c55eb3f04 100644 --- a/src/util/region.h +++ b/src/util/region.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef REGION_H_ -#define REGION_H_ +#pragma once #include #include @@ -118,5 +117,4 @@ inline void operator delete(void *, region & ) { /* do nothing */ } inline void operator delete[](void *, region & ) { /* do nothing */ } -#endif /* REGION_H_ */ diff --git a/src/util/s_integer.h b/src/util/s_integer.h index 80310368d..775384a5d 100644 --- a/src/util/s_integer.h +++ b/src/util/s_integer.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef S_INTEGER_H_ -#define S_INTEGER_H_ +#pragma once #include "util/rational.h" @@ -145,5 +144,4 @@ inline s_integer abs(const s_integer & r) { return result; } -#endif /* S_INTEGER_H_ */ diff --git a/src/util/scoped_ctrl_c.h b/src/util/scoped_ctrl_c.h index 654938bfc..09bc55c05 100644 --- a/src/util/scoped_ctrl_c.h +++ b/src/util/scoped_ctrl_c.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SCOPED_CTRL_C_H_ -#define SCOPED_CTRL_C_H_ +#pragma once #include "util/event_handler.h" #include "util/util.h" @@ -38,4 +37,3 @@ public: void reset() { m_first = true; } }; -#endif diff --git a/src/util/scoped_numeral_buffer.h b/src/util/scoped_numeral_buffer.h index 1f294cee0..86181f761 100644 --- a/src/util/scoped_numeral_buffer.h +++ b/src/util/scoped_numeral_buffer.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SCOPED_NUMERAL_BUFFER_H_ -#define SCOPED_NUMERAL_BUFFER_H_ +#pragma once #include "util/buffer.h" @@ -65,4 +64,3 @@ public: } }; -#endif diff --git a/src/util/scoped_ptr_vector.h b/src/util/scoped_ptr_vector.h index fbdf9e9af..fee80d584 100644 --- a/src/util/scoped_ptr_vector.h +++ b/src/util/scoped_ptr_vector.h @@ -17,8 +17,7 @@ Author: Notes: --*/ -#ifndef SCOPED_PTR_VECTOR_H_ -#define SCOPED_PTR_VECTOR_H_ +#pragma once #include "util/vector.h" #include "util/util.h" @@ -69,4 +68,3 @@ public: typename ptr_vector::const_iterator end() const { return m_vector.end(); } }; -#endif diff --git a/src/util/scoped_timer.h b/src/util/scoped_timer.h index cfce957f3..1213d025b 100644 --- a/src/util/scoped_timer.h +++ b/src/util/scoped_timer.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SCOPED_TIMER_H_ -#define SCOPED_TIMER_H_ +#pragma once #include "util/event_handler.h" @@ -29,4 +28,3 @@ public: ~scoped_timer(); }; -#endif diff --git a/src/util/scoped_vector.h b/src/util/scoped_vector.h index aa64474d3..7491c3308 100644 --- a/src/util/scoped_vector.h +++ b/src/util/scoped_vector.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SCOPED_VECTOR_H_ -#define SCOPED_VECTOR_H_ +#pragma once #include "util/vector.h" @@ -165,4 +164,3 @@ private: } }; -#endif diff --git a/src/util/sexpr.h b/src/util/sexpr.h index 7f5fdc67d..8b736441d 100644 --- a/src/util/sexpr.h +++ b/src/util/sexpr.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef SEXPR_H_ -#define SEXPR_H_ +#pragma once #include "util/rational.h" #include "util/symbol.h" @@ -81,4 +80,3 @@ public: typedef obj_ref sexpr_ref; typedef ref_vector sexpr_ref_vector; -#endif diff --git a/src/util/small_object_allocator.h b/src/util/small_object_allocator.h index 740218242..4b58f1996 100644 --- a/src/util/small_object_allocator.h +++ b/src/util/small_object_allocator.h @@ -17,8 +17,7 @@ Revision History: Leonardo de Moura (leonardo) 2011-04-27 Rewrote/Simplified the allocator --*/ -#ifndef SMALL_OBJECT_ALLOCATOR_H_ -#define SMALL_OBJECT_ALLOCATOR_H_ +#pragma once #include "util/machine.h" #include "util/debug.h" @@ -56,5 +55,4 @@ inline void * operator new[](size_t s, small_object_allocator & r) { return r.al inline void operator delete(void * p, small_object_allocator & r) { UNREACHABLE(); } inline void operator delete[](void * p, small_object_allocator & r) { UNREACHABLE(); } -#endif /* SMALL_OBJECT_ALLOCATOR_H_ */ diff --git a/src/util/smt2_util.h b/src/util/smt2_util.h index 5338daed9..816f1ed4c 100644 --- a/src/util/smt2_util.h +++ b/src/util/smt2_util.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef SMT2_UTIL_H_ -#define SMT2_UTIL_H_ +#pragma once #include "util/symbol.h" @@ -26,4 +25,3 @@ bool is_smt2_quoted_symbol(char const * s); bool is_smt2_quoted_symbol(symbol const & s); std::string mk_smt2_quoted_symbol(symbol const & s); -#endif diff --git a/src/util/sorting_network.h b/src/util/sorting_network.h index b7358b58c..9307aec01 100644 --- a/src/util/sorting_network.h +++ b/src/util/sorting_network.h @@ -21,8 +21,7 @@ Notes: #include "util/vector.h" -#ifndef SORTING_NETWORK_H_ -#define SORTING_NETWORK_H_ +#pragma once enum sorting_network_encoding { sorted_at_most, @@ -1499,4 +1498,3 @@ Notes: } }; -#endif diff --git a/src/util/stack.h b/src/util/stack.h index e29a09fcd..3e49b9fa6 100644 --- a/src/util/stack.h +++ b/src/util/stack.h @@ -15,8 +15,7 @@ Author: Notes: --*/ -#ifndef STACK_H_ -#define STACK_H_ +#pragma once #include "util/page.h" #include "util/debug.h" @@ -47,4 +46,3 @@ public: inline void * operator new(size_t s, stack & r) { return r.allocate(s); } inline void operator delete(void * ptr, stack & r) { SASSERT(ptr == r.top()); r.deallocate(); } -#endif diff --git a/src/util/statistics.h b/src/util/statistics.h index 249c0ccc3..be0463ca7 100644 --- a/src/util/statistics.h +++ b/src/util/statistics.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef STATISTICS_H_ -#define STATISTICS_H_ +#pragma once #include #include "util/vector.h" @@ -46,4 +45,3 @@ public: void get_memory_statistics(statistics& st); void get_rlimit_statistics(reslimit& l, statistics& st); -#endif diff --git a/src/util/stats.h b/src/util/stats.h index 680f9c9df..431750469 100644 --- a/src/util/stats.h +++ b/src/util/stats.h @@ -17,8 +17,7 @@ Revision History: --*/ -#ifndef STATS_H_ -#define STATS_H_ +#pragma once #include @@ -34,4 +33,3 @@ inline void print_stat_f(std::ostream& out, char const* msg, float num) { } } -#endif diff --git a/src/util/stopwatch.h b/src/util/stopwatch.h index 9997c5638..78482c0f1 100644 --- a/src/util/stopwatch.h +++ b/src/util/stopwatch.h @@ -17,8 +17,7 @@ Revision History: --*/ -#ifndef STOPWATCH_H_ -#define STOPWATCH_H_ +#pragma once #include "util/debug.h" #include @@ -97,4 +96,3 @@ inline std::ostream& operator<<(std::ostream& out, stopwatch const& sw) { } -#endif diff --git a/src/util/str_hashtable.h b/src/util/str_hashtable.h index 111d54ac8..2934c7146 100644 --- a/src/util/str_hashtable.h +++ b/src/util/str_hashtable.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef STR_HASHTABLE_H_ -#define STR_HASHTABLE_H_ +#pragma once #include @@ -30,5 +29,4 @@ struct str_hash_proc { struct str_eq_proc { bool operator()(char const * s1, char const * s2) const { return strcmp(s1, s2) == 0; } }; typedef ptr_hashtable str_hashtable; -#endif /* STR_HASHTABLE_H_ */ diff --git a/src/util/stream_buffer.h b/src/util/stream_buffer.h index 1afe22e21..104b22eac 100644 --- a/src/util/stream_buffer.h +++ b/src/util/stream_buffer.h @@ -18,8 +18,7 @@ Author: Revision History: --*/ -#ifndef STREAM_BUFFER_H_ -#define STREAM_BUFFER_H_ +#pragma once #include @@ -42,5 +41,4 @@ public: } }; -#endif /* STREAM_BUFFER_H_ */ diff --git a/src/util/symbol.h b/src/util/symbol.h index 2f2d5eeae..5dba08669 100644 --- a/src/util/symbol.h +++ b/src/util/symbol.h @@ -19,8 +19,7 @@ Revision History: #if 0 // include "util/new_symbol.h" #else -#ifndef SYMBOL_H_ -#define SYMBOL_H_ +#pragma once #include #include @@ -157,4 +156,3 @@ bool lt(symbol const & s1, symbol const & s2); #endif /* SYMBOL_H_ */ -#endif diff --git a/src/util/symbol_table.h b/src/util/symbol_table.h index d6a7da7f4..6a683f201 100644 --- a/src/util/symbol_table.h +++ b/src/util/symbol_table.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef SYMBOL_TABLE_H_ -#define SYMBOL_TABLE_H_ +#pragma once #include "util/vector.h" #include "util/hashtable.h" #include "util/hash.h" @@ -199,5 +198,4 @@ public: } }; -#endif /* SYMBOL_TABLE_H_ */ diff --git a/src/util/timeit.h b/src/util/timeit.h index e3b07db84..e29284a04 100644 --- a/src/util/timeit.h +++ b/src/util/timeit.h @@ -19,8 +19,7 @@ Revision History: Rewrote using stopwatches, added support for tracking memory --*/ -#ifndef TIMEIT_H_ -#define TIMEIT_H_ +#pragma once class timeit { struct imp; @@ -30,4 +29,3 @@ public: ~timeit(); }; -#endif diff --git a/src/util/timeout.h b/src/util/timeout.h index 1dabd5e98..b21778340 100644 --- a/src/util/timeout.h +++ b/src/util/timeout.h @@ -16,11 +16,9 @@ Author: Revision History: --*/ -#ifndef TIMEOUT_H_ -#define TIMEOUT_H_ +#pragma once void register_on_timeout_proc(void (*proc)()); void set_timeout(long ms); -#endif // _TIMEOUT_H_ diff --git a/src/util/timer.h b/src/util/timer.h index e2ddb55e7..8f6de30a2 100644 --- a/src/util/timer.h +++ b/src/util/timer.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef TIMER_H_ -#define TIMER_H_ +#pragma once #include "util/stopwatch.h" @@ -44,4 +43,3 @@ public: } }; -#endif /* TIMER_H_ */ diff --git a/src/util/top_sort.h b/src/util/top_sort.h index a743ee78f..ec9ee4668 100644 --- a/src/util/top_sort.h +++ b/src/util/top_sort.h @@ -16,8 +16,7 @@ Revision History: --*/ -#ifndef TOP_SORT_H_ -#define TOP_SORT_H_ +#pragma once #include "util/obj_hashtable.h" #include "util/vector.h" @@ -112,4 +111,3 @@ public: }; -#endif /* TOP_SORT_H_ */ diff --git a/src/util/total_order.h b/src/util/total_order.h index 44ab6f749..07e409717 100644 --- a/src/util/total_order.h +++ b/src/util/total_order.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef TOTAL_ORDER_H_ -#define TOTAL_ORDER_H_ +#pragma once #include "util/util.h" #include "util/small_object_allocator.h" @@ -406,5 +405,4 @@ std::ostream & operator<<(std::ostream & out, total_order const & to) { } -#endif /* TOTAL_ORDER_H_ */ diff --git a/src/util/tptr.h b/src/util/tptr.h index d7319954d..806b7637c 100644 --- a/src/util/tptr.h +++ b/src/util/tptr.h @@ -17,8 +17,7 @@ Revision History: --*/ -#ifndef TPTR_H_ -#define TPTR_H_ +#pragma once #include "util/machine.h" @@ -42,5 +41,4 @@ Revision History: #define UNBOXINT(PTR) static_cast(reinterpret_cast(PTR) >> PTR_ALIGNMENT) -#endif /* TPTR_H_ */ diff --git a/src/util/trail.h b/src/util/trail.h index 6f0bf6fb6..40b50a59a 100644 --- a/src/util/trail.h +++ b/src/util/trail.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef TRAIL_H_ -#define TRAIL_H_ +#pragma once #include "util/obj_hashtable.h" #include "util/region.h" @@ -385,4 +384,3 @@ public: } }; -#endif /* TRAIL_H_ */ diff --git a/src/util/uint_map.h b/src/util/uint_map.h index b7dec8676..104d804c3 100644 --- a/src/util/uint_map.h +++ b/src/util/uint_map.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef UINT_MAP_H_ -#define UINT_MAP_H_ +#pragma once #include "util/vector.h" @@ -61,5 +60,4 @@ public: }; -#endif /* UINT_MAP_H_ */ diff --git a/src/util/union_find.h b/src/util/union_find.h index f8ae0402f..ef81c9d56 100644 --- a/src/util/union_find.h +++ b/src/util/union_find.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef UNION_FIND_H_ -#define UNION_FIND_H_ +#pragma once #include "util/trail.h" #include "util/trace.h" @@ -242,5 +241,4 @@ class basic_union_find { }; -#endif /* UNION_FIND_H_ */ diff --git a/src/util/warning.h b/src/util/warning.h index 2bcc7512b..203fa6fe4 100644 --- a/src/util/warning.h +++ b/src/util/warning.h @@ -16,8 +16,7 @@ Author: Revision History: --*/ -#ifndef WARNING_H_ -#define WARNING_H_ +#pragma once #include #include @@ -33,5 +32,4 @@ void warning_msg(const char * msg, ...); void format2ostream(std::ostream& out, char const* fmt, va_list args); -#endif /* WARNING_H_ */ diff --git a/src/util/z3_exception.h b/src/util/z3_exception.h index b5c1bf55d..cb0a58e37 100644 --- a/src/util/z3_exception.h +++ b/src/util/z3_exception.h @@ -16,8 +16,7 @@ Author: Notes: --*/ -#ifndef Z3_EXCEPTION_H_ -#define Z3_EXCEPTION_H_ +#pragma once #include @@ -47,4 +46,3 @@ public: char const * msg() const override; }; -#endif