Adaptive Parallel Testing for Floating-Point Branch Coverage
Abstract
Complex nonlinear constraints make high branch coverage difficult in testing floating-point programs. CoverMe reformulates branch coverage as unconstrained numerical minimization, but its sequential workflow passes unfiltered random inputs to the solver and fixes the generation-to-solving ratio, limiting efficiency. We propose DynaFlow, an adaptive and parallel framework for floating-point branch-coverage testing. DynaFlow prioritizes path constraints and performs multiple rounds of input generation and constraint solving concurrently. A manager periodically compares alternative resource-allocation policies based on solving progress and applies the refined policy to subsequent testing rounds. We evaluate DynaFlow on 67 target functions containing 1,908 coverable branches. DynaFlow achieves higher coverage than CoverMe on every function, covering 1,896 branches (99.4%) compared to CoverMe's 1,669 (87.5%). Moreover, DynaFlow reaches its achieved coverage cap with a median speedup of approximately 919× over CoverMe.