mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-03 21:09:11 +00:00 
			
		
		
		
	Create bv_slice_tactic.cpp
missing file
This commit is contained in:
		
							parent
							
								
									e57674490f
								
							
						
					
					
						commit
						41b87b4c42
					
				
					 1 changed files with 33 additions and 0 deletions
				
			
		
							
								
								
									
										33
									
								
								src/tactic/bv/bv_slice_tactic.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								src/tactic/bv/bv_slice_tactic.cpp
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,33 @@
 | 
			
		|||
/*++
 | 
			
		||||
Copyright (c) 2022 Microsoft Corporation
 | 
			
		||||
 | 
			
		||||
Module Name:
 | 
			
		||||
 | 
			
		||||
    bv_slice_tactic.cpp
 | 
			
		||||
 | 
			
		||||
Abstract:
 | 
			
		||||
 | 
			
		||||
    Tactic for simplifying with bit-vector slices
 | 
			
		||||
 | 
			
		||||
Author:
 | 
			
		||||
 | 
			
		||||
    Nikolaj Bjorner (nbjorner) 2022-10-30
 | 
			
		||||
 | 
			
		||||
--*/
 | 
			
		||||
 | 
			
		||||
#include "ast/simplifiers/bv_slice.h"
 | 
			
		||||
#include "tactic/tactic.h"
 | 
			
		||||
#include "tactic/dependent_expr_state_tactic.h"
 | 
			
		||||
#include "tactic/bv/bv_slice_tactic.h"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class bv_slice_factory : public dependent_expr_simplifier_factory {
 | 
			
		||||
public:
 | 
			
		||||
    dependent_expr_simplifier* mk(ast_manager& m, params_ref const& p, dependent_expr_state& s) override {
 | 
			
		||||
        return alloc(bv::slice, m, s);
 | 
			
		||||
    }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
tactic* mk_bv_slice_tactic(ast_manager& m, params_ref const& p) {
 | 
			
		||||
    return alloc(dependent_expr_state_tactic, m, p, alloc(bv_slice_factory), "bv-slice");
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue