Lines Matching refs:program_len
81 static void print_jump_target(uint32_t target, uint32_t program_len) { in print_jump_target() argument
82 if (target == program_len) { in print_jump_target()
84 } else if (target == program_len + 1) { in print_jump_target()
91 const char* apf_disassemble(const uint8_t* program, uint32_t program_len, uint32_t* const ptr2pc) { in apf_disassemble() argument
94 if (*ptr2pc > program_len + 1) { in apf_disassemble()
95 bprintf("pc is overflow: pc %d, program_len: %d", *ptr2pc, program_len); in apf_disassemble()
101 if (*ptr2pc == program_len) { in apf_disassemble()
107 if (*ptr2pc == program_len + 1) { in apf_disassemble()
119 for (uint32_t i = 0; i < (length) && *ptr2pc < program_len; i++) \ in apf_disassemble()
165 print_jump_target(*ptr2pc + imm, program_len); in apf_disassemble()
191 print_jump_target(*ptr2pc + imm, program_len); in apf_disassemble()
205 print_jump_target(*ptr2pc + imm + cnt * len, program_len); in apf_disassemble()
346 while (end + 1 < program_len && !(program[end] == 0 && program[end + 1] == 0)) { in apf_disassemble()
350 print_jump_target(end + offs, program_len); in apf_disassemble()
381 print_jump_target(*ptr2pc + jump_offs + cnt * len, program_len); in apf_disassemble()