mirror of
https://github.com/GaloisInc/what4.git
synced 2024-12-01 20:23:10 +03:00
Remove unneeded arguments to nameResult and versionResult.
This commit is contained in:
parent
f6f66f949e
commit
ed9a24efbd
@ -1192,8 +1192,8 @@ ppSolverVersionError err =
|
||||
na Nothing = "n/a"
|
||||
|
||||
-- | Get the result of a version query
|
||||
nameResult :: f h -> Streams.InputStream Text -> IO Text
|
||||
nameResult _ s =
|
||||
nameResult :: Streams.InputStream Text -> IO Text
|
||||
nameResult s =
|
||||
let cmd = SMT2.getName
|
||||
in
|
||||
tryJust filterAsync (Streams.parseFromStream (parseSExp parseSMTLib2String) s) >>=
|
||||
@ -1220,8 +1220,8 @@ queryErrorBehavior conn resp =
|
||||
|
||||
|
||||
-- | Get the result of a version query
|
||||
versionResult :: f h -> Streams.InputStream Text -> IO Text
|
||||
versionResult _ s =
|
||||
versionResult :: Streams.InputStream Text -> IO Text
|
||||
versionResult s =
|
||||
let cmd = SMT2.getVersion
|
||||
in
|
||||
tryJust filterAsync (Streams.parseFromStream (parseSExp parseSMTLib2String) s) >>=
|
||||
@ -1246,7 +1246,7 @@ checkSolverVersion' boundsMap proc =
|
||||
Nothing -> done
|
||||
Just bnds ->
|
||||
do getVersion conn
|
||||
res <- versionResult conn (solverResponse proc)
|
||||
res <- versionResult (solverResponse proc)
|
||||
case Versions.version res of
|
||||
Left e -> pure (Left (UnparseableVersion e))
|
||||
Right actualVer ->
|
||||
|
@ -885,12 +885,12 @@ testSolverInfo = testGroup "solver info queries" $
|
||||
[ testCase "test get solver version" $ withOnlineZ3 $ \_ proc -> do
|
||||
let conn = solverConn proc
|
||||
getVersion conn
|
||||
_ <- versionResult conn (solverResponse proc)
|
||||
_ <- versionResult (solverResponse proc)
|
||||
pure ()
|
||||
, testCase "test get solver name" $ withOnlineZ3 $ \_ proc -> do
|
||||
let conn = solverConn proc
|
||||
getName conn
|
||||
nm <- nameResult conn (solverResponse proc)
|
||||
nm <- nameResult (solverResponse proc)
|
||||
nm @?= "Z3"
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user