DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦8b5c46990⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Iterate_Rule, seg_02bab9, separate Many_Objects_Rules

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦5a81ac88f⟧ »Space Info Vol 1« 
        └─⟦this⟧ 

E3 Source Code



with Text_Io;
separate (Many_Objects_Rules)
package body Iterate_Rule is

    function Premiss return Fact_Base.Queries is
        The_State : Condition.Alias := Alias'(S);
    begin
        return (States.Exist
                   ((Value          => Is_Greater (0) and  
                                          Say_It_Is (The_State),
                     Max_Iterations => Is_Greater_Or_Equal (The_State),
                     Max_Objects    => Is_Any)),
                Numbers.Exist ((Value => Is_Equal (0))));
    end Premiss;


    procedure Action (The_Facts : Fact_Base.Collection) is
        The_State        : Fact_Base.Object renames The_Facts (1);  
        The_Number       : Fact_Base.Object renames The_Facts (2);  
        The_Iteration    : constant Integer :=
           States.Get (The_State, Slot => Value);
        The_Object_Count : constant Integer :=
           States.Get (The_State, Slot => Max_Objects);
    begin
        -- Text_Io.Put_Line ("End of iteration =>" &
        --                   Integer'Image (The_Iteration));
        States.Change (The_State, Value, The_Iteration + 1);
        Numbers.Change (The_Number, Value, The_Object_Count);
    end Action;
end Iterate_Rule;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=1a rec1=00 rec2=01 rec3=030
        [0x01] rec0=06 rec1=00 rec2=02 rec3=001
    tail 0x21523dfc683ef740d712c 0x42a00088462063c03