3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-29 03:45:51 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-07-04 15:56:30 -07:00
parent 10d0404175
commit d0e20e44ff
714 changed files with 714 additions and 2142 deletions

View file

@ -17,8 +17,7 @@ Author:
Notes:
--*/
#ifndef APPROX_NAT_H_
#define APPROX_NAT_H_
#pragma once
#include<iostream>
#include<climits>
@ -42,4 +41,3 @@ public:
std::ostream & operator<<(std::ostream & target, approx_nat const & w);
#endif /* APPROX_NAT_H_ */

View file

@ -16,8 +16,7 @@ Author:
Revision History:
--*/
#ifndef APPROX_SET_H_
#define APPROX_SET_H_
#pragma once
#include<iostream>
#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_ */

View file

@ -16,8 +16,7 @@ Author:
Revision History:
--*/
#ifndef ARRAY_H_
#define ARRAY_H_
#pragma once
template<typename T, bool CallDestructors=true>
class array {
@ -215,4 +214,3 @@ public:
sarray(Allocator & a, unsigned sz, bool init_mem):array<T, false>(a, sz, init_mem) {}
};
#endif

View file

@ -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

View file

@ -21,8 +21,7 @@ Author:
Revision History:
--*/
#ifndef BASIC_INTERVAL_H_
#define BASIC_INTERVAL_H_
#pragma once
template<typename numeral_manager, bool closed>
class basic_interval_manager {
@ -360,4 +359,3 @@ public:
}
};
#endif

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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<void*>::dependency v_dependency;
typedef scoped_dependency_manager<unsigned> u_dependency_manager;
typedef scoped_dependency_manager<unsigned>::dependency u_dependency;
#endif /* DEPENDENCY_H_ */

View file

@ -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

View file

@ -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

View file

@ -16,8 +16,7 @@ Author:
Revision History:
--*/
#ifndef DOUBLE_MANAGER_H_
#define DOUBLE_MANAGER_H_
#pragma once
#include<cmath>
#include<string>
@ -99,5 +98,4 @@ public:
static_assert(sizeof(uint64_t) == sizeof(double), "");
#endif /* DOUBLE_MANAGER_H_ */

View file

@ -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

View file

@ -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

View file

@ -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_ */

View file

@ -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

View file

@ -16,8 +16,7 @@ Author:
Revision History:
--*/
#ifndef EXT_GCD_H_
#define EXT_GCD_H_
#pragma once
template<typename numeral>
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_ */

View file

@ -17,8 +17,7 @@ Author:
Revision History:
--*/
#ifndef EXT_NUMERAL_H_
#define EXT_NUMERAL_H_
#pragma once
#include<iostream>
#include "util/debug.h"
@ -344,4 +343,3 @@ void display_pp(std::ostream & out,
}
}
#endif

View file

@ -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

View file

@ -16,8 +16,7 @@ Author:
Revision History:
--*/
#ifndef FILE_PATH_H_
#define FILE_PATH_H_
#pragma once
#include <cstring>
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_ */

View file

@ -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<string.h>
#include "util/debug.h"
@ -137,5 +136,4 @@ public:
#endif /* FIXED_BIT_VECTOR_H_ */

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef GPARAMS_H_
#define GPARAMS_H_
#pragma once
#include "util/params.h"
@ -138,4 +137,3 @@ public:
#endif

View file

@ -16,8 +16,7 @@ Author:
Revision History:
--*/
#ifndef HASH_H_
#define HASH_H_
#pragma once
#include<algorithm>
#include "util/util.h"
@ -250,5 +249,4 @@ inline unsigned mk_mix(unsigned a, unsigned b, unsigned c) {
return c;
}
#endif /* HASH_H_ */

View file

@ -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_ */

View file

@ -16,8 +16,7 @@ Author:
Revision History:
--*/
#ifndef INF_EPS_RATIONAL_H_
#define INF_EPS_RATIONAL_H_
#pragma once
#include<stdlib.h>
#include<string>
#include "util/debug.h"
@ -442,4 +441,3 @@ inline inf_eps_rational<N> abs(const inf_eps_rational<N> & r) {
return result;
}
#endif /* INF_EPS_RATIONAL_H_ */

View file

@ -17,8 +17,7 @@ Author:
Revision History:
--*/
#ifndef INF_INT_RATIONAL_H_
#define INF_INT_RATIONAL_H_
#pragma once
#include<stdlib.h>
#include<string>
#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_ */

View file

@ -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_ */

View file

@ -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<T> * append(region & r, list<T> * l1, list<T> * l2) {
return result;
}
#endif /* LIST_H_ */

View file

@ -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_ */

View file

@ -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_ */

View file

@ -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<size_t, Value, size_t_hash, size_t_eq> {};
template<typename Value>
class u64_map : public map<uint64_t, Value, u64_hash, u64_eq> {};
#endif

View file

@ -17,13 +17,12 @@ Revision History:
--*/
#ifndef MEMORY_H_
#define MEMORY_H_
#include<cstdlib>
#include<ostream>
#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_ */

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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<mpff_manager> scoped_mpff;
typedef _scoped_numeral_vector<mpff_manager> scoped_mpff_vector;
#endif

View file

@ -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<mpfx_manager> scoped_mpfx;
typedef _scoped_numeral_vector<mpfx_manager> scoped_mpfx_vector;
#endif

View file

@ -16,8 +16,7 @@ Author:
Revision History:
--*/
#ifndef MPN_H_
#define MPN_H_
#pragma once
#include<ostream>
#include "util/util.h"
@ -106,4 +105,3 @@ private:
void trace_nl(mpn_digit const * a, size_t lnga) const;
};
#endif

View file

@ -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<SYNCH>& get_mpq_manager() { return m; }
};
#ifndef SINGLE_THREAD
#pragma once
typedef mpq_inf_manager<true> synch_mpq_inf_manager;
#else
typedef mpq_inf_manager<false> synch_mpq_inf_manager;
@ -290,4 +289,3 @@ typedef _scoped_numeral<unsynch_mpq_inf_manager> scoped_mpq_inf;
typedef _scoped_numeral<synch_mpq_inf_manager> scoped_synch_mpq_inf;
typedef _scoped_numeral_vector<unsynch_mpq_inf_manager> scoped_mpq_inf_vector;
#endif

View file

@ -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

View file

@ -16,8 +16,7 @@ Author:
Revision History:
--*/
#ifndef NAT_SET_H_
#define NAT_SET_H_
#pragma once
#include <climits>
#include "util/vector.h"
@ -84,5 +83,4 @@ public:
}
};
#endif /* NAT_SET_H_ */

View file

@ -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

View file

@ -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<Key, Value*> & m, Key * k) {
}
}
#endif /* OBJ_HASHTABLE_H_ */

View file

@ -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_ */

View file

@ -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_ */

View file

@ -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

View file

@ -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_ */

View file

@ -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_ */

View file

@ -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_ */

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -16,8 +16,7 @@ Author:
Revision History:
--*/
#ifndef PERMUTATION_H_
#define PERMUTATION_H_
#pragma once
#include<iostream>
#include "util/vector.h"
@ -90,4 +89,3 @@ void apply_permutation(unsigned sz, T * data, unsigned const * p) {
}
}
#endif

View file

@ -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_ */

View file

@ -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_ */

View file

@ -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_ */

View file

@ -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

View file

@ -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<T, INITIAL_SIZE>::append(n, elems); }
};
#endif

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef _QUEUE_H_
#define _QUEUE_H_
#pragma once
#include "vector.h"
@ -69,5 +68,4 @@ public:
}
};
#endif

View file

@ -16,8 +16,7 @@ Author:
Revision History:
--*/
#ifndef REF_H_
#define REF_H_
#pragma once
template<typename T>
class ref {
@ -134,5 +133,4 @@ class unmanged_ref_manager {
static void dec_ref(T * o) { o->dec_ref(); }
};
#endif /* REF_H_ */

View file

@ -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<T, ref_unmanaged_wrapper<T>, INITIAL_
public:
};
#endif /* REF_BUFFER_H_ */

