Gap analysis — c0 in decision #1195

scry-mcdc · malloc.c:4507 · branch 8179

Status: GAP

What you need

To prove condition c0 independently affects the decision, you need a row where c0 = F and the outcome differs from row 2864 (where c0 = T).

Required condition vector:

  c0 = F
  c1 = *
  c2 = F
  c3 = *
  c4 = *
  c5 = *
  c6 = *
  c7 = *
  c8 = *
  c9 = *
  c10 = *
  c11 = *
  c12 = *
  c13 = *
  c14 = *
  c15 = *
  c16 = *
  c17 = *
  c18 = *

Conditions marked * were short-circuited in the baseline row; the new test must drive inputs so they get evaluated to either T or F.

Suggested test stub

#[test]
fn closes_gap_d1195_c0() {
    // Verdict: scry-mcdc
    // Source: malloc.c:4507
    // Branch:  8179
    //
    // TODO: drive the function so condition c0 evaluates to the
    // value above and the resulting decision outcome differs from
    // the existing pair row.
    todo!("witness viz: gap drill-down for d#1195/c0");
}

After adding the test, re-run: witness instrument && witness run --invoke run_row_NEW && witness report. The condition should flip from gap to proved.