mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-30 19:22:28 +00:00 
			
		
		
		
	Fix is_infty_level to treat 2^16-1 as infinity
This commit is contained in:
		
							parent
							
								
									5d2f682f7a
								
							
						
					
					
						commit
						f67346d16e
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		|  | @ -94,6 +94,7 @@ void prop_solver::add_level() | |||
| 
 | ||||
| void prop_solver::ensure_level(unsigned lvl) | ||||
| { | ||||
|     if (is_infty_level(lvl)) return; | ||||
|     while (lvl >= level_cnt()) { | ||||
|         add_level(); | ||||
|     } | ||||
|  |  | |||
|  | @ -48,7 +48,8 @@ namespace spacer { | |||
|     } | ||||
| 
 | ||||
|     inline bool is_infty_level(unsigned lvl) { | ||||
|         return lvl == infty_level (); | ||||
|         // XXX: level is 16 bits in class pob
 | ||||
|         return lvl >= 65535; | ||||
|     } | ||||
| 
 | ||||
|     inline unsigned next_level(unsigned lvl) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue