Skip to content

Commit

Permalink
Adapt crucible-concurrency-golden-tests to 04d7c0b (#929)
Browse files Browse the repository at this point in the history
Fixes #900.
  • Loading branch information
RyanGlScott authored Dec 1, 2021
1 parent 0bd1eb0 commit e611ef3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions crucible-concurrency/test/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,17 @@ testSimulator :: FilePath -> FilePath -> IO ()
testSimulator inFile outFile =
do contents <- T.readFile inFile
withFile outFile WriteMode $ \outh ->
do let options = (defaultCruxOptions { Crux.inputFiles = [inFile],
Crux.simVerbose = 0,
do let outOpts = (Crux.outputOptions defaultCruxOptions)
{ Crux.simVerbose = 0
}
options = (defaultCruxOptions { Crux.outputOptions = outOpts,
Crux.inputFiles = [inFile],
Crux.globalTimeout = Just 600,
Crux.goalTimeout = Just 600,
Crux.solver = "yices",
Crux.checkPathSat = True
},
defaultCrucesOptions)
let ?outputConfig = Crux.mkOutputConfig (outh, False) (outh, False)
Crux.cruxLogMessageToSayWhat $ Just (fst options)
Crux.cruxLogMessageToSayWhat $ Just (Crux.outputOptions (fst options))
run options

0 comments on commit e611ef3

Please sign in to comment.