mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-31 19:52:29 +00:00 
			
		
		
		
	improve error message when sorts are non-numeric
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									661fe7eec9
								
							
						
					
					
						commit
						04678d9628
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -657,7 +657,9 @@ namespace datalog { | |||
|             SASSERT(value == 1); | ||||
|             return m.mk_true(); | ||||
|         } | ||||
|         m.raise_exception("unrecognized sort"); | ||||
|         std::stringstream strm; | ||||
|         strm << "sort '" << mk_pp(s, m) << "' is not recognized as a sort that contains numeric values.\nUse Bool, BitVec, Int, Real, or a Finite domain sort"; | ||||
|         m.raise_exception(strm.str().c_str()); | ||||
|         return 0; | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue