3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-15 15:25:26 +00:00

fix parallel solving bugs

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2017-02-11 15:35:13 -05:00
parent 4220432ac3
commit 690689424d
6 changed files with 43 additions and 56 deletions

View file

@ -16,8 +16,8 @@ Author:
Revision History:
--*/
#ifndef SAT_PAR_H_
#define SAT_PAR_H_
#ifndef SAT_PARALLEL_H_
#define SAT_PARALLEL_H_
#include"sat_types.h"
#include"hashtable.h"
@ -34,6 +34,7 @@ namespace sat {
unsigned m_size;
unsigned m_tail;
unsigned_vector m_heads;
svector<bool> m_at_end;
void next(unsigned& index);
unsigned get_owner(unsigned index) const { return m_vectors[index]; }
unsigned get_length(unsigned index) const { return m_vectors[index+1]; }
@ -42,6 +43,7 @@ namespace sat {
vector_pool() {}
void reserve(unsigned num_owners, unsigned sz);
void begin_add_vector(unsigned owner, unsigned n);
void end_add_vector();
void add_vector_elem(unsigned e);
bool get_vector(unsigned owner, unsigned& n, unsigned const*& ptr);
};