1 // See LICENSE for license details.
7 /* REG becomes defined as empty */
8 /* i.e. no register variables */
15 extern char Ch_1_Glob
;
18 void Proc_6(Enumeration Enum_Val_Par
, Enumeration
* Enum_Ref_Par
)
19 /*********************************/
21 /* Enum_Val_Par == Ident_3, Enum_Ref_Par becomes Ident_2 */
23 *Enum_Ref_Par
= Enum_Val_Par
;
24 if (! Func_3 (Enum_Val_Par
))
25 /* then, not executed */
26 *Enum_Ref_Par
= Ident_4
;
30 *Enum_Ref_Par
= Ident_1
;
35 *Enum_Ref_Par
= Ident_1
;
36 else *Enum_Ref_Par
= Ident_4
;
38 case Ident_3
: /* executed */
39 *Enum_Ref_Par
= Ident_2
;
43 *Enum_Ref_Par
= Ident_3
;
49 void Proc_7(int Int_1_Par_Val
, int Int_2_Par_Val
, int* Int_Par_Ref
)
50 /**********************************************/
51 /* executed three times */
52 /* first call: Int_1_Par_Val == 2, Int_2_Par_Val == 3, */
53 /* Int_Par_Ref becomes 7 */
54 /* second call: Int_1_Par_Val == 10, Int_2_Par_Val == 5, */
55 /* Int_Par_Ref becomes 17 */
56 /* third call: Int_1_Par_Val == 6, Int_2_Par_Val == 10, */
57 /* Int_Par_Ref becomes 18 */
61 Int_Loc
= Int_1_Par_Val
+ 2;
62 *Int_Par_Ref
= Int_2_Par_Val
+ Int_Loc
;
66 void Proc_8(Arr_1_Dim Arr_1_Par_Ref
, Arr_2_Dim Arr_2_Par_Ref
, int Int_1_Par_Val
, int Int_2_Par_Val
)
67 /*********************************************************************/
69 /* Int_Par_Val_1 == 3 */
70 /* Int_Par_Val_2 == 7 */
72 REG One_Fifty Int_Index
;
73 REG One_Fifty Int_Loc
;
75 Int_Loc
= Int_1_Par_Val
+ 5;
76 Arr_1_Par_Ref
[Int_Loc
] = Int_2_Par_Val
;
77 Arr_1_Par_Ref
[Int_Loc
+1] = Arr_1_Par_Ref
[Int_Loc
];
78 Arr_1_Par_Ref
[Int_Loc
+30] = Int_Loc
;
79 for (Int_Index
= Int_Loc
; Int_Index
<= Int_Loc
+1; ++Int_Index
)
80 Arr_2_Par_Ref
[Int_Loc
] [Int_Index
] = Int_Loc
;
81 Arr_2_Par_Ref
[Int_Loc
] [Int_Loc
-1] += 1;
82 Arr_2_Par_Ref
[Int_Loc
+20] [Int_Loc
] = Arr_1_Par_Ref
[Int_Loc
];
87 Enumeration
Func_1 (char Ch_1_Par_Val
, char Ch_2_Par_Val
)
88 /*************************************************/
89 /* executed three times */
90 /* first call: Ch_1_Par_Val == 'H', Ch_2_Par_Val == 'R' */
91 /* second call: Ch_1_Par_Val == 'A', Ch_2_Par_Val == 'C' */
92 /* third call: Ch_1_Par_Val == 'B', Ch_2_Par_Val == 'C' */
94 Capital_Letter Ch_1_Loc
;
95 Capital_Letter Ch_2_Loc
;
97 Ch_1_Loc
= Ch_1_Par_Val
;
99 if (Ch_2_Loc
!= Ch_2_Par_Val
)
102 else /* not executed */
104 Ch_1_Glob
= Ch_1_Loc
;
110 Boolean
Func_2(Str_30 Str_1_Par_Ref
, Str_30 Str_2_Par_Ref
)
111 /*************************************************/
113 /* Str_1_Par_Ref == "DHRYSTONE PROGRAM, 1'ST STRING" */
114 /* Str_2_Par_Ref == "DHRYSTONE PROGRAM, 2'ND STRING" */
116 REG One_Thirty Int_Loc
;
117 Capital_Letter Ch_Loc
;
120 while (Int_Loc
<= 2) /* loop body executed once */
121 if (Func_1 (Str_1_Par_Ref
[Int_Loc
],
122 Str_2_Par_Ref
[Int_Loc
+1]) == Ident_1
)
128 if (Ch_Loc
>= 'W' && Ch_Loc
< 'Z')
129 /* then, not executed */
132 /* then, not executed */
136 if (strcmp (Str_1_Par_Ref
, Str_2_Par_Ref
) > 0)
137 /* then, not executed */
149 Boolean
Func_3(Enumeration Enum_Par_Val
)
150 /***************************/
152 /* Enum_Par_Val == Ident_3 */
154 Enumeration Enum_Loc
;
156 Enum_Loc
= Enum_Par_Val
;
157 if (Enum_Loc
== Ident_3
)
160 else /* not executed */