Skip to content

bloqade.rewrite.rules.split_ifs.SplitIfStmts

← Module overview

classSplitIfStmtssource

bloqade.rewrite.rules.split_ifs.SplitIfStmts

Bases: RewriteRule

Splits the then body of an if-else statement into multiple if statements

class SplitIfStmts

methodrewrite_Statementsource

bloqade.rewrite.rules.split_ifs.SplitIfStmts.rewrite_Statement

def rewrite_Statement(node: ir.Statement) -> RewriteResult

Parameters

NameTypeDescription
nodeir.Statement

Returns

RewriteResult

source