You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please provide a main() for the execution of bytecode testing. I am currently using int main() {
// Create an instance of the EVM
struct evmc_vm* evm = evmc_create();
printf("Name: %s\n", evm->name);
printf("Version: %s\n", evm->version);
// Retrieve and print the capabilities
printf("Capabilities: %d\n", evm->get_capabilities(evm));
// Define the bytecode for a simple addition operation: PUSH1 0x02, PUSH1 0x05, ADD
Segmentation Fault on case OP_RETURN: line 526 Program received signal SIGSEGV, Segmentation fault.
0x00005555555568e1 in to_uint64 ()
.
//print_stack();
Please provide a main() for the execution of bytecode testing. I am currently using int main() {
// Create an instance of the EVM
struct evmc_vm* evm = evmc_create();
// uint8_t bytecode[] = {0x60, 0x02, 0x60, 0x05, 0x01, 0x00};
// uint8_t bytecode[] = {0x60, 0x2a, 0x00};
uint8_t bytecode[] = {0x60, 0x02, 0x60, 0x02, 0x52, 0xf3};
size_t bytecode_size = sizeof(bytecode);
//print_stack();
/*
if (result.status_code == EVMC_SUCCESS && result.output_size > 0) {
printf("Output bytecode: ");
for (size_t i = 0; i < result.output_size; ++i) {
printf("%02X ", result.output_data[i]);
}
printf("\n");
}
*/
// Destroy the EVM instance
evm->destroy(evm);
}
The text was updated successfully, but these errors were encountered: