Skip to content

Commit 05fef58

Browse files
committed
uncommit
1 parent a5c7044 commit 05fef58

File tree

4 files changed

+18
-17
lines changed

4 files changed

+18
-17
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ object UtSettings {
174174
* @see <a href="CONFLUENCE:UtBot+Expression+Optimizations">
175175
* UtBot Expression Optimizations</a>
176176
*/
177-
var useExpressionSimplification by getBooleanProperty(true)
177+
var useExpressionSimplification by getBooleanProperty(false)
178178

179179
/*
180180
* Activate or deactivate tests on comments && names/displayNames

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,7 +1828,7 @@ class Traverser(
18281828
return fromMemory
18291829
}
18301830
val addr = fromMemory?.addr ?: findNewAddr()
1831-
val created = createObject(addr, classType, useConcreteType = false, mockInfoGenerator)
1831+
val created = createObject(addr, classType, useConcreteType = true, mockInfoGenerator)
18321832
queuedSymbolicStateUpdates += MemoryUpdate(staticInstanceStorage = persistentHashMapOf(classType.id to created))
18331833
return created
18341834
}
@@ -3396,9 +3396,9 @@ class Traverser(
33963396
val type = (it as? RefType)?.sootClass ?: return@all false
33973397
type.isLambda || type.isAnonymous
33983398
}
3399-
if (!isInNestedMethod && sootClass.isAnonymous && !onlyAnonymousTypesAndLambdasAvailable) {
3400-
return
3401-
}
3399+
// if (!isInNestedMethod && sootClass.isAnonymous && !onlyAnonymousTypesAndLambdasAvailable) {
3400+
// return
3401+
// }
34023402
}
34033403
}
34043404

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,10 @@ class TypeResolver(private val typeRegistry: TypeRegistry, private val hierarchy
213213
when {
214214
sootClass.isAnonymous || sootClass.isUtMock -> unwantedTypes += it
215215
sootClass.isArtificialEntity -> {
216-
if (sootClass.isLambda) {
217-
unwantedTypes += it
218-
} else if (keepArtificialEntities) {
216+
// if (sootClass.isLambda) {
217+
// unwantedTypes += it
218+
// } else
219+
if (keepArtificialEntities) {
219220
concreteTypes += it
220221
}
221222
}

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -589,15 +589,15 @@ class UtBotSymbolicEngine(
589589
instrumentation
590590
)
591591

592-
workaround(REMOVE_ANONYMOUS_CLASSES) {
593-
concreteExecutionResult.result.onSuccess {
594-
if (it.classId.isAnonymous) {
595-
logger.debug("Anonymous class found as a concrete result, symbolic one will be returned")
596-
emit(symbolicUtExecution)
597-
return
598-
}
599-
}
600-
}
592+
// workaround(REMOVE_ANONYMOUS_CLASSES) {
593+
// concreteExecutionResult.result.onSuccess {
594+
// if (it.classId.isAnonymous) {
595+
// logger.debug("Anonymous class found as a concrete result, symbolic one will be returned")
596+
// emit(symbolicUtExecution)
597+
// return
598+
// }
599+
// }
600+
// }
601601

602602
val concolicUtExecution = symbolicUtExecution.copy(
603603
stateAfter = concreteExecutionResult.stateAfter,

0 commit comments

Comments
 (0)