|
|
@ -24,23 +24,30 @@ then |
|
|
|
dobisim="-bisim" |
|
|
|
else |
|
|
|
declare -a models=("brp" "coin2" "coin4" "zeroconf" "reporter2" "reporter4") |
|
|
|
# declare -a models=( "zeroconf" "reporter2" "reporter4") |
|
|
|
dobisim="" |
|
|
|
fi |
|
|
|
for model in "${models[@]}" |
|
|
|
do |
|
|
|
modelfolder="$DIR/$modeltype/$model" |
|
|
|
suffix="-" |
|
|
|
while read instance; |
|
|
|
do |
|
|
|
|
|
|
|
echo "Working on $modelfolder/$instance" |
|
|
|
echo >> $1 |
|
|
|
echo "-------------------------------------------------------------" >> $1 |
|
|
|
echo "---- WORKING ON: $modelfolder/$instance ----" >>$1 |
|
|
|
echo "-------------------------------------------------------------" >> $1 |
|
|
|
$timeout "$executable" -s $modelfolder/$instance $dobisim --prop $modelfolder/$model.prctl --parametric --parametricRegion --region:regionfile $modelfolder/$model"_regions.txt" >> $1 |
|
|
|
suffix="1$suffix" |
|
|
|
echo "Working on $modelfolder/$instance" |
|
|
|
echo "___WORKING ON: $modelfolder/$instance""____________" >>$1$suffix |
|
|
|
echo "_________________________________________________________________________________" >> $1$suffix |
|
|
|
$timeout "$executable" -s $modelfolder/$instance $dobisim --prop $modelfolder/$model.prctl --parametric --parametricRegion --region:regionfile $modelfolder/$model"_regions.txt" >> $1$suffix & |
|
|
|
done < "$modelfolder/models" |
|
|
|
done < "$modelfolder/models" |
|
|
|
wait |
|
|
|
# write logs into result file |
|
|
|
suffix="-" |
|
|
|
while read instance; |
|
|
|
do |
|
|
|
suffix="1$suffix" |
|
|
|
cat $1$suffix >> $1 |
|
|
|
rm $1$suffix |
|
|
|
done < "$modelfolder/models" |
|
|
|
|
|
|
|
done |
|
|
|
done |
|
|
|
fi |