[llvm] [Coverage] MCDC: Move findIndependencePairs deferred into MCDCRecord (PR #121188)

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 5 21:25:22 PST 2025


================
@@ -221,6 +221,40 @@ Expected<int64_t> CounterMappingContext::evaluate(const Counter &C) const {
   return LastPoppedValue;
 }
 
+// Find an independence pair for each condition:
+// - The condition is true in one test and false in the other.
+// - The decision outcome is true one test and false in the other.
+// - All other conditions' values must be equal or marked as "don't care".
+void MCDCRecord::findIndependencePairs() {
+  if (IndependencePairs)
----------------
chapuni wrote:

"Soft updates" is assumed. It is invalidated if "merging" is executed.

https://github.com/llvm/llvm-project/pull/121188


More information about the llvm-commits mailing list