mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
inherit solver parameters in asserted formulas rewriter. #1511
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
a64fd7145c
commit
534a31f74e
7 changed files with 19 additions and 8 deletions
|
@ -21,16 +21,19 @@ Revision History:
|
|||
#include "util/heap.h"
|
||||
#include "util/trace.h"
|
||||
#include "util/uint_set.h"
|
||||
// include "util/hashtable.h"
|
||||
|
||||
struct lt_proc { bool operator()(int v1, int v2) const { return v1 < v2; } };
|
||||
//struct int_hash_proc { unsigned operator()(int v) const { std::cout << "hash " << v << "\n"; VERIFY(v >= 0); return v; }};
|
||||
//typedef int_hashtable<int_hash_proc, default_eq<int> > int_set;
|
||||
typedef heap<lt_proc> int_heap;
|
||||
struct int_hash_proc { unsigned operator()(int v) const { return v * 17; }};
|
||||
#define N 10000
|
||||
|
||||
static random_gen heap_rand(1);
|
||||
|
||||
static void tst1() {
|
||||
int_heap h(N);
|
||||
// int_set t;
|
||||
uint_set t;
|
||||
for (int i = 0; i < N * 3; i++) {
|
||||
int val = heap_rand() % N;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue