MCPcopy
hub / github.com/rocky/python-uncompyle6 / is_jump_back

Method is_jump_back

uncompyle6/scanners/scanner3.py:1492–1500  ·  view source on GitHub ↗

Return True if the code at offset is some sort of jump back. That is, it is ether "JUMP_FORWARD" or an absolute jump that goes forward.

(self, offset, extended_arg)

Source from the content-addressed store, hash-verified

1490 return
1491
1492 def is_jump_back(self, offset, extended_arg):
1493 """
1494 Return True if the code at offset is some sort of jump back.
1495 That is, it is ether "JUMP_FORWARD" or an absolute jump that
1496 goes forward.
1497 """
1498 if self.code[offset] != self.opc.JUMP_ABSOLUTE:
1499 return False
1500 return offset > self.get_target(offset, extended_arg)
1501
1502 def next_except_jump(self, start):
1503 """

Callers 2

detect_control_flowMethod · 0.95
detect_control_flowMethod · 0.80

Calls 1

get_targetMethod · 0.80

Tested by

no test coverage detected