Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -433,12 +433,6 @@ class UtBotSymbolicEngine(
names = names,
providers = listOf(valueProviders),
) { thisInstance, descr, values ->
if (thisInstance?.model is UtNullModel) {
// We should not try to run concretely any models with null-this.
// But fuzzer does generate such values, because it can fail to generate any "good" values.
return@runJavaFuzzing BaseFeedback(Trie.emptyNode(), Control.PASS)
}

val diff = until - System.currentTimeMillis()
val thresholdMillisForFuzzingOperation = 0 // may be better use 10-20 millis as it might not be possible
// to concretely execute that values because request to instrumentation process involves
Expand All @@ -452,6 +446,12 @@ class UtBotSymbolicEngine(
return@runJavaFuzzing BaseFeedback(result = Trie.emptyNode(), control = Control.STOP)
}

if (thisInstance?.model is UtNullModel) {
// We should not try to run concretely any models with null-this.
// But fuzzer does generate such values, because it can fail to generate any "good" values.
return@runJavaFuzzing BaseFeedback(Trie.emptyNode(), Control.PASS)
}

val stateBefore = EnvironmentModels(thisInstance?.model, values.map { it.model }, mapOf())

val concreteExecutionResult: UtConcreteExecutionResult? = try {
Expand Down