File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
usvm-ts/src/main/kotlin/org/usvm/machine/expr Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -328,13 +328,12 @@ private fun TsExprResolver.handleArrayFill(
328
328
val auxArray = memory.allocConcrete(arrayType)
329
329
330
330
// Initialize the auxiliary array filled with the given `value`
331
- // TODO: why 10000?
332
331
memory.initializeArray(
333
332
auxArray,
334
333
arrayType,
335
334
elementSort,
336
335
sizeSort,
337
- (0 until 10_000 ).asSequence().map { value.asExpr(elementSort) }
336
+ (0 until ARRAY_FILL_SIZE ).asSequence().map { value.asExpr(elementSort) }
338
337
)
339
338
340
339
// Copy the initialized aux array to the target array
@@ -353,6 +352,9 @@ private fun TsExprResolver.handleArrayFill(
353
352
}
354
353
}
355
354
355
+ // TODO: why?
356
+ private const val ARRAY_FILL_SIZE = 10_000
357
+
356
358
/* *
357
359
* Handle the `Array.shift()` method call.
358
360
* Removes the first element from the array and returns it.
You can’t perform that action at this time.
0 commit comments