feat: 多轮运行 + GCOV 合并 + JSON 出力 + DesignDataGenerator
This commit is contained in:
@@ -157,6 +157,9 @@ def mark_from_gcov(decision_points: list, gcov_data: dict[int, int],
|
||||
dp.active_branches.add('T')
|
||||
if else_cov:
|
||||
dp.active_branches.add('F')
|
||||
# P0: ELSE-less IF — F is structurally mandatory when IF line executed
|
||||
if not else_lines and then_lines and count > 0:
|
||||
dp.active_branches.add('F')
|
||||
# 如果体行范围为空或无法判断,回退到基于 IF 行计数
|
||||
if not then_lines and not else_lines:
|
||||
if count > 0:
|
||||
|
||||
Reference in New Issue
Block a user