Java: Fix assert CFG by properly tagging the false successor.

This commit is contained in:
Anders Schack-Mulligen
2025-06-17 14:43:45 +02:00
parent 4d2c67857f
commit 1d4c8197ec
3 changed files with 32 additions and 12 deletions

View File

@@ -251,7 +251,7 @@ public class C {
(b && xs == null && related == null);
if (b) {
if (related == null) { return; }
xs[0] = 42; // FP - correlated conditions fails to recognize assert edges
xs[0] = 42; // OK
}
}
}