/*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem2.ssy",4)*/ system ControlSystemSDL; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem2.ssy"(1),140(60,25))*/ SIGNAL InCard(integer), Close, Open, NewUser; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem2.ssy"(1),122(67,42))*/ channel /*#E*/ C1 from /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem2.ssy"(1),104(15,15))*/ env to /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem2.ssy"(1),119(105,45))*/ ControlSystem with /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem2.ssy"(1),123(35,42))*/ InCard; endchannel C1; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem2.ssy"(1),131(76,62))*/ channel /*#E*/ C2 from /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem2.ssy"(1),119(105,45))*/ ControlSystem to /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem2.ssy"(1),104(15,15))*/ env with /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem2.ssy"(1),132(25,62))*/ Close,Open, NewUser; endchannel C2; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem2.ssy"(1),119(105,45))*/ block /*#E*/ ControlSystem referenced; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem2.ssy",4)*/ endsystem ControlSystemSDL; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk",4)*/ block ControlSystem; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),233(45,25))*/ SIGNAL InCode(integer), Ask(integer,integer), Answer(integer); /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),128(40,42))*/ signalroute /*#E*/ K1 from /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),104(15,15))*/ env to /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),116(60,45))*/ CardReader with /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),129(37,55))*/ InCard; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),137(118,42))*/ signalroute /*#E*/ K3 from /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),116(60,45))*/ CardReader to /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),119(135,45))*/ CheckPoint with /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),138(120,52))*/ InCode; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),164(33,70))*/ signalroute /*#E*/ K2 from /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),119(135,45))*/ CheckPoint to /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),104(15,15))*/ env with /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),165(32,77))*/ Close, Open, NewUser; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),146(165,77))*/ signalroute /*#E*/ K4 from /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),119(135,45))*/ CheckPoint to /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),122(140,95))*/ Processor with /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),147(165,87))*/ Ask; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),155(150,77))*/ signalroute /*#E*/ K5 from /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),122(140,95))*/ Processor to /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),119(135,45))*/ CheckPoint with /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),156(145,87))*/ Answer; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),116(60,45))*/ process /*#E*/ CardReader(1,1) referenced; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),119(135,45))*/ process /*#E*/ CheckPoint(1,1) referenced; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),122(140,95))*/ process /*#E*/ Processor(1,1) referenced; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),134(7,47))*/ connect /*#E*/ C1 and /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),128(40,42))*/ K1; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),170(7,72))*/ connect /*#E*/ C2 and /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk"(1),164(33,70))*/ K2; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\ControlSystem1.sbk",4)*/ endblock ControlSystem; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\Processor1.spr",4)*/ process Processor; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\Processor1.spr"(1),131(115,30))*/ DCL i integer, j integer; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\Processor1.spr"(1),116(80,5))*/ start /*#E*/ ; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\Processor1.spr"(1),125(80,30))*/ nextstate /*#E*/ Generate; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\Processor1.spr"(1),125(80,30))*/ state /*#E*/ Generate; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\Processor1.spr"(1),128(80,55))*/ input /*#E*/ Ask(i,j); /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\Processor1.spr"(1),137(80,80))*/ decision /*#E*/ i=j; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\Processor1.spr"(1),149(62,87))*/ (TRUE): /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\Processor1.spr"(1),143(55,105))*/ output /*#E*/ Answer(1); /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\Processor1.spr"(1),179(55,130))*/ nextstate /*#E*/ -; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\Processor1.spr"(1),152(127,87))*/ (FALSE): /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\Processor1.spr"(1),146(115,105))*/ output /*#E*/ Answer(0); /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\Processor1.spr"(1),182(115,130))*/ nextstate /*#E*/ -; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\Processor1.spr"(1),137(80,80))*/ enddecision; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\Processor1.spr"(1),125(80,30))*/ endstate; /*#SDTREF(SDL,"D:\\Study\\8 Semester\\Практикум\\Задание 2\\Var.22.New\\Processor1.spr",4)*/ endprocess Processor;