smdb_param_buf_size.sh: ask db what size buffers are passed to a function
[smatch.git] / smatch_scripts / gen_param_implications.sh
blob3d8ccf171fd2eefd32326f2f51c52608156269c6
1 #!/bin/bash
3 file=$1
5 if [[ "$file" = "" ]] ; then
6 echo "Usage: $0 <file with smatch messages>"
7 exit 1
8 fi
10 outfile="kernel.parameter_implications"
12 bin_dir=$(dirname $0)
13 add=$(echo ${bin_dir}/../smatch_data/${outfile}.add)
15 cat $add > $outfile
16 ${bin_dir}/parameter_implications.pl $file >> $outfile
17 grep bool_return_implication $file | cut -d ' ' -f 2,5- | sed -e 's/()//' >> $outfile
19 echo "Done. List saved as '$outfile'"