mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 13:29:11 +00:00 
			
		
		
		
	Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									0a0b0a5cc0
								
							
						
					
					
						commit
						5c67c9d907
					
				
					 10 changed files with 38 additions and 16 deletions
				
			
		| 
						 | 
				
			
			@ -24,6 +24,7 @@ Revision History:
 | 
			
		|||
#include "api/api_stats.h"
 | 
			
		||||
#include "muz/fp/datalog_parser.h"
 | 
			
		||||
#include "util/cancel_eh.h"
 | 
			
		||||
#include "util/scoped_ctrl_c.h"
 | 
			
		||||
#include "util/scoped_timer.h"
 | 
			
		||||
#include "muz/fp/dl_cmds.h"
 | 
			
		||||
#include "cmd_context/cmd_context.h"
 | 
			
		||||
| 
						 | 
				
			
			@ -280,11 +281,13 @@ extern "C" {
 | 
			
		|||
        lbool r = l_undef;
 | 
			
		||||
        unsigned timeout = to_fixedpoint(d)->m_params.get_uint("timeout", mk_c(c)->get_timeout());
 | 
			
		||||
        unsigned rlimit  = to_fixedpoint(d)->m_params.get_uint("rlimit", mk_c(c)->get_rlimit());
 | 
			
		||||
        bool     use_ctrl_c  = to_fixedpoint(d)->m_params.get_bool("ctrl_c", true);
 | 
			
		||||
        {
 | 
			
		||||
            scoped_rlimit _rlimit(mk_c(c)->m().limit(), rlimit);
 | 
			
		||||
            cancel_eh<reslimit> eh(mk_c(c)->m().limit());
 | 
			
		||||
            api::context::set_interruptable si(*(mk_c(c)), eh);        
 | 
			
		||||
            scoped_timer timer(timeout, &eh);
 | 
			
		||||
            scoped_ctrl_c ctrlc(eh, false, use_ctrl_c);
 | 
			
		||||
            try {
 | 
			
		||||
                r = to_fixedpoint_ref(d)->ctx().query(to_expr(q));
 | 
			
		||||
            }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue