-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SONARJAVA-1465 Handle explosion of nested states
- Loading branch information
Showing
4 changed files
with
99 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
class A { | ||
void plop() { | ||
boolean a = true; | ||
a &= (b1() == C); | ||
a &= (b2() == C); | ||
a &= (b3() == C); | ||
a &= (b4() == C); | ||
a &= (b5() == C); | ||
a &= (b6() == C); | ||
a &= (b7() == C); | ||
a &= (b8() == C); | ||
a &= (b9() == C); | ||
a &= (b10() == C); | ||
a &= (b11() == C); | ||
a &= (b12() == C); | ||
a &= (b13() == C); | ||
a &= (b14() == C); | ||
a &= (b15() == C); | ||
a &= (b16() == C); | ||
a &= (b17() == C); | ||
a &= (b18() == C); | ||
a &= (b19() == C); | ||
a &= (b20() == C); | ||
a &= (b21() == C); | ||
a &= (b22() == C); | ||
a &= (b23() == C); | ||
a &= (b24() == C); | ||
a &= (b25() == C); | ||
a &= (b26() == C); | ||
a &= (b27() == C); | ||
a &= (b28() == C); | ||
|
||
if (a) { //BOOM : 2^n -1 states are generated (where n is the number of lines of &= assignements in the above code) -> fail fast by not even enqueuing nodes | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters