Skip to content

Commit 8b71591

Browse files
author
Eddy Westbrook
authored
Merge branch 'master' into saw-core/typechecking-debugging
2 parents 8aa84c2 + 92e9620 commit 8b71591

File tree

5 files changed

+13
-15
lines changed

5 files changed

+13
-15
lines changed

crux-mir-comp/test/Test.hs

+7-4
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,15 @@ runCrux rustFile outHandle mode = Mir.withMirLogging $ do
7777
-- verification runs close to the timeout, causing flaky results
7878
-- (especially in CI).
7979
let quiet = True
80-
let options = (defaultCruxOptions { Crux.inputFiles = [rustFile],
81-
Crux.simVerbose = 0,
80+
let outOpts = (Crux.outputOptions defaultCruxOptions)
81+
{ Crux.simVerbose = 0
82+
, Crux.quietMode = quiet
83+
}
84+
let options = (defaultCruxOptions { Crux.outputOptions = outOpts,
85+
Crux.inputFiles = [rustFile],
8286
Crux.globalTimeout = Just 180,
8387
Crux.goalTimeout = Just 180,
8488
Crux.solver = "z3",
85-
Crux.quietMode = quiet,
8689
Crux.checkPathSat = (mode == RcmCoverage),
8790
Crux.outDir = case mode of
8891
RcmCoverage -> getOutputDir rustFile
@@ -91,7 +94,7 @@ runCrux rustFile outHandle mode = Mir.withMirLogging $ do
9194
Mir.defaultMirOptions { Mir.printResultOnly = (mode == RcmConcrete),
9295
Mir.defaultRlibsDir = "../deps/crucible/crux-mir/rlibs" })
9396
let ?outputConfig = Crux.mkOutputConfig (outHandle, False) (outHandle, False)
94-
Mir.mirLoggingToSayWhat (Just $ fst options)
97+
Mir.mirLoggingToSayWhat (Just $ Crux.outputOptions $ fst options)
9598
setEnv "CRYPTOLPATH" "."
9699
_exitCode <- Mir.runTestsWithExtraOverrides overrides options
97100
return ()

deps/crucible

Submodule crucible updated 56 files

saw-core-what4/src/Verifier/SAW/Simulator/What4/ReturnTrip.hs

+2-8
Original file line numberDiff line numberDiff line change
@@ -908,21 +908,15 @@ evaluateExpr sym st sc cache = f []
908908
B.FloatToSBV{} -> floatFail
909909
B.FloatToReal{} -> floatFail
910910
B.FloatToBinary{} -> floatFail
911+
B.FloatSpecialFunction{} -> floatFail
911912

912913
B.RoundReal{} -> realFail
913914
B.RoundEvenReal{} -> realFail
914915
B.FloorReal{} -> realFail
915916
B.CeilReal{} -> realFail
916917
B.RealDiv{} -> realFail
917918
B.RealSqrt{} -> realFail
918-
B.Pi{} -> realFail
919-
B.RealSin{} -> realFail
920-
B.RealCos{} -> realFail
921-
B.RealSinh{} -> realFail
922-
B.RealCosh{} -> realFail
923-
B.RealExp{} -> realFail
924-
B.RealLog{} -> realFail
925-
B.RealATan2{} -> realFail
919+
B.RealSpecialFunction{} -> realFail
926920

927921
B.Cplx{} -> cplxFail
928922
B.RealPart{} -> cplxFail

src/SAWScript/Crucible/LLVM/MethodSpecIR.hs

+2-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,8 @@ loadLLVMModule file halloc =
258258
Left err -> return (Left err)
259259
Right llvm_mod ->
260260
do memVar <- CL.mkMemVar (Text.pack "saw:llvm_memory") halloc
261-
Some mtrans <- CL.translateModule halloc memVar llvm_mod
261+
-- FIXME: do something with the translation warnings
262+
(Some mtrans, _warnings) <- CL.translateModule halloc memVar llvm_mod
262263
return (Right (Some (LLVMModule file llvm_mod mtrans)))
263264

264265
instance TestEquality LLVMModule where

0 commit comments

Comments
 (0)