Go to the documentation of this file.
4 #ifdef CAPSTONE_HAS_EVM
8 #include "../../cs_priv.h"
9 #include "../../utils.h"
14 static cs_evm insns[256] = {
15 #include "EVMMappingInsn.inc"
21 static int evm_insn_find(
cs_evm *insns,
unsigned int max,
unsigned int id)
26 if (insns[
id].fee == 0xffffffff)
38 if (evm_insn_find(insns,
ARR_SIZE(insns),
id) > 0) {
40 memcpy(&insn->detail->evm, &insns[
id],
sizeof(insns[
id]));
47 static name_map insn_name_maps[256] = {
309 #ifndef CAPSTONE_DIET
313 return insn_name_maps[
id].
name;
319 #ifndef CAPSTONE_DIET
338 #ifndef CAPSTONE_DIET
@ EVM_GRP_STORE_WRITE
instructions write to storage
@ EVM_GRP_STACK_WRITE
instructions write to stack
@ EVM_GRP_STACK_READ
instructions read from stack
const char * id2name(const name_map *map, int max, const unsigned int id)
const char * EVM_insn_name(csh handle, unsigned int id)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
void EVM_get_insn_id(cs_struct *h, cs_insn *insn, unsigned int id)
@ EVM_GRP_MATH
math instructions
static name_map group_name_maps[]
@ EVM_GRP_MEM_WRITE
instructions write to memory
@ EVM_GRP_JUMP
all jump instructions
@ EVM_GRP_STORE_READ
instructions read from storage
const char * EVM_group_name(csh handle, unsigned int id)
@ EVM_GRP_MEM_READ
instructions read from memory
@ EVM_GRP_HALT
instructions halt execution
@ EVM_GRP_INVALID
= CS_GRP_INVALID
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:59:16