mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-31 11:42:28 +00:00 
			
		
		
		
	fix initialization/finalization order for bdd
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									947ea66cad
								
							
						
					
					
						commit
						4bcfcecbbb
					
				
					 2 changed files with 5 additions and 4 deletions
				
			
		|  | @ -1009,7 +1009,7 @@ namespace dd { | |||
|         bool carry = false; | ||||
|         result.push_back(b[0]); | ||||
|         for (unsigned i = 1; i < b.size(); ++i) { | ||||
|             carry |= b[i-1]; | ||||
|             carry = carry || b[i-1]; | ||||
|             result.push_back(carry ^ b[i]); | ||||
|         } | ||||
|         return result; | ||||
|  |  | |||
|  | @ -56,13 +56,13 @@ namespace polysat { | |||
|         typedef ptr_vector<constraint> constraints; | ||||
| 
 | ||||
|         reslimit&                m_lim; | ||||
|         linear_solver            m_linear_solver; | ||||
|         dd::bdd_manager          m_bdd; | ||||
|         scoped_ptr_vector<dd::pdd_manager> m_pdd; | ||||
|         scoped_ptr_vector<dd::fdd> m_bits; | ||||
|         dd::bdd_manager          m_bdd; | ||||
|         dep_value_manager        m_value_manager; | ||||
|         small_object_allocator   m_alloc; | ||||
|         poly_dep_manager         m_dm; | ||||
|         linear_solver            m_linear_solver; | ||||
|         constraints_and_clauses  m_conflict; | ||||
|         // constraints              m_stash_just;
 | ||||
|         var_queue                m_free_vars; | ||||
|  | @ -204,7 +204,8 @@ namespace polysat { | |||
|         void decide_bool(sat::literal lit, clause& lemma); | ||||
|         void propagate_bool(sat::literal lit, clause* reason); | ||||
| 
 | ||||
|         void assign_core(pvar v, rational const& val, justification const& j); | ||||
|         void assign_core(pvar v, rational const& val, justification | ||||
|             const& j); | ||||
|         bool is_assigned(pvar v) const { return !m_justification[v].is_unassigned(); } | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue