-
Notifications
You must be signed in to change notification settings - Fork 330
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Util/CountHeartbeats): Add
guard_min_heartbeats
command (#18392)
- Loading branch information
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import Mathlib.Tactic.Ring | ||
|
||
set_option linter.style.header false | ||
|
||
/-- info: Used 7 heartbeats, which is less than the current maximum of 200000. -/ | ||
#guard_msgs in | ||
count_heartbeats in | ||
example (a : Nat) : a = a := rfl | ||
|
||
/-- info: Used 7 heartbeats, which is less than the minimum of 200000. -/ | ||
#guard_msgs in | ||
guard_min_heartbeats in | ||
example (a : Nat) : a = a := rfl | ||
|
||
/-- info: Used 7 heartbeats, which is less than the minimum of 2000. -/ | ||
#guard_msgs in | ||
guard_min_heartbeats 2000 in | ||
example (a : Nat) : a = a := rfl | ||
|
||
guard_min_heartbeats 1 in | ||
example (a : Nat) : a = a := rfl |