MCPcopy Index your code
hub / github.com/RustPython/RustPython / is_conditional_jump

Function is_conditional_jump

crates/codegen/src/ir.rs:2321–2331  ·  view source on GitHub ↗
(instr: &AnyInstruction)

Source from the content-addressed store, hash-verified

2319}
2320
2321fn is_conditional_jump(instr: &AnyInstruction) -> bool {
2322 matches!(
2323 instr.real(),
2324 Some(
2325 Instruction::PopJumpIfFalse { .. }
2326 | Instruction::PopJumpIfTrue { .. }
2327 | Instruction::PopJumpIfNone { .. }
2328 | Instruction::PopJumpIfNotNone { .. }
2329 )
2330 )
2331}
2332
2333/// Invert a conditional jump opcode.
2334fn reversed_conditional(instr: &AnyInstruction) -> Option<AnyInstruction> {

Callers 4

split_blocks_at_jumpsFunction · 0.85
jump_threadingFunction · 0.85
normalize_jumpsFunction · 0.85
is_jump_instructionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected