DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

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 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ B T

⟦611bbbe15⟧ TextFile

    Length: 1667 (0x683)
    Types: TextFile
    Names: »B«

Derivation

└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 
└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦e24fb53b7⟧ 
            └─⟦this⟧ 

TextFile

separate (Fqa_Bundle)
package body Find_Closest_Sup_Rule is
    function Premiss return Fact_Queries is  
    begin  
        return (Questions.Exist ((Number => Define_As (N))),

                Answers.Absent ((Number           => Is_Equal (N),  
                                 Value | Erasable => Is_Any)),

                Answers.Exist ((Number => Define_As (O) and Is_Greater (N),
                                Value | Erasable => Is_Any)),

                Answers.Absent ((Number => Is_Less (O) and Is_Greater (N),  
                                 Value | Erasable => Is_Any)));


    end Premiss;


    procedure Action (The_Facts : Fact_Collection) is
        The_Answer  : Fact_Name renames The_Facts (3);
        The_Number  : Integer := Slot.Get (Answers.Get (The_Answer, Number));
        The_Value   : Integer := Slot.Get (Answers.Get (The_Answer, Value));
        Is_Erasable : Boolean := Slot.Get (Answers.Get (The_Answer, Erasable));
        use Output_Stream;
    begin
        New_Line (Standard_Output);
        New_Line (Standard_Output);
        Put_Line ("---------- Find_Closest_Sup_Rule action ----------",
                  Standard_Output);
        New_Line (Standard_Output);
        if Is_Erasable then
            Answers.Change (The_Answer, Number, Slot.Value (The_Number - 1));
            Answers.Change (The_Answer, Value,
                            Slot.Value (The_Value / The_Number));
        else
            Answers.Add ((Slot.Value (The_Number - 1),
                          Slot.Value (The_Value / The_Number),
                          Slot.Value (True)));
        end if;

    end Action;
end Find_Closest_Sup_Rule;