Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
Ocarina
Commits
fa79d14f
Commit
fa79d14f
authored
May 15, 2019
by
yoogx
Browse files
* Only instance all subprograms
For openaadl/ocarina#190
parent
c8713534
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/core/instance/ocarina-instances.adb
View file @
fa79d14f
...
...
@@ -58,6 +58,7 @@ package body Ocarina.Instances is
use
Ocarina
.
Namet
;
use
Ocarina
.
Output
;
use
Ocarina
.
ME_AADL
;
use
Ocarina
.
ME_AADL
.
AADL_Tree
.
Nodes
;
use
Ocarina
.
ME_AADL
.
AADL_Instances
.
Nodes
;
use
Ocarina
.
ME_AADL
.
AADL_Instances
.
Entities
;
...
...
@@ -319,8 +320,11 @@ package body Ocarina.Instances is
List_Node
:=
L1
.
First
;
while
Present
(
List_Node
)
loop
if
No
(
Default_Instance
(
List_Node
))
then
Set_Instance
(
List_Node
,
Instantiate_Component
(
Instance_Root
,
List_Node
));
if
ATE
.
Get_Category_Of_Component
(
List_Node
)
=
CC_Subprogram
then
Set_Instance
(
List_Node
,
Instantiate_Component
(
Instance_Root
,
List_Node
));
end
if
;
end
if
;
List_Node
:=
ATN
.
Next_Entity
(
List_Node
);
end
loop
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment