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

⟦62a7c531e⟧ Ada Source

    Length: 9216 (0x2400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Congratulations_Rule, package body Impossible_Rule, package body Mb_Rules_For_Termination, seg_03c2a9, seg_03c4e4, seg_03c68b, seg_03c9c0, seg_04a993, seg_04b401

Derivation

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

E3 Source Code



with Alias;
with Mb_Kbs;
with Mb_Frames;
with Output_Stream;
with Slot;

use Mb_Kbs;
use Mb_Frames;
use Output_Stream;

package body Mb_Rules_For_Termination is

    use Kbs;
    use Kbs.Fact_Base.Predicate;
    use Kbs.Fact_Base.Predicate.System_Defined_Predicate;

    type Rule_Names is (Congratulations, Impossible, No_More);

    ---------------------------------------------------------------------------

    package Congratulations_Rule is
        function  Premiss return Fact_Queries;
        procedure Action (Objects : Fact_Collection);
    end Congratulations_Rule;

    package body Congratulations_Rule is separate;

    ---------------------------------------------------------------------------

    package Impossible_Rule is
        function  Premiss return Fact_Queries;
        procedure Action (Objects : Fact_Collection);
    end Impossible_Rule;

    package body Impossible_Rule is separate;

    ---------------------------------------------------------------------------


    package Rule_Bundle is
       new Rule_Base.Generic_Rule_Bundle
              (The_Bundle => Mb_Kbs.Rules_For_Termination_Bundle,
               Rule_Names => Rule_Names,
               Nothing    => Rule_Names'(No_More),

               Rule_1     => Congratulations,
               Premiss_1  => Congratulations_Rule.Premiss,
               Action_1   => Congratulations_Rule.Action,

               Rule_2     => Impossible,
               Premiss_2  => Impossible_Rule.Premiss,
               Action_2   => Impossible_Rule.Action);



    procedure Do_Action (For_Rule : Kbs.Rule_Id;
                         On_Facts : Kbs.Fact_Collection) is
    begin
        Rule_Bundle.Do_Action (For_Rule, On_Facts);
    end Do_Action;
end Mb_Rules_For_Termination;

E3 Meta Data

    nblk1=8
    nid=7
    hdr6=4
        [0x00] rec0=26 rec1=00 rec2=01 rec3=030
        [0x01] rec0=19 rec1=00 rec2=06 rec3=000
        [0x02] rec0=01 rec1=00 rec2=07 rec3=000
        [0x03] rec0=0a rec1=00 rec2=02 rec3=000
        [0x04] rec0=0f rec1=00 rec2=04 rec3=004
        [0x05] rec0=0e rec1=00 rec2=05 rec3=022
        [0x06] rec0=11 rec1=00 rec2=06 rec3=042
        [0x07] rec0=05 rec1=00 rec2=07 rec3=001
    tail 0x2173a3f6285804e6c1201 0x42a00088462063c03
Free Block Chain:
  0x7: 0000  00 02 00 1c 80 16 52 75 6c 65 73 5f 46 6f 72 5f  ┆      Rules_For_┆
  0x2: 0000  00 05 00 06 80 03 2d 2d 2d 03 6f 6e 5f 32 20 20  ┆      --- on_2  ┆
  0x5: 0000  00 04 00 18 80 01 2c 01 00 11 20 20 20 20 20 20  ┆      ,         ┆
  0x4: 0000  00 03 00 09 80 01 2c 01 00 02 20 20 02 20 20 20  ┆      ,         ┆
  0x3: 0000  00 08 00 39 80 01 2c 01 00 32 20 20 20 20 20 20  ┆   9  ,  2      ┆
  0x8: 0000  00 00 00 1e 00 1b 20 20 20 20 20 20 20 20 20 20  ┆                ┆