@@ -73,9 +73,6 @@ def clearline
7373incremental = ( ARGV . last == "-i" && ARGV . pop ) || cfg
7474report = ARGV . last == "-r" && ARGV . pop
7575only = ARGV [ 0 ] unless ARGV [ 0 ] . nil?
76- if witness then
77- sequential = true
78- end
7976if marshal && incremental then
8077 fail "Marshal (-m) and Incremental (-i) tests can not be activated at the same time!"
8178end
@@ -567,13 +564,14 @@ def create_test_set(lines)
567564 end
568565 def run ( )
569566 filename = File . basename ( @path )
570- cmd1 = "#{ $goblint} #{ filename } #{ @params } #{ ENV [ 'gobopt' ] } 1>#{ @testset . warnfile } 0 --enable warn.debug --set dbg.timing.enabled true --enable witness.yaml.enabled --set goblint-dir .goblint-#{ @id . sub ( '/' , '-' ) } -witness1 2>#{ @testset . statsfile } 0"
571- cmd2 = "#{ $goblint} #{ filename } #{ @params } #{ ENV [ 'gobopt' ] } 1>#{ @testset . warnfile } --set ana.activated[+] unassume --enable warn.debug --set dbg.timing.enabled true --set witness.yaml.unassume witness.yml --set goblint-dir .goblint-#{ @id . sub ( '/' , '-' ) } -witness2 2>#{ @testset . statsfile } "
567+ witness = "witness-#{ @id . sub ( '/' , '-' ) } .yml"
568+ cmd1 = "#{ $goblint} #{ filename } #{ @params } #{ ENV [ 'gobopt' ] } 1>#{ @testset . warnfile } 0 --enable warn.debug --set dbg.timing.enabled true --enable witness.yaml.enabled --set witness.yaml.path #{ witness } --set goblint-dir .goblint-#{ @id . sub ( '/' , '-' ) } -witness1 2>#{ @testset . statsfile } 0"
569+ cmd2 = "#{ $goblint} #{ filename } #{ @params } #{ ENV [ 'gobopt' ] } 1>#{ @testset . warnfile } --set ana.activated[+] unassume --enable warn.debug --set dbg.timing.enabled true --set witness.yaml.unassume #{ witness } --set goblint-dir .goblint-#{ @id . sub ( '/' , '-' ) } -witness2 2>#{ @testset . statsfile } "
572570 starttime = Time . now
573571 run_testset ( @testset , cmd1 , starttime )
574572 starttime = Time . now
575573 run_testset ( @testset , cmd2 , starttime )
576- FileUtils . rm_f ( ' witness.yml' )
574+ FileUtils . rm_f ( witness )
577575 end
578576end
579577
0 commit comments