We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5ba5d6 commit 0ca21c1Copy full SHA for 0ca21c1
usvm-jvm/src/main/kotlin/org/usvm/machine/interpreter/JcFixedInheritorsNumberTypeSelector.kt
@@ -6,6 +6,7 @@ import org.jacodb.api.JcClassType
6
import org.jacodb.api.JcMethod
7
import org.jacodb.api.JcType
8
import org.jacodb.api.ext.constructors
9
+import org.jacodb.api.ext.packageName
10
import org.jacodb.impl.features.classpaths.JcUnknownType
11
import org.usvm.machine.logger
12
import org.usvm.types.TypesResult
@@ -75,6 +76,10 @@ class JcTypeStreamPrioritization(private val typesToScore: Int) {
75
76
return Double.NEGATIVE_INFINITY
77
}
78
79
+ if (!type.jcClass.declaration.location.isRuntime || type.jcClass.packageName.startsWith("java.")) {
80
+ score += 1000000
81
+ }
82
+
83
// prefer class types over arrays
84
score += 1
85
0 commit comments