Skip to content

Commit

Permalink
fix inversion of antibase
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Jan 10, 2025
1 parent 1a24660 commit 917fb0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/compile/invert/un.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ pub static ANTI_PATTERNS: &[&dyn InvertPattern] = &[
&(Select, AntiSelect),
&(Pick, AntiPick),
&(Base, AntiBase),
&(AntiBase, Base),
&MatrixDivPat,
&NoUnder(AntiCouplePat),
&AntiFillPat,
Expand Down
2 changes: 1 addition & 1 deletion src/primitive/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ impl fmt::Display for ImplPrimitive {
UnClip => write!(f, "{Un}{}", Primitive::Sys(SysOp::Clip)),
ProgressiveIndexOf => write!(f, "{Un}{By}{Select}"),
UndoUnbits => write!(f, "{Under}{Un}{Bits}"),
AntiBase => write!(f, "{Under}{Base}"),
AntiBase => write!(f, "{Anti}{Base}"),
UndoReverse { n, .. } => write!(f, "{Under}{Reverse}({n})"),
UndoTransposeN(n, _) => write!(f, "{Under}{Transpose}({n})"),
UndoRotate(n) => write!(f, "{Under}{Rotate}({n})"),
Expand Down

0 comments on commit 917fb0d

Please sign in to comment.