mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-03 21:09:11 +00:00 
			
		
		
		
	This commit is contained in:
		
							parent
							
								
									ea8b118eb1
								
							
						
					
					
						commit
						b26420ed99
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -224,6 +224,12 @@ export function createApi(Z3: Z3Core): Z3HighLevel {
 | 
				
			||||||
    function _toExpr(ast: Z3_ast): Bool<Name> | IntNum<Name> | RatNum<Name> | Arith<Name> | Expr<Name> {
 | 
					    function _toExpr(ast: Z3_ast): Bool<Name> | IntNum<Name> | RatNum<Name> | Arith<Name> | Expr<Name> {
 | 
				
			||||||
      const kind = check(Z3.get_ast_kind(contextPtr, ast));
 | 
					      const kind = check(Z3.get_ast_kind(contextPtr, ast));
 | 
				
			||||||
      if (kind === Z3_ast_kind.Z3_QUANTIFIER_AST) {
 | 
					      if (kind === Z3_ast_kind.Z3_QUANTIFIER_AST) {
 | 
				
			||||||
 | 
					        if (Z3.is_quantifier_forall(contextPtr, ast))
 | 
				
			||||||
 | 
					           return BoolImpl(ast);
 | 
				
			||||||
 | 
					        if (Z3.is_quantifier_exists(contextPtr, ast))
 | 
				
			||||||
 | 
					           return BoolImpl(ast);
 | 
				
			||||||
 | 
					        if (Z3.is_quantifier_lambda(contextPtr, ast))
 | 
				
			||||||
 | 
					           return ExprImpl(ast);
 | 
				
			||||||
        assert(false);
 | 
					        assert(false);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      const sortKind = check(Z3.get_sort_kind(contextPtr, Z3.get_sort(contextPtr, ast)));
 | 
					      const sortKind = check(Z3.get_sort_kind(contextPtr, Z3.get_sort(contextPtr, ast)));
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue