-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add demodulator tactic based on demodulator-simplifier
- some handling for commutative operators - fix bug in demodulator_index where fwd and bwd are swapped
- Loading branch information
1 parent
8709595
commit de916f5
Showing
5 changed files
with
123 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/*++ | ||
Copyright (c) 2022 Microsoft Corporation | ||
Module Name: | ||
demodulator_tactic.h | ||
Abstract: | ||
Tactic for solving variables | ||
Author: | ||
Nikolaj Bjorner (nbjorner) 2022-10-30 | ||
--*/ | ||
#pragma once | ||
|
||
#include "util/params.h" | ||
#include "tactic/tactic.h" | ||
#include "tactic/dependent_expr_state_tactic.h" | ||
#include "ast/simplifiers/demodulator_simplifier.h" | ||
|
||
|
||
class demodulator_tactic_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(demodulator_simplifier, m, p, s); | ||
} | ||
}; | ||
|
||
inline tactic * mk_demodulator_tactic(ast_manager& m, params_ref const& p = params_ref()) { | ||
return alloc(dependent_expr_state_tactic, m, p, alloc(demodulator_tactic_factory)); | ||
} | ||
|
||
/* | ||
ADD_TACTIC("demodulator", "solve for variables.", "mk_demodulator_tactic(m, p)") | ||
*/ | ||
|
||
|