Debian Codegraph @

cstool/cstool_evm.c

raw symbols SCIP
1 #include <stdio.h>
2 #include <stdlib.h>
3
4 #include <capstone/capstone.h>
5 #include "cstool.h"
6
7 void print_insn_detail_evm(csh handle, cs_insn *ins)
8 {
9 cs_evm *evm;
10
11 // detail can be NULL on "data" instruction if SKIPDATA option is turned ON
12 if (ins->detail == NULL)
13 return;
14
15 evm = &(ins->detail->evm);
16
17 if (evm->pop)
18 printf("\tPop: %u\n", evm->pop);
19
20 if (evm->push)
21 printf("\tPush: %u\n", evm->push);
22
23 if (evm->fee)
24 printf("\tGas fee: %u\n", evm->fee);
25 }