|
@ -25,9 +25,9 @@ int main() { |
|
|
|
|
|
|
|
|
// AllCases::build();
|
|
|
// AllCases::build();
|
|
|
|
|
|
|
|
|
auto f = FastCal(); |
|
|
// auto f = FastCal();
|
|
|
// auto ret = f.solve((uint64_t)RawCode::from_common_code("1a9bf0c"));
|
|
|
// auto ret = f.solve((uint64_t)RawCode::from_common_code("1a9bf0c"));
|
|
|
auto ret = f.solve(RawCode::from_common_code("1a9bf0c")); |
|
|
// auto ret = f.solve(RawCode::from_common_code("1a9bf0c"));
|
|
|
|
|
|
|
|
|
// auto ret = f.target(RawCode::from_common_code("1a9bf0c"), [](uint64_t code) {
|
|
|
// auto ret = f.target(RawCode::from_common_code("1a9bf0c"), [](uint64_t code) {
|
|
|
// return code == (uint64_t)RawCode::from_common_code(0xDB23B6C00);
|
|
|
// return code == (uint64_t)RawCode::from_common_code(0xDB23B6C00);
|
|
@ -36,15 +36,20 @@ int main() { |
|
|
|
|
|
|
|
|
// auto ret = f.solve(RawCode::from_common_code("1aaef0c"));
|
|
|
// auto ret = f.solve(RawCode::from_common_code("1aaef0c"));
|
|
|
|
|
|
|
|
|
if (ret == FC_NOT_FOUND) { |
|
|
// if (ret == FC_NOT_FOUND) {
|
|
|
std::cout << "not found" << std::endl; |
|
|
// std::cout << "not found" << std::endl;
|
|
|
} else { |
|
|
// } else {
|
|
|
for (const auto &r : f.backtrack(ret)) { |
|
|
// for (const auto &r : f.backtrack(ret)) {
|
|
|
std::cout << r << std::endl; |
|
|
// std::cout << r << std::endl;
|
|
|
} |
|
|
// }
|
|
|
std::cout << "step number: " << f.step_num(ret) << std::endl; |
|
|
// std::cout << "step number: " << f.step_num(ret) << std::endl;
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
for (const auto &c : FastCal::resolve(RawCode::from_common_code("1a9bf0c"))) { |
|
|
|
|
|
std::cout << c << std::endl; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// std::cout << f.step_num(ret) << std::endl;
|
|
|
// std::cout << f.step_num(ret) << std::endl;
|
|
|
|
|
|
|
|
|
// auto f = FastCal(RawCode::from_common_code("1a9bf0c").unwrap());
|
|
|
// auto f = FastCal(RawCode::from_common_code("1a9bf0c").unwrap());
|
|
|