Class ShortCircuitAndGenerator

java.lang.Object
org.ek9lang.compiler.phase7.AbstractShortCircuitGenerator
org.ek9lang.compiler.phase7.ShortCircuitAndGenerator
All Implemented Interfaces:
Function<ExprProcessingDetails,List<IRInstr>>

public final class ShortCircuitAndGenerator extends AbstractShortCircuitGenerator
Generates IR instructions for Boolean AND operations using LOGICAL_AND_BLOCK pattern.

This generator creates a declarative logical operation block containing: 1. Left operand evaluation and primitive boolean condition 2. Right operand evaluation instructions (for non-short-circuit path) 3. Result computation instructions (EK9 Boolean._and() call) 4. All memory management

Backends can choose between short-circuit and full evaluation strategies based on the usage context and target-specific optimizations.