Skip to content

Extract Traverser from UtBotSymbolicEngine #307

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 19 commits into from
Jul 8, 2022
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
Refactor: remove useless environment field usage
  • Loading branch information
sergeypospelov committed Jul 8, 2022
commit d2266726ac34a50b97803a26dd3ea1623dc58650
8 changes: 4 additions & 4 deletions utbot-framework/src/main/kotlin/org/utbot/engine/Traverser.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3829,8 +3829,8 @@ class Traverser(
// it's free to make a check, because in the result is SAT, it should be already cached
val holder = requireNotNull(solver.check(respectSoft = true) as? UtSolverStatusSAT) { "The state must be SAT!" }

val predictedTestName = Predictors.testName.predict(environment.state.path)
Predictors.testName.provide(environment.state.path, predictedTestName, "")
val predictedTestName = Predictors.testName.predict(state.path)
Predictors.testName.provide(state.path, predictedTestName, "")

val resolver =
Resolver(hierarchy, memory, typeRegistry, typeResolver, holder, methodUnderTest, softMaxArraySize)
Expand All @@ -3849,10 +3849,10 @@ class Traverser(
symbolicExecutionResult,
instrumentation,
entryMethodPath(),
environment.state.fullPath()
state.fullPath()
)

globalGraph.traversed(environment.state)
globalGraph.traversed(state)

if (!UtSettings.useConcreteExecution ||
// Can't execute concretely because overflows do not cause actual exceptions.
Expand Down