recategorized by
809 views
1 votes
1 votes

Translate the executable statements of the following Pascal Program into quadruples. Assume that integer and real values require four words each.

repeat
            flag[i]:=true;
        while turn !=i
        do begin
        while flag[j] do skip
        turn:=i;
        end
        
        critical section
        
        flag[i]:=false;
    until false
    Program Test;
    var i:integer;
        a: array [1...10] of real;
    begin   i:=0;
            While   i:<=10 do
                begin
                    a[i]:=0;
                    i:=i+1
            end;
    end.
recategorized by

1 Answer

Related questions

8 votes
8 votes
1 answer
1
go_editor asked Dec 19, 2016
2,417 views
Construct a DAG for the following set of quadruples:E:=A+BF:=E-CG:=F*DH:=A+BI:=I-CJ:=I+G
1 votes
1 votes
1 answer
4