View file

@ -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

View file

@ -16,8 +16,7 @@ Author:
Revision History:
--*/
#ifndef REGION_H_
#define REGION_H_
#pragma once
#include<cstdlib>
#include<iostream>
@ -118,5 +117,4 @@ inline void operator delete(void *, region & ) { /* do nothing */ }
inline void operator delete[](void *, region & ) { /* do nothing */ }
#endif /* REGION_H_ */

View file

@ -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_ */

View file

@ -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

View file

@ -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

View file

@ -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<T>::const_iterator end() const { return m_vector.end(); }
};
#endif

View file

@ -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

View file

@ -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

View file

@ -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, sexpr_manager> sexpr_ref;
typedef ref_vector<sexpr, sexpr_manager> sexpr_ref_vector;
#endif

View file

@ -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_ */

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef STATISTICS_H_
#define STATISTICS_H_
#pragma once
#include<iostream>
#include "util/vector.h"
@ -46,4 +45,3 @@ public:
void get_memory_statistics(statistics& st);
void get_rlimit_statistics(reslimit& l, statistics& st);
#endif

View file

@ -17,8 +17,7 @@ Revision History:
--*/
#ifndef STATS_H_
#define STATS_H_
#pragma once
#include<ostream>
@ -34,4 +33,3 @@ inline void print_stat_f(std::ostream& out, char const* msg, float num) {
}
}
#endif

View file

@ -17,8 +17,7 @@ Revision History:
--*/
#ifndef STOPWATCH_H_
#define STOPWATCH_H_
#pragma once
#include "util/debug.h"
#include <chrono>
@ -97,4 +96,3 @@ inline std::ostream& operator<<(std::ostream& out, stopwatch const& sw) {
}
#endif

View file

@ -16,8 +16,7 @@ Author:
Revision History:
--*/
#ifndef STR_HASHTABLE_H_
#define STR_HASHTABLE_H_
#pragma once
#include<string.h>
@ -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<const char, str_hash_proc, str_eq_proc> str_hashtable;
#endif /* STR_HASHTABLE_H_ */

View file

@ -18,8 +18,7 @@ Author:
Revision History:
--*/
#ifndef STREAM_BUFFER_H_
#define STREAM_BUFFER_H_
#pragma once
#include<iostream>
@ -42,5 +41,4 @@ public:
}
};
#endif /* STREAM_BUFFER_H_ */

View file

@ -19,8 +19,7 @@ Revision History:
#if 0
// include "util/new_symbol.h"
#else
#ifndef SYMBOL_H_
#define SYMBOL_H_
#pragma once
#include<ostream>
#include<climits>
@ -157,4 +156,3 @@ bool lt(symbol const & s1, symbol const & s2);
#endif /* SYMBOL_H_ */
#endif

View file

@ -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_ */

View file

@ -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

View file

@ -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_

View file

@ -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_ */

View file

@ -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_ */

View file

@ -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<T, Map> const & to) {
}
#endif /* TOTAL_ORDER_H_ */

View file

@ -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<int>(reinterpret_cast<size_t>(PTR) >> PTR_ALIGNMENT)
#endif /* TPTR_H_ */

View file

@ -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_ */

View file

@ -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_ */

View file

@ -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_ */

View file

@ -16,8 +16,7 @@ Author:
Revision History:
--*/
#ifndef WARNING_H_
#define WARNING_H_
#pragma once
#include<iostream>
#include<stdarg.h>
@ -33,5 +32,4 @@ void warning_msg(const char * msg, ...);
void format2ostream(std::ostream& out, char const* fmt, va_list args);
#endif /* WARNING_H_ */

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef Z3_EXCEPTION_H_
#define Z3_EXCEPTION_H_
#pragma once
#include<string>
@ -47,4 +46,3 @@ public:
char const * msg() const override;
};
#endif