if_else.main - Coverage Spans

fn main() { // Initialize test constants in a way that cannot be determined at compile time, to ensure // rustc and LLVM cannot optimize out statements (or coverage counters) downstream from // dependent conditions. let @0,1,2,3⦊is_true = std::env::args().len() == 1; let mut countdown = 0; if is_true⦉@0,1,2,3 @4,6⦊{ countdown = 10 ; }⦉@4,6 else // Note coverage region difference without semicolon { @5⦊countdown = 100⦉@5 } if @7⦊is_true⦉@7 @8,10⦊{ countdown = 10 ; }⦉@8,10 else @9⦊{ countdown = 100 ; }⦉@9 }@11⦊‸⦉@11