; LLVM IR from Aakriti05/DSP-implementation_LMS_RNN :: rnn (gru_single_cell)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@gru_bias = external dso_local global [48 x double], align 16
@kernel = external dso_local global [48 x double], align 16
@recurrent_kernel = external dso_local global [16 x [48 x double]], align 16

; Function Attrs: nounwind uwtable
declare dso_local ptr @hadamard(ptr noundef, ptr noundef) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @sum_funct_2D(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @sub_1(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @sigma(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @thanh(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @dot(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @recurrent_dot(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @bias_add(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local ptr @gru_single_cell(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca [16 x ptr], align 16
  %19 = alloca i32, align 4
  %20 = alloca [16 x ptr], align 16
  %21 = alloca i32, align 4
  %22 = alloca [16 x ptr], align 16
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %39, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %40, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %41, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %42, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %43, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %44, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %45 = call noalias ptr @malloc(i64 noundef 128) #4
  store ptr %45, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %46 = call noalias ptr @malloc(i64 noundef 128) #4
  store ptr %46, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %47 = call noalias ptr @malloc(i64 noundef 128) #4
  store ptr %47, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %48 = call noalias ptr @malloc(i64 noundef 128) #4
  store ptr %48, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %49 = call noalias ptr @malloc(i64 noundef 128) #4
  store ptr %49, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %50 = call noalias ptr @malloc(i64 noundef 128) #4
  store ptr %50, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %108, %2
  %52 = load i32, ptr %17, align 4, !tbaa !9
  %53 = icmp slt i32 %52, 16
  br i1 %53, label %55, label %54

54:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  br label %111

55:                                               ; preds = %51
  %56 = load i32, ptr %17, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [48 x double], ptr @kernel, i64 0, i64 %57
  %59 = load double, ptr %58, align 8, !tbaa !11
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = load i32, ptr %17, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds double, ptr %60, i64 %62
  store double %59, ptr %63, align 8, !tbaa !11
  %64 = load i32, ptr %17, align 4, !tbaa !9
  %65 = add nsw i32 16, %64
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [48 x double], ptr @kernel, i64 0, i64 %66
  %68 = load double, ptr %67, align 8, !tbaa !11
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = load i32, ptr %17, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds double, ptr %69, i64 %71
  store double %68, ptr %72, align 8, !tbaa !11
  %73 = load i32, ptr %17, align 4, !tbaa !9
  %74 = add nsw i32 32, %73
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [48 x double], ptr @kernel, i64 0, i64 %75
  %77 = load double, ptr %76, align 8, !tbaa !11
  %78 = load ptr, ptr %13, align 8, !tbaa !5
  %79 = load i32, ptr %17, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds double, ptr %78, i64 %80
  store double %77, ptr %81, align 8, !tbaa !11
  %82 = load i32, ptr %17, align 4, !tbaa !9
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [48 x double], ptr @gru_bias, i64 0, i64 %83
  %85 = load double, ptr %84, align 8, !tbaa !11
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  %87 = load i32, ptr %17, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds double, ptr %86, i64 %88
  store double %85, ptr %89, align 8, !tbaa !11
  %90 = load i32, ptr %17, align 4, !tbaa !9
  %91 = add nsw i32 16, %90
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [48 x double], ptr @gru_bias, i64 0, i64 %92
  %94 = load double, ptr %93, align 8, !tbaa !11
  %95 = load ptr, ptr %15, align 8, !tbaa !5
  %96 = load i32, ptr %17, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds double, ptr %95, i64 %97
  store double %94, ptr %98, align 8, !tbaa !11
  %99 = load i32, ptr %17, align 4, !tbaa !9
  %100 = add nsw i32 32, %99
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [48 x double], ptr @gru_bias, i64 0, i64 %101
  %103 = load double, ptr %102, align 8, !tbaa !11
  %104 = load ptr, ptr %16, align 8, !tbaa !5
  %105 = load i32, ptr %17, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds double, ptr %104, i64 %106
  store double %103, ptr %107, align 8, !tbaa !11
  br label %108

108:                                              ; preds = %55
  %109 = load i32, ptr %17, align 4, !tbaa !9
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %17, align 4, !tbaa !9
  br label %51, !llvm.loop !13

111:                                              ; preds = %54
  call void @llvm.lifetime.start.p0(i64 128, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %112

112:                                              ; preds = %121, %111
  %113 = load i32, ptr %19, align 4, !tbaa !9
  %114 = icmp slt i32 %113, 16
  br i1 %114, label %116, label %115

115:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  br label %124

116:                                              ; preds = %112
  %117 = call noalias ptr @malloc(i64 noundef 128) #4
  %118 = load i32, ptr %19, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [16 x ptr], ptr %18, i64 0, i64 %119
  store ptr %117, ptr %120, align 8, !tbaa !5
  br label %121

121:                                              ; preds = %116
  %122 = load i32, ptr %19, align 4, !tbaa !9
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %19, align 4, !tbaa !9
  br label %112, !llvm.loop !15

124:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 128, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %125

125:                                              ; preds = %134, %124
  %126 = load i32, ptr %21, align 4, !tbaa !9
  %127 = icmp slt i32 %126, 16
  br i1 %127, label %129, label %128

128:                                              ; preds = %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  br label %137

129:                                              ; preds = %125
  %130 = call noalias ptr @malloc(i64 noundef 128) #4
  %131 = load i32, ptr %21, align 4, !tbaa !9
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [16 x ptr], ptr %20, i64 0, i64 %132
  store ptr %130, ptr %133, align 8, !tbaa !5
  br label %134

134:                                              ; preds = %129
  %135 = load i32, ptr %21, align 4, !tbaa !9
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %21, align 4, !tbaa !9
  br label %125, !llvm.loop !16

137:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 128, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %138

138:                                              ; preds = %147, %137
  %139 = load i32, ptr %23, align 4, !tbaa !9
  %140 = icmp slt i32 %139, 16
  br i1 %140, label %142, label %141

141:                                              ; preds = %138
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  br label %150

142:                                              ; preds = %138
  %143 = call noalias ptr @malloc(i64 noundef 128) #4
  %144 = load i32, ptr %23, align 4, !tbaa !9
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [16 x ptr], ptr %22, i64 0, i64 %145
  store ptr %143, ptr %146, align 8, !tbaa !5
  br label %147

147:                                              ; preds = %142
  %148 = load i32, ptr %23, align 4, !tbaa !9
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %23, align 4, !tbaa !9
  br label %138, !llvm.loop !17

150:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %151

151:                                              ; preds = %209, %150
  %152 = load i32, ptr %24, align 4, !tbaa !9
  %153 = icmp slt i32 %152, 16
  br i1 %153, label %155, label %154

154:                                              ; preds = %151
  store i32 14, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  br label %212

155:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %156

156:                                              ; preds = %205, %155
  %157 = load i32, ptr %26, align 4, !tbaa !9
  %158 = icmp slt i32 %157, 16
  br i1 %158, label %160, label %159

159:                                              ; preds = %156
  store i32 17, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  br label %208

160:                                              ; preds = %156
  %161 = load i32, ptr %26, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 %162
  %164 = load i32, ptr %24, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [48 x double], ptr %163, i64 0, i64 %165
  %167 = load double, ptr %166, align 8, !tbaa !11
  %168 = load i32, ptr %26, align 4, !tbaa !9
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [16 x ptr], ptr %18, i64 0, i64 %169
  %171 = load ptr, ptr %170, align 8, !tbaa !5
  %172 = load i32, ptr %24, align 4, !tbaa !9
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds double, ptr %171, i64 %173
  store double %167, ptr %174, align 8, !tbaa !11
  %175 = load i32, ptr %26, align 4, !tbaa !9
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 %176
  %178 = load i32, ptr %24, align 4, !tbaa !9
  %179 = add nsw i32 16, %178
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [48 x double], ptr %177, i64 0, i64 %180
  %182 = load double, ptr %181, align 8, !tbaa !11
  %183 = load i32, ptr %26, align 4, !tbaa !9
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [16 x ptr], ptr %20, i64 0, i64 %184
  %186 = load ptr, ptr %185, align 8, !tbaa !5
  %187 = load i32, ptr %24, align 4, !tbaa !9
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds double, ptr %186, i64 %188
  store double %182, ptr %189, align 8, !tbaa !11
  %190 = load i32, ptr %26, align 4, !tbaa !9
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 %191
  %193 = load i32, ptr %24, align 4, !tbaa !9
  %194 = add nsw i32 32, %193
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [48 x double], ptr %192, i64 0, i64 %195
  %197 = load double, ptr %196, align 8, !tbaa !11
  %198 = load i32, ptr %26, align 4, !tbaa !9
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [16 x ptr], ptr %22, i64 0, i64 %199
  %201 = load ptr, ptr %200, align 8, !tbaa !5
  %202 = load i32, ptr %24, align 4, !tbaa !9
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds double, ptr %201, i64 %203
  store double %197, ptr %204, align 8, !tbaa !11
  br label %205

205:                                              ; preds = %160
  %206 = load i32, ptr %26, align 4, !tbaa !9
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %26, align 4, !tbaa !9
  br label %156, !llvm.loop !18

208:                                              ; preds = %159
  br label %209

209:                                              ; preds = %208
  %210 = load i32, ptr %24, align 4, !tbaa !9
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr %24, align 4, !tbaa !9
  br label %151, !llvm.loop !19

212:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  %213 = load ptr, ptr %5, align 8, !tbaa !5
  %214 = load ptr, ptr %11, align 8, !tbaa !5
  %215 = call ptr @dot(ptr noundef %213, ptr noundef %214)
  store ptr %215, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  %216 = load ptr, ptr %6, align 8, !tbaa !5
  %217 = load ptr, ptr %12, align 8, !tbaa !5
  %218 = call ptr @dot(ptr noundef %216, ptr noundef %217)
  store ptr %218, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #3
  %219 = load ptr, ptr %7, align 8, !tbaa !5
  %220 = load ptr, ptr %13, align 8, !tbaa !5
  %221 = call ptr @dot(ptr noundef %219, ptr noundef %220)
  store ptr %221, ptr %29, align 8, !tbaa !5
  %222 = load ptr, ptr %27, align 8, !tbaa !5
  %223 = load ptr, ptr %14, align 8, !tbaa !5
  %224 = call ptr @bias_add(ptr noundef %222, ptr noundef %223)
  store ptr %224, ptr %27, align 8, !tbaa !5
  %225 = load ptr, ptr %28, align 8, !tbaa !5
  %226 = load ptr, ptr %15, align 8, !tbaa !5
  %227 = call ptr @bias_add(ptr noundef %225, ptr noundef %226)
  store ptr %227, ptr %28, align 8, !tbaa !5
  %228 = load ptr, ptr %29, align 8, !tbaa !5
  %229 = load ptr, ptr %16, align 8, !tbaa !5
  %230 = call ptr @bias_add(ptr noundef %228, ptr noundef %229)
  store ptr %230, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #3
  %231 = load ptr, ptr %8, align 8, !tbaa !5
  %232 = getelementptr inbounds [16 x ptr], ptr %18, i64 0, i64 0
  %233 = call ptr @recurrent_dot(ptr noundef %231, ptr noundef %232)
  store ptr %233, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #3
  %234 = load ptr, ptr %9, align 8, !tbaa !5
  %235 = getelementptr inbounds [16 x ptr], ptr %20, i64 0, i64 0
  %236 = call ptr @recurrent_dot(ptr noundef %234, ptr noundef %235)
  store ptr %236, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #3
  %237 = load ptr, ptr %27, align 8, !tbaa !5
  %238 = load ptr, ptr %30, align 8, !tbaa !5
  %239 = call ptr @sum_funct_2D(ptr noundef %237, ptr noundef %238)
  %240 = call ptr @sigma(ptr noundef %239)
  store ptr %240, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #3
  %241 = load ptr, ptr %28, align 8, !tbaa !5
  %242 = load ptr, ptr %31, align 8, !tbaa !5
  %243 = call ptr @sum_funct_2D(ptr noundef %241, ptr noundef %242)
  %244 = call ptr @sigma(ptr noundef %243)
  store ptr %244, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #3
  %245 = load ptr, ptr %33, align 8, !tbaa !5
  %246 = load ptr, ptr %10, align 8, !tbaa !5
  %247 = call ptr @hadamard(ptr noundef %245, ptr noundef %246)
  %248 = getelementptr inbounds [16 x ptr], ptr %22, i64 0, i64 0
  %249 = call ptr @recurrent_dot(ptr noundef %247, ptr noundef %248)
  store ptr %249, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #3
  %250 = load ptr, ptr %29, align 8, !tbaa !5
  %251 = load ptr, ptr %34, align 8, !tbaa !5
  %252 = call ptr @sum_funct_2D(ptr noundef %250, ptr noundef %251)
  %253 = call ptr @thanh(ptr noundef %252)
  store ptr %253, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #3
  %254 = load ptr, ptr %32, align 8, !tbaa !5
  %255 = load ptr, ptr %3, align 8, !tbaa !5
  %256 = call ptr @hadamard(ptr noundef %254, ptr noundef %255)
  %257 = load ptr, ptr %32, align 8, !tbaa !5
  %258 = call ptr @sub_1(ptr noundef %257)
  %259 = load ptr, ptr %35, align 8, !tbaa !5
  %260 = call ptr @hadamard(ptr noundef %258, ptr noundef %259)
  %261 = call ptr @sum_funct_2D(ptr noundef %256, ptr noundef %260)
  store ptr %261, ptr %36, align 8, !tbaa !5
  %262 = load ptr, ptr %35, align 8, !tbaa !5
  store ptr %262, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #3
  %263 = call noalias ptr @malloc(i64 noundef 128) #4
  store ptr %263, ptr %37, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #3
  store i32 0, ptr %38, align 4, !tbaa !9
  br label %264

264:                                              ; preds = %280, %212
  %265 = load i32, ptr %38, align 4, !tbaa !9
  %266 = icmp slt i32 %265, 16
  br i1 %266, label %268, label %267

267:                                              ; preds = %264
  store i32 20, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #3
  br label %283

268:                                              ; preds = %264
  %269 = load ptr, ptr %36, align 8, !tbaa !5
  %270 = getelementptr inbounds ptr, ptr %269, i64 31
  %271 = load ptr, ptr %270, align 8, !tbaa !5
  %272 = load i32, ptr %38, align 4, !tbaa !9
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds double, ptr %271, i64 %273
  %275 = load double, ptr %274, align 8, !tbaa !11
  %276 = load ptr, ptr %37, align 8, !tbaa !5
  %277 = load i32, ptr %38, align 4, !tbaa !9
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds double, ptr %276, i64 %278
  store double %275, ptr %279, align 8, !tbaa !11
  br label %280

280:                                              ; preds = %268
  %281 = load i32, ptr %38, align 4, !tbaa !9
  %282 = add nsw i32 %281, 1
  store i32 %282, ptr %38, align 4, !tbaa !9
  br label %264, !llvm.loop !20

283:                                              ; preds = %267
  %284 = load ptr, ptr %37, align 8, !tbaa !5
  store i32 1, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 128, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 128, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 128, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  ret ptr %284
}

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
attributes #4 = { nounwind allocsize(0) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@gru_bias = external dso_local local_unnamed_addr global [48 x double], align 16
@kernel = external dso_local local_unnamed_addr global [48 x double], align 16
@recurrent_kernel = external dso_local local_unnamed_addr global [16 x [48 x double]], align 16

; Function Attrs: nounwind uwtable
declare dso_local ptr @hadamard(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @sum_funct_2D(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @sub_1(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @sigma(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @thanh(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @dot(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @recurrent_dot(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @bias_add(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noalias noundef ptr @gru_single_cell(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
.preheader.preheader:
  %2 = alloca [16 x ptr], align 16
  %3 = alloca [16 x ptr], align 16
  %4 = alloca [16 x ptr], align 16
  %5 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %6 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %7 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %8 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %9 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %10 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(128) %5, ptr noundef nonnull align 16 dereferenceable(128) @kernel, i64 128, i1 false), !tbaa !5
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(128) %6, ptr noundef nonnull align 16 dereferenceable(128) getelementptr inbounds (i8, ptr @kernel, i64 128), i64 128, i1 false), !tbaa !5
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(128) %7, ptr noundef nonnull align 16 dereferenceable(128) getelementptr inbounds (i8, ptr @kernel, i64 256), i64 128, i1 false), !tbaa !5
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(128) %8, ptr noundef nonnull align 16 dereferenceable(128) @gru_bias, i64 128, i1 false), !tbaa !5
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(128) %9, ptr noundef nonnull align 16 dereferenceable(128) getelementptr inbounds (i8, ptr @gru_bias, i64 128), i64 128, i1 false), !tbaa !5
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(128) %10, ptr noundef nonnull align 16 dereferenceable(128) getelementptr inbounds (i8, ptr @gru_bias, i64 256), i64 128, i1 false), !tbaa !5
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %2) #5
  %11 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  store ptr %11, ptr %2, align 16, !tbaa !9
  %12 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %13 = getelementptr inbounds i8, ptr %2, i64 8
  store ptr %12, ptr %13, align 8, !tbaa !9
  %14 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %15 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr %14, ptr %15, align 16, !tbaa !9
  %16 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %17 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr %16, ptr %17, align 8, !tbaa !9
  %18 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %19 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr %18, ptr %19, align 16, !tbaa !9
  %20 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %21 = getelementptr inbounds i8, ptr %2, i64 40
  store ptr %20, ptr %21, align 8, !tbaa !9
  %22 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %23 = getelementptr inbounds i8, ptr %2, i64 48
  store ptr %22, ptr %23, align 16, !tbaa !9
  %24 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %25 = getelementptr inbounds i8, ptr %2, i64 56
  store ptr %24, ptr %25, align 8, !tbaa !9
  %26 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %27 = getelementptr inbounds i8, ptr %2, i64 64
  store ptr %26, ptr %27, align 16, !tbaa !9
  %28 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %29 = getelementptr inbounds i8, ptr %2, i64 72
  store ptr %28, ptr %29, align 8, !tbaa !9
  %30 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %31 = getelementptr inbounds i8, ptr %2, i64 80
  store ptr %30, ptr %31, align 16, !tbaa !9
  %32 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %33 = getelementptr inbounds i8, ptr %2, i64 88
  store ptr %32, ptr %33, align 8, !tbaa !9
  %34 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %35 = getelementptr inbounds i8, ptr %2, i64 96
  store ptr %34, ptr %35, align 16, !tbaa !9
  %36 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %37 = getelementptr inbounds i8, ptr %2, i64 104
  store ptr %36, ptr %37, align 8, !tbaa !9
  %38 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %39 = getelementptr inbounds i8, ptr %2, i64 112
  store ptr %38, ptr %39, align 16, !tbaa !9
  %40 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %41 = getelementptr inbounds i8, ptr %2, i64 120
  store ptr %40, ptr %41, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %3) #5
  %42 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  store ptr %42, ptr %3, align 16, !tbaa !9
  %43 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %44 = getelementptr inbounds i8, ptr %3, i64 8
  store ptr %43, ptr %44, align 8, !tbaa !9
  %45 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %46 = getelementptr inbounds i8, ptr %3, i64 16
  store ptr %45, ptr %46, align 16, !tbaa !9
  %47 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %48 = getelementptr inbounds i8, ptr %3, i64 24
  store ptr %47, ptr %48, align 8, !tbaa !9
  %49 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %50 = getelementptr inbounds i8, ptr %3, i64 32
  store ptr %49, ptr %50, align 16, !tbaa !9
  %51 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %52 = getelementptr inbounds i8, ptr %3, i64 40
  store ptr %51, ptr %52, align 8, !tbaa !9
  %53 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %54 = getelementptr inbounds i8, ptr %3, i64 48
  store ptr %53, ptr %54, align 16, !tbaa !9
  %55 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %56 = getelementptr inbounds i8, ptr %3, i64 56
  store ptr %55, ptr %56, align 8, !tbaa !9
  %57 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %58 = getelementptr inbounds i8, ptr %3, i64 64
  store ptr %57, ptr %58, align 16, !tbaa !9
  %59 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %60 = getelementptr inbounds i8, ptr %3, i64 72
  store ptr %59, ptr %60, align 8, !tbaa !9
  %61 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %62 = getelementptr inbounds i8, ptr %3, i64 80
  store ptr %61, ptr %62, align 16, !tbaa !9
  %63 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %64 = getelementptr inbounds i8, ptr %3, i64 88
  store ptr %63, ptr %64, align 8, !tbaa !9
  %65 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %66 = getelementptr inbounds i8, ptr %3, i64 96
  store ptr %65, ptr %66, align 16, !tbaa !9
  %67 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %68 = getelementptr inbounds i8, ptr %3, i64 104
  store ptr %67, ptr %68, align 8, !tbaa !9
  %69 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %70 = getelementptr inbounds i8, ptr %3, i64 112
  store ptr %69, ptr %70, align 16, !tbaa !9
  %71 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %72 = getelementptr inbounds i8, ptr %3, i64 120
  store ptr %71, ptr %72, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %4) #5
  %73 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  store ptr %73, ptr %4, align 16, !tbaa !9
  %74 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %75 = getelementptr inbounds i8, ptr %4, i64 8
  store ptr %74, ptr %75, align 8, !tbaa !9
  %76 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %77 = getelementptr inbounds i8, ptr %4, i64 16
  store ptr %76, ptr %77, align 16, !tbaa !9
  %78 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %79 = getelementptr inbounds i8, ptr %4, i64 24
  store ptr %78, ptr %79, align 8, !tbaa !9
  %80 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %81 = getelementptr inbounds i8, ptr %4, i64 32
  store ptr %80, ptr %81, align 16, !tbaa !9
  %82 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %83 = getelementptr inbounds i8, ptr %4, i64 40
  store ptr %82, ptr %83, align 8, !tbaa !9
  %84 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %85 = getelementptr inbounds i8, ptr %4, i64 48
  store ptr %84, ptr %85, align 16, !tbaa !9
  %86 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %87 = getelementptr inbounds i8, ptr %4, i64 56
  store ptr %86, ptr %87, align 8, !tbaa !9
  %88 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %89 = getelementptr inbounds i8, ptr %4, i64 64
  store ptr %88, ptr %89, align 16, !tbaa !9
  %90 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %91 = getelementptr inbounds i8, ptr %4, i64 72
  store ptr %90, ptr %91, align 8, !tbaa !9
  %92 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %93 = getelementptr inbounds i8, ptr %4, i64 80
  store ptr %92, ptr %93, align 16, !tbaa !9
  %94 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %95 = getelementptr inbounds i8, ptr %4, i64 88
  store ptr %94, ptr %95, align 8, !tbaa !9
  %96 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %97 = getelementptr inbounds i8, ptr %4, i64 96
  store ptr %96, ptr %97, align 16, !tbaa !9
  %98 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %99 = getelementptr inbounds i8, ptr %4, i64 104
  store ptr %98, ptr %99, align 8, !tbaa !9
  %100 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %101 = getelementptr inbounds i8, ptr %4, i64 112
  store ptr %100, ptr %101, align 16, !tbaa !9
  %102 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %103 = getelementptr inbounds i8, ptr %4, i64 120
  store ptr %102, ptr %103, align 8, !tbaa !9
  %104 = load ptr, ptr %2, align 16, !tbaa !9
  %105 = load ptr, ptr %3, align 16, !tbaa !9
  %106 = load ptr, ptr %4, align 16, !tbaa !9
  %107 = load ptr, ptr %13, align 8, !tbaa !9
  %108 = load ptr, ptr %44, align 8, !tbaa !9
  %109 = load ptr, ptr %75, align 8, !tbaa !9
  %110 = load ptr, ptr %15, align 16, !tbaa !9
  %111 = load ptr, ptr %46, align 16, !tbaa !9
  %112 = load ptr, ptr %77, align 16, !tbaa !9
  %113 = load ptr, ptr %17, align 8, !tbaa !9
  %114 = load ptr, ptr %48, align 8, !tbaa !9
  %115 = load ptr, ptr %79, align 8, !tbaa !9
  %116 = load ptr, ptr %19, align 16, !tbaa !9
  %117 = load ptr, ptr %50, align 16, !tbaa !9
  %118 = load ptr, ptr %81, align 16, !tbaa !9
  %119 = load ptr, ptr %21, align 8, !tbaa !9
  %120 = load ptr, ptr %52, align 8, !tbaa !9
  %121 = load ptr, ptr %83, align 8, !tbaa !9
  %122 = load ptr, ptr %23, align 16, !tbaa !9
  %123 = load ptr, ptr %54, align 16, !tbaa !9
  %124 = load ptr, ptr %85, align 16, !tbaa !9
  %125 = load ptr, ptr %25, align 8, !tbaa !9
  %126 = load ptr, ptr %56, align 8, !tbaa !9
  %127 = load ptr, ptr %87, align 8, !tbaa !9
  %128 = load ptr, ptr %27, align 16, !tbaa !9
  %129 = load ptr, ptr %58, align 16, !tbaa !9
  %130 = load ptr, ptr %89, align 16, !tbaa !9
  %131 = load ptr, ptr %29, align 8, !tbaa !9
  %132 = load ptr, ptr %60, align 8, !tbaa !9
  %133 = load ptr, ptr %91, align 8, !tbaa !9
  %134 = load ptr, ptr %31, align 16, !tbaa !9
  %135 = load ptr, ptr %62, align 16, !tbaa !9
  %136 = load ptr, ptr %93, align 16, !tbaa !9
  %137 = load ptr, ptr %33, align 8, !tbaa !9
  %138 = load ptr, ptr %64, align 8, !tbaa !9
  %139 = load ptr, ptr %95, align 8, !tbaa !9
  %140 = load ptr, ptr %35, align 16, !tbaa !9
  %141 = load ptr, ptr %66, align 16, !tbaa !9
  %142 = load ptr, ptr %97, align 16, !tbaa !9
  %143 = load ptr, ptr %37, align 8, !tbaa !9
  %144 = load ptr, ptr %68, align 8, !tbaa !9
  %145 = load ptr, ptr %99, align 8, !tbaa !9
  %146 = load ptr, ptr %39, align 16, !tbaa !9
  %147 = load ptr, ptr %70, align 16, !tbaa !9
  %148 = load ptr, ptr %101, align 16, !tbaa !9
  %149 = load ptr, ptr %41, align 8, !tbaa !9
  %150 = load ptr, ptr %72, align 8, !tbaa !9
  %151 = load ptr, ptr %103, align 8, !tbaa !9
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %indvars.iv = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next, %.preheader ]
  %152 = or disjoint i64 %indvars.iv, 16
  %153 = or disjoint i64 %indvars.iv, 32
  %154 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 0, i64 %indvars.iv
  %155 = load double, ptr %154, align 8, !tbaa !5
  %156 = getelementptr inbounds double, ptr %104, i64 %indvars.iv
  store double %155, ptr %156, align 8, !tbaa !5
  %157 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 0, i64 %152
  %158 = load double, ptr %157, align 8, !tbaa !5
  %159 = getelementptr inbounds double, ptr %105, i64 %indvars.iv
  store double %158, ptr %159, align 8, !tbaa !5
  %160 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 0, i64 %153
  %161 = load double, ptr %160, align 8, !tbaa !5
  %162 = getelementptr inbounds double, ptr %106, i64 %indvars.iv
  store double %161, ptr %162, align 8, !tbaa !5
  %163 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 1, i64 %indvars.iv
  %164 = load double, ptr %163, align 8, !tbaa !5
  %165 = getelementptr inbounds double, ptr %107, i64 %indvars.iv
  store double %164, ptr %165, align 8, !tbaa !5
  %166 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 1, i64 %152
  %167 = load double, ptr %166, align 8, !tbaa !5
  %168 = getelementptr inbounds double, ptr %108, i64 %indvars.iv
  store double %167, ptr %168, align 8, !tbaa !5
  %169 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 1, i64 %153
  %170 = load double, ptr %169, align 8, !tbaa !5
  %171 = getelementptr inbounds double, ptr %109, i64 %indvars.iv
  store double %170, ptr %171, align 8, !tbaa !5
  %172 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 2, i64 %indvars.iv
  %173 = load double, ptr %172, align 8, !tbaa !5
  %174 = getelementptr inbounds double, ptr %110, i64 %indvars.iv
  store double %173, ptr %174, align 8, !tbaa !5
  %175 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 2, i64 %152
  %176 = load double, ptr %175, align 8, !tbaa !5
  %177 = getelementptr inbounds double, ptr %111, i64 %indvars.iv
  store double %176, ptr %177, align 8, !tbaa !5
  %178 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 2, i64 %153
  %179 = load double, ptr %178, align 8, !tbaa !5
  %180 = getelementptr inbounds double, ptr %112, i64 %indvars.iv
  store double %179, ptr %180, align 8, !tbaa !5
  %181 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 3, i64 %indvars.iv
  %182 = load double, ptr %181, align 8, !tbaa !5
  %183 = getelementptr inbounds double, ptr %113, i64 %indvars.iv
  store double %182, ptr %183, align 8, !tbaa !5
  %184 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 3, i64 %152
  %185 = load double, ptr %184, align 8, !tbaa !5
  %186 = getelementptr inbounds double, ptr %114, i64 %indvars.iv
  store double %185, ptr %186, align 8, !tbaa !5
  %187 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 3, i64 %153
  %188 = load double, ptr %187, align 8, !tbaa !5
  %189 = getelementptr inbounds double, ptr %115, i64 %indvars.iv
  store double %188, ptr %189, align 8, !tbaa !5
  %190 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 4, i64 %indvars.iv
  %191 = load double, ptr %190, align 8, !tbaa !5
  %192 = getelementptr inbounds double, ptr %116, i64 %indvars.iv
  store double %191, ptr %192, align 8, !tbaa !5
  %193 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 4, i64 %152
  %194 = load double, ptr %193, align 8, !tbaa !5
  %195 = getelementptr inbounds double, ptr %117, i64 %indvars.iv
  store double %194, ptr %195, align 8, !tbaa !5
  %196 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 4, i64 %153
  %197 = load double, ptr %196, align 8, !tbaa !5
  %198 = getelementptr inbounds double, ptr %118, i64 %indvars.iv
  store double %197, ptr %198, align 8, !tbaa !5
  %199 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 5, i64 %indvars.iv
  %200 = load double, ptr %199, align 8, !tbaa !5
  %201 = getelementptr inbounds double, ptr %119, i64 %indvars.iv
  store double %200, ptr %201, align 8, !tbaa !5
  %202 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 5, i64 %152
  %203 = load double, ptr %202, align 8, !tbaa !5
  %204 = getelementptr inbounds double, ptr %120, i64 %indvars.iv
  store double %203, ptr %204, align 8, !tbaa !5
  %205 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 5, i64 %153
  %206 = load double, ptr %205, align 8, !tbaa !5
  %207 = getelementptr inbounds double, ptr %121, i64 %indvars.iv
  store double %206, ptr %207, align 8, !tbaa !5
  %208 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 6, i64 %indvars.iv
  %209 = load double, ptr %208, align 8, !tbaa !5
  %210 = getelementptr inbounds double, ptr %122, i64 %indvars.iv
  store double %209, ptr %210, align 8, !tbaa !5
  %211 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 6, i64 %152
  %212 = load double, ptr %211, align 8, !tbaa !5
  %213 = getelementptr inbounds double, ptr %123, i64 %indvars.iv
  store double %212, ptr %213, align 8, !tbaa !5
  %214 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 6, i64 %153
  %215 = load double, ptr %214, align 8, !tbaa !5
  %216 = getelementptr inbounds double, ptr %124, i64 %indvars.iv
  store double %215, ptr %216, align 8, !tbaa !5
  %217 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 7, i64 %indvars.iv
  %218 = load double, ptr %217, align 8, !tbaa !5
  %219 = getelementptr inbounds double, ptr %125, i64 %indvars.iv
  store double %218, ptr %219, align 8, !tbaa !5
  %220 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 7, i64 %152
  %221 = load double, ptr %220, align 8, !tbaa !5
  %222 = getelementptr inbounds double, ptr %126, i64 %indvars.iv
  store double %221, ptr %222, align 8, !tbaa !5
  %223 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 7, i64 %153
  %224 = load double, ptr %223, align 8, !tbaa !5
  %225 = getelementptr inbounds double, ptr %127, i64 %indvars.iv
  store double %224, ptr %225, align 8, !tbaa !5
  %226 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 8, i64 %indvars.iv
  %227 = load double, ptr %226, align 8, !tbaa !5
  %228 = getelementptr inbounds double, ptr %128, i64 %indvars.iv
  store double %227, ptr %228, align 8, !tbaa !5
  %229 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 8, i64 %152
  %230 = load double, ptr %229, align 8, !tbaa !5
  %231 = getelementptr inbounds double, ptr %129, i64 %indvars.iv
  store double %230, ptr %231, align 8, !tbaa !5
  %232 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 8, i64 %153
  %233 = load double, ptr %232, align 8, !tbaa !5
  %234 = getelementptr inbounds double, ptr %130, i64 %indvars.iv
  store double %233, ptr %234, align 8, !tbaa !5
  %235 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 9, i64 %indvars.iv
  %236 = load double, ptr %235, align 8, !tbaa !5
  %237 = getelementptr inbounds double, ptr %131, i64 %indvars.iv
  store double %236, ptr %237, align 8, !tbaa !5
  %238 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 9, i64 %152
  %239 = load double, ptr %238, align 8, !tbaa !5
  %240 = getelementptr inbounds double, ptr %132, i64 %indvars.iv
  store double %239, ptr %240, align 8, !tbaa !5
  %241 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 9, i64 %153
  %242 = load double, ptr %241, align 8, !tbaa !5
  %243 = getelementptr inbounds double, ptr %133, i64 %indvars.iv
  store double %242, ptr %243, align 8, !tbaa !5
  %244 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 10, i64 %indvars.iv
  %245 = load double, ptr %244, align 8, !tbaa !5
  %246 = getelementptr inbounds double, ptr %134, i64 %indvars.iv
  store double %245, ptr %246, align 8, !tbaa !5
  %247 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 10, i64 %152
  %248 = load double, ptr %247, align 8, !tbaa !5
  %249 = getelementptr inbounds double, ptr %135, i64 %indvars.iv
  store double %248, ptr %249, align 8, !tbaa !5
  %250 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 10, i64 %153
  %251 = load double, ptr %250, align 8, !tbaa !5
  %252 = getelementptr inbounds double, ptr %136, i64 %indvars.iv
  store double %251, ptr %252, align 8, !tbaa !5
  %253 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 11, i64 %indvars.iv
  %254 = load double, ptr %253, align 8, !tbaa !5
  %255 = getelementptr inbounds double, ptr %137, i64 %indvars.iv
  store double %254, ptr %255, align 8, !tbaa !5
  %256 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 11, i64 %152
  %257 = load double, ptr %256, align 8, !tbaa !5
  %258 = getelementptr inbounds double, ptr %138, i64 %indvars.iv
  store double %257, ptr %258, align 8, !tbaa !5
  %259 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 11, i64 %153
  %260 = load double, ptr %259, align 8, !tbaa !5
  %261 = getelementptr inbounds double, ptr %139, i64 %indvars.iv
  store double %260, ptr %261, align 8, !tbaa !5
  %262 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 12, i64 %indvars.iv
  %263 = load double, ptr %262, align 8, !tbaa !5
  %264 = getelementptr inbounds double, ptr %140, i64 %indvars.iv
  store double %263, ptr %264, align 8, !tbaa !5
  %265 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 12, i64 %152
  %266 = load double, ptr %265, align 8, !tbaa !5
  %267 = getelementptr inbounds double, ptr %141, i64 %indvars.iv
  store double %266, ptr %267, align 8, !tbaa !5
  %268 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 12, i64 %153
  %269 = load double, ptr %268, align 8, !tbaa !5
  %270 = getelementptr inbounds double, ptr %142, i64 %indvars.iv
  store double %269, ptr %270, align 8, !tbaa !5
  %271 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 13, i64 %indvars.iv
  %272 = load double, ptr %271, align 8, !tbaa !5
  %273 = getelementptr inbounds double, ptr %143, i64 %indvars.iv
  store double %272, ptr %273, align 8, !tbaa !5
  %274 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 13, i64 %152
  %275 = load double, ptr %274, align 8, !tbaa !5
  %276 = getelementptr inbounds double, ptr %144, i64 %indvars.iv
  store double %275, ptr %276, align 8, !tbaa !5
  %277 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 13, i64 %153
  %278 = load double, ptr %277, align 8, !tbaa !5
  %279 = getelementptr inbounds double, ptr %145, i64 %indvars.iv
  store double %278, ptr %279, align 8, !tbaa !5
  %280 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 14, i64 %indvars.iv
  %281 = load double, ptr %280, align 8, !tbaa !5
  %282 = getelementptr inbounds double, ptr %146, i64 %indvars.iv
  store double %281, ptr %282, align 8, !tbaa !5
  %283 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 14, i64 %152
  %284 = load double, ptr %283, align 8, !tbaa !5
  %285 = getelementptr inbounds double, ptr %147, i64 %indvars.iv
  store double %284, ptr %285, align 8, !tbaa !5
  %286 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 14, i64 %153
  %287 = load double, ptr %286, align 8, !tbaa !5
  %288 = getelementptr inbounds double, ptr %148, i64 %indvars.iv
  store double %287, ptr %288, align 8, !tbaa !5
  %289 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 15, i64 %indvars.iv
  %290 = load double, ptr %289, align 8, !tbaa !5
  %291 = getelementptr inbounds double, ptr %149, i64 %indvars.iv
  store double %290, ptr %291, align 8, !tbaa !5
  %292 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 15, i64 %152
  %293 = load double, ptr %292, align 8, !tbaa !5
  %294 = getelementptr inbounds double, ptr %150, i64 %indvars.iv
  store double %293, ptr %294, align 8, !tbaa !5
  %295 = getelementptr inbounds [16 x [48 x double]], ptr @recurrent_kernel, i64 0, i64 15, i64 %153
  %296 = load double, ptr %295, align 8, !tbaa !5
  %297 = getelementptr inbounds double, ptr %151, i64 %indvars.iv
  store double %296, ptr %297, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 16
  br i1 %exitcond.not, label %298, label %.preheader, !llvm.loop !11

298:                                              ; preds = %.preheader
  %299 = tail call ptr @dot(ptr noundef %1, ptr noundef %5)
  %300 = tail call ptr @dot(ptr noundef %1, ptr noundef %6)
  %301 = tail call ptr @dot(ptr noundef %1, ptr noundef %7)
  %302 = tail call ptr @bias_add(ptr noundef %299, ptr noundef %8)
  %303 = tail call ptr @bias_add(ptr noundef %300, ptr noundef %9)
  %304 = tail call ptr @bias_add(ptr noundef %301, ptr noundef %10)
  %305 = call ptr @recurrent_dot(ptr noundef %0, ptr noundef nonnull %2)
  %306 = call ptr @recurrent_dot(ptr noundef %0, ptr noundef nonnull %3)
  %307 = call ptr @sum_funct_2D(ptr noundef %302, ptr noundef %305)
  %308 = call ptr @sigma(ptr noundef %307)
  %309 = call ptr @sum_funct_2D(ptr noundef %303, ptr noundef %306)
  %310 = call ptr @sigma(ptr noundef %309)
  %311 = call ptr @hadamard(ptr noundef %310, ptr noundef %0)
  %312 = call ptr @recurrent_dot(ptr noundef %311, ptr noundef nonnull %4)
  %313 = call ptr @sum_funct_2D(ptr noundef %304, ptr noundef %312)
  %314 = call ptr @thanh(ptr noundef %313)
  %315 = call ptr @hadamard(ptr noundef %308, ptr noundef %0)
  %316 = call ptr @sub_1(ptr noundef %308)
  %317 = call ptr @hadamard(ptr noundef %316, ptr noundef %314)
  %318 = call ptr @sum_funct_2D(ptr noundef %315, ptr noundef %317)
  %319 = call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #4
  %320 = getelementptr inbounds i8, ptr %318, i64 248
  %321 = load ptr, ptr %320, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(128) %319, ptr noundef nonnull align 8 dereferenceable(128) %321, i64 128, i1 false), !tbaa !5
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %2) #5
  ret ptr %319
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind allocsize(0) }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass