@@ -8,21 +8,21 @@ declare -A OPTIONS
88OPTIONS ["label" ]= "--error-label"
99OPTIONS ["unreach_call" ]= ""
1010OPTIONS ["termination" ]= ""
11- OPTIONS ["overflow" ]= "--signed-overflow-check"
12- OPTIONS ["memsafety" ]= "--pointer-check --memory-leak-check --bounds-check"
11+ OPTIONS ["overflow" ]= "--signed-overflow-check --no-assertions "
12+ OPTIONS ["memsafety" ]= "--pointer-check --memory-leak-check --bounds-check --no-assertions "
1313
1414parse_property_file ()
1515{
1616 local fn = $1
1717
18- cat $fn | sed 's/[[:space:]]//g' | perl -n -e '
19- if(/^CHECK\(init\((\S+)\(\)\),LTL\((\S+)\)\)$/) {
20- print "ENTRY=$1\n";
21- print "PROP=\"label\"\nLABEL=\"$1\"\n" if($2 =~ /^G!label\((\S+)\)$/);
18+ cat $fn | sed 's/[[:space:]]//g' | perl -n -e '
19+ if(/^CHECK\(init\((\S+)\(\)\),LTL\((\S+)\)\)$/) {
20+ print "ENTRY=$1\n";
21+ print "PROP=\"label\"\nLABEL=\"$1\"\n" if($2 =~ /^G!label\((\S+)\)$/);
2222 print "PROP=\"unreach_call\"\n" if($2 =~ /^G!call\(__VERIFIER_error\(\)\)$/);
23- print "PROP=\"memsafety\"\n" if($2 =~ /^Gvalid-(free|deref|memtrack)$/);
24- print "PROP=\"overflow\"\n" if($2 =~ /^G!overflow$/);
25- print "PROP=\"termination\"\n" if($2 =~ /^Fend$/);
23+ print "PROP=\"memsafety\"\n" if($2 =~ /^Gvalid-(free|deref|memtrack)$/);
24+ print "PROP=\"overflow\"\n" if($2 =~ /^G!overflow$/);
25+ print "PROP=\"termination\"\n" if($2 =~ /^Fend$/);
2626}'
2727}
2828
@@ -34,6 +34,9 @@ parse_result()
3434 elif tail -n 50 $LOG . ok | \
3535 grep -Eq "^(\[.*\] |[[:space:]]*)dereference failure:" ; then
3636 echo 'FALSE(valid-deref)'
37+ elif tail -n 50 $LOG . ok | \
38+ grep -Eq "^(\[.*\] |[[:space:]]*)array.* upper bound in " ; then
39+ echo 'FALSE(valid-deref)'
3740 elif tail -n 50 $LOG . ok | \
3841 grep -Eq "^(\[.*\] |[[:space:]]*)double free$" ; then
3942 echo 'FALSE(valid-free)'
@@ -58,12 +61,12 @@ process_graphml()
5861 else
5962 TYPE = "violation_witness"
6063 fi
61- cat $LOG . witness | perl -p -e "s/(<graph edgedefault=\" directed\" >)/\$1\\E
62- <data key=\" witness-type\" >$(echo $TYPE)<\/data>
63- <data key=\" producer\" >$(echo $TOOL_NAME)<\/data>
64- <data key=\" specification\" >$(<$PROP_FILE)<\/data>
65- <data key=\" programfile\" >$(echo $BM | sed 's8/8\\/8g')<\/data>
66- <data key=\" programhash\" >$(sha1sum $BM | awk '{print $1}')<\/data>
64+ cat $LOG . witness | perl -p -e "s/(<graph edgedefault=\" directed\" >)/\$1\\E
65+ <data key=\" witness-type\" >$(echo $TYPE)<\/data>
66+ <data key=\" producer\" >$(echo $TOOL_NAME)<\/data>
67+ <data key=\" specification\" >$(<$PROP_FILE)<\/data>
68+ <data key=\" programfile\" >$(echo $BM | sed 's8/8\\/8g')<\/data>
69+ <data key=\" programhash\" >$(sha1sum $BM | awk '{print $1}')<\/data>
6770 <data key=\" architecture\" >${BIT_WIDTH##--} bit<\/data>\\Q/"
6871 fi
6972}
0 commit comments