AlpsAnd32.mesa
Copyright © 1984 by Xerox Corporation. All rights reversed.
Created by: Serlet, May 31, 1985 2:46:38 pm PDT
DIRECTORY
AlpsArbiter, AlpsBool, Convert, Rope;
AlpsAnd32: CEDAR PROGRAM
IMPORTS AlpsBool, Convert, Rope =
BEGIN
And32: PUBLIC PROC [n: INT] RETURNS [table: AlpsBool.TableOfVariables] = {
expr: AlpsBool.Expression ← AlpsBool.true;
table ← AlpsBool.InitTableOfVariables[n+1];
FOR i: INT IN [1..n] DO
table[i].name ← Rope.Cat["Input", Convert.RopeFromInt[i]];
expr ← AlpsBool.And[table, expr, AlpsBool.Var[i]];
ENDLOOP;
AlpsBool.AddOutput[table, NEW[AlpsBool.OutputRec ← [name: "Output", expr: expr]]];
};
END.