|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 5120 (0x1400)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, function Pack_Test, seg_0111ed
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦this⟧
with Frame_Examples, Slot, Frame, Instance, Class, Text_Io;
use Frame_Examples;
function Pack_Test
(The_Ball : Frame_Examples.Ball.Object;
The_Box : Frame_Examples.Box.Object;
The_Sticker : Frame_Examples.Sticker.Object) return Boolean is
use Frame_Examples.Ball_Features, Frame_Examples.Box_Features,
Frame_Examples.Sticker_Features, Slot.Operators;
Ok : Boolean;
begin
Text_Io.Put_Line
("=>FIND OBJET TROUVE : value = " & Instance.Image (The_Ball) &
" / kind = " & Instance.Isa (The_Ball) & "(" &
Class.Reference'Image (Class.Value (Instance.Isa (The_Ball))) &
") !!!");
return Ball.Value_Of (The_Object => The_Ball, Attribute => Size) <
Max_Size and then
Ball.Value_Of (The_Object => The_Ball, Attribute => Place) =
In_The_Heap and then
Box.Value_Of (The_Object => The_Box, Attribute => State) =
State_Slot.Value (Is_Free) and then
Box.Value_Of (The_Box, Size) >
Ball.Value_Of (The_Ball, Size) and then
Ball.Value_Of (The_Ball, Colour) =
Sticker.Value_Of (The_Sticker, Colour) and then
not Box.Exist (With_Conditions =>
((Size, Box.Greater,
Ball.Value_Of (The_Ball, Size)),
(Size, Box.Less,
Box.Value_Of (The_Box, Size)))) and then
not Ball.Exist (With_Conditions =>
((Size, Ball.Greater,
Ball.Value_Of (The_Ball, Size)),
(Size, Ball.Less, Max_Size),
(Place, Ball.Equal, In_The_Box)));
-- not Ball.Exist (With_Conditions =>
-- ((Size, Ball.Greater, Ball.Value_Of (The_Ball, Size)),
-- (Size, Ball.Greater, Max_Size),
-- (Place, Ball.Equal, In_The_Box)))
--
end Pack_Test;
nblk1=4
nid=2
hdr6=6
[0x00] rec0=1a rec1=00 rec2=01 rec3=010
[0x01] rec0=13 rec1=00 rec2=04 rec3=028
[0x02] rec0=03 rec1=00 rec2=03 rec3=000
[0x03] rec0=99 rec1=7f rec2=80 rec3=000
tail 0x2150c881c82383eaa57be 0x42a00088462063c03
Free Block Chain:
0x2: 0000 00 00 00 04 80 01 20 01 65 2c 20 42 61 6c 6c 2e ┆ e, Ball.┆