Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions brat/Brat/Checker/Helpers.hs
Original file line number Diff line number Diff line change
Expand Up @@ -481,13 +481,8 @@ buildNatVal nv@(NumValue n gro) = case n of

buildSM :: StrictMono (VVar Z) -> Checking Src
buildSM (StrictMono k mono) = do
-- Calculate 2^k as `factor`
two <- buildNum 2
kDangling <- buildNum k
((lhs,rhs),factor) <- buildArithOp Pow
req $ Wire (end two, TNat, end lhs)
req $ Wire (end kDangling, TNat, end rhs)
-- Multiply mono by 2^k
factor <- buildNum $ 2 ^ k
-- Multiply mono by 2^k; note we could avoid this if k==0
((lhs,rhs),out) <- buildArithOp Mul
monoDangling <- buildMono mono
req $ Wire (end factor, TNat, end lhs)
Expand Down
1 change: 0 additions & 1 deletion brat/test/Test/Compile/Hugr.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ nonCompilingExamples = expectedCheckingFails ++ expectedParsingFails ++
,"fanout" -- Contains Selectors
,"vectorise" -- Generates MapFun nodes which aren't implemented yet
,"batcher-merge-sort" -- Generates MapFun nodes which aren't implemented yet
,"infer" -- Generates `Pow` nodes which aren't implemented yet
-- Victims of #13
,"arith"
,"cqcconf"
Expand Down