@@ -32,8 +32,11 @@ import org.utbot.framework.UtSettings.pathSelectorStepsLimit
32
32
import org.utbot.framework.UtSettings.pathSelectorType
33
33
import org.utbot.framework.UtSettings.processUnknownStatesDuringConcreteExecution
34
34
import org.utbot.framework.UtSettings.useDebugVisualization
35
- import org.utbot.framework.concrete.*
35
+ import org.utbot.framework.concrete.UtConcreteExecutionData
36
+ import org.utbot.framework.concrete.UtConcreteExecutionResult
37
+ import org.utbot.framework.concrete.UtExecutionInstrumentation
36
38
import org.utbot.framework.concrete.constructors.UtModelConstructor
39
+ import org.utbot.framework.concrete.FuzzerConcreteExecutor
37
40
import org.utbot.framework.plugin.api.*
38
41
import org.utbot.framework.plugin.api.Step
39
42
import org.utbot.framework.plugin.api.util.*
@@ -45,11 +48,10 @@ import org.utbot.fuzzing.utils.Trie
45
48
import org.utbot.greyboxfuzzer.GreyBoxFuzzer
46
49
import org.utbot.greyboxfuzzer.util.FuzzerUtModelConstructor
47
50
import org.utbot.instrumentation.ConcreteExecutor
48
- import ru.vyarus.java.generics.resolver.context.GenericsInfoFactory
49
51
import soot.jimple.Stmt
50
52
import soot.tagkit.ParamNamesTag
51
53
import java.lang.reflect.Method
52
- import java.util.*
54
+ import java.util.IdentityHashMap
53
55
import kotlin.system.measureTimeMillis
54
56
55
57
val logger = KotlinLogging .logger {}
@@ -336,7 +338,7 @@ class UtBotSymbolicEngine(
336
338
fun fuzzing (until : Long = Long .MAX_VALUE , transform : (JavaValueProvider ) -> JavaValueProvider = { it }) = flow {
337
339
val isFuzzable = methodUnderTest.parameters.all { classId ->
338
340
classId != Method ::class .java.id && // causes the instrumented process crash at invocation
339
- classId != Class ::class .java.id // causes java.lang.IllegalAccessException: java.lang.Class at sun.misc.Unsafe.allocateInstance(Native Method)
341
+ classId != Class ::class .java.id // causes java.lang.IllegalAccessException: java.lang.Class at sun.misc.Unsafe.allocateInstance(Native Method)
340
342
}
341
343
val hasMethodUnderTestParametersToFuzz = methodUnderTest.parameters.isNotEmpty()
342
344
if (! isFuzzable || ! hasMethodUnderTestParametersToFuzz && methodUnderTest.isStatic) {
@@ -421,7 +423,6 @@ class UtBotSymbolicEngine(
421
423
// Simple fuzzing
422
424
fun greyBoxFuzzing (timeBudget : Long = Long .MAX_VALUE ) =
423
425
flow {
424
- GenericsInfoFactory .disableCache()
425
426
val isFuzzable = methodUnderTest.parameters.all { classId ->
426
427
classId != Method ::class .java.id // causes the child process crash at invocation
427
428
}
0 commit comments