Skip to content

Commit 51ded78

Browse files
merge
1 parent 90cd814 commit 51ded78

File tree

178 files changed

+77
-10534
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

178 files changed

+77
-10534
lines changed

utbot-framework-api/src/main/kotlin/org/utbot/framework/UtSettings.kt

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -245,27 +245,17 @@ object UtSettings : AbstractSettings(logger, defaultKeyForSettingsPath, defaultS
245245
/**
246246
* Set to true to use grey-box fuzzing
247247
*/
248-
var useGreyBoxFuzzing: Boolean by getBooleanProperty(true)
248+
var useGreyBoxFuzzing: Boolean by getBooleanProperty(false)
249249

250250
/**
251251
* Set to true to use UtCompositeModels in grey-box fuzzing process
252252
*/
253-
var useCompositeModelsInGreyBoxFuzzing: Boolean by getBooleanProperty(true)
254-
255-
/**
256-
* Set to true to use grey-box fuzzing
257-
*/
258-
var useGreyBoxFuzzing: Boolean by getBooleanProperty(true)
253+
var useCompositeModelsInGreyBoxFuzzing: Boolean by getBooleanProperty(false)
259254

260255
/**
261256
* Set to true to use grey-box fuzzing in competition mode (without asserts generation)
262257
*/
263-
var greyBoxFuzzingCompetitionMode: Boolean by getBooleanProperty(true)
264-
265-
/**
266-
* Set to true to use UtCompositeModels in grey-box fuzzing process
267-
*/
268-
var useCompositeModelsInGreyBoxFuzzing: Boolean by getBooleanProperty(false)
258+
var greyBoxFuzzingCompetitionMode: Boolean by getBooleanProperty(false)
269259

270260
/**
271261
* Set the total attempts to improve coverage by fuzzer.

utbot-framework/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ repositories {
66

77
configurations {
88
z3native
9+
fetchInstrumentationJar
910
}
1011

1112
dependencies {
@@ -50,6 +51,7 @@ dependencies {
5051
z3native group: 'com.microsoft.z3', name: 'z3-native-win64', version: z3Version, ext: 'zip'
5152
z3native group: 'com.microsoft.z3', name: 'z3-native-linux64', version: z3Version, ext: 'zip'
5253
z3native group: 'com.microsoft.z3', name: 'z3-native-osx', version: z3Version, ext: 'zip'
54+
fetchInstrumentationJar project(path: ':utbot-instrumentation', configuration:'instrumentationArchive')
5355
}
5456

5557
processResources {
@@ -58,4 +60,7 @@ processResources {
5860
into "lib/x64"
5961
}
6062
}
63+
from(configurations.fetchInstrumentationJar) {
64+
into "lib"
65+
}
6166
}

utbot-framework/src/main/kotlin/org/utbot/engine/UtBotSymbolicEngine.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ import org.utbot.framework.UtSettings.pathSelectorStepsLimit
3232
import org.utbot.framework.UtSettings.pathSelectorType
3333
import org.utbot.framework.UtSettings.processUnknownStatesDuringConcreteExecution
3434
import org.utbot.framework.UtSettings.useDebugVisualization
35+
import org.utbot.framework.concrete.FuzzerConcreteExecutor
36+
import org.utbot.framework.concrete.UtFuzzingExecutionInstrumentation
3537
import org.utbot.framework.util.convertToAssemble
3638
import org.utbot.framework.plugin.api.*
3739
import org.utbot.framework.plugin.api.Step
@@ -48,6 +50,8 @@ import ru.vyarus.java.generics.resolver.context.GenericsInfoFactory
4850
import org.utbot.instrumentation.instrumentation.execution.UtConcreteExecutionData
4951
import org.utbot.instrumentation.instrumentation.execution.UtConcreteExecutionResult
5052
import org.utbot.instrumentation.instrumentation.execution.UtExecutionInstrumentation
53+
import org.utbot.instrumentation.instrumentation.execution.constructors.UtModelConstructor
54+
import org.utbot.instrumentation.instrumentation.execution.phases.ValueConstructionContext
5155
import soot.jimple.Stmt
5256
import soot.tagkit.ParamNamesTag
5357
import java.lang.reflect.Method
@@ -442,8 +446,7 @@ class UtBotSymbolicEngine(
442446
collectConstantsForGreyBoxFuzzer(methodUnderTest.sootMethod, utModelConstructor),
443447
fuzzerUtModelConstructor,
444448
FuzzerConcreteExecutor(
445-
concreteExecutor.pathsToUserClasses,
446-
concreteExecutor.pathsToDependencyClasses
449+
concreteExecutor.pathsToUserClasses
447450
)::execute,
448451
ValueConstructionContext(UtFuzzingExecutionInstrumentation.instrumentationContext, true)::constructParameters,
449452
timeBudget

utbot-framework/src/main/kotlin/org/utbot/engine/greyboxfuzzer/GreyBoxFuzzer.kt

Lines changed: 0 additions & 268 deletions
This file was deleted.

0 commit comments

Comments
 (0)