| 1 | #cxx . . $ `<file>/cstool/cstool_evm.c`/include <stdio.h> |
| 2 | #include <stdlib.h> |
| 3 | |
| 4 | #include <capstone/capstone.h>cxx . . $ `<file>/include/capstone/capstone.h`/ |
| 5 | #include "cstool.h"cxx . . $ `<file>/cstool/cstool.h`/ |
| 6 | |
| 7 | void print_insn_detail_evmcxx . . $ print_insn_detail_evm(2888c3e5b0984e8d).(cshcxx . . $ csh# handle, cs_insncxx . . $ cs_insn# *ins) |
| 8 | { |
| 9 | cs_evmcxx . . $ cs_evm# *evm; |
| 10 | |
| 11 | // detail can be NULL on "data" instruction if SKIPDATA option is turned ON |
| 12 | if (ins->detailcxx . . $ cs_insn#detail. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) |
| 13 | return; |
| 14 | |
| 15 | evm = &(ins->detailcxx . . $ cs_insn#detail.->evmcxx . . $ cs_detail#$anonymous_type_0#evm.); |
| 16 | |
| 17 | if (evm->popcxx . . $ cs_evm#pop.) |
| 18 | printfcxx . . $ printf(581fddd72a8db8fc).("\tPop: %u\n", evm->popcxx . . $ cs_evm#pop.); |
| 19 | |
| 20 | if (evm->pushcxx . . $ cs_evm#push.) |
| 21 | printfcxx . . $ printf(581fddd72a8db8fc).("\tPush: %u\n", evm->pushcxx . . $ cs_evm#push.); |
| 22 | |
| 23 | if (evm->feecxx . . $ cs_evm#fee.) |
| 24 | printfcxx . . $ printf(581fddd72a8db8fc).("\tGas fee: %u\n", evm->feecxx . . $ cs_evm#fee.); |
| 25 | } |