-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat_integrity: added check integrity: functions should be present in… #98
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are on the right way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And negative tests with BrokenPU
src/NITTA/Model/IntegrityCheck.hs
Outdated
checkRel (v1, v2) = case eps_ M.!? v1 of | ||
Just _ | Just (InstructionStep _) <- ins_ M.!? v2 -> [True] | ||
_ -> [] | ||
in and $ concatMap checkRel fromRelation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not like in checkIntermidiateToEndpointRelation
?
when (null vsRemain) $ do | ||
fPID <- scheduleFunction (0 ... sup epAt) function | ||
establishVerticalRelations binds fPID | ||
establishVerticalRelations fPID (endpoints ++ endpoints') | ||
let low = eps ++ map pID (relatedEndpoints process_ $ variables function) | ||
establishVerticalRelations fPID low |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these hlint suggestions are for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We close to the finish line here, but I found one general issue: we don't check relations with CADSteps.
So we need to end our work here and after rebase: #107
@@ -64,6 +64,8 @@ data Broken v x t = Broken | |||
, -- |lost source endpoint due synthesis | |||
lostEndpointSource :: Bool | |||
, wrongAttr :: Bool | |||
, -- | lost vertical relation | |||
lostVerticalRelation :: Bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Split it into different types of error:
- function without endpoints
- endpoint without function
- instruction without endpoint
- endpoint without instruction
- now all function variables covered by endpoints
- etc
… steps, their variables should have Endpoints
…on for Broken epDecision
…ded templates for future typeclass.
… to be able to test integrity.
d537fc2
to
02bf39c
Compare
…ns, added detailed error (debug purpose). Rearranged tests in broken.
Work finished in: #202 |
Work finished here: #202 |
#72
Now it has two checks:
Could you please check am I on a right way and tell about test fail?
WIP