@@ -178,7 +178,8 @@ run_verification_subset() {
178
178
harness_args=" $harness_args --harness $harness "
179
179
done
180
180
181
- echo " Running verification for harnesses: ${harnesses[*]} "
181
+ echo " Running verification for harnesses:"
182
+ printf ' %s\n' " ${harnesses[@]} "
182
183
" $kani_path " verify-std -Z unstable-options ./library \
183
184
-Z function-contracts \
184
185
-Z mem-predicates \
@@ -245,12 +246,22 @@ main() {
245
246
if [[ -n " $PARALLEL_INDEX " && -n " $PARALLEL_TOTAL " ]]; then
246
247
echo " Running as parallel worker $PARALLEL_INDEX of $PARALLEL_TOTAL "
247
248
get_harnesses " $kani_path "
249
+
250
+ echo " All harnesses:"
251
+ printf ' %s\n' " ${ALL_HARNESSES[@]} "
252
+ echo " Total number of harnesses: $HARNESS_COUNT "
248
253
249
254
# Calculate this worker's portion
250
255
chunk_size=$(( (HARNESS_COUNT + PARALLEL_TOTAL - 1 ) / PARALLEL_TOTAL ))
256
+ echo " Number of harnesses this worker will run: $chunk_size "
257
+
251
258
start_idx=$(( (PARALLEL_INDEX - 1 ) * chunk_size ))
252
259
end_idx=$(( start_idx + chunk_size ))
260
+ # If end_idx > HARNESS_COUNT, truncate it to $HARNESS_COUNT
253
261
[[ $end_idx -gt $HARNESS_COUNT ]] && end_idx=$HARNESS_COUNT
262
+
263
+ echo " Start index into ALL_HARNESSES is $start_idx "
264
+ echo " End index into ALL_HARNESSES is $end_idx "
254
265
255
266
# Extract this worker's harnesses
256
267
worker_harnesses=(" ${ALL_HARNESSES[@]: $start_idx : $chunk_size } " )
0 commit comments