OLD | NEW |
(Empty) | |
| 1 #ifndef SYZYGY_PROTECT_PROTECT_LIB_EQUATION_GEN_H_ |
| 2 #define SYZYGY_PROTECT_PROTECT_LIB_EQUATION_GEN_H_ |
| 3 |
| 4 #include <vector> |
| 5 |
| 6 #include "syzygy/assm/assembler.h" |
| 7 #include "syzygy/assm/assembler_base.h" |
| 8 #include "syzygy/block_graph/basic_block_subgraph.h" |
| 9 #include "syzygy/block_graph/basic_block_assembler.h" |
| 10 |
| 11 class Equation { |
| 12 public: |
| 13 // Maximum of 2 unknown variables |
| 14 std::vector<int> x_exp; |
| 15 std::vector<int> x_coef; |
| 16 std::vector<int> y_exp; |
| 17 std::vector<int> y_coef; |
| 18 |
| 19 Equation(std::vector<int> x_exp, std::vector<int> x_coef, |
| 20 std::vector<int> y_exp, std::vector<int> y_coef) : |
| 21 x_exp(x_exp), x_coef(x_coef), y_exp(y_exp), y_coef(y_coef) {}; |
| 22 |
| 23 assm::ConditionCode Generate(block_graph::BasicBlockAssembler &assm, |
| 24 std::vector<assm::Register32> &temp_regs, |
| 25 std::vector<assm::Reg
ister32> &source_regs); |
| 26 }; |
| 27 |
| 28 #endif // SYZYGY_PROTECT_PROTECT_LIB_EQUATION_CHECKER_H_ |
OLD | NEW |