Repository navigation
Description
Symptom
The Cover-Branches suite is capped at 50 test cases (kMaxBranchTestCases, modules/frontend/map2check.cpp:149). Slots are filled first come, first served, so the first KLEE phase fills the suite and the tests from later phases are discarded without being considered. Those phases start from the fuzzer's seeds and explore deeper.
Measured on the archive submitted to Test-Comp 2027 (Zenodo 23672409), eca-rers2012/Problem10_label22.c, cover-branches, 900 s, alternating hybrid:
| phase | tests generated by KLEE | entered the suite |
|---|---|---|
| 2 (KLEE) | 854 | 42 (suite full: 42 + 8 from the fuzzer) |
| 4 (KLEE) | 1,009 | 0 |
| 6 (KLEE) | 1,080 | 0 |
The same happens on intel-tdx-module/tdh_sys_config__invalid_state_tdmr_info__cover_entry_havoc_object.i: phase 2 generated 2,651 tests and 36 entered the suite; phase 4 generated 2,470 and none entered.
Cause
Neither half of the suite takes depth or branch coverage into account:
- Fuzzer (up to 25 cases):
selectQueueEntries()(modules/frontend/utils/seed_store.hpp:37) puts AFL++ queue entries marked+cov(new edges) first and keeps id order within each group. - KLEE (the rest):
readKtestVectors()(modules/frontend/test_suite/ktest_reader.cpp:421) reads the.ktestfiles in KLEE's numbering order, which is the order in which states terminated. Paths pruned byassumego last. InemitTestSuite(), whatever arrives first gets in. - Across phases: the suite persists, and a later phase only gets in if there is room. The only replacement is a pruned case giving its slot to a complete path (
evictPrunedCase,6848d2395). Nothing measures depth.
History
- Aug 22 (
6e1288eae,2ed743b9f): the cap was lowered from 500 to 50. Of 116 suites whose validation failed, 115 had 100 or more test cases (median 500). TestCov 3.7, with 300 s, in the local environment, could not finish validating them. - Oct 6: the analysis of the 9.0 campaign showed that more than half of the tasks hit the cap and that 80 % of the losses against v15 were in that group. The competition does not limit suite size.
- Oct 6–7: in the official environment (BenchExec 3.34 + TestCov 3.11), a 50-case ECA suite validated in ~40 s. The full run was inconclusive because the host swapped. Two items were left pending: (1) recalibrate the cap with the official validator; (2) select the suite by coverage (
docs/reports/tacas-experiment-log.md, Oct 6–7 entry;docs/reports/2026-10-07-handoff-testcomp-oficial.md, item 6). Neither was done.
Relation to the Test-Comp 2027 OOM (branch fix/testcomp-klee-disk)
The branch passes --only-output-states-covering-new to KLEE in Cover-Branches. This does not prioritize depth, but it acts as a coarse coverage filter (instructions of the bitcode), so redundant tests no longer take up slots. On the same ECA task:
| phase | tests from KLEE | entered the suite |
|---|---|---|
| 2 | 14 | 9 (suite: 14) |
| 4 | 43 | 25 (suite: 50) |
| 6 | 86 | 0 (suite full) |
Phase 4 now contributes, but arrival order still decides. The coverage measured by TestCov, before and after, is being collected and will be attached here.
Proposal (to be decided; nothing implemented)
- Selection by branch coverage: accept a case only if it covers a branch the suite does not cover yet, and let cases from later phases replace those that add nothing.
- Depth as a tie-breaker: number of decisions or nondet reads along the path.
- Recalibrate the cap of 50 with the official validator (TestCov 3.11 + TestCoCa, competition limits,
--numOfThreads 1–2to avoid swapping).
Any of these changes what goes into the suite. Each one therefore needs an A/B measurement with the official validators before it goes into a competition archive.
Activity
GuilhermeBn198 commentedon Nov 5, 2026
Coverage before and after #93 (
--only-output-states-covering-newin Cover-Branches), measured with TestCov 3.11 on new 900 s runs. The baseline is the submitted archive (Zenodo 23672409); the other archive differs only in themap2checkbinary and the wrapper. One run per arm.nla-digbench-scaling/fermat1-ll_valuebound2.ceca-rers2012/Problem10_label22.ceca-rers2012/Problem05_label57.cThe ECA gains come from the first-come-first-served filling described above. Without the redundant paths, phase 2 no longer fills the suite, and later phases find room: on
Problem10_label22, phase 4 now contributes 25 cases, where it contributed 0 before.This does not resolve this issue. Arrival order still decides once the suite is full, and nothing measures depth or branch coverage. It does show that how the 50 slots are used matters for the score. Details are in
docs/reports/tacas-experiment-log.md(entry of 2026-11-05).