// ************************************************************************** // // // // eses eses // // eses eses // // eses eseses esesese eses Embedded Systems Group // // ese ese ese ese ese // // ese eseseses eseseses ese Department of Computer Science // // eses eses ese eses // // eses eseses eseseses eses University of Kaiserslautern // // eses eses // // // // ************************************************************************** // [5][5]nat a; [5][5]nat b; [5][5]nat c; thread MatrixMult { nat t_1,t_2,t_3,t_4,t_5,t_6,t_7,t_8,t_9,t_10,t_11,t_12,t_13,t_14,t_15,t_16,t_17,t_18,t_19,t_20,t_21,t_22,t_23,t_24,t_25,t_26,t_27,t_28,t_29,t_30,t_31,t_32,t_33,t_34,t_35,t_36,t_37,t_38,t_39,t_40,t_41,t_42,t_43,t_44,t_45,t_46,t_47,t_48,t_49,t_50,t_51,t_52,t_53,t_54,t_55,t_56,t_57,t_58,t_59,t_60,t_61,t_62,t_63,t_64,t_65,t_66,t_67,t_68,t_69,t_70,t_71,t_72,t_73,t_74,t_75,t_76,t_77,t_78,t_79,t_80,t_81,t_82,t_83,t_84,t_85,t_86,t_87,t_88,t_89,t_90,t_91,t_92,t_93,t_94,t_95,t_96,t_97,t_98,t_99,t_100,t_101,t_102,t_103,t_104,t_105,t_106,t_107,t_108,t_109,t_110,t_111,t_112,t_113,t_114,t_115,t_116,t_117,t_118,t_119,t_120,t_121,t_122,t_123,t_124,t_125,t_126,t_127,t_128,t_129,t_130,t_131,t_132,t_133,t_134,t_135,t_136,t_137,t_138,t_139,t_140,t_141,t_142,t_143,t_144,t_145,t_146,t_147,t_148,t_149,t_150,t_151,t_152,t_153,t_154,t_155,t_156,t_157,t_158,t_159,t_160,t_161,t_162,t_163,t_164,t_165,t_166,t_167,t_168,t_169,t_170,t_171,t_172,t_173,t_174,t_175,t_176,t_177,t_178,t_179,t_180,t_181,t_182,t_183,t_184,t_185,t_186,t_187,t_188,t_189,t_190,t_191,t_192,t_193,t_194,t_195,t_196,t_197,t_198,t_199,t_200,t_201,t_202,t_203,t_204,t_205,t_206,t_207,t_208,t_209,t_210,t_211,t_212,t_213,t_214,t_215,t_216,t_217,t_218,t_219,t_220,t_221,t_222,t_223,t_224,t_225,t_226,t_227,t_228,t_229,t_230,t_231,t_232,t_233,t_234,t_235,t_236,t_237,t_238,t_239,t_240,t_241,t_242,t_243,t_244,t_245,t_246,t_247,t_248,t_249,t_250,t_251,t_252,t_253,t_254,t_255,t_256,t_257,t_258,t_259,t_260,t_261,t_262,t_263,t_264,t_265,t_266,t_267,t_268,t_269,t_270,t_271,t_272,t_273,t_274,t_275; t_1 = a[0][0]; t_2 = a[0][1]; t_3 = a[0][2]; t_4 = a[0][3]; t_5 = a[0][4]; t_6 = a[1][0]; t_7 = a[1][1]; t_8 = a[1][2]; t_9 = a[1][3]; t_10 = a[1][4]; t_11 = a[2][0]; t_12 = a[2][1]; t_13 = a[2][2]; t_14 = a[2][3]; t_15 = a[2][4]; t_16 = a[3][0]; t_17 = a[3][1]; t_18 = a[3][2]; t_19 = a[3][3]; t_20 = a[3][4]; t_21 = a[4][0]; t_22 = a[4][1]; t_23 = a[4][2]; t_24 = a[4][3]; t_25 = a[4][4]; t_26 = b[0][0]; t_27 = b[0][1]; t_28 = b[0][2]; t_29 = b[0][3]; t_30 = b[0][4]; t_31 = b[1][0]; t_32 = b[1][1]; t_33 = b[1][2]; t_34 = b[1][3]; t_35 = b[1][4]; t_36 = b[2][0]; t_37 = b[2][1]; t_38 = b[2][2]; t_39 = b[2][3]; t_40 = b[2][4]; t_41 = b[3][0]; t_42 = b[3][1]; t_43 = b[3][2]; t_44 = b[3][3]; t_45 = b[3][4]; t_46 = b[4][0]; t_47 = b[4][1]; t_48 = b[4][2]; t_49 = b[4][3]; t_50 = b[4][4]; t_51 = t_1 * t_26; t_52 = t_2 * t_31; t_53 = t_3 * t_36; t_54 = t_4 * t_41; t_55 = t_5 * t_46; t_56 = t_51 + t_52; t_57 = t_53 + t_54; t_58 = t_56 + t_57; t_59 = t_58 + t_55; t_60 = t_1 * t_27; t_61 = t_2 * t_32; t_62 = t_3 * t_37; t_63 = t_4 * t_42; t_64 = t_5 * t_47; t_65 = t_60 + t_61; t_66 = t_62 + t_63; t_67 = t_65 + t_66; t_68 = t_67 + t_64; t_69 = t_1 * t_28; t_70 = t_2 * t_33; t_71 = t_3 * t_38; t_72 = t_4 * t_43; t_73 = t_5 * t_48; t_74 = t_69 + t_70; t_75 = t_71 + t_72; t_76 = t_74 + t_75; t_77 = t_76 + t_73; t_78 = t_1 * t_29; t_79 = t_2 * t_34; t_80 = t_3 * t_39; t_81 = t_4 * t_44; t_82 = t_5 * t_49; t_83 = t_78 + t_79; t_84 = t_80 + t_81; t_85 = t_83 + t_84; t_86 = t_85 + t_82; t_87 = t_1 * t_30; t_88 = t_2 * t_35; t_89 = t_3 * t_40; t_90 = t_4 * t_45; t_91 = t_5 * t_50; t_92 = t_87 + t_88; t_93 = t_89 + t_90; t_94 = t_92 + t_93; t_95 = t_94 + t_91; t_96 = t_6 * t_26; t_97 = t_7 * t_31; t_98 = t_8 * t_36; t_99 = t_9 * t_41; t_100 = t_10 * t_46; t_101 = t_96 + t_97; t_102 = t_98 + t_99; t_103 = t_101 + t_102; t_104 = t_103 + t_100; t_105 = t_6 * t_27; t_106 = t_7 * t_32; t_107 = t_8 * t_37; t_108 = t_9 * t_42; t_109 = t_10 * t_47; t_110 = t_105 + t_106; t_111 = t_107 + t_108; t_112 = t_110 + t_111; t_113 = t_112 + t_109; t_114 = t_6 * t_28; t_115 = t_7 * t_33; t_116 = t_8 * t_38; t_117 = t_9 * t_43; t_118 = t_10 * t_48; t_119 = t_114 + t_115; t_120 = t_116 + t_117; t_121 = t_119 + t_120; t_122 = t_121 + t_118; t_123 = t_6 * t_29; t_124 = t_7 * t_34; t_125 = t_8 * t_39; t_126 = t_9 * t_44; t_127 = t_10 * t_49; t_128 = t_123 + t_124; t_129 = t_125 + t_126; t_130 = t_128 + t_129; t_131 = t_130 + t_127; t_132 = t_6 * t_30; t_133 = t_7 * t_35; t_134 = t_8 * t_40; t_135 = t_9 * t_45; t_136 = t_10 * t_50; t_137 = t_132 + t_133; t_138 = t_134 + t_135; t_139 = t_137 + t_138; t_140 = t_139 + t_136; t_141 = t_11 * t_26; t_142 = t_12 * t_31; t_143 = t_13 * t_36; t_144 = t_14 * t_41; t_145 = t_15 * t_46; t_146 = t_141 + t_142; t_147 = t_143 + t_144; t_148 = t_146 + t_147; t_149 = t_148 + t_145; t_150 = t_11 * t_27; t_151 = t_12 * t_32; t_152 = t_13 * t_37; t_153 = t_14 * t_42; t_154 = t_15 * t_47; t_155 = t_150 + t_151; t_156 = t_152 + t_153; t_157 = t_155 + t_156; t_158 = t_157 + t_154; t_159 = t_11 * t_28; t_160 = t_12 * t_33; t_161 = t_13 * t_38; t_162 = t_14 * t_43; t_163 = t_15 * t_48; t_164 = t_159 + t_160; t_165 = t_161 + t_162; t_166 = t_164 + t_165; t_167 = t_166 + t_163; t_168 = t_11 * t_29; t_169 = t_12 * t_34; t_170 = t_13 * t_39; t_171 = t_14 * t_44; t_172 = t_15 * t_49; t_173 = t_168 + t_169; t_174 = t_170 + t_171; t_175 = t_173 + t_174; t_176 = t_175 + t_172; t_177 = t_11 * t_30; t_178 = t_12 * t_35; t_179 = t_13 * t_40; t_180 = t_14 * t_45; t_181 = t_15 * t_50; t_182 = t_177 + t_178; t_183 = t_179 + t_180; t_184 = t_182 + t_183; t_185 = t_184 + t_181; t_186 = t_16 * t_26; t_187 = t_17 * t_31; t_188 = t_18 * t_36; t_189 = t_19 * t_41; t_190 = t_20 * t_46; t_191 = t_186 + t_187; t_192 = t_188 + t_189; t_193 = t_191 + t_192; t_194 = t_193 + t_190; t_195 = t_16 * t_27; t_196 = t_17 * t_32; t_197 = t_18 * t_37; t_198 = t_19 * t_42; t_199 = t_20 * t_47; t_200 = t_195 + t_196; t_201 = t_197 + t_198; t_202 = t_200 + t_201; t_203 = t_202 + t_199; t_204 = t_16 * t_28; t_205 = t_17 * t_33; t_206 = t_18 * t_38; t_207 = t_19 * t_43; t_208 = t_20 * t_48; t_209 = t_204 + t_205; t_210 = t_206 + t_207; t_211 = t_209 + t_210; t_212 = t_211 + t_208; t_213 = t_16 * t_29; t_214 = t_17 * t_34; t_215 = t_18 * t_39; t_216 = t_19 * t_44; t_217 = t_20 * t_49; t_218 = t_213 + t_214; t_219 = t_215 + t_216; t_220 = t_218 + t_219; t_221 = t_220 + t_217; t_222 = t_16 * t_30; t_223 = t_17 * t_35; t_224 = t_18 * t_40; t_225 = t_19 * t_45; t_226 = t_20 * t_50; t_227 = t_222 + t_223; t_228 = t_224 + t_225; t_229 = t_227 + t_228; t_230 = t_229 + t_226; t_231 = t_21 * t_26; t_232 = t_22 * t_31; t_233 = t_23 * t_36; t_234 = t_24 * t_41; t_235 = t_25 * t_46; t_236 = t_231 + t_232; t_237 = t_233 + t_234; t_238 = t_236 + t_237; t_239 = t_238 + t_235; t_240 = t_21 * t_27; t_241 = t_22 * t_32; t_242 = t_23 * t_37; t_243 = t_24 * t_42; t_244 = t_25 * t_47; t_245 = t_240 + t_241; t_246 = t_242 + t_243; t_247 = t_245 + t_246; t_248 = t_247 + t_244; t_249 = t_21 * t_28; t_250 = t_22 * t_33; t_251 = t_23 * t_38; t_252 = t_24 * t_43; t_253 = t_25 * t_48; t_254 = t_249 + t_250; t_255 = t_251 + t_252; t_256 = t_254 + t_255; t_257 = t_256 + t_253; t_258 = t_21 * t_29; t_259 = t_22 * t_34; t_260 = t_23 * t_39; t_261 = t_24 * t_44; t_262 = t_25 * t_49; t_263 = t_258 + t_259; t_264 = t_260 + t_261; t_265 = t_263 + t_264; t_266 = t_265 + t_262; t_267 = t_21 * t_30; t_268 = t_22 * t_35; t_269 = t_23 * t_40; t_270 = t_24 * t_45; t_271 = t_25 * t_50; t_272 = t_267 + t_268; t_273 = t_269 + t_270; t_274 = t_272 + t_273; t_275 = t_274 + t_271; c[0][0] = t_59; c[0][1] = t_68; c[0][2] = t_77; c[0][3] = t_86; c[0][4] = t_95; c[1][0] = t_104; c[1][1] = t_113; c[1][2] = t_122; c[1][3] = t_131; c[1][4] = t_140; c[2][0] = t_149; c[2][1] = t_158; c[2][2] = t_167; c[2][3] = t_176; c[2][4] = t_185; c[3][0] = t_194; c[3][1] = t_203; c[3][2] = t_212; c[3][3] = t_221; c[3][4] = t_230; c[4][0] = t_239; c[4][1] = t_248; c[4][2] = t_257; c[4][3] = t_266; c[4][4] = t_275; }