// ************************************************************************** // // // // 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 // // // // ************************************************************************** // [4][4]nat a; [4][4]nat b; [4][4]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_1 = a[0][0]; t_2 = a[0][1]; t_3 = a[0][2]; t_4 = a[0][3]; t_5 = a[1][0]; t_6 = a[1][1]; t_7 = a[1][2]; t_8 = a[1][3]; t_9 = a[2][0]; t_10 = a[2][1]; t_11 = a[2][2]; t_12 = a[2][3]; t_13 = a[3][0]; t_14 = a[3][1]; t_15 = a[3][2]; t_16 = a[3][3]; t_17 = b[0][0]; t_18 = b[0][1]; t_19 = b[0][2]; t_20 = b[0][3]; t_21 = b[1][0]; t_22 = b[1][1]; t_23 = b[1][2]; t_24 = b[1][3]; t_25 = b[2][0]; t_26 = b[2][1]; t_27 = b[2][2]; t_28 = b[2][3]; t_29 = b[3][0]; t_30 = b[3][1]; t_31 = b[3][2]; t_32 = b[3][3]; t_33 = t_1 * t_17; t_34 = t_2 * t_21; t_35 = t_3 * t_25; t_36 = t_4 * t_29; t_37 = t_33 + t_34; t_38 = t_35 + t_36; t_39 = t_37 + t_38; t_40 = t_1 * t_18; t_41 = t_2 * t_22; t_42 = t_3 * t_26; t_43 = t_4 * t_30; t_44 = t_40 + t_41; t_45 = t_42 + t_43; t_46 = t_44 + t_45; t_47 = t_1 * t_19; t_48 = t_2 * t_23; t_49 = t_3 * t_27; t_50 = t_4 * t_31; t_51 = t_47 + t_48; t_52 = t_49 + t_50; t_53 = t_51 + t_52; t_54 = t_1 * t_20; t_55 = t_2 * t_24; t_56 = t_3 * t_28; t_57 = t_4 * t_32; t_58 = t_54 + t_55; t_59 = t_56 + t_57; t_60 = t_58 + t_59; t_61 = t_5 * t_17; t_62 = t_6 * t_21; t_63 = t_7 * t_25; t_64 = t_8 * t_29; t_65 = t_61 + t_62; t_66 = t_63 + t_64; t_67 = t_65 + t_66; t_68 = t_5 * t_18; t_69 = t_6 * t_22; t_70 = t_7 * t_26; t_71 = t_8 * t_30; t_72 = t_68 + t_69; t_73 = t_70 + t_71; t_74 = t_72 + t_73; t_75 = t_5 * t_19; t_76 = t_6 * t_23; t_77 = t_7 * t_27; t_78 = t_8 * t_31; t_79 = t_75 + t_76; t_80 = t_77 + t_78; t_81 = t_79 + t_80; t_82 = t_5 * t_20; t_83 = t_6 * t_24; t_84 = t_7 * t_28; t_85 = t_8 * t_32; t_86 = t_82 + t_83; t_87 = t_84 + t_85; t_88 = t_86 + t_87; t_89 = t_9 * t_17; t_90 = t_10 * t_21; t_91 = t_11 * t_25; t_92 = t_12 * t_29; t_93 = t_89 + t_90; t_94 = t_91 + t_92; t_95 = t_93 + t_94; t_96 = t_9 * t_18; t_97 = t_10 * t_22; t_98 = t_11 * t_26; t_99 = t_12 * t_30; t_100 = t_96 + t_97; t_101 = t_98 + t_99; t_102 = t_100 + t_101; t_103 = t_9 * t_19; t_104 = t_10 * t_23; t_105 = t_11 * t_27; t_106 = t_12 * t_31; t_107 = t_103 + t_104; t_108 = t_105 + t_106; t_109 = t_107 + t_108; t_110 = t_9 * t_20; t_111 = t_10 * t_24; t_112 = t_11 * t_28; t_113 = t_12 * t_32; t_114 = t_110 + t_111; t_115 = t_112 + t_113; t_116 = t_114 + t_115; t_117 = t_13 * t_17; t_118 = t_14 * t_21; t_119 = t_15 * t_25; t_120 = t_16 * t_29; t_121 = t_117 + t_118; t_122 = t_119 + t_120; t_123 = t_121 + t_122; t_124 = t_13 * t_18; t_125 = t_14 * t_22; t_126 = t_15 * t_26; t_127 = t_16 * t_30; t_128 = t_124 + t_125; t_129 = t_126 + t_127; t_130 = t_128 + t_129; t_131 = t_13 * t_19; t_132 = t_14 * t_23; t_133 = t_15 * t_27; t_134 = t_16 * t_31; t_135 = t_131 + t_132; t_136 = t_133 + t_134; t_137 = t_135 + t_136; t_138 = t_13 * t_20; t_139 = t_14 * t_24; t_140 = t_15 * t_28; t_141 = t_16 * t_32; t_142 = t_138 + t_139; t_143 = t_140 + t_141; t_144 = t_142 + t_143; c[0][0] = t_39; c[0][1] = t_46; c[0][2] = t_53; c[0][3] = t_60; c[1][0] = t_67; c[1][1] = t_74; c[1][2] = t_81; c[1][3] = t_88; c[2][0] = t_95; c[2][1] = t_102; c[2][2] = t_109; c[2][3] = t_116; c[3][0] = t_123; c[3][1] = t_130; c[3][2] = t_137; c[3][3] = t_144; }