mirror of
https://github.com/GaloisInc/macaw.git
synced 2024-12-27 16:15:12 +03:00
[refinement] add documentation for takePath function.
This commit is contained in:
parent
183ec2661d
commit
87b3494f77
@ -55,6 +55,8 @@ pathTo blkID (p@(Path i anc _):ps) =
|
||||
pathTo _ [] = Nothing
|
||||
|
||||
|
||||
-- | Returns the first n levels (callers) for the specified Block path
|
||||
-- in the Function.
|
||||
takePath :: Int -> FuncBlockPath arch -> FuncBlockPath arch
|
||||
takePath n (Path blkid anc loop) =
|
||||
if n > 0
|
||||
|
Loading…
Reference in New Issue
Block a user