mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
Create bv_slice_tactic.cpp
missing file
This commit is contained in:
parent
e57674490f
commit
41b87b4c42
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…
Reference in a new issue