Clean up comments in Graphs.lean and Program.lean

This commit is contained in:
2026-08-09 18:17:02 -05:00
parent c0542d0811
commit df4d072f22
2 changed files with 32 additions and 45 deletions

View File

@@ -31,8 +31,7 @@ def cfg : Graph := Graph.wrap p.rootStmt.cfg
/-- A state in the control flow `Spa.Graph` of this program. -/
abbrev State : Type := p.cfg.Index
/-- The root statement's CFG sits inside the program's CFG (that graph `wrap`ped
in an entry and an exit node). -/
/-- The root statement's CFG sits inside the program's CFG. -/
def rootEmbed : GGraph.Embed p.rootStmt.cfg p.cfg :=
(GGraph.Embed.sequenceLeft p.rootStmt.cfg (Graph.singleton none)).trans
(GGraph.Embed.sequenceRight (Graph.singleton none) _)