Skip to content

Commit

Permalink
Merge pull request #799 from Simon-Hostettler/shostettler_vdc
Browse files Browse the repository at this point in the history
viper-data-collection changes
  • Loading branch information
Dspil authored Feb 9, 2024
2 parents 8fd9a8b + 6a8457c commit 635e18e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/scala/Silicon.scala
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import viper.silicon.verifier.DefaultMainVerifier
import viper.silicon.decider.{Cvc5ProverStdIO, Z3ProverStdIO}
import viper.silver.cfg.silver.SilverCfg
import viper.silver.logger.ViperStdOutLogger
import viper.silver.utility.{FileProgramSubmitter}

import scala.util.chaining._

Expand Down Expand Up @@ -404,6 +405,9 @@ class SiliconRunnerInstance extends SiliconFrontend(StdIOReporter()) {
def runMain(args: Array[String]): Unit = {
var exitCode = 1 /* Only 0 indicates no error - we're pessimistic here */

val submitter = new FileProgramSubmitter(this)
submitter.setArgs(args)

try {
execute(ArraySeq.unsafeWrapArray(args))
/* Will call SiliconFrontend.createVerifier and SiliconFrontend.configureVerifier */
Expand Down Expand Up @@ -452,6 +456,7 @@ class SiliconRunnerInstance extends SiliconFrontend(StdIOReporter()) {
* the process to kill has no input/output data left in the
* corresponding streams.
*/
submitter.submit()
}

sys.exit(exitCode)
Expand Down

0 comments on commit 635e18e

Please sign in to comment.