Coverage Report

Created: 2025-08-29 06:29

/src/capstonenext/arch/EVM/EVMInstPrinter.c
Line
Count
Source
1
/* Capstone Disassembly Engine */
2
/* By Nguyen Anh Quynh, 2018 */
3
4
#include "EVMInstPrinter.h"
5
#include "EVMMapping.h"
6
7
void EVM_printInst(MCInst *MI, struct SStream *O, void *PrinterInfo)
8
7.39k
{
9
7.39k
  SStream_concat0(O, EVM_insn_name((csh)MI->csh, MI->Opcode));
10
11
7.39k
  if (MI->Opcode >= EVM_INS_PUSH1 && MI->Opcode <= EVM_INS_PUSH32) {
12
364
    unsigned int i;
13
14
364
    SStream_concat0(O, "\t");
15
2.27k
    for (i = 0; i < MI->Opcode - EVM_INS_PUSH1 + 1; i++) {
16
1.91k
      SStream_concat(O, "%02x", MI->evm_data[i]);
17
1.91k
    }
18
364
  }
19
7.39k
}