Skip to content

Commit

Permalink
Update inline TODOs. Remove some dead code.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryukzak committed Mar 7, 2022
1 parent 972d9f7 commit 6a65727
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
8 changes: 1 addition & 7 deletions src/NITTA/Model/ProcessIntegrity.hs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ checkVerticalRelations f dom codom errmsg =
)
$ M.keys dom

-- TODO: fix errors in process units
-- TODO: #205 Divider: missing vertical relation between Do instruction and Endpoint
skipIntegrityErrors = ["instruction not related to endpoint: Instruction: Do"]

collectChecks checks = case lefts checks of
Expand All @@ -77,12 +77,6 @@ down2up pu = relationsMap $ mapMaybe get $ relations $ process pu
get Vertical{vUp, vDown} = Just (vDown, vUp)
get _ = Nothing

pid2cad pu = M.fromList $ mapMaybe get $ steps $ process pu
where
get s@Step{pID}
| Just cad <- getCad s = Just (pID, cad)
| otherwise = Nothing

pid2intermediate pu = M.fromList $ mapMaybe get $ steps $ process pu
where
get s@Step{pID}
Expand Down
15 changes: 0 additions & 15 deletions test/NITTA/Model/ProcessorUnits/Broken/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -155,21 +155,6 @@ tests =
, expectFail $ puCoSimTestCase "puCoSimTestCase lostEndpointInVerticalRelation" u{lostEndpointInVerticalRelation = True} [("a", 42)] [brokenBuffer "a" ["b"]]
, expectFail $ puCoSimTestCase "puCoSimTestCase lostInstructionInVerticalRelation" u{lostInstructionInVerticalRelation = True} [("a", 42)] [brokenBuffer "a" ["b"]]
]
-- , testGroup
-- "broken relations integrity check negative coSim"
-- -- nittaCoSimTestCase has isLeaf and isComplete, but Relation alright because of CAD
-- -- TODO: below cases ignores lost because of CAD steps and failed because simulation
-- [ expectFail $ nittaCoSimTestCase "nittaCoSimTestCase lost Endpoints" (maBroken u{lostEndpointRelation = True}) alg
-- , expectFail $ nittaCoSimTestCase "nittaCoSimTestCase lost Instruction" (maBroken u{lostInstructionRelation = True}) alg
-- , expectFail $ typedLuaTestCase (maBroken def{lostEndpointRelation = True}) pInt "typedLuaTestCase lost Endpoints" lua
-- , expectFail $ typedLuaTestCase (maBroken def{lostInstructionRelation = True}) pInt "typedLuaTestCase lost Instruction" lua
-- ]
-- testGroup
-- "broken relations integrity check negative fails"
-- -- TODO: try lua function without break loop
-- [ expectFail $ nittaCoSimTestCase "nittaCoSimTestCase lost Function" (maBroken u{lostFunctionRelation = True}) alg
-- , expectFail $ typedLuaTestCase (maBroken def{lostFunctionRelation = True}) pInt "typedLuaTestCase lost Function" lua
-- ]
]
where
u = def :: Broken T.Text Int Int
Expand Down

0 comments on commit 6a65727

Please sign in to comment.