Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue links. #265

Merged
merged 1 commit into from
Jan 21, 2024
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
2 changes: 0 additions & 2 deletions app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,6 @@ main = do
( \(SomeNat (_ :: Proxy m), SomeNat (_ :: Proxy b)) -> do
let frontendResult@FrontendResult{frDataFlow, frTrace, frPrettyLog} =
translate exactFrontendType src
-- FIXME: https://nitta.io/nitta-corp/nitta/-/issues/50
-- data for sin_ident
received = [("u#0", map (\i -> read $ show $ sin ((2 :: Double) * 3.14 * 50 * 0.001 * i)) [0 .. toEnum n])]
ioSync = fromJust $ io_sync <|> fromConf toml "ioSync" <|> Just Sync
confMa = toml >>= Just . mkMicroarchitecture ioSync
Expand Down
39 changes: 20 additions & 19 deletions test/NITTA/Model/Problems/Refactor/Accum/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,9 @@ tests =
funcRes = acc [Push Plus (I "a"), Push Plus (I "b"), Push Minus (I "c"), Push Minus (I "d"), Pull (O $ S.fromList ["res"])]
in
[func1, func2, func3] `refactorTo` [funcRes]
-- issue: https://nitta.io/nitta-corp/nitta/-/issues/75
-- , testCase "Complex items sum refactor" $ let
-- TODO: https://github.com/ryukzak/nitta/issues/264
-- , testCase "Complex items sum refactor" $
-- let
-- -- Start algorithm:
-- -- tmp1, tmp2 = a + b
-- -- tmp3, tmp4 = c + d
Expand All @@ -131,21 +132,21 @@ tests =
-- func4 = acc [Push Plus (I "two"), Push Plus (I "tmp2"), Push Plus (I "tmp4"), Pull (O $ S.fromList ["res2"])]
-- func5 = acc [Push Plus (I "res1"), Push Plus (I "res2"), Pull (O $ S.fromList ["res"])]

-- funcRes = acc
-- [ Push Plus (I "one")
-- , Push Plus (I "a")
-- , Push Plus (I "b")
-- , Push Plus (I "c")
-- , Push Plus (I "d")
-- , Push Plus (I "two")
-- , Push Plus (I "a")
-- , Push Plus (I "b")
-- , Push Plus (I "c")
-- , Push Plus (I "d")
-- , Pull (O $ S.fromList ["res"])] :: F String Int
-- df = fsToDataFlowGraph ([func1, func2, func3, func4, func5] :: [F String Int])
-- dfRes = fsToDataFlowGraph ([funcRes] :: [F String Int])
-- option = head $ refactorOptions df
-- dfRefactored = refactorDecision df option
-- in dfRefactored @?= dfRes
-- funcRes =
-- acc
-- [ Push Plus (I "one")
-- , Push Plus (I "a")
-- , Push Plus (I "b")
-- , Push Plus (I "c")
-- , Push Plus (I "d")
-- , Push Plus (I "two")
-- , Push Plus (I "a")
-- , Push Plus (I "b")
-- , Push Plus (I "c")
-- , Push Plus (I "d")
-- , Pull (O $ S.fromList ["res"])
-- ] ::
-- F String Int
-- in
-- [func1, func2, func3, func4, func5] `refactorTo` [funcRes]
]
2 changes: 0 additions & 2 deletions test/NITTA/Model/ProcessorUnits/IO/SPI/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ import Test.Tasty (TestTree, testGroup)
import Test.Tasty.HUnit (testCase)
import Test.Tasty.TH

-- TODO: https://github.com/ryukzak/nitta/issues/122

test_multiple_receives =
[ testCase "receive two variables" $
void $
Expand Down