Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i in $(egrep -o 'abstract_fn [^[:space:]]+ [[:digit:]]+ [[:digit:]]+' ./ir/stdlib.ir | sed -r -e 's/abstract_fn ([^[:space:]]+) [[:digit:]]+ ([[:digit:]]+)/\1;\2/g'); do
- IN_VARS=(${i//;/ });
- PATT=${IN_VARS[0]}; PATT=${PATT//\$/\\\$};
- for nt in $(egrep -o "1 $PATT (0|[^0]+(( r_[^[:space:]]+)+)) [[:digit:]]+" ir/stdlib.ir | sed -r -e 's/^.+ ([[:digit:]]+)$/\1/g'); do
- if [ $nt -ne ${IN_VARS[1]} ]; then
- echo "FAILED FOR ${IN_VARS[0]}: $nt ${IN_VARS[1]}";
- else echo "everything is okay";
- fi;
- done;
- done;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement