*************** *************** DEFINITION TEST *************** *************** TEST BEGIN /proj/lieber2/stelios/testcases/definition/test1.input -------Flattening the Cd_graph Object------- ***Before Flattening*** A=B. B=C D. C=AI. D=X. D="d" X. F=List(Z). I=Ident. List(S)~{S}. ***Start Flattening*** ***Flattening Done*** ***After Flattening*** A=B. B=C D. C=AI. D=X. D="d" X. F=List(Z). I=Ident. List(S)~{S}. -------Running Undefined Class Check-------- Class Z is not defined in the cd Class X is not defined in the cd Class Ident is not defined in the cd ---------Running Unique Part Check---------- NEXT TEST TEST BEGIN /proj/lieber2/stelios/testcases/definition/test2.input -------Flattening the Cd_graph Object------- ***Before Flattening*** A=B. B=C D. C=Beta1 Epsilon E. D=. E=F. F=. ***Start Flattening*** ***Flattening Done*** ***After Flattening*** A=B. B=C D. C=Beta1 Epsilon E. D=. E=F. F=. -------Running Undefined Class Check-------- Class Beta1 is not defined in the cd Class Epsilon is not defined in the cd ---------Running Unique Part Check---------- NEXT TEST TEST BEGIN /proj/lieber2/stelios/testcases/definition/test3.input -------Flattening the Cd_graph Object------- ***Before Flattening*** X=A "+" B. A=G. A=L. L=Ident String P. ***Start Flattening*** ***Flattening Done*** ***After Flattening*** X=A "+" B. A=G. A=L. L=Ident String P. -------Running Undefined Class Check-------- Class String is not defined in the cd Class Ident is not defined in the cd Class G is not defined in the cd Class P is not defined in the cd Class B is not defined in the cd ---------Running Unique Part Check---------- NEXT TEST TEST BEGIN /proj/lieber2/stelios/testcases/definition/test4.input -------Flattening the Cd_graph Object------- ***Before Flattening*** A:B|C. B:D|E. F=J. D=XX. E=YY. ***Start Flattening*** ***Flattening Done*** ***After Flattening*** A:B|C. B:D|E. F=J. D=XX. E=YY. -------Running Undefined Class Check-------- Class J is not defined in the cd Class Y is not defined in the cd Class C is not defined in the cd Class X is not defined in the cd ---------Running Unique Part Check---------- NEXT TEST TEST BEGIN /proj/lieber2/stelios/testcases/definition/test5.input -------Flattening the Cd_graph Object------- ***Before Flattening*** Main=. A=C. B:C|D. C=EH. D=F. E=. G=H H. H=. I=JK. J=. K=. ***Start Flattening*** ***Flattening Done*** ***After Flattening*** Main=. A=C. B:C|D. C=EH. D=F. E=. G=H H. H=. I=JK. J=. K=. -------Running Undefined Class Check-------- Class F is not defined in the cd ---------Running Unique Part Check---------- NEXT TEST *************** *************** INHERITANCE CYCLE TEST *************** *************** TEST BEGIN /proj/lieber2/stelios/testcases/inheritanceCycle/test1.input -------Flattening the Cd_graph Object------- ***Before Flattening*** A:B|D*common*D. B:E|G. D=A. E=. F:A. G:F. ***Start Flattening*** B NEXT TEST TEST BEGIN /proj/lieber2/stelios/testcases/inheritanceCycle/test2.input -------Flattening the Cd_graph Object------- ***Before Flattening*** A:B|D. D:E. B:C. C:D. E:A. ***Start Flattening*** ***Flattening Done*** ***After Flattening*** A:B|D. D:E. B:C. C:D. E:A. -------Running Undefined Class Check-------- Undefined Class Check pass. ---------Running Unique Part Check---------- Unique Part Check pass. ----------Single Inheritance Check---------- Class D has multiple inheritances. Please fix the multiple inheritance before proceed to Inheritance Cycle Check NEXT TEST TEST BEGIN /proj/lieber2/stelios/testcases/inheritanceCycle/test3.input -------Flattening the Cd_graph Object------- ***Before Flattening*** A:B. B:C. C:A. ***Start Flattening*** ***Flattening Done*** ***After Flattening*** A:B. B:C. C:A. -------Running Undefined Class Check-------- Undefined Class Check pass. ---------Running Unique Part Check---------- Unique Part Check pass. ----------Single Inheritance Check---------- Single Inheritance Check pass. ----------Inheritance Cycle Check----------- Class A has cycle. Class B has cycle. Class C has cycle. NEXT TEST TEST BEGIN /proj/lieber2/stelios/testcases/inheritanceCycle/test4.input -------Flattening the Cd_graph Object------- ***Before Flattening*** Main=String. A=BC. B=. C=B. ***Start Flattening*** ***Flattening Done*** ***After Flattening*** Main=String. A=BC. B=. C=B. -------Running Undefined Class Check-------- Class String is not defined in the cd ---------Running Unique Part Check---------- Unique Part Check pass. ----------Single Inheritance Check---------- Single Inheritance Check pass. ----------Inheritance Cycle Check----------- Inheritance Cycle Check pass NEXT TEST *************** *************** MULTIPLE INHERITANCE TEST *************** *************** TEST BEGIN /proj/lieber2/stelios/testcases/inheritanceSingle/test1.input -------Flattening the Cd_graph Object------- ***Before Flattening*** A:B|C. Z:B|G. B="b". C="c". G="g". ***Start Flattening*** ***Flattening Done*** ***After Flattening*** A:B|C. Z:B|G. B="b". C="c". G="g". -------Running Undefined Class Check-------- Undefined Class Check pass. ---------Running Unique Part Check---------- Unique Part Check pass. ----------Single Inheritance Check---------- Class B has multiple inheritances. Please fix the multiple inheritance before proceed to Inheritance Cycle Check NEXT TEST TEST BEGIN /proj/lieber2/stelios/testcases/inheritanceSingle/test2.input -------Flattening the Cd_graph Object------- ***Before Flattening*** X:L|N|P. G:N|P. Q:A|L|P. ***Start Flattening*** ***Flattening Done*** ***After Flattening*** X:L|N|P. G:N|P. Q:A|L|P. -------Running Undefined Class Check-------- Class A is not defined in the cd Class L is not defined in the cd Class P is not defined in the cd Class N is not defined in the cd ---------Running Unique Part Check---------- Unique Part Check pass. ----------Single Inheritance Check---------- Class L has multiple inheritances. Class P has multiple inheritances. Class N has multiple inheritances. Please fix the multiple inheritance before proceed to Inheritance Cycle Check NEXT TEST *************** *************** UNIQUE PARTS TEST *************** *************** TEST BEGIN /proj/lieber2/stelios/testcases/unique/test1.input -------Flattening the Cd_graph Object------- ***Before Flattening*** A:B1|C*common*Z. B1:B2. B2:B. B=X. C=X X. G="g". X="x". Y=GZ. Z="z". ***Start Flattening*** B1 NEXT TEST TEST BEGIN /proj/lieber2/stelios/testcases/unique/test2.input -------Flattening the Cd_graph Object------- ***Before Flattening*** Main=String. A:B|E commonX. B=XX. C:G|X commonDB D. E=D F D. D=. G=AB. X=. ***Start Flattening*** B This Class needs to be flatten E This Class needs to be flatten G This Class needs to be flatten X This Class needs to be flatten ***Flattening Done*** ***After Flattening*** Main=String. A:B|E. B=XX commonX. C:G|X. E=D F D commonX. D=. G=AB commonDB D. X=commonDB D. -------Running Undefined Class Check-------- Class common is not defined in the cd Class String is not defined in the cd Class F is not defined in the cd ---------Running Unique Part Check---------- NEXT TEST TEST BEGIN /proj/lieber2/stelios/testcases/unique/test3.input -------Flattening the Cd_graph Object------- ***Before Flattening*** Main=. A=C. B:C|D. C=EH. D=F. E=. H=. I=JK. J=. K=. ***Start Flattening*** ***Flattening Done*** ***After Flattening*** Main=. A=C. B:C|D. C=EH. D=F. E=. H=. I=JK. J=. K=. -------Running Undefined Class Check-------- Class F is not defined in the cd ---------Running Unique Part Check---------- NEXT TEST TEST BEGIN /proj/lieber2/stelios/testcases/unique/test4.input -------Flattening the Cd_graph Object------- ***Before Flattening*** Main=String. A:B|E common. B=XXXDB D. C:G. E=D F DX. G=ABDB D. X=. ***Start Flattening*** B This Class needs to be flatten E This Class needs to be flatten ***Flattening Done*** ***After Flattening*** Main=String. A:B|E. B=XXXDB D common. C:G. E=D F DX common. G=ABDB D. X=. -------Running Undefined Class Check-------- Class D is not defined in the cd Class common is not defined in the cd Class String is not defined in the cd Class F is not defined in the cd ---------Running Unique Part Check---------- NEXT TEST *************** *************** TBR TEST *************** *************** TEST BEGIN /proj/lieber2/stelios/testcases/terminal/test1.input -------Flattening the Cd_graph Object------- ***Before Flattening*** R=List(Ident). T=String. V=WIdent. W="w". List(S)~{S}. ***Start Flattening*** ***Flattening Done*** ***After Flattening*** R=List(Ident). T=String. V=WIdent. W="w". List(S)~{S}. -------Running Undefined Class Check-------- Class String is not defined in the cd Class Ident is not defined in the cd ---------Running Unique Part Check---------- NEXT TEST TEST BEGIN /proj/lieber2/stelios/testcases/terminal/test2.input -------Flattening the Cd_graph Object------- ***Before Flattening*** B:C|D commonH. C=String E Ident. D=E. H=Boolean V. E=. V=. ***Start Flattening*** C This Class needs to be flatten D This Class needs to be flatten ***Flattening Done*** ***After Flattening*** B:C|D. C=String E Ident commonH. D=E commonH. H=Boolean V. E=. V=. -------Running Undefined Class Check-------- Class Ident is not defined in the cd Class Boolean is not defined in the cd Class common is not defined in the cd Class String is not defined in the cd ---------Running Unique Part Check---------- NEXT TEST TEST BEGIN /proj/lieber2/stelios/testcases/terminal/test3.input -------Flattening the Cd_graph Object------- ***Before Flattening*** B:C|D common String. C=String. D=Ident. ***Start Flattening*** C This Class needs to be flatten D This Class needs to be flatten ***Flattening Done*** ***After Flattening*** B:C|D. C=String common String. D=Ident common String. -------Running Undefined Class Check-------- Class Ident is not defined in the cd Class String is not defined in the cd Class common is not defined in the cd ---------Running Unique Part Check---------- NEXT TEST *************** *************** FLATTEN TEST *************** *************** TEST BEGIN /proj/lieber2/stelios/testcases/flatten/test1.input -------Flattening the Cd_graph Object------- ***Before Flattening*** B:C|D. C=StringH. D=EH. H=Boolean V. E=. V=. ***Start Flattening*** ***Flattening Done*** ***After Flattening*** B:C|D. C=StringH. D=EH. H=Boolean V. E=. V=. -------Running Undefined Class Check-------- Class String is not defined in the cd Class Boolean is not defined in the cd ---------Running Unique Part Check---------- NEXT TEST TEST BEGIN /proj/lieber2/stelios/testcases/flatten/test2.input -------Flattening the Cd_graph Object------- ***Before Flattening*** B:C|D*common*H. C=String. D=E. H=Boolean V. E=. V=. ***Start Flattening*** C This Class needs to be flatten D This Class needs to be flatten ***Flattening Done*** ***After Flattening*** B:C|D*common*. C=StringH. D=EH. H=Boolean V. E=. V=. -------Running Undefined Class Check-------- Class String is not defined in the cd Class Boolean is not defined in the cd ---------Running Unique Part Check---------- NEXT TEST FINAL TEST /proj/lieber2/stelios/testcases/general/final.input -------Flattening the Cd_graph Object------- ***Before Flattening*** Main=. Cd_graph=Nlist(Adjacency). Adjacency=Vertex["("Comma_list(Vertex)")"]Neighbors ".". Neighbors:Neighbors_wc|Repetit_n*common*. Neighbors_wc:Construct_ns|Alternat_ns*common*List(Any_vertex). Construct_ns="=". Alternat_ns=":"Bar_list(Term)[Common]. Common="*common*". Repetit_n="~"Sandwich(Kernel). Kernel=[Term]"{"Sandwich(Term)"}". Any_vertex:Opt_labeled_term|Optional_term|Syntax_vertex. Vertex=Ident. Syntax_vertex:Regular_syntax|Print_command*common*. Print_command:Print_indent|Print_unindent|Print_skip|Print_space*common*. Print_indent="+". Print_unindent="-". Print_skip="*l". Print_space="*s". Regular_syntax=String. Opt_labeled_term:Labeled|Regular*common*Term. Regular=. Labeled="<"Ident ">". Term:Normal*common*Vertex["@"Module_name]["("Comma_list(Term)")"]. Module_name=Ident. Normal=. Optional_term="["Sandwich(Opt_labeled_term)"]". List(S)~{S}. Nlist(S)~S{S}. Bar_list(S)~S{"|" S}. Comma_list(S)~S{"," S}. Sandwich(S)=List(Syntax_vertex)SList(Syntax_vertex). ***Start Flattening*** Construct_ns This Class needs to be flatten Alternat_ns This Class needs to be flatten Regular This Class needs to be flatten Labeled This Class needs to be flatten Normal This Class needs to be flatten ***Flattening Done*** ***After Flattening*** Main=. Cd_graph=Nlist(Adjacency). Adjacency=Vertex["("Comma_list(Vertex)")"]Neighbors ".". Neighbors:Neighbors_wc|Repetit_n*common*. Neighbors_wc:Construct_ns|Alternat_ns*common*. Construct_ns="="List(Any_vertex). Alternat_ns=":"Bar_list(Term)[Common]List(Any_vertex). Common="*common*". Repetit_n="~"Sandwich(Kernel). Kernel=[Term]"{"Sandwich(Term)"}". Any_vertex:Opt_labeled_term|Optional_term|Syntax_vertex. Vertex=Ident. Syntax_vertex:Regular_syntax|Print_command*common*. Print_command:Print_indent|Print_unindent|Print_skip|Print_space*common*. Print_indent="+". Print_unindent="-". Print_skip="*l". Print_space="*s". Regular_syntax=String. Opt_labeled_term:Labeled|Regular*common*. Regular=Term. Labeled="<"Ident ">"Term. Term:Normal*common*. Module_name=Ident. Normal=Vertex["@"Module_name]["("Comma_list(Term)")"]. Optional_term="["Sandwich(Opt_labeled_term)"]". List(S)~{S}. Nlist(S)~S{S}. Bar_list(S)~S{"|" S}. Comma_list(S)~S{"," S}. Sandwich(S)=List(Syntax_vertex)SList(Syntax_vertex). -------Running Undefined Class Check-------- Class Ident is not defined in the cd Class String is not defined in the cd ---------Running Unique Part Check---------- Unique Part Check pass. ----------Single Inheritance Check---------- Single Inheritance Check pass. ----------Inheritance Cycle Check----------- Inheritance Cycle Check pass