diff options
Diffstat (limited to '')
| -rw-r--r-- | main.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
| @@ -2,19 +2,11 @@ | |||
| 2 | #include <cstdint> | 2 | #include <cstdint> |
| 3 | #include <fmt/format.h> | 3 | #include <fmt/format.h> |
| 4 | #include <iostream> | 4 | #include <iostream> |
| 5 | #include <map> | ||
| 6 | #include <optional> | 5 | #include <optional> |
| 7 | #include <utility> | 6 | #include <utility> |
| 8 | 7 | ||
| 9 | #include "isa/checker.h" | 8 | #include "isa/checker.h" |
| 10 | 9 | #include "programs/programs.h" | |
| 11 | extern std::uint8_t _binary_count_bin_start[]; | ||
| 12 | extern std::uint8_t _binary_fib_bin_start[]; | ||
| 13 | |||
| 14 | static const std::map<std::string, std::uint8_t *> programs = { | ||
| 15 | { "count", _binary_count_bin_start }, | ||
| 16 | { "fib", _binary_fib_bin_start }, | ||
| 17 | }; | ||
| 18 | 10 | ||
| 19 | int load_program(checker &checker, const std::uint8_t *program) { | 11 | int load_program(checker &checker, const std::uint8_t *program) { |
| 20 | bool seen_non_leader = false; | 12 | bool seen_non_leader = false; |
