We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 042d42c commit d8d5197Copy full SHA for d8d5197
utbot-framework/src/main/kotlin/org/utbot/fuzzer/FuzzerFunctions.kt
@@ -83,6 +83,10 @@ private object ConstantsFromIfStatement: ConstantsFinder {
83
// 1. compare (result = local compare constant)
84
// 2. if result
85
if (unit is JAssignStmt) {
86
+ // Accepts only those assignments statements that uses compare operation on the right
87
+ if (unit.rightOp !is JCmpExpr) {
88
+ return emptyList()
89
+ }
90
useBoxes = unit.rightOp.useBoxes.mapNotNull { (it as? ImmediateBox)?.value }
91
ifStatement = nextDirectUnit(graph, unit) as? JIfStmt
92
}
0 commit comments