; LLVM IR from hans-ob1/neural_cam_ros :: src/detector (gru_layer)

; 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"

%struct.layer = type { i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float, float, float, float, float, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float, i32, float, float, float, float, float, float, float, i32, i32, float, i32, i32, i32, i32, float, float, float, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64 }
%struct.network_state = type { ptr, ptr, ptr, ptr, i32, i32, %struct.network }
%struct.network = type { ptr, i32, i32, ptr, float, i32, float, float, ptr, i32, ptr, i32, float, float, float, float, i32, i32, i32, ptr, ptr, i32, i32, i32, float, float, float, i32, i32, i32, i32, i32, i32, float, float, float, float, float, i32, ptr }

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0

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

; 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) #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
define dso_local void @forward_gru_layer(ptr noundef byval(%struct.layer) align 8 %0, ptr noundef byval(%struct.network_state) align 8 %1) #3 {
  %3 = alloca %struct.network_state, align 8
  %4 = alloca i32, align 4
  %5 = alloca %struct.layer, align 8
  %6 = alloca %struct.layer, align 8
  %7 = alloca %struct.layer, align 8
  %8 = alloca %struct.layer, align 8
  %9 = alloca %struct.layer, align 8
  %10 = alloca %struct.layer, align 8
  call void @llvm.lifetime.start.p0(i64 232, ptr %3) #5
  call void @llvm.memset.p0.i64(ptr align 8 %3, i8 0, i64 232, i1 false)
  %11 = getelementptr inbounds %struct.network_state, ptr %1, i32 0, i32 4
  %12 = load i32, ptr %11, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.network_state, ptr %3, i32 0, i32 4
  store i32 %12, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 808, ptr %5) #5
  %14 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 128
  %15 = load ptr, ptr %14, align 8, !tbaa !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %5, ptr align 8 %15, i64 808, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.start.p0(i64 808, ptr %6) #5
  %16 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 130
  %17 = load ptr, ptr %16, align 8, !tbaa !21
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %17, i64 808, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.start.p0(i64 808, ptr %7) #5
  %18 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 132
  %19 = load ptr, ptr %18, align 8, !tbaa !22
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 %19, i64 808, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.start.p0(i64 808, ptr %8) #5
  %20 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 129
  %21 = load ptr, ptr %20, align 8, !tbaa !23
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %21, i64 808, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.start.p0(i64 808, ptr %9) #5
  %22 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 131
  %23 = load ptr, ptr %22, align 8, !tbaa !24
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %23, i64 808, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.start.p0(i64 808, ptr %10) #5
  %24 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 133
  %25 = load ptr, ptr %24, align 8, !tbaa !25
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %25, i64 808, i1 false), !tbaa.struct !16
  %26 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  %27 = load i32, ptr %26, align 8, !tbaa !26
  %28 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %29 = load i32, ptr %28, align 8, !tbaa !27
  %30 = mul nsw i32 %27, %29
  %31 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 36
  %32 = load i32, ptr %31, align 4, !tbaa !28
  %33 = mul nsw i32 %30, %32
  %34 = getelementptr inbounds %struct.layer, ptr %5, i32 0, i32 100
  %35 = load ptr, ptr %34, align 8, !tbaa !29
  call void @fill_cpu(i32 noundef %33, float noundef 0.000000e+00, ptr noundef %35, i32 noundef 1)
  %36 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  %37 = load i32, ptr %36, align 8, !tbaa !26
  %38 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %39 = load i32, ptr %38, align 8, !tbaa !27
  %40 = mul nsw i32 %37, %39
  %41 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 36
  %42 = load i32, ptr %41, align 4, !tbaa !28
  %43 = mul nsw i32 %40, %42
  %44 = getelementptr inbounds %struct.layer, ptr %6, i32 0, i32 100
  %45 = load ptr, ptr %44, align 8, !tbaa !29
  call void @fill_cpu(i32 noundef %43, float noundef 0.000000e+00, ptr noundef %45, i32 noundef 1)
  %46 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  %47 = load i32, ptr %46, align 8, !tbaa !26
  %48 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %49 = load i32, ptr %48, align 8, !tbaa !27
  %50 = mul nsw i32 %47, %49
  %51 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 36
  %52 = load i32, ptr %51, align 4, !tbaa !28
  %53 = mul nsw i32 %50, %52
  %54 = getelementptr inbounds %struct.layer, ptr %7, i32 0, i32 100
  %55 = load ptr, ptr %54, align 8, !tbaa !29
  call void @fill_cpu(i32 noundef %53, float noundef 0.000000e+00, ptr noundef %55, i32 noundef 1)
  %56 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  %57 = load i32, ptr %56, align 8, !tbaa !26
  %58 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %59 = load i32, ptr %58, align 8, !tbaa !27
  %60 = mul nsw i32 %57, %59
  %61 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 36
  %62 = load i32, ptr %61, align 4, !tbaa !28
  %63 = mul nsw i32 %60, %62
  %64 = getelementptr inbounds %struct.layer, ptr %8, i32 0, i32 100
  %65 = load ptr, ptr %64, align 8, !tbaa !29
  call void @fill_cpu(i32 noundef %63, float noundef 0.000000e+00, ptr noundef %65, i32 noundef 1)
  %66 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  %67 = load i32, ptr %66, align 8, !tbaa !26
  %68 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %69 = load i32, ptr %68, align 8, !tbaa !27
  %70 = mul nsw i32 %67, %69
  %71 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 36
  %72 = load i32, ptr %71, align 4, !tbaa !28
  %73 = mul nsw i32 %70, %72
  %74 = getelementptr inbounds %struct.layer, ptr %9, i32 0, i32 100
  %75 = load ptr, ptr %74, align 8, !tbaa !29
  call void @fill_cpu(i32 noundef %73, float noundef 0.000000e+00, ptr noundef %75, i32 noundef 1)
  %76 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  %77 = load i32, ptr %76, align 8, !tbaa !26
  %78 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %79 = load i32, ptr %78, align 8, !tbaa !27
  %80 = mul nsw i32 %77, %79
  %81 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 36
  %82 = load i32, ptr %81, align 4, !tbaa !28
  %83 = mul nsw i32 %80, %82
  %84 = getelementptr inbounds %struct.layer, ptr %10, i32 0, i32 100
  %85 = load ptr, ptr %84, align 8, !tbaa !29
  call void @fill_cpu(i32 noundef %83, float noundef 0.000000e+00, ptr noundef %85, i32 noundef 1)
  %86 = getelementptr inbounds %struct.network_state, ptr %1, i32 0, i32 4
  %87 = load i32, ptr %86, align 8, !tbaa !5
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %109

89:                                               ; preds = %2
  %90 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  %91 = load i32, ptr %90, align 8, !tbaa !26
  %92 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %93 = load i32, ptr %92, align 8, !tbaa !27
  %94 = mul nsw i32 %91, %93
  %95 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 36
  %96 = load i32, ptr %95, align 4, !tbaa !28
  %97 = mul nsw i32 %94, %96
  %98 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 100
  %99 = load ptr, ptr %98, align 8, !tbaa !29
  call void @fill_cpu(i32 noundef %97, float noundef 0.000000e+00, ptr noundef %99, i32 noundef 1)
  %100 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  %101 = load i32, ptr %100, align 8, !tbaa !26
  %102 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %103 = load i32, ptr %102, align 8, !tbaa !27
  %104 = mul nsw i32 %101, %103
  %105 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 85
  %106 = load ptr, ptr %105, align 8, !tbaa !30
  %107 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 86
  %108 = load ptr, ptr %107, align 8, !tbaa !31
  call void @copy_cpu(i32 noundef %104, ptr noundef %106, i32 noundef 1, ptr noundef %108, i32 noundef 1)
  br label %109

109:                                              ; preds = %89, %2
  store i32 0, ptr %4, align 4, !tbaa !17
  br label %110

110:                                              ; preds = %258, %109
  %111 = load i32, ptr %4, align 4, !tbaa !17
  %112 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 36
  %113 = load i32, ptr %112, align 4, !tbaa !28
  %114 = icmp slt i32 %111, %113
  br i1 %114, label %115, label %261

115:                                              ; preds = %110
  %116 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 85
  %117 = load ptr, ptr %116, align 8, !tbaa !30
  %118 = getelementptr inbounds %struct.network_state, ptr %3, i32 0, i32 1
  store ptr %117, ptr %118, align 8, !tbaa !32
  call void @forward_connected_layer(ptr noundef byval(%struct.layer) align 8 %8, ptr noundef byval(%struct.network_state) align 8 %3)
  call void @forward_connected_layer(ptr noundef byval(%struct.layer) align 8 %9, ptr noundef byval(%struct.network_state) align 8 %3)
  %119 = getelementptr inbounds %struct.network_state, ptr %1, i32 0, i32 1
  %120 = load ptr, ptr %119, align 8, !tbaa !32
  %121 = getelementptr inbounds %struct.network_state, ptr %3, i32 0, i32 1
  store ptr %120, ptr %121, align 8, !tbaa !32
  call void @forward_connected_layer(ptr noundef byval(%struct.layer) align 8 %5, ptr noundef byval(%struct.network_state) align 8 %3)
  call void @forward_connected_layer(ptr noundef byval(%struct.layer) align 8 %6, ptr noundef byval(%struct.network_state) align 8 %3)
  call void @forward_connected_layer(ptr noundef byval(%struct.layer) align 8 %7, ptr noundef byval(%struct.network_state) align 8 %3)
  %122 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  %123 = load i32, ptr %122, align 8, !tbaa !26
  %124 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %125 = load i32, ptr %124, align 8, !tbaa !27
  %126 = mul nsw i32 %123, %125
  %127 = getelementptr inbounds %struct.layer, ptr %5, i32 0, i32 101
  %128 = load ptr, ptr %127, align 8, !tbaa !33
  %129 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 115
  %130 = load ptr, ptr %129, align 8, !tbaa !34
  call void @copy_cpu(i32 noundef %126, ptr noundef %128, i32 noundef 1, ptr noundef %130, i32 noundef 1)
  %131 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  %132 = load i32, ptr %131, align 8, !tbaa !26
  %133 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %134 = load i32, ptr %133, align 8, !tbaa !27
  %135 = mul nsw i32 %132, %134
  %136 = getelementptr inbounds %struct.layer, ptr %8, i32 0, i32 101
  %137 = load ptr, ptr %136, align 8, !tbaa !33
  %138 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 115
  %139 = load ptr, ptr %138, align 8, !tbaa !34
  call void @axpy_cpu(i32 noundef %135, float noundef 1.000000e+00, ptr noundef %137, i32 noundef 1, ptr noundef %139, i32 noundef 1)
  %140 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  %141 = load i32, ptr %140, align 8, !tbaa !26
  %142 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %143 = load i32, ptr %142, align 8, !tbaa !27
  %144 = mul nsw i32 %141, %143
  %145 = getelementptr inbounds %struct.layer, ptr %6, i32 0, i32 101
  %146 = load ptr, ptr %145, align 8, !tbaa !33
  %147 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 116
  %148 = load ptr, ptr %147, align 8, !tbaa !35
  call void @copy_cpu(i32 noundef %144, ptr noundef %146, i32 noundef 1, ptr noundef %148, i32 noundef 1)
  %149 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  %150 = load i32, ptr %149, align 8, !tbaa !26
  %151 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %152 = load i32, ptr %151, align 8, !tbaa !27
  %153 = mul nsw i32 %150, %152
  %154 = getelementptr inbounds %struct.layer, ptr %9, i32 0, i32 101
  %155 = load ptr, ptr %154, align 8, !tbaa !33
  %156 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 116
  %157 = load ptr, ptr %156, align 8, !tbaa !35
  call void @axpy_cpu(i32 noundef %153, float noundef 1.000000e+00, ptr noundef %155, i32 noundef 1, ptr noundef %157, i32 noundef 1)
  %158 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 115
  %159 = load ptr, ptr %158, align 8, !tbaa !34
  %160 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  %161 = load i32, ptr %160, align 8, !tbaa !26
  %162 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %163 = load i32, ptr %162, align 8, !tbaa !27
  %164 = mul nsw i32 %161, %163
  call void @activate_array(ptr noundef %159, i32 noundef %164, i32 noundef 0)
  %165 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 116
  %166 = load ptr, ptr %165, align 8, !tbaa !35
  %167 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  %168 = load i32, ptr %167, align 8, !tbaa !26
  %169 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %170 = load i32, ptr %169, align 8, !tbaa !27
  %171 = mul nsw i32 %168, %170
  call void @activate_array(ptr noundef %166, i32 noundef %171, i32 noundef 0)
  %172 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  %173 = load i32, ptr %172, align 8, !tbaa !26
  %174 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %175 = load i32, ptr %174, align 8, !tbaa !27
  %176 = mul nsw i32 %173, %175
  %177 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 85
  %178 = load ptr, ptr %177, align 8, !tbaa !30
  %179 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 87
  %180 = load ptr, ptr %179, align 8, !tbaa !36
  call void @copy_cpu(i32 noundef %176, ptr noundef %178, i32 noundef 1, ptr noundef %180, i32 noundef 1)
  %181 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  %182 = load i32, ptr %181, align 8, !tbaa !26
  %183 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %184 = load i32, ptr %183, align 8, !tbaa !27
  %185 = mul nsw i32 %182, %184
  %186 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 116
  %187 = load ptr, ptr %186, align 8, !tbaa !35
  %188 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 87
  %189 = load ptr, ptr %188, align 8, !tbaa !36
  call void @mul_cpu(i32 noundef %185, ptr noundef %187, i32 noundef 1, ptr noundef %189, i32 noundef 1)
  %190 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 87
  %191 = load ptr, ptr %190, align 8, !tbaa !36
  %192 = getelementptr inbounds %struct.network_state, ptr %3, i32 0, i32 1
  store ptr %191, ptr %192, align 8, !tbaa !32
  call void @forward_connected_layer(ptr noundef byval(%struct.layer) align 8 %10, ptr noundef byval(%struct.network_state) align 8 %3)
  %193 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  %194 = load i32, ptr %193, align 8, !tbaa !26
  %195 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %196 = load i32, ptr %195, align 8, !tbaa !27
  %197 = mul nsw i32 %194, %196
  %198 = getelementptr inbounds %struct.layer, ptr %7, i32 0, i32 101
  %199 = load ptr, ptr %198, align 8, !tbaa !33
  %200 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 117
  %201 = load ptr, ptr %200, align 8, !tbaa !37
  call void @copy_cpu(i32 noundef %197, ptr noundef %199, i32 noundef 1, ptr noundef %201, i32 noundef 1)
  %202 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  %203 = load i32, ptr %202, align 8, !tbaa !26
  %204 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %205 = load i32, ptr %204, align 8, !tbaa !27
  %206 = mul nsw i32 %203, %205
  %207 = getelementptr inbounds %struct.layer, ptr %10, i32 0, i32 101
  %208 = load ptr, ptr %207, align 8, !tbaa !33
  %209 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 117
  %210 = load ptr, ptr %209, align 8, !tbaa !37
  call void @axpy_cpu(i32 noundef %206, float noundef 1.000000e+00, ptr noundef %208, i32 noundef 1, ptr noundef %210, i32 noundef 1)
  %211 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 117
  %212 = load ptr, ptr %211, align 8, !tbaa !37
  %213 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  %214 = load i32, ptr %213, align 8, !tbaa !26
  %215 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %216 = load i32, ptr %215, align 8, !tbaa !27
  %217 = mul nsw i32 %214, %216
  call void @activate_array(ptr noundef %212, i32 noundef %217, i32 noundef 0)
  %218 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 85
  %219 = load ptr, ptr %218, align 8, !tbaa !30
  %220 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 117
  %221 = load ptr, ptr %220, align 8, !tbaa !37
  %222 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 115
  %223 = load ptr, ptr %222, align 8, !tbaa !34
  %224 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  %225 = load i32, ptr %224, align 8, !tbaa !26
  %226 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %227 = load i32, ptr %226, align 8, !tbaa !27
  %228 = mul nsw i32 %225, %227
  %229 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 101
  %230 = load ptr, ptr %229, align 8, !tbaa !33
  call void @weighted_sum_cpu(ptr noundef %219, ptr noundef %221, ptr noundef %223, i32 noundef %228, ptr noundef %230)
  %231 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  %232 = load i32, ptr %231, align 8, !tbaa !26
  %233 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %234 = load i32, ptr %233, align 8, !tbaa !27
  %235 = mul nsw i32 %232, %234
  %236 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 101
  %237 = load ptr, ptr %236, align 8, !tbaa !33
  %238 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 85
  %239 = load ptr, ptr %238, align 8, !tbaa !30
  call void @copy_cpu(i32 noundef %235, ptr noundef %237, i32 noundef 1, ptr noundef %239, i32 noundef 1)
  %240 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 14
  %241 = load i32, ptr %240, align 4, !tbaa !38
  %242 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %243 = load i32, ptr %242, align 8, !tbaa !27
  %244 = mul nsw i32 %241, %243
  %245 = getelementptr inbounds %struct.network_state, ptr %1, i32 0, i32 1
  %246 = load ptr, ptr %245, align 8, !tbaa !32
  %247 = sext i32 %244 to i64
  %248 = getelementptr inbounds float, ptr %246, i64 %247
  store ptr %248, ptr %245, align 8, !tbaa !32
  %249 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  %250 = load i32, ptr %249, align 8, !tbaa !26
  %251 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %252 = load i32, ptr %251, align 8, !tbaa !27
  %253 = mul nsw i32 %250, %252
  %254 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 101
  %255 = load ptr, ptr %254, align 8, !tbaa !33
  %256 = sext i32 %253 to i64
  %257 = getelementptr inbounds float, ptr %255, i64 %256
  store ptr %257, ptr %254, align 8, !tbaa !33
  call void @increment_layer(ptr noundef %5, i32 noundef 1)
  call void @increment_layer(ptr noundef %6, i32 noundef 1)
  call void @increment_layer(ptr noundef %7, i32 noundef 1)
  call void @increment_layer(ptr noundef %8, i32 noundef 1)
  call void @increment_layer(ptr noundef %9, i32 noundef 1)
  call void @increment_layer(ptr noundef %10, i32 noundef 1)
  br label %258

258:                                              ; preds = %115
  %259 = load i32, ptr %4, align 4, !tbaa !17
  %260 = add nsw i32 %259, 1
  store i32 %260, ptr %4, align 4, !tbaa !17
  br label %110, !llvm.loop !39

261:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 808, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 808, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 808, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 808, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 808, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 808, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 232, ptr %3) #5
  ret void
}

declare void @fill_cpu(i32 noundef, float noundef, ptr noundef, i32 noundef) #4

declare void @copy_cpu(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #4

declare void @forward_connected_layer(ptr noundef byval(%struct.layer) align 8, ptr noundef byval(%struct.network_state) align 8) #4

declare void @axpy_cpu(i32 noundef, float noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #4

declare void @activate_array(ptr noundef, i32 noundef, i32 noundef) #4

declare void @mul_cpu(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #4

declare void @weighted_sum_cpu(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @increment_layer(ptr noundef, i32 noundef) #3

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "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 #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, !10, i64 32}
!6 = !{!"network_state", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 36, !11, i64 40}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"network", !7, i64 0, !10, i64 8, !10, i64 12, !7, i64 16, !12, i64 24, !10, i64 28, !12, i64 32, !12, i64 36, !7, i64 40, !10, i64 48, !7, i64 56, !10, i64 64, !12, i64 68, !12, i64 72, !12, i64 76, !12, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !7, i64 96, !7, i64 104, !10, i64 112, !10, i64 116, !10, i64 120, !12, i64 124, !12, i64 128, !12, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156, !12, i64 160, !12, i64 164, !12, i64 168, !12, i64 172, !12, i64 176, !10, i64 180, !7, i64 184}
!12 = !{!"float", !8, i64 0}
!13 = !{!14, !7, i64 744}
!14 = !{!"layer", !10, i64 0, !10, i64 4, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !12, i64 180, !12, i64 184, !12, i64 188, !12, i64 192, !12, i64 196, !12, i64 200, !12, i64 204, !10, i64 208, !10, i64 212, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !10, i64 232, !10, i64 236, !10, i64 240, !10, i64 244, !10, i64 248, !10, i64 252, !12, i64 256, !12, i64 260, !12, i64 264, !10, i64 268, !12, i64 272, !12, i64 276, !12, i64 280, !12, i64 284, !12, i64 288, !12, i64 292, !12, i64 296, !10, i64 300, !10, i64 304, !12, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !12, i64 328, !12, i64 332, !12, i64 336, !7, i64 344, !7, i64 352, !7, i64 360, !7, i64 368, !7, i64 376, !7, i64 384, !7, i64 392, !7, i64 400, !7, i64 408, !7, i64 416, !7, i64 424, !7, i64 432, !7, i64 440, !7, i64 448, !7, i64 456, !7, i64 464, !7, i64 472, !7, i64 480, !7, i64 488, !7, i64 496, !7, i64 504, !7, i64 512, !7, i64 520, !7, i64 528, !7, i64 536, !7, i64 544, !7, i64 552, !7, i64 560, !7, i64 568, !7, i64 576, !7, i64 584, !7, i64 592, !7, i64 600, !7, i64 608, !7, i64 616, !7, i64 624, !7, i64 632, !7, i64 640, !7, i64 648, !7, i64 656, !7, i64 664, !7, i64 672, !7, i64 680, !7, i64 688, !7, i64 696, !7, i64 704, !7, i64 712, !7, i64 720, !7, i64 728, !7, i64 736, !7, i64 744, !7, i64 752, !7, i64 760, !7, i64 768, !7, i64 776, !7, i64 784, !7, i64 792, !15, i64 800}
!15 = !{!"long", !8, i64 0}
!16 = !{i64 0, i64 4, !17, i64 4, i64 4, !17, i64 8, i64 4, !17, i64 16, i64 8, !18, i64 24, i64 8, !18, i64 32, i64 8, !18, i64 40, i64 8, !18, i64 48, i64 8, !18, i64 56, i64 8, !18, i64 64, i64 4, !17, i64 68, i64 4, !17, i64 72, i64 4, !17, i64 76, i64 4, !17, i64 80, i64 4, !17, i64 84, i64 4, !17, i64 88, i64 4, !17, i64 92, i64 4, !17, i64 96, i64 4, !17, i64 100, i64 4, !17, i64 104, i64 4, !17, i64 108, i64 4, !17, i64 112, i64 4, !17, i64 116, i64 4, !17, i64 120, i64 4, !17, i64 124, i64 4, !17, i64 128, i64 4, !17, i64 132, i64 4, !17, i64 136, i64 4, !17, i64 140, i64 4, !17, i64 144, i64 4, !17, i64 148, i64 4, !17, i64 152, i64 4, !17, i64 156, i64 4, !17, i64 160, i64 4, !17, i64 164, i64 4, !17, i64 168, i64 4, !17, i64 172, i64 4, !17, i64 176, i64 4, !17, i64 180, i64 4, !19, i64 184, i64 4, !19, i64 188, i64 4, !19, i64 192, i64 4, !19, i64 196, i64 4, !19, i64 200, i64 4, !19, i64 204, i64 4, !19, i64 208, i64 4, !17, i64 212, i64 4, !17, i64 216, i64 4, !17, i64 220, i64 4, !17, i64 224, i64 4, !17, i64 228, i64 4, !17, i64 232, i64 4, !17, i64 236, i64 4, !17, i64 240, i64 4, !17, i64 244, i64 4, !17, i64 248, i64 4, !17, i64 252, i64 4, !17, i64 256, i64 4, !19, i64 260, i64 4, !19, i64 264, i64 4, !19, i64 268, i64 4, !17, i64 272, i64 4, !19, i64 276, i64 4, !19, i64 280, i64 4, !19, i64 284, i64 4, !19, i64 288, i64 4, !19, i64 292, i64 4, !19, i64 296, i64 4, !19, i64 300, i64 4, !17, i64 304, i64 4, !17, i64 308, i64 4, !19, i64 312, i64 4, !17, i64 316, i64 4, !17, i64 320, i64 4, !17, i64 324, i64 4, !17, i64 328, i64 4, !19, i64 332, i64 4, !19, i64 336, i64 4, !19, i64 344, i64 8, !18, i64 352, i64 8, !18, i64 360, i64 8, !18, i64 368, i64 8, !18, i64 376, i64 8, !18, i64 384, i64 8, !18, i64 392, i64 8, !18, i64 400, i64 8, !18, i64 408, i64 8, !18, i64 416, i64 8, !18, i64 424, i64 8, !18, i64 432, i64 8, !18, i64 440, i64 8, !18, i64 448, i64 8, !18, i64 456, i64 8, !18, i64 464, i64 8, !18, i64 472, i64 8, !18, i64 480, i64 8, !18, i64 488, i64 8, !18, i64 496, i64 8, !18, i64 504, i64 8, !18, i64 512, i64 8, !18, i64 520, i64 8, !18, i64 528, i64 8, !18, i64 536, i64 8, !18, i64 544, i64 8, !18, i64 552, i64 8, !18, i64 560, i64 8, !18, i64 568, i64 8, !18, i64 576, i64 8, !18, i64 584, i64 8, !18, i64 592, i64 8, !18, i64 600, i64 8, !18, i64 608, i64 8, !18, i64 616, i64 8, !18, i64 624, i64 8, !18, i64 632, i64 8, !18, i64 640, i64 8, !18, i64 648, i64 8, !18, i64 656, i64 8, !18, i64 664, i64 8, !18, i64 672, i64 8, !18, i64 680, i64 8, !18, i64 688, i64 8, !18, i64 696, i64 8, !18, i64 704, i64 8, !18, i64 712, i64 8, !18, i64 720, i64 8, !18, i64 728, i64 8, !18, i64 736, i64 8, !18, i64 744, i64 8, !18, i64 752, i64 8, !18, i64 760, i64 8, !18, i64 768, i64 8, !18, i64 776, i64 8, !18, i64 784, i64 8, !18, i64 792, i64 8, !18, i64 800, i64 8, !20}
!17 = !{!10, !10, i64 0}
!18 = !{!7, !7, i64 0}
!19 = !{!12, !12, i64 0}
!20 = !{!15, !15, i64 0}
!21 = !{!14, !7, i64 760}
!22 = !{!14, !7, i64 776}
!23 = !{!14, !7, i64 752}
!24 = !{!14, !7, i64 768}
!25 = !{!14, !7, i64 784}
!26 = !{!14, !10, i64 88}
!27 = !{!14, !10, i64 72}
!28 = !{!14, !10, i64 172}
!29 = !{!14, !7, i64 520}
!30 = !{!14, !7, i64 400}
!31 = !{!14, !7, i64 408}
!32 = !{!6, !7, i64 8}
!33 = !{!14, !7, i64 528}
!34 = !{!14, !7, i64 640}
!35 = !{!14, !7, i64 648}
!36 = !{!14, !7, i64 416}
!37 = !{!14, !7, i64 656}
!38 = !{!14, !10, i64 84}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}


; 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"

%struct.layer = type { i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float, float, float, float, float, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float, i32, float, float, float, float, float, float, float, i32, i32, float, i32, i32, i32, i32, float, float, float, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64 }
%struct.network_state = type { ptr, ptr, ptr, ptr, i32, i32, %struct.network }
%struct.network = type { ptr, i32, i32, ptr, float, i32, float, float, ptr, i32, ptr, i32, float, float, float, float, i32, i32, i32, ptr, ptr, i32, i32, i32, float, float, float, i32, i32, i32, i32, i32, i32, float, float, float, float, float, i32, ptr }

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 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) #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
define dso_local void @forward_gru_layer(ptr noundef byval(%struct.layer) align 8 %0, ptr nocapture noundef readonly byval(%struct.network_state) align 8 %1) local_unnamed_addr #3 {
  %3 = alloca %struct.network_state, align 8
  %4 = alloca %struct.layer, align 8
  %5 = alloca %struct.layer, align 8
  %6 = alloca %struct.layer, align 8
  %7 = alloca %struct.layer, align 8
  %8 = alloca %struct.layer, align 8
  %9 = alloca %struct.layer, align 8
  call void @llvm.lifetime.start.p0(i64 232, ptr nonnull %3) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(232) %3, i8 0, i64 232, i1 false)
  %10 = getelementptr inbounds i8, ptr %1, i64 32
  %11 = load i32, ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %3, i64 32
  store i32 %11, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 808, ptr nonnull %4) #5
  %13 = getelementptr inbounds i8, ptr %0, i64 744
  %14 = load ptr, ptr %13, align 8, !tbaa !13
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(808) %4, ptr noundef nonnull align 8 dereferenceable(808) %14, i64 808, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.start.p0(i64 808, ptr nonnull %5) #5
  %15 = getelementptr inbounds i8, ptr %0, i64 760
  %16 = load ptr, ptr %15, align 8, !tbaa !21
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(808) %5, ptr noundef nonnull align 8 dereferenceable(808) %16, i64 808, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.start.p0(i64 808, ptr nonnull %6) #5
  %17 = getelementptr inbounds i8, ptr %0, i64 776
  %18 = load ptr, ptr %17, align 8, !tbaa !22
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(808) %6, ptr noundef nonnull align 8 dereferenceable(808) %18, i64 808, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.start.p0(i64 808, ptr nonnull %7) #5
  %19 = getelementptr inbounds i8, ptr %0, i64 752
  %20 = load ptr, ptr %19, align 8, !tbaa !23
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(808) %7, ptr noundef nonnull align 8 dereferenceable(808) %20, i64 808, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.start.p0(i64 808, ptr nonnull %8) #5
  %21 = getelementptr inbounds i8, ptr %0, i64 768
  %22 = load ptr, ptr %21, align 8, !tbaa !24
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(808) %8, ptr noundef nonnull align 8 dereferenceable(808) %22, i64 808, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.start.p0(i64 808, ptr nonnull %9) #5
  %23 = getelementptr inbounds i8, ptr %0, i64 784
  %24 = load ptr, ptr %23, align 8, !tbaa !25
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(808) %9, ptr noundef nonnull align 8 dereferenceable(808) %24, i64 808, i1 false), !tbaa.struct !16
  %25 = getelementptr inbounds i8, ptr %0, i64 88
  %26 = load i32, ptr %25, align 8, !tbaa !26
  %27 = getelementptr inbounds i8, ptr %0, i64 72
  %28 = load i32, ptr %27, align 8, !tbaa !27
  %29 = mul nsw i32 %28, %26
  %30 = getelementptr inbounds i8, ptr %0, i64 172
  %31 = load i32, ptr %30, align 4, !tbaa !28
  %32 = mul nsw i32 %29, %31
  %33 = getelementptr inbounds i8, ptr %4, i64 520
  %34 = load ptr, ptr %33, align 8, !tbaa !29
  tail call void @fill_cpu(i32 noundef %32, float noundef 0.000000e+00, ptr noundef %34, i32 noundef 1) #5
  %35 = load i32, ptr %25, align 8, !tbaa !26
  %36 = load i32, ptr %27, align 8, !tbaa !27
  %37 = mul nsw i32 %36, %35
  %38 = load i32, ptr %30, align 4, !tbaa !28
  %39 = mul nsw i32 %37, %38
  %40 = getelementptr inbounds i8, ptr %5, i64 520
  %41 = load ptr, ptr %40, align 8, !tbaa !29
  tail call void @fill_cpu(i32 noundef %39, float noundef 0.000000e+00, ptr noundef %41, i32 noundef 1) #5
  %42 = load i32, ptr %25, align 8, !tbaa !26
  %43 = load i32, ptr %27, align 8, !tbaa !27
  %44 = mul nsw i32 %43, %42
  %45 = load i32, ptr %30, align 4, !tbaa !28
  %46 = mul nsw i32 %44, %45
  %47 = getelementptr inbounds i8, ptr %6, i64 520
  %48 = load ptr, ptr %47, align 8, !tbaa !29
  tail call void @fill_cpu(i32 noundef %46, float noundef 0.000000e+00, ptr noundef %48, i32 noundef 1) #5
  %49 = load i32, ptr %25, align 8, !tbaa !26
  %50 = load i32, ptr %27, align 8, !tbaa !27
  %51 = mul nsw i32 %50, %49
  %52 = load i32, ptr %30, align 4, !tbaa !28
  %53 = mul nsw i32 %51, %52
  %54 = getelementptr inbounds i8, ptr %7, i64 520
  %55 = load ptr, ptr %54, align 8, !tbaa !29
  tail call void @fill_cpu(i32 noundef %53, float noundef 0.000000e+00, ptr noundef %55, i32 noundef 1) #5
  %56 = load i32, ptr %25, align 8, !tbaa !26
  %57 = load i32, ptr %27, align 8, !tbaa !27
  %58 = mul nsw i32 %57, %56
  %59 = load i32, ptr %30, align 4, !tbaa !28
  %60 = mul nsw i32 %58, %59
  %61 = getelementptr inbounds i8, ptr %8, i64 520
  %62 = load ptr, ptr %61, align 8, !tbaa !29
  tail call void @fill_cpu(i32 noundef %60, float noundef 0.000000e+00, ptr noundef %62, i32 noundef 1) #5
  %63 = load i32, ptr %25, align 8, !tbaa !26
  %64 = load i32, ptr %27, align 8, !tbaa !27
  %65 = mul nsw i32 %64, %63
  %66 = load i32, ptr %30, align 4, !tbaa !28
  %67 = mul nsw i32 %65, %66
  %68 = getelementptr inbounds i8, ptr %9, i64 520
  %69 = load ptr, ptr %68, align 8, !tbaa !29
  tail call void @fill_cpu(i32 noundef %67, float noundef 0.000000e+00, ptr noundef %69, i32 noundef 1) #5
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %85, label %70

70:                                               ; preds = %2
  %71 = load i32, ptr %25, align 8, !tbaa !26
  %72 = load i32, ptr %27, align 8, !tbaa !27
  %73 = mul nsw i32 %72, %71
  %74 = load i32, ptr %30, align 4, !tbaa !28
  %75 = mul nsw i32 %73, %74
  %76 = getelementptr inbounds i8, ptr %0, i64 520
  %77 = load ptr, ptr %76, align 8, !tbaa !29
  tail call void @fill_cpu(i32 noundef %75, float noundef 0.000000e+00, ptr noundef %77, i32 noundef 1) #5
  %78 = load i32, ptr %25, align 8, !tbaa !26
  %79 = load i32, ptr %27, align 8, !tbaa !27
  %80 = mul nsw i32 %79, %78
  %81 = getelementptr inbounds i8, ptr %0, i64 400
  %82 = load ptr, ptr %81, align 8, !tbaa !30
  %83 = getelementptr inbounds i8, ptr %0, i64 408
  %84 = load ptr, ptr %83, align 8, !tbaa !31
  tail call void @copy_cpu(i32 noundef %80, ptr noundef %82, i32 noundef 1, ptr noundef %84, i32 noundef 1) #5
  br label %85

85:                                               ; preds = %70, %2
  %86 = load i32, ptr %30, align 4, !tbaa !28
  %87 = icmp sgt i32 %86, 0
  br i1 %87, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %85
  %88 = getelementptr inbounds i8, ptr %0, i64 400
  %89 = getelementptr inbounds i8, ptr %3, i64 8
  %90 = getelementptr inbounds i8, ptr %1, i64 8
  %91 = getelementptr inbounds i8, ptr %4, i64 528
  %92 = getelementptr inbounds i8, ptr %0, i64 640
  %93 = getelementptr inbounds i8, ptr %7, i64 528
  %94 = getelementptr inbounds i8, ptr %5, i64 528
  %95 = getelementptr inbounds i8, ptr %0, i64 648
  %96 = getelementptr inbounds i8, ptr %8, i64 528
  %97 = getelementptr inbounds i8, ptr %0, i64 416
  %98 = getelementptr inbounds i8, ptr %6, i64 528
  %99 = getelementptr inbounds i8, ptr %0, i64 656
  %100 = getelementptr inbounds i8, ptr %9, i64 528
  %101 = getelementptr inbounds i8, ptr %0, i64 528
  %102 = getelementptr inbounds i8, ptr %0, i64 84
  %.promoted = load ptr, ptr %90, align 8, !tbaa !32
  br label %103

103:                                              ; preds = %.lr.ph, %103
  %104 = phi ptr [ %.promoted, %.lr.ph ], [ %175, %103 ]
  %.02 = phi i32 [ 0, %.lr.ph ], [ %181, %103 ]
  %105 = load ptr, ptr %88, align 8, !tbaa !30
  store ptr %105, ptr %89, align 8, !tbaa !32
  call void @forward_connected_layer(ptr noundef nonnull byval(%struct.layer) align 8 %7, ptr noundef nonnull byval(%struct.network_state) align 8 %3) #5
  call void @forward_connected_layer(ptr noundef nonnull byval(%struct.layer) align 8 %8, ptr noundef nonnull byval(%struct.network_state) align 8 %3) #5
  store ptr %104, ptr %89, align 8, !tbaa !32
  call void @forward_connected_layer(ptr noundef nonnull byval(%struct.layer) align 8 %4, ptr noundef nonnull byval(%struct.network_state) align 8 %3) #5
  call void @forward_connected_layer(ptr noundef nonnull byval(%struct.layer) align 8 %5, ptr noundef nonnull byval(%struct.network_state) align 8 %3) #5
  call void @forward_connected_layer(ptr noundef nonnull byval(%struct.layer) align 8 %6, ptr noundef nonnull byval(%struct.network_state) align 8 %3) #5
  %106 = load i32, ptr %25, align 8, !tbaa !26
  %107 = load i32, ptr %27, align 8, !tbaa !27
  %108 = mul nsw i32 %107, %106
  %109 = load ptr, ptr %91, align 8, !tbaa !33
  %110 = load ptr, ptr %92, align 8, !tbaa !34
  call void @copy_cpu(i32 noundef %108, ptr noundef %109, i32 noundef 1, ptr noundef %110, i32 noundef 1) #5
  %111 = load i32, ptr %25, align 8, !tbaa !26
  %112 = load i32, ptr %27, align 8, !tbaa !27
  %113 = mul nsw i32 %112, %111
  %114 = load ptr, ptr %93, align 8, !tbaa !33
  %115 = load ptr, ptr %92, align 8, !tbaa !34
  call void @axpy_cpu(i32 noundef %113, float noundef 1.000000e+00, ptr noundef %114, i32 noundef 1, ptr noundef %115, i32 noundef 1) #5
  %116 = load i32, ptr %25, align 8, !tbaa !26
  %117 = load i32, ptr %27, align 8, !tbaa !27
  %118 = mul nsw i32 %117, %116
  %119 = load ptr, ptr %94, align 8, !tbaa !33
  %120 = load ptr, ptr %95, align 8, !tbaa !35
  call void @copy_cpu(i32 noundef %118, ptr noundef %119, i32 noundef 1, ptr noundef %120, i32 noundef 1) #5
  %121 = load i32, ptr %25, align 8, !tbaa !26
  %122 = load i32, ptr %27, align 8, !tbaa !27
  %123 = mul nsw i32 %122, %121
  %124 = load ptr, ptr %96, align 8, !tbaa !33
  %125 = load ptr, ptr %95, align 8, !tbaa !35
  call void @axpy_cpu(i32 noundef %123, float noundef 1.000000e+00, ptr noundef %124, i32 noundef 1, ptr noundef %125, i32 noundef 1) #5
  %126 = load ptr, ptr %92, align 8, !tbaa !34
  %127 = load i32, ptr %25, align 8, !tbaa !26
  %128 = load i32, ptr %27, align 8, !tbaa !27
  %129 = mul nsw i32 %128, %127
  call void @activate_array(ptr noundef %126, i32 noundef %129, i32 noundef 0) #5
  %130 = load ptr, ptr %95, align 8, !tbaa !35
  %131 = load i32, ptr %25, align 8, !tbaa !26
  %132 = load i32, ptr %27, align 8, !tbaa !27
  %133 = mul nsw i32 %132, %131
  call void @activate_array(ptr noundef %130, i32 noundef %133, i32 noundef 0) #5
  %134 = load i32, ptr %25, align 8, !tbaa !26
  %135 = load i32, ptr %27, align 8, !tbaa !27
  %136 = mul nsw i32 %135, %134
  %137 = load ptr, ptr %88, align 8, !tbaa !30
  %138 = load ptr, ptr %97, align 8, !tbaa !36
  call void @copy_cpu(i32 noundef %136, ptr noundef %137, i32 noundef 1, ptr noundef %138, i32 noundef 1) #5
  %139 = load i32, ptr %25, align 8, !tbaa !26
  %140 = load i32, ptr %27, align 8, !tbaa !27
  %141 = mul nsw i32 %140, %139
  %142 = load ptr, ptr %95, align 8, !tbaa !35
  %143 = load ptr, ptr %97, align 8, !tbaa !36
  call void @mul_cpu(i32 noundef %141, ptr noundef %142, i32 noundef 1, ptr noundef %143, i32 noundef 1) #5
  %144 = load ptr, ptr %97, align 8, !tbaa !36
  store ptr %144, ptr %89, align 8, !tbaa !32
  call void @forward_connected_layer(ptr noundef nonnull byval(%struct.layer) align 8 %9, ptr noundef nonnull byval(%struct.network_state) align 8 %3) #5
  %145 = load i32, ptr %25, align 8, !tbaa !26
  %146 = load i32, ptr %27, align 8, !tbaa !27
  %147 = mul nsw i32 %146, %145
  %148 = load ptr, ptr %98, align 8, !tbaa !33
  %149 = load ptr, ptr %99, align 8, !tbaa !37
  call void @copy_cpu(i32 noundef %147, ptr noundef %148, i32 noundef 1, ptr noundef %149, i32 noundef 1) #5
  %150 = load i32, ptr %25, align 8, !tbaa !26
  %151 = load i32, ptr %27, align 8, !tbaa !27
  %152 = mul nsw i32 %151, %150
  %153 = load ptr, ptr %100, align 8, !tbaa !33
  %154 = load ptr, ptr %99, align 8, !tbaa !37
  call void @axpy_cpu(i32 noundef %152, float noundef 1.000000e+00, ptr noundef %153, i32 noundef 1, ptr noundef %154, i32 noundef 1) #5
  %155 = load ptr, ptr %99, align 8, !tbaa !37
  %156 = load i32, ptr %25, align 8, !tbaa !26
  %157 = load i32, ptr %27, align 8, !tbaa !27
  %158 = mul nsw i32 %157, %156
  call void @activate_array(ptr noundef %155, i32 noundef %158, i32 noundef 0) #5
  %159 = load ptr, ptr %88, align 8, !tbaa !30
  %160 = load ptr, ptr %99, align 8, !tbaa !37
  %161 = load ptr, ptr %92, align 8, !tbaa !34
  %162 = load i32, ptr %25, align 8, !tbaa !26
  %163 = load i32, ptr %27, align 8, !tbaa !27
  %164 = mul nsw i32 %163, %162
  %165 = load ptr, ptr %101, align 8, !tbaa !33
  call void @weighted_sum_cpu(ptr noundef %159, ptr noundef %160, ptr noundef %161, i32 noundef %164, ptr noundef %165) #5
  %166 = load i32, ptr %25, align 8, !tbaa !26
  %167 = load i32, ptr %27, align 8, !tbaa !27
  %168 = mul nsw i32 %167, %166
  %169 = load ptr, ptr %101, align 8, !tbaa !33
  %170 = load ptr, ptr %88, align 8, !tbaa !30
  call void @copy_cpu(i32 noundef %168, ptr noundef %169, i32 noundef 1, ptr noundef %170, i32 noundef 1) #5
  %171 = load i32, ptr %102, align 4, !tbaa !38
  %172 = load i32, ptr %27, align 8, !tbaa !27
  %173 = mul nsw i32 %172, %171
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds float, ptr %104, i64 %174
  %176 = load i32, ptr %25, align 8, !tbaa !26
  %177 = mul nsw i32 %176, %172
  %178 = load ptr, ptr %101, align 8, !tbaa !33
  %179 = sext i32 %177 to i64
  %180 = getelementptr inbounds float, ptr %178, i64 %179
  store ptr %180, ptr %101, align 8, !tbaa !33
  call void @increment_layer(ptr noundef nonnull %4, i32 noundef 1)
  call void @increment_layer(ptr noundef nonnull %5, i32 noundef 1)
  call void @increment_layer(ptr noundef nonnull %6, i32 noundef 1)
  call void @increment_layer(ptr noundef nonnull %7, i32 noundef 1)
  call void @increment_layer(ptr noundef nonnull %8, i32 noundef 1)
  call void @increment_layer(ptr noundef nonnull %9, i32 noundef 1)
  %181 = add nuw nsw i32 %.02, 1
  %182 = load i32, ptr %30, align 4, !tbaa !28
  %183 = icmp slt i32 %181, %182
  br i1 %183, label %103, label %._crit_edge, !llvm.loop !39

._crit_edge:                                      ; preds = %103, %85
  call void @llvm.lifetime.end.p0(i64 808, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 808, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 808, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 808, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 808, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 808, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 232, ptr nonnull %3) #5
  ret void
}

declare void @fill_cpu(i32 noundef, float noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

declare void @copy_cpu(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

declare void @forward_connected_layer(ptr noundef byval(%struct.layer) align 8, ptr noundef byval(%struct.network_state) align 8) local_unnamed_addr #4

declare void @axpy_cpu(i32 noundef, float noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

declare void @activate_array(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

declare void @mul_cpu(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

declare void @weighted_sum_cpu(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden void @increment_layer(ptr noundef, i32 noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "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 #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, !10, i64 32}
!6 = !{!"network_state", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 36, !11, i64 40}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"network", !7, i64 0, !10, i64 8, !10, i64 12, !7, i64 16, !12, i64 24, !10, i64 28, !12, i64 32, !12, i64 36, !7, i64 40, !10, i64 48, !7, i64 56, !10, i64 64, !12, i64 68, !12, i64 72, !12, i64 76, !12, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !7, i64 96, !7, i64 104, !10, i64 112, !10, i64 116, !10, i64 120, !12, i64 124, !12, i64 128, !12, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156, !12, i64 160, !12, i64 164, !12, i64 168, !12, i64 172, !12, i64 176, !10, i64 180, !7, i64 184}
!12 = !{!"float", !8, i64 0}
!13 = !{!14, !7, i64 744}
!14 = !{!"layer", !10, i64 0, !10, i64 4, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !12, i64 180, !12, i64 184, !12, i64 188, !12, i64 192, !12, i64 196, !12, i64 200, !12, i64 204, !10, i64 208, !10, i64 212, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !10, i64 232, !10, i64 236, !10, i64 240, !10, i64 244, !10, i64 248, !10, i64 252, !12, i64 256, !12, i64 260, !12, i64 264, !10, i64 268, !12, i64 272, !12, i64 276, !12, i64 280, !12, i64 284, !12, i64 288, !12, i64 292, !12, i64 296, !10, i64 300, !10, i64 304, !12, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !12, i64 328, !12, i64 332, !12, i64 336, !7, i64 344, !7, i64 352, !7, i64 360, !7, i64 368, !7, i64 376, !7, i64 384, !7, i64 392, !7, i64 400, !7, i64 408, !7, i64 416, !7, i64 424, !7, i64 432, !7, i64 440, !7, i64 448, !7, i64 456, !7, i64 464, !7, i64 472, !7, i64 480, !7, i64 488, !7, i64 496, !7, i64 504, !7, i64 512, !7, i64 520, !7, i64 528, !7, i64 536, !7, i64 544, !7, i64 552, !7, i64 560, !7, i64 568, !7, i64 576, !7, i64 584, !7, i64 592, !7, i64 600, !7, i64 608, !7, i64 616, !7, i64 624, !7, i64 632, !7, i64 640, !7, i64 648, !7, i64 656, !7, i64 664, !7, i64 672, !7, i64 680, !7, i64 688, !7, i64 696, !7, i64 704, !7, i64 712, !7, i64 720, !7, i64 728, !7, i64 736, !7, i64 744, !7, i64 752, !7, i64 760, !7, i64 768, !7, i64 776, !7, i64 784, !7, i64 792, !15, i64 800}
!15 = !{!"long", !8, i64 0}
!16 = !{i64 0, i64 4, !17, i64 4, i64 4, !17, i64 8, i64 4, !17, i64 16, i64 8, !18, i64 24, i64 8, !18, i64 32, i64 8, !18, i64 40, i64 8, !18, i64 48, i64 8, !18, i64 56, i64 8, !18, i64 64, i64 4, !17, i64 68, i64 4, !17, i64 72, i64 4, !17, i64 76, i64 4, !17, i64 80, i64 4, !17, i64 84, i64 4, !17, i64 88, i64 4, !17, i64 92, i64 4, !17, i64 96, i64 4, !17, i64 100, i64 4, !17, i64 104, i64 4, !17, i64 108, i64 4, !17, i64 112, i64 4, !17, i64 116, i64 4, !17, i64 120, i64 4, !17, i64 124, i64 4, !17, i64 128, i64 4, !17, i64 132, i64 4, !17, i64 136, i64 4, !17, i64 140, i64 4, !17, i64 144, i64 4, !17, i64 148, i64 4, !17, i64 152, i64 4, !17, i64 156, i64 4, !17, i64 160, i64 4, !17, i64 164, i64 4, !17, i64 168, i64 4, !17, i64 172, i64 4, !17, i64 176, i64 4, !17, i64 180, i64 4, !19, i64 184, i64 4, !19, i64 188, i64 4, !19, i64 192, i64 4, !19, i64 196, i64 4, !19, i64 200, i64 4, !19, i64 204, i64 4, !19, i64 208, i64 4, !17, i64 212, i64 4, !17, i64 216, i64 4, !17, i64 220, i64 4, !17, i64 224, i64 4, !17, i64 228, i64 4, !17, i64 232, i64 4, !17, i64 236, i64 4, !17, i64 240, i64 4, !17, i64 244, i64 4, !17, i64 248, i64 4, !17, i64 252, i64 4, !17, i64 256, i64 4, !19, i64 260, i64 4, !19, i64 264, i64 4, !19, i64 268, i64 4, !17, i64 272, i64 4, !19, i64 276, i64 4, !19, i64 280, i64 4, !19, i64 284, i64 4, !19, i64 288, i64 4, !19, i64 292, i64 4, !19, i64 296, i64 4, !19, i64 300, i64 4, !17, i64 304, i64 4, !17, i64 308, i64 4, !19, i64 312, i64 4, !17, i64 316, i64 4, !17, i64 320, i64 4, !17, i64 324, i64 4, !17, i64 328, i64 4, !19, i64 332, i64 4, !19, i64 336, i64 4, !19, i64 344, i64 8, !18, i64 352, i64 8, !18, i64 360, i64 8, !18, i64 368, i64 8, !18, i64 376, i64 8, !18, i64 384, i64 8, !18, i64 392, i64 8, !18, i64 400, i64 8, !18, i64 408, i64 8, !18, i64 416, i64 8, !18, i64 424, i64 8, !18, i64 432, i64 8, !18, i64 440, i64 8, !18, i64 448, i64 8, !18, i64 456, i64 8, !18, i64 464, i64 8, !18, i64 472, i64 8, !18, i64 480, i64 8, !18, i64 488, i64 8, !18, i64 496, i64 8, !18, i64 504, i64 8, !18, i64 512, i64 8, !18, i64 520, i64 8, !18, i64 528, i64 8, !18, i64 536, i64 8, !18, i64 544, i64 8, !18, i64 552, i64 8, !18, i64 560, i64 8, !18, i64 568, i64 8, !18, i64 576, i64 8, !18, i64 584, i64 8, !18, i64 592, i64 8, !18, i64 600, i64 8, !18, i64 608, i64 8, !18, i64 616, i64 8, !18, i64 624, i64 8, !18, i64 632, i64 8, !18, i64 640, i64 8, !18, i64 648, i64 8, !18, i64 656, i64 8, !18, i64 664, i64 8, !18, i64 672, i64 8, !18, i64 680, i64 8, !18, i64 688, i64 8, !18, i64 696, i64 8, !18, i64 704, i64 8, !18, i64 712, i64 8, !18, i64 720, i64 8, !18, i64 728, i64 8, !18, i64 736, i64 8, !18, i64 744, i64 8, !18, i64 752, i64 8, !18, i64 760, i64 8, !18, i64 768, i64 8, !18, i64 776, i64 8, !18, i64 784, i64 8, !18, i64 792, i64 8, !18, i64 800, i64 8, !20}
!17 = !{!10, !10, i64 0}
!18 = !{!7, !7, i64 0}
!19 = !{!12, !12, i64 0}
!20 = !{!15, !15, i64 0}
!21 = !{!14, !7, i64 760}
!22 = !{!14, !7, i64 776}
!23 = !{!14, !7, i64 752}
!24 = !{!14, !7, i64 768}
!25 = !{!14, !7, i64 784}
!26 = !{!14, !10, i64 88}
!27 = !{!14, !10, i64 72}
!28 = !{!14, !10, i64 172}
!29 = !{!14, !7, i64 520}
!30 = !{!14, !7, i64 400}
!31 = !{!14, !7, i64 408}
!32 = !{!6, !7, i64 8}
!33 = !{!14, !7, i64 528}
!34 = !{!14, !7, i64 640}
!35 = !{!14, !7, i64 648}
!36 = !{!14, !7, i64 416}
!37 = !{!14, !7, i64 656}
!38 = !{!14, !10, i64 84}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass