Skip to content

Commit 0ca21c1

Browse files
committed
Fix jdk internal types
1 parent b5ba5d6 commit 0ca21c1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

usvm-jvm/src/main/kotlin/org/usvm/machine/interpreter/JcFixedInheritorsNumberTypeSelector.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import org.jacodb.api.JcClassType
66
import org.jacodb.api.JcMethod
77
import org.jacodb.api.JcType
88
import org.jacodb.api.ext.constructors
9+
import org.jacodb.api.ext.packageName
910
import org.jacodb.impl.features.classpaths.JcUnknownType
1011
import org.usvm.machine.logger
1112
import org.usvm.types.TypesResult
@@ -75,6 +76,10 @@ class JcTypeStreamPrioritization(private val typesToScore: Int) {
7576
return Double.NEGATIVE_INFINITY
7677
}
7778

79+
if (!type.jcClass.declaration.location.isRuntime || type.jcClass.packageName.startsWith("java.")) {
80+
score += 1000000
81+
}
82+
7883
// prefer class types over arrays
7984
score += 1
8085

0 commit comments

Comments
 (0)