grpc
third_party
bloaty
third_party
capstone
suite
cstest
src
evm_detail.c
Go to the documentation of this file.
1
/* Capstone testing regression */
2
/* By Do Minh Tuan <tuanit96@gmail.com>, 02-2019 */
3
4
5
#include "
factory.h
"
6
7
char
*
get_detail_evm
(
csh
*
handle
,
cs_mode
mode
, cs_insn *ins)
8
{
9
cs_evm
*evm;
10
char
*
result
;
11
12
result
= (
char
*)malloc(
sizeof
(
char
));
13
result
[0] =
'\0'
;
14
15
if
(ins->detail == NULL)
16
return
result
;
17
18
evm = &(ins->detail->evm);
19
20
if
(evm->
pop
)
21
add_str
(&
result
,
" ; Pop: %u"
, evm->
pop
);
22
23
if
(evm->
push
)
24
add_str
(&
result
,
" ; Push: %u"
, evm->
push
);
25
26
if
(evm->
fee
)
27
add_str
(&
result
,
" ; Gas fee: %u"
, evm->
fee
);
28
29
return
result
;
30
}
_gevent_test_main.result
result
Definition:
_gevent_test_main.py:96
cs_evm::fee
unsigned int fee
gas fee for the instruction
Definition:
evm.h:21
factory.h
mode
const char int mode
Definition:
bloaty/third_party/zlib/contrib/minizip/ioapi.h:135
cs_mode
cs_mode
Mode type.
Definition:
capstone.h:103
add_str
void add_str(char **src, const char *format,...)
Definition:
helper.c:89
csh
size_t csh
Definition:
capstone.h:71
cs_evm
Instruction structure.
Definition:
evm.h:18
handle
static csh handle
Definition:
test_arm_regression.c:16
get_detail_evm
char * get_detail_evm(csh *handle, cs_mode mode, cs_insn *ins)
Definition:
evm_detail.c:7
cs_evm::pop
unsigned char pop
number of items popped from the stack
Definition:
evm.h:19
cs_evm::push
unsigned char push
number of items pushed into the stack
Definition:
evm.h:20
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:19