Debian Codegraph @

arch/WASM/WASMInstPrinter.c

raw symbols SCIP
1 /* Capstone Disassembly Engine */cxx . . $ `<file>/arch/WASM/WASMInstPrinter.c`/
2 /* By Spike, xwings 2019 */
3
4 #include "WASMInstPrinter.h"cxx . . $ `<file>/arch/WASM/WASMInstPrinter.h`/
5 #include "WASMMapping.h"cxx . . $ `<file>/arch/WASM/WASMMapping.h`/
6
7
8 void WASM_printInstcxx . . $ WASM_printInst(6238f66e5ea10f57).(MCInstcxx . . $ MCInst# *MI, struct SStreamcxx . . $ SStream# *O, void *PrinterInfo)
9 {
10 SStream_concatcxx . . $ SStream_concat(72515e07697b04b4).(O, WASM_insn_namecxx . . $ WASM_insn_name(efd1348d9ae5172e).((cshcxx . . $ csh#)MI->cshcxx . . $ MCInst#csh., MI->Opcodecxx . . $ MCInst#Opcode.));
11
12 switch (MI->wasm_datacxx . . $ MCInst#wasm_data..typecxx . . $ cs_wasm_op#type.) {
13 default:
14 break;
15
16 case WASM_OP_VARUINT32cxx . . $ WASM_OP_VARUINT32.:
17 SStream_concatcxx . . $ SStream_concat(72515e07697b04b4).(O, "\t0x%x", MI->wasm_datacxx . . $ MCInst#wasm_data..varuint32cxx . . $ cs_wasm_op#$anonymous_type_0#varuint32.);
18 break;
19
20 case WASM_OP_VARUINT64cxx . . $ WASM_OP_VARUINT64.:
21 SStream_concatcxx . . $ SStream_concat(72515e07697b04b4).(O, "\t0x%lx", MI->wasm_datacxx . . $ MCInst#wasm_data..varuint64cxx . . $ cs_wasm_op#$anonymous_type_0#varuint64.);
22 break;
23
24 case WASM_OP_UINT32cxx . . $ WASM_OP_UINT32.:
25 SStream_concatcxx . . $ SStream_concat(72515e07697b04b4).(O, "\t0x%2" PRIx32cxx . . $ `<external>/15933738808807975373/inttypes.h:125:10`!, MI->wasm_datacxx . . $ MCInst#wasm_data..uint32cxx . . $ cs_wasm_op#$anonymous_type_0#uint32.);
26 break;
27
28 case WASM_OP_UINT64cxx . . $ WASM_OP_UINT64.:
29 SStream_concatcxx . . $ SStream_concat(72515e07697b04b4).(O, "\t0x%2" PRIx64cxx . . $ `<external>/15933738808807975373/inttypes.h:126:10`!, MI->wasm_datacxx . . $ MCInst#wasm_data..uint64cxx . . $ cs_wasm_op#$anonymous_type_0#uint64.);
30 break;
31
32 case WASM_OP_IMMcxx . . $ WASM_OP_IMM.:
33 SStream_concatcxx . . $ SStream_concat(72515e07697b04b4).(O, "\t0x%x, 0x%x", MI->wasm_datacxx . . $ MCInst#wasm_data..immediatecxx . . $ cs_wasm_op#$anonymous_type_0#immediate.[0], MI->wasm_datacxx . . $ MCInst#wasm_data..immediatecxx . . $ cs_wasm_op#$anonymous_type_0#immediate.[1]);
34 break;
35
36 case WASM_OP_INT7cxx . . $ WASM_OP_INT7.:
37 SStream_concatcxx . . $ SStream_concat(72515e07697b04b4).(O, "\t%d", MI->wasm_datacxx . . $ MCInst#wasm_data..int7cxx . . $ cs_wasm_op#$anonymous_type_0#int7.);
38 break;
39
40 case WASM_OP_BRTABLEcxx . . $ WASM_OP_BRTABLE.:
41 SStream_concatcxx . . $ SStream_concat(72515e07697b04b4).(O, "\t0x%x, [", MI->wasm_datacxx . . $ MCInst#wasm_data..brtablecxx . . $ cs_wasm_op#$anonymous_type_0#brtable..lengthcxx . . $ cs_wasm_brtable#length.);
42 SStream_concatcxx . . $ SStream_concat(72515e07697b04b4).(O, "0x%x", MI->wasm_datacxx . . $ MCInst#wasm_data..brtablecxx . . $ cs_wasm_op#$anonymous_type_0#brtable..addresscxx . . $ cs_wasm_brtable#address.);
43 SStream_concatcxx . . $ SStream_concat(72515e07697b04b4).(O, "], 0x%x", MI->wasm_datacxx . . $ MCInst#wasm_data..brtablecxx . . $ cs_wasm_op#$anonymous_type_0#brtable..default_targetcxx . . $ cs_wasm_brtable#default_target.);
44
45 break;
46 }
47 }