File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
utbot-python/src/main/kotlin/org/utbot/python/fuzzing/provider Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import org.utbot.python.fuzzing.PythonValueProvider
17
17
import org.utbot.python.fuzzing.provider.utils.generateSummary
18
18
import java.math.BigInteger
19
19
import kotlin.random.Random
20
+ import org.utpython.types.pythonTypeName
20
21
21
22
object IntValueProvider : PythonValueProvider {
22
23
private val randomStubWithNoUsage = Random (0 )
@@ -43,7 +44,12 @@ object IntValueProvider : PythonValueProvider {
43
44
}
44
45
45
46
override fun generate (description : PythonMethodDescription , type : FuzzedUtType ) = sequence<Seed <FuzzedUtType , PythonFuzzedValue >> {
46
- val bits = 32
47
+ val isNDArray: Boolean = description.type.arguments.any { it.pythonTypeName() == " numpy.ndarray" }
48
+ val bits = if (isNDArray) {
49
+ 32
50
+ } else {
51
+ 128
52
+ }
47
53
val integerConstants = getIntConstants(description.concreteValues)
48
54
val modifiedConstants = integerConstants.flatMap { value ->
49
55
listOf (
You can’t perform that action at this time.
0 commit comments