chore: profile grind satellite solvers (#9246)

This commit is contained in:
Leonardo de Moura 2025-07-07 22:05:39 -07:00 committed by GitHub
parent 655c7ab548
commit cf6a182f69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View file

@ -500,7 +500,7 @@ def checkRing : RingM Bool := do
modifyRing fun s => { s with recheck := false }
return true
def check : GoalM Bool := do
def check : GoalM Bool := do profileitM Exception "grind ring" (← getOptions) do
if (← checkMaxSteps) then return false
let mut progress := false
checkInvariants

View file

@ -578,7 +578,7 @@ There are two kinds of progress:
The result is `false` if module already has a satisfying assignment.
-/
def check : GoalM Bool := do
def check : GoalM Bool := do profileitM Exception "grind cutsat" (← getOptions) do
if (← hasAssignment) then
return false
else

View file

@ -264,7 +264,7 @@ There are two kinds of progress:
The result is `false` if module for every structure already has an assignment.
-/
def check : GoalM Bool := do
def check : GoalM Bool := do profileitM Exception "grind linarith" (← getOptions) do
let mut progress := false
for structId in *...(← get').structs.size do
let r ← LinearM.run structId do

View file

@ -553,7 +553,7 @@ end EMatch
open EMatch
/-- Performs one round of E-matching, and returns new instances. -/
private def ematchCore : GoalM Unit := do
private def ematchCore : GoalM Unit := do profileitM Exception "grind ematch" (← getOptions) do
let go (thms newThms : PArray EMatchTheorem) : EMatch.M Unit := do
withReader (fun ctx => { ctx with useMT := true }) <| ematchTheorems thms
withReader (fun ctx => { ctx with useMT := false }) <| ematchTheorems newThms