-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* All concerned entities are now derived from Entity.T. * Less ugly template file names. * All entities are in the same tree now * Enable Assertion checks. * Enabled paralled compilation ('-j0' switch).
- Loading branch information
Showing
21 changed files
with
336 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
------------------------------------------------------------------------------ | ||
-- Copyright (C) 2020 by Heisenbug Ltd. (gh+spat@heisenbug.eu) | ||
-- | ||
-- This work is free. You can redistribute it and/or modify it under the | ||
-- terms of the Do What The Fuck You Want To Public License, Version 2, | ||
-- as published by Sam Hocevar. See the LICENSE file for more details. | ||
------------------------------------------------------------------------------ | ||
pragma License (Unrestricted); | ||
|
||
------------------------------------------------------------------------------ | ||
-- | ||
-- SPARK Proof Analysis Tool | ||
-- | ||
-- S.P.A.T. - A tree holding descendant objects of Entity.T. | ||
-- | ||
------------------------------------------------------------------------------ | ||
|
||
with Ada.Containers.Indefinite_Multiway_Trees; | ||
|
||
package SPAT.Entity.Tree is | ||
|
||
package Implementation is | ||
|
||
package Trees is new | ||
Ada.Containers.Indefinite_Multiway_Trees (Element_Type => T'Class); | ||
|
||
end Implementation; | ||
|
||
type T is new Implementation.Trees.Tree with private; | ||
|
||
subtype Cursor is Implementation.Trees.Cursor; | ||
|
||
No_Element : Cursor renames Implementation.Trees.No_Element; | ||
|
||
function Child_Count (Parent : in Cursor) return Ada.Containers.Count_Type | ||
renames Implementation.Trees.Child_Count; | ||
|
||
function Element (Position : in Cursor) return Entity.T'Class | ||
renames Implementation.Trees.Element; | ||
|
||
function First_Child (Position : in Cursor) return Cursor | ||
renames Implementation.Trees.First_Child; | ||
|
||
function Next_Sibling (Position : in Cursor) return Cursor | ||
renames Implementation.Trees.Next_Sibling; | ||
|
||
procedure Next_Sibling (Position : in out Cursor) | ||
renames Implementation.Trees.Next_Sibling; | ||
|
||
private | ||
|
||
type T is new Implementation.Trees.Tree with null record; | ||
|
||
end SPAT.Entity.Tree; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.