Skip to content

Commit 431368f

Browse files
committed
fix pretty print since [] is not allowed in dot files
1 parent 75688e8 commit 431368f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: circuit/src/Circuit/Arithmetic.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ instance Pretty Wire where
8181
let a = case t of
8282
Public -> "pub"
8383
Private -> "priv"
84-
suffix = if Text.null label then "" else "_" <> label <> "[" <> show offset <> "]"
84+
suffix = if Text.null label then "" else "_" <> label <> "_" <> show offset
8585
in text (a <> "_input_") <> pretty v <> pretty suffix
8686
pretty (IntermediateWire v) = text "imm_" <> pretty v
8787
pretty (OutputWire v) = text "output_" <> pretty v

0 commit comments

Comments
 (0)