mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-03 21:09:11 +00:00 
			
		
		
		
	Initial exploration of recursive function hanging issue
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									943ba1027c
								
							
						
					
					
						commit
						830ede6623
					
				
					 3 changed files with 6 additions and 0 deletions
				
			
		
							
								
								
									
										2
									
								
								test_infinite.smt2
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								test_infinite.smt2
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,2 @@
 | 
			
		|||
(define-funs-rec ((g ((a Int) (b Int)) Bool)) ((g a b)))
 | 
			
		||||
(assert (g 2 2))
 | 
			
		||||
							
								
								
									
										2
									
								
								test_issue.smt2
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								test_issue.smt2
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,2 @@
 | 
			
		|||
(define-funs-rec ((g ((a Int) (b Int)) Bool)) ((or (= a b) (ite (> a b) (g (- a 1) b) (g a (- b 1))))))
 | 
			
		||||
(assert (g 2 2))
 | 
			
		||||
							
								
								
									
										2
									
								
								test_recfun_simple.smt2
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								test_recfun_simple.smt2
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,2 @@
 | 
			
		|||
(define-funs-rec ((f ((x Int)) Int)) ((ite (= x 0) 0 (+ 1 (f (- x 1))))))
 | 
			
		||||
(assert (= (f 2) 2))
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue