Skip to content

Commit

Permalink
Change Variable Printing
Browse files Browse the repository at this point in the history
Changes variable wire printing for to-circuit function. Now the N-th
entry is printed as `inN` and the test-call right had side is `out`
  • Loading branch information
agureev committed Dec 18, 2023
1 parent a9c86b4 commit 5fd7bdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/seqn/trans.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ and skip 0es, making non-zero entries into wires"
(wires (loop for i from 1 to wire-count
collect (vamp:make-wire
:var (intern
(format nil "X~a" (- wire-count i))
(format nil "in~a" (- wire-count i))
:keyword)))))
(list
(vamp:make-alias
Expand All @@ -53,7 +53,7 @@ an equality as foo x1 ... xn = y"
:lhs (if (zerop (length inputs))
(vamp:make-wire :var name)
(vamp:make-application :func name :arguments inputs))
:rhs (vamp:make-wire :var :y)))))
:rhs (vamp:make-wire :var :out)))))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; SeqN to Vamp-IR Compilation
Expand Down

0 comments on commit 5fd7bdf

Please sign in to comment.