1#include <sysio/vm/backend.hpp>
19std::vector<uint8_t> full_12_data_wasm = {
20 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00, 0x05, 0x03, 0x01, 0x00,
21 0x01, 0x0b, 0x12, 0x01, 0x00, 0x41, 0x00, 0x0b, 0x0c, 0x61, 0x62, 0x63,
22 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6a, 0x6b, 0x6c
32std::vector<uint8_t> empty_12_data_wasm = {
33 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00, 0x05, 0x03, 0x01, 0x00,
34 0x01, 0x0b, 0x06, 0x01, 0x00, 0x41, 0x0c, 0x0b, 0x00
44std::vector<uint8_t> empty_13_data_wasm = {
45 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00, 0x05, 0x03, 0x01, 0x00,
46 0x01, 0x0b, 0x06, 0x01, 0x00, 0x41, 0x0d, 0x0b, 0x00
56std::vector<uint8_t> one_11_data_wasm = {
57 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00, 0x05, 0x03, 0x01, 0x00,
58 0x01, 0x0b, 0x07, 0x01, 0x00, 0x41, 0x0b, 0x0b, 0x01, 0x61
68std::vector<uint8_t> one_12_data_wasm = {
69 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00, 0x05, 0x03, 0x01, 0x00,
70 0x01, 0x0b, 0x07, 0x01, 0x00, 0x41, 0x0c, 0x0b, 0x01, 0x61
80std::vector<uint8_t> wrap_data_wasm = {
81 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00, 0x05, 0x03, 0x01, 0x00,
82 0x01, 0x0b, 0x08, 0x01, 0x00, 0x41, 0x7f, 0x0b, 0x02, 0x61, 0x62
85struct empty_options {};
86struct dynamic_options {
87 std::uint32_t max_linear_memory_init;
89struct static_options {
90 static constexpr std::uint32_t max_linear_memory_init = 12;
128 backend_t backendfull12(full_12_data_wasm,
nullptr, dynamic_options{12});
129 backend_t backendempty12(empty_12_data_wasm,
nullptr, dynamic_options{12});
131 backend_t backendone11(one_11_data_wasm,
nullptr, dynamic_options{12});
sysio::vm::backend< rhf_t > backend_t
#define CHECK_THROWS_AS(expr, exceptionType)
#define BACKEND_TEST_CASE(name, tags)