Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Copilot.Verifier
Synopsis
- verify :: CSettings -> [String] -> String -> Spec -> IO ()
- verifyWithOptions :: VerifierOptions -> CSettings -> [String] -> String -> Spec -> IO ()
- data VerifierOptions = VerifierOptions {}
- defaultVerifierOptions :: VerifierOptions
- sideCondVerifierOptions :: VerifierOptions
- data Verbosity
Documentation
verify :: CSettings -> [String] -> String -> Spec -> IO () Source #
verifies the Copilot specification
verify
csettings props prefix specspec
under the assumptions props
matches the behavior of the C program
compiled with csettings
within a directory prefixed by prefix
.
verifyWithOptions :: VerifierOptions -> CSettings -> [String] -> String -> Spec -> IO () Source #
Like verify
, but with VerifierOptions
to more finely control the
verifier's behavior.
data VerifierOptions Source #
Options for configuring the behavior of the verifier.
Constructors
VerifierOptions | |
Fields
|
Instances
Show VerifierOptions Source # | |
Defined in Copilot.Verifier Methods showsPrec :: Int -> VerifierOptions -> ShowS # show :: VerifierOptions -> String # showList :: [VerifierOptions] -> ShowS # |
defaultVerifierOptions :: VerifierOptions Source #
The default VerifierOptions
:
- Produce a reasonable amount of diagnostics as verification proceeds
(
Default
). - Do not assume any side conditions related to partial operations.
- Do not log any SMT solver interactions.
- Use the Z3 SMT solver.
- Treat all floating-point operations as uninterpreted functions when translating to SMT.
sideCondVerifierOptions :: VerifierOptions Source #
Like defaultVerifierOptions
, except that the verifier will assume side
conditions related to partial operations used in the Copilot spec.
How much output should verification produce?
The data constructors are listed in increasing order of how many diagnostics they produce.
Constructors
Quiet | Don't produce any diagnostics. |
Default | Produce a reasonable amount of diagnostics as verification proceeds. |
Noisy | Produce as many diagnostics as possible. |
Instances
Show Verbosity Source # | |
Eq Verbosity Source # | |
Ord Verbosity Source # | |