2 -- { dg-options "-O2" }
8 function Content_Value
(Rec
: Kappa_Component_Rec
)
11 return Opt8_Pkg
.Id_To_VN
(Rec
.Content_VN
);
14 function Possible_Values_Count
(V
: Kappa_Component_Ptr
) return Natural is
15 Result
: Natural := 0;
16 List
: Kappa_Component_Ptr
:= V
;
18 while List
/= null loop
25 function VN_Complexity
(Val
: Value_Number
; N
: Natural)
27 Result
: Natural := 0;
31 Result
:= VN_Complexity
(Val
, N
);
32 when Selected_Address_VN
=>
33 Result
:= VN_Complexity
(Val
, N
) + 1;
35 Result
:= Possible_Values_Count
(Val
.Possible_New_Values
)*3;
36 if Val
.Use_Default
then
39 VN_Complexity
(Content_Value
(Val
.old_Value
), N
);