arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2509.26458cs.SE
收藏

EQ-Robin: 具有约束鲁棒性的多重最小唯一原因MC/DC测试集生成

EQ-Robin: Constraint-Resilient Generation of Multiple Minimal Unique-Cause MC/DC Test Suites

Gyeongsang National University(庆尚国立大学)

Robin Lee, Youngho Nam

AI总结:

EQ-Robin通过生成满足约束条件的最小唯一原因MC/DC测试集,解决工业系统中可行性约束对传统MC/DC测试的影响。

摘要:

唯一原因修改条件/决定覆盖(MC/DC)在安全关键验证中被广泛要求。一种最近的确定性算法Robin's Rule为单布尔表达式(SBEs)构建了理论最小的N+1个测试用例,当所有生成的测试向量都是可执行时,提供了强保证。然而,工业系统施加了可行性约束:某些输入组合是非法的、不可行的或执行不安全的。如果最小测试集中的一个非法向量出现,它会破坏一个必需的独立对,并使100%唯一原因MC/DC失效,即使底层决策逻辑保持不变。本文提出了EQ-Robin,一种轻量且具有约束鲁棒性的流水线,生成一组最小(N+1)唯一原因MC/DC测试集,并选择一个满足领域约束的可行测试集。EQ-Robin通过在表达式的抽象语法树(AST)上应用代数重排,系统地枚举了语义等价但结构不同的SBEs。由于Robin's Rule对结构顺序敏感,每个变体都会产生一个不同的最小测试集。EQ-Robin然后通过实际约束检查和成本启发式(例如设置成本、Oracle复杂性)过滤和排序候选测试集。为确保在大规模下的实用性,我们引入了一种预算探索模式(早退出、引导重排)以及当在给定约束下不存在完全可行的N+1测试集时的回退修复策略。我们在TCAS-II衍生的表达式上展示了核心故障模式和恢复机制,并概述了在具有代表性的工业可行性限制的TCAS-II SBEs约束场景下对EQ-Robin的实证评估。

英文摘要:

Unique-Cause Modified Condition/Decision Coverage (MC/DC) is widely required in safety-critical verification. A recent deterministic algorithm, Robin's Rule, constructs the theoretical minimum of N+1 test cases for Singular Boolean Expressions (SBEs), providing strong guarantees when all generated test vectors are executable. However, industrial systems impose feasibility constraints: some input combinations are illegal, unachievable, or unsafe to execute. If a single illegal vector appears in a minimal suite, it can destroy a required independence pair and invalidate 100% Unique-Cause MC/DC, even though the underlying decision logic remains unchanged. This paper presents EQ-Robin, a lightweight, constraint-resilient pipeline that generates a family of minimal (N+1) Unique-Cause MC/DC test suites and selects a feasible suite that satisfies domain constraints. EQ-Robin systematically enumerates semantically equivalent but structurally distinct SBEs by applying algebraic rearrangements on the expression's Abstract Syntax Tree (AST). Because Robin's Rule is sensitive to structural order, each variant yields a distinct minimal suite. EQ-Robin then filters and ranks candidate suites using practical constraint checks and cost heuristics (e.g., setup cost, oracle complexity). To ensure usability at scale, we introduce a budgeted exploration mode (early exit, guided rearrangement) and a fallback repair strategy when no fully feasible N+1 suite exists under given constraints. We demonstrate the core failure mode and recovery mechanism on a TCAS-II-derived expression and outline an empirical evaluation of EQ-Robin on TCAS-II SBEs under constraint scenarios representative of industrial feasibility limitations.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