Skip to content

Removed Soot initialization #2707

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
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 @@ -125,7 +125,8 @@ fun main(args: Array<String>) {
withUtContext(context) {
// Initialize the soot before a contest is started.
// This saves the time budget for real work instead of soot initialization.
TestCaseGenerator(listOf(classfileDir), classpathString, dependencyPath, JdkInfoService.provide())
// TODO usvm-sbft-merge: Soot is not not used in usvm
// TestCaseGenerator(listOf(classfileDir), classpathString, dependencyPath, JdkInfoService.provide())

// TODO usvm-sbft-merge: utbot instrumentation not used in usvm
// logger.info().measureTime({ "warmup: kotlin reflection :: init" }) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,18 +147,18 @@ fun runUsvmGeneration(
)
)

logger.info().measureTime({ "Contest preparation: ensure JacoDB is initialized (NOT counted in time budget)" }) {
jcContainer // force init lazy property
}
logger.info().measureTime({ "Contest preparation: ensure executor is started (NOT counted in time budget)" }) {
jcContainer.runner.ensureRunnerAlive()
}

logger.info().measureTime({ "class ${cut.fqn}" }, { statsForClass }) {
val filteredMethods = logger.info().measureTime({ "preparation class ${cut.clazz}: kotlin reflection :: run" }) {
prepareClass(cut.clazz, methodNameFilter)
}

logger.info().measureTime({ "preparation: ensure JacoDB is initialized (counted in time budget)" }) {
jcContainer // force init lazy property
}
logger.info().measureTime({ "preparation: ensure executor is started (counted in time budget)" }) {
jcContainer.runner.ensureRunnerAlive()
}

statsForClass.methodsCount = filteredMethods.size
val methodToStats = filteredMethods.associateWith { method ->
StatsForMethod(
Expand Down