Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions Solver/Smt/Translate.lean
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,11 @@ def Translate.main (e : Expr) (logUndetermined := true) : TranslateEnvT (Result
addAxioms (mkForall (← Term.mkFreshBinderName) BinderInfo.default a e) tl

def command (sOpts: SolverOptions) (stx : Syntax) : TermElabM Unit := do
withRef stx do
instantiateMVars (← withSynthesize (postpone := .partial) <| elabTerm stx none) >>= fun e => do
let env := {(default : TranslateEnv) with optEnv.options.solverOptions := sOpts}
discard $ Translate.main e|>.run env
withTheReader Core.Context (fun ctx => { ctx with maxHeartbeats := 0, maxRecDepth := 0 }) $ do
withRef stx do
instantiateMVars (← withSynthesize (postpone := .partial) <| elabTerm stx none) >>= fun e => do
let env := {(default : TranslateEnv) with optEnv.options.solverOptions := sOpts}
discard $ Translate.main e|>.run env

initialize
registerTraceClass `Translate.expr
Expand Down