We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbac0d2 commit 831026bCopy full SHA for 831026b
src/Lean/Compiler/IR/ElimDeadBranches.lean
@@ -69,15 +69,6 @@ partial def merge (v₁ v₂ : Value) : Value :=
69
| choice vs, v => choice <| addChoice merge vs v
70
| v, choice vs => choice <| addChoice merge vs v
71
72
-protected partial def format : Value → Format
73
- | top => "top"
74
- | bot => "bot"
75
- | choice vs => format "@" ++ @List.format _ ⟨Value.format⟩ vs
76
- | ctor i vs => format "#" ++ if vs.isEmpty then format i.name else Format.paren (format i.name ++ @formatArray _ ⟨Value.format⟩ vs)
77
-
78
-instance : ToFormat Value := ⟨Value.format⟩
79
-instance : ToString Value := ⟨Format.pretty ∘ Value.format⟩
80
81
/--
82
In `truncate`, we approximate a value as `top` if depth > `truncateMaxDepth`.
83
TODO: add option to control this parameter.
0 commit comments