Skip to content

Commit

Permalink
prove(_print) and sat(_print) now require 'ProofScript SatResult' arg…
Browse files Browse the repository at this point in the history
…ument

This avoids a run-time type error, instead catching the error in the
saw-script typechecker. Fixes #10.

This is a temporary stop-gap measure: Eventually the proof commands
will change so that we can allow additional types of proof scripts.
(See issue #9.)
  • Loading branch information
Brian Huffman committed May 28, 2015
1 parent ffd8f3e commit 1737473
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/SAWScript/Interpreter.hs
Original file line number Diff line number Diff line change
Expand Up @@ -555,19 +555,19 @@ primitives = Map.fromList
(pureVal (writeCore :: FilePath -> TypedTerm SAWCtx -> IO ()))
[ "Write out a representation of a term in SAWCore external format." ]

, prim "prove" "{b} ProofScript b -> Term -> TopLevel ProofResult"
, prim "prove" "ProofScript SatResult -> Term -> TopLevel ProofResult"
(scVal provePrim)
[ "TODO" ]

, prim "prove_print" "{b} ProofScript b -> Term -> TopLevel Theorem"
, prim "prove_print" "ProofScript SatResult -> Term -> TopLevel Theorem"
(scVal provePrintPrim)
[ "TODO" ]

, prim "sat" "{b} ProofScript b -> Term -> TopLevel SatResult"
, prim "sat" "ProofScript SatResult -> Term -> TopLevel SatResult"
(scVal satPrim)
[ "TODO" ]

, prim "sat_print" "{b} ProofScript b -> Term -> TopLevel ()"
, prim "sat_print" "ProofScript SatResult -> Term -> TopLevel ()"
(scVal satPrintPrim)
[ "TODO" ]

Expand Down

0 comments on commit 1737473

Please sign in to comment.