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

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [34 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @make_gru_layer(ptr dead_on_unwind noalias writable sret(%struct.layer) align 8 %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %struct.layer, align 8
  %13 = alloca %struct.layer, align 8
  %14 = alloca %struct.layer, align 8
  %15 = alloca %struct.layer, align 8
  %16 = alloca %struct.layer, align 8
  %17 = alloca %struct.layer, align 8
  store i32 %1, ptr %7, align 4, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !5
  store i32 %5, ptr %11, align 4, !tbaa !5
  %18 = load ptr, ptr @stderr, align 8, !tbaa !9
  %19 = load i32, ptr %8, align 4, !tbaa !5
  %20 = load i32, ptr %9, align 4, !tbaa !5
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef @.str, i32 noundef %19, i32 noundef %20) #8
  %22 = load i32, ptr %7, align 4, !tbaa !5
  %23 = load i32, ptr %10, align 4, !tbaa !5
  %24 = sdiv i32 %22, %23
  store i32 %24, ptr %7, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 808, i1 false)
  %25 = load i32, ptr %7, align 4, !tbaa !5
  %26 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  store i32 %25, ptr %26, align 8, !tbaa !11
  %27 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 0
  store i32 16, ptr %27, align 8, !tbaa !15
  %28 = load i32, ptr %10, align 4, !tbaa !5
  %29 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 36
  store i32 %28, ptr %29, align 4, !tbaa !16
  %30 = load i32, ptr %8, align 4, !tbaa !5
  %31 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 14
  store i32 %30, ptr %31, align 4, !tbaa !17
  %32 = call noalias ptr @malloc(i64 noundef 808) #9
  %33 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 128
  store ptr %32, ptr %33, align 8, !tbaa !18
  %34 = load ptr, ptr @stderr, align 8, !tbaa !9
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef @.str.1) #8
  %36 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 128
  %37 = load ptr, ptr %36, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 808, ptr %12) #8
  %38 = load i32, ptr %7, align 4, !tbaa !5
  %39 = load i32, ptr %10, align 4, !tbaa !5
  %40 = mul nsw i32 %38, %39
  %41 = load i32, ptr %8, align 4, !tbaa !5
  %42 = load i32, ptr %9, align 4, !tbaa !5
  %43 = load i32, ptr %11, align 4, !tbaa !5
  call void @make_connected_layer(ptr dead_on_unwind writable sret(%struct.layer) align 8 %12, i32 noundef %40, i32 noundef %41, i32 noundef %42, i32 noundef 3, i32 noundef %43)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %37, ptr align 8 %12, i64 808, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 808, ptr %12) #8
  %44 = load i32, ptr %7, align 4, !tbaa !5
  %45 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 128
  %46 = load ptr, ptr %45, align 8, !tbaa !18
  %47 = getelementptr inbounds %struct.layer, ptr %46, i32 0, i32 11
  store i32 %44, ptr %47, align 8, !tbaa !11
  %48 = call noalias ptr @malloc(i64 noundef 808) #9
  %49 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 129
  store ptr %48, ptr %49, align 8, !tbaa !22
  %50 = load ptr, ptr @stderr, align 8, !tbaa !9
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef @.str.1) #8
  %52 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 129
  %53 = load ptr, ptr %52, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 808, ptr %13) #8
  %54 = load i32, ptr %7, align 4, !tbaa !5
  %55 = load i32, ptr %10, align 4, !tbaa !5
  %56 = mul nsw i32 %54, %55
  %57 = load i32, ptr %9, align 4, !tbaa !5
  %58 = load i32, ptr %9, align 4, !tbaa !5
  %59 = load i32, ptr %11, align 4, !tbaa !5
  call void @make_connected_layer(ptr dead_on_unwind writable sret(%struct.layer) align 8 %13, i32 noundef %56, i32 noundef %57, i32 noundef %58, i32 noundef 3, i32 noundef %59)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %53, ptr align 8 %13, i64 808, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 808, ptr %13) #8
  %60 = load i32, ptr %7, align 4, !tbaa !5
  %61 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 129
  %62 = load ptr, ptr %61, align 8, !tbaa !22
  %63 = getelementptr inbounds %struct.layer, ptr %62, i32 0, i32 11
  store i32 %60, ptr %63, align 8, !tbaa !11
  %64 = call noalias ptr @malloc(i64 noundef 808) #9
  %65 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 130
  store ptr %64, ptr %65, align 8, !tbaa !23
  %66 = load ptr, ptr @stderr, align 8, !tbaa !9
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef @.str.1) #8
  %68 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 130
  %69 = load ptr, ptr %68, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 808, ptr %14) #8
  %70 = load i32, ptr %7, align 4, !tbaa !5
  %71 = load i32, ptr %10, align 4, !tbaa !5
  %72 = mul nsw i32 %70, %71
  %73 = load i32, ptr %8, align 4, !tbaa !5
  %74 = load i32, ptr %9, align 4, !tbaa !5
  %75 = load i32, ptr %11, align 4, !tbaa !5
  call void @make_connected_layer(ptr dead_on_unwind writable sret(%struct.layer) align 8 %14, i32 noundef %72, i32 noundef %73, i32 noundef %74, i32 noundef 3, i32 noundef %75)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %69, ptr align 8 %14, i64 808, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 808, ptr %14) #8
  %76 = load i32, ptr %7, align 4, !tbaa !5
  %77 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 130
  %78 = load ptr, ptr %77, align 8, !tbaa !23
  %79 = getelementptr inbounds %struct.layer, ptr %78, i32 0, i32 11
  store i32 %76, ptr %79, align 8, !tbaa !11
  %80 = call noalias ptr @malloc(i64 noundef 808) #9
  %81 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 131
  store ptr %80, ptr %81, align 8, !tbaa !24
  %82 = load ptr, ptr @stderr, align 8, !tbaa !9
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef @.str.1) #8
  %84 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 131
  %85 = load ptr, ptr %84, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 808, ptr %15) #8
  %86 = load i32, ptr %7, align 4, !tbaa !5
  %87 = load i32, ptr %10, align 4, !tbaa !5
  %88 = mul nsw i32 %86, %87
  %89 = load i32, ptr %9, align 4, !tbaa !5
  %90 = load i32, ptr %9, align 4, !tbaa !5
  %91 = load i32, ptr %11, align 4, !tbaa !5
  call void @make_connected_layer(ptr dead_on_unwind writable sret(%struct.layer) align 8 %15, i32 noundef %88, i32 noundef %89, i32 noundef %90, i32 noundef 3, i32 noundef %91)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %85, ptr align 8 %15, i64 808, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 808, ptr %15) #8
  %92 = load i32, ptr %7, align 4, !tbaa !5
  %93 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 131
  %94 = load ptr, ptr %93, align 8, !tbaa !24
  %95 = getelementptr inbounds %struct.layer, ptr %94, i32 0, i32 11
  store i32 %92, ptr %95, align 8, !tbaa !11
  %96 = call noalias ptr @malloc(i64 noundef 808) #9
  %97 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 132
  store ptr %96, ptr %97, align 8, !tbaa !25
  %98 = load ptr, ptr @stderr, align 8, !tbaa !9
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef @.str.1) #8
  %100 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 132
  %101 = load ptr, ptr %100, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 808, ptr %16) #8
  %102 = load i32, ptr %7, align 4, !tbaa !5
  %103 = load i32, ptr %10, align 4, !tbaa !5
  %104 = mul nsw i32 %102, %103
  %105 = load i32, ptr %8, align 4, !tbaa !5
  %106 = load i32, ptr %9, align 4, !tbaa !5
  %107 = load i32, ptr %11, align 4, !tbaa !5
  call void @make_connected_layer(ptr dead_on_unwind writable sret(%struct.layer) align 8 %16, i32 noundef %104, i32 noundef %105, i32 noundef %106, i32 noundef 3, i32 noundef %107)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %101, ptr align 8 %16, i64 808, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 808, ptr %16) #8
  %108 = load i32, ptr %7, align 4, !tbaa !5
  %109 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 132
  %110 = load ptr, ptr %109, align 8, !tbaa !25
  %111 = getelementptr inbounds %struct.layer, ptr %110, i32 0, i32 11
  store i32 %108, ptr %111, align 8, !tbaa !11
  %112 = call noalias ptr @malloc(i64 noundef 808) #9
  %113 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 133
  store ptr %112, ptr %113, align 8, !tbaa !26
  %114 = load ptr, ptr @stderr, align 8, !tbaa !9
  %115 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %114, ptr noundef @.str.1) #8
  %116 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 133
  %117 = load ptr, ptr %116, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 808, ptr %17) #8
  %118 = load i32, ptr %7, align 4, !tbaa !5
  %119 = load i32, ptr %10, align 4, !tbaa !5
  %120 = mul nsw i32 %118, %119
  %121 = load i32, ptr %9, align 4, !tbaa !5
  %122 = load i32, ptr %9, align 4, !tbaa !5
  %123 = load i32, ptr %11, align 4, !tbaa !5
  call void @make_connected_layer(ptr dead_on_unwind writable sret(%struct.layer) align 8 %17, i32 noundef %120, i32 noundef %121, i32 noundef %122, i32 noundef 3, i32 noundef %123)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %117, ptr align 8 %17, i64 808, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 808, ptr %17) #8
  %124 = load i32, ptr %7, align 4, !tbaa !5
  %125 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 133
  %126 = load ptr, ptr %125, align 8, !tbaa !26
  %127 = getelementptr inbounds %struct.layer, ptr %126, i32 0, i32 11
  store i32 %124, ptr %127, align 8, !tbaa !11
  %128 = load i32, ptr %11, align 4, !tbaa !5
  %129 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 9
  store i32 %128, ptr %129, align 8, !tbaa !27
  %130 = load i32, ptr %9, align 4, !tbaa !5
  %131 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  store i32 %130, ptr %131, align 8, !tbaa !28
  %132 = load i32, ptr %9, align 4, !tbaa !5
  %133 = load i32, ptr %7, align 4, !tbaa !5
  %134 = mul nsw i32 %132, %133
  %135 = load i32, ptr %10, align 4, !tbaa !5
  %136 = mul nsw i32 %134, %135
  %137 = sext i32 %136 to i64
  %138 = call noalias ptr @calloc(i64 noundef %137, i64 noundef 4) #10
  %139 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 101
  store ptr %138, ptr %139, align 8, !tbaa !29
  %140 = load i32, ptr %9, align 4, !tbaa !5
  %141 = load i32, ptr %7, align 4, !tbaa !5
  %142 = mul nsw i32 %140, %141
  %143 = load i32, ptr %10, align 4, !tbaa !5
  %144 = mul nsw i32 %142, %143
  %145 = sext i32 %144 to i64
  %146 = call noalias ptr @calloc(i64 noundef %145, i64 noundef 4) #10
  %147 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 100
  store ptr %146, ptr %147, align 8, !tbaa !30
  %148 = load i32, ptr %9, align 4, !tbaa !5
  %149 = load i32, ptr %7, align 4, !tbaa !5
  %150 = mul nsw i32 %148, %149
  %151 = sext i32 %150 to i64
  %152 = call noalias ptr @calloc(i64 noundef %151, i64 noundef 4) #10
  %153 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 85
  store ptr %152, ptr %153, align 8, !tbaa !31
  %154 = load i32, ptr %9, align 4, !tbaa !5
  %155 = load i32, ptr %7, align 4, !tbaa !5
  %156 = mul nsw i32 %154, %155
  %157 = sext i32 %156 to i64
  %158 = call noalias ptr @calloc(i64 noundef %157, i64 noundef 4) #10
  %159 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 86
  store ptr %158, ptr %159, align 8, !tbaa !32
  %160 = load i32, ptr %9, align 4, !tbaa !5
  %161 = load i32, ptr %7, align 4, !tbaa !5
  %162 = mul nsw i32 %160, %161
  %163 = sext i32 %162 to i64
  %164 = call noalias ptr @calloc(i64 noundef %163, i64 noundef 4) #10
  %165 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 87
  store ptr %164, ptr %165, align 8, !tbaa !33
  %166 = load i32, ptr %9, align 4, !tbaa !5
  %167 = load i32, ptr %7, align 4, !tbaa !5
  %168 = mul nsw i32 %166, %167
  %169 = sext i32 %168 to i64
  %170 = call noalias ptr @calloc(i64 noundef %169, i64 noundef 4) #10
  %171 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 88
  store ptr %170, ptr %171, align 8, !tbaa !34
  %172 = load i32, ptr %9, align 4, !tbaa !5
  %173 = load i32, ptr %7, align 4, !tbaa !5
  %174 = mul nsw i32 %172, %173
  %175 = sext i32 %174 to i64
  %176 = call noalias ptr @calloc(i64 noundef %175, i64 noundef 4) #10
  %177 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 116
  store ptr %176, ptr %177, align 8, !tbaa !35
  %178 = load i32, ptr %9, align 4, !tbaa !5
  %179 = load i32, ptr %7, align 4, !tbaa !5
  %180 = mul nsw i32 %178, %179
  %181 = sext i32 %180 to i64
  %182 = call noalias ptr @calloc(i64 noundef %181, i64 noundef 4) #10
  %183 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 115
  store ptr %182, ptr %183, align 8, !tbaa !36
  %184 = load i32, ptr %9, align 4, !tbaa !5
  %185 = load i32, ptr %7, align 4, !tbaa !5
  %186 = mul nsw i32 %184, %185
  %187 = sext i32 %186 to i64
  %188 = call noalias ptr @calloc(i64 noundef %187, i64 noundef 4) #10
  %189 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 117
  store ptr %188, ptr %189, align 8, !tbaa !37
  %190 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 3
  store ptr @forward_gru_layer, ptr %190, align 8, !tbaa !38
  %191 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 4
  store ptr @backward_gru_layer, ptr %191, align 8, !tbaa !39
  %192 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 5
  store ptr @update_gru_layer, ptr %192, align 8, !tbaa !40
  ret void
}

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

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

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

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

declare void @make_connected_layer(ptr dead_on_unwind writable sret(%struct.layer) align 8, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #5

; 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) #6

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

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #7

; Function Attrs: nounwind uwtable
declare dso_local void @forward_gru_layer(ptr noundef byval(%struct.layer) align 8, ptr noundef byval(%struct.network_state) align 8) #0

; Function Attrs: nounwind uwtable
declare dso_local void @backward_gru_layer(ptr noundef byval(%struct.layer) align 8, ptr noundef byval(%struct.network_state) align 8) #0

; Function Attrs: nounwind uwtable
declare dso_local void @update_gru_layer(ptr noundef byval(%struct.layer) align 8, i32 noundef, float noundef, float noundef, float noundef) #0

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 = { nounwind "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 #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { "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 #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind allocsize(0,1) "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 #8 = { nounwind }
attributes #9 = { nounwind allocsize(0) }
attributes #10 = { nounwind allocsize(0,1) }

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


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [34 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @make_gru_layer(ptr dead_on_unwind noalias nocapture writable writeonly sret(%struct.layer) align 8 %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #0 {
  %7 = alloca %struct.layer, align 8
  %8 = alloca %struct.layer, align 8
  %9 = alloca %struct.layer, align 8
  %10 = alloca %struct.layer, align 8
  %11 = alloca %struct.layer, align 8
  %12 = alloca %struct.layer, align 8
  %13 = load ptr, ptr @stderr, align 8, !tbaa !5
  %14 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str, i32 noundef %2, i32 noundef %3) #8
  %15 = sdiv i32 %1, %4
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(808) %0, i8 0, i64 808, i1 false)
  %16 = getelementptr inbounds i8, ptr %0, i64 72
  store i32 %15, ptr %16, align 8, !tbaa !9
  store i32 16, ptr %0, align 8, !tbaa !14
  %17 = getelementptr inbounds i8, ptr %0, i64 172
  store i32 %4, ptr %17, align 4, !tbaa !15
  %18 = getelementptr inbounds i8, ptr %0, i64 84
  store i32 %2, ptr %18, align 4, !tbaa !16
  %19 = tail call noalias dereferenceable_or_null(808) ptr @malloc(i64 noundef 808) #9
  %20 = getelementptr inbounds i8, ptr %0, i64 744
  store ptr %19, ptr %20, align 8, !tbaa !17
  %21 = load ptr, ptr @stderr, align 8, !tbaa !5
  %22 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str.1) #8
  call void @llvm.lifetime.start.p0(i64 808, ptr nonnull %7) #10
  %23 = mul nsw i32 %15, %4
  call void @make_connected_layer(ptr dead_on_unwind nonnull writable sret(%struct.layer) align 8 %7, i32 noundef %23, i32 noundef %2, i32 noundef %3, i32 noundef 3, i32 noundef %5) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(808) %19, ptr noundef nonnull align 8 dereferenceable(808) %7, i64 808, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 808, ptr nonnull %7) #10
  %24 = getelementptr inbounds i8, ptr %19, i64 72
  store i32 %15, ptr %24, align 8, !tbaa !9
  %25 = call noalias dereferenceable_or_null(808) ptr @malloc(i64 noundef 808) #9
  %26 = getelementptr inbounds i8, ptr %0, i64 752
  store ptr %25, ptr %26, align 8, !tbaa !22
  %27 = load ptr, ptr @stderr, align 8, !tbaa !5
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str.1) #8
  call void @llvm.lifetime.start.p0(i64 808, ptr nonnull %8) #10
  call void @make_connected_layer(ptr dead_on_unwind nonnull writable sret(%struct.layer) align 8 %8, i32 noundef %23, i32 noundef %3, i32 noundef %3, i32 noundef 3, i32 noundef %5) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(808) %25, ptr noundef nonnull align 8 dereferenceable(808) %8, i64 808, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 808, ptr nonnull %8) #10
  %29 = getelementptr inbounds i8, ptr %25, i64 72
  store i32 %15, ptr %29, align 8, !tbaa !9
  %30 = call noalias dereferenceable_or_null(808) ptr @malloc(i64 noundef 808) #9
  %31 = getelementptr inbounds i8, ptr %0, i64 760
  store ptr %30, ptr %31, align 8, !tbaa !23
  %32 = load ptr, ptr @stderr, align 8, !tbaa !5
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.1) #8
  call void @llvm.lifetime.start.p0(i64 808, ptr nonnull %9) #10
  call void @make_connected_layer(ptr dead_on_unwind nonnull writable sret(%struct.layer) align 8 %9, i32 noundef %23, i32 noundef %2, i32 noundef %3, i32 noundef 3, i32 noundef %5) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(808) %30, ptr noundef nonnull align 8 dereferenceable(808) %9, i64 808, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 808, ptr nonnull %9) #10
  %34 = getelementptr inbounds i8, ptr %30, i64 72
  store i32 %15, ptr %34, align 8, !tbaa !9
  %35 = call noalias dereferenceable_or_null(808) ptr @malloc(i64 noundef 808) #9
  %36 = getelementptr inbounds i8, ptr %0, i64 768
  store ptr %35, ptr %36, align 8, !tbaa !24
  %37 = load ptr, ptr @stderr, align 8, !tbaa !5
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef nonnull @.str.1) #8
  call void @llvm.lifetime.start.p0(i64 808, ptr nonnull %10) #10
  call void @make_connected_layer(ptr dead_on_unwind nonnull writable sret(%struct.layer) align 8 %10, i32 noundef %23, i32 noundef %3, i32 noundef %3, i32 noundef 3, i32 noundef %5) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(808) %35, ptr noundef nonnull align 8 dereferenceable(808) %10, i64 808, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 808, ptr nonnull %10) #10
  %39 = getelementptr inbounds i8, ptr %35, i64 72
  store i32 %15, ptr %39, align 8, !tbaa !9
  %40 = call noalias dereferenceable_or_null(808) ptr @malloc(i64 noundef 808) #9
  %41 = getelementptr inbounds i8, ptr %0, i64 776
  store ptr %40, ptr %41, align 8, !tbaa !25
  %42 = load ptr, ptr @stderr, align 8, !tbaa !5
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.1) #8
  call void @llvm.lifetime.start.p0(i64 808, ptr nonnull %11) #10
  call void @make_connected_layer(ptr dead_on_unwind nonnull writable sret(%struct.layer) align 8 %11, i32 noundef %23, i32 noundef %2, i32 noundef %3, i32 noundef 3, i32 noundef %5) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(808) %40, ptr noundef nonnull align 8 dereferenceable(808) %11, i64 808, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 808, ptr nonnull %11) #10
  %44 = getelementptr inbounds i8, ptr %40, i64 72
  store i32 %15, ptr %44, align 8, !tbaa !9
  %45 = call noalias dereferenceable_or_null(808) ptr @malloc(i64 noundef 808) #9
  %46 = getelementptr inbounds i8, ptr %0, i64 784
  store ptr %45, ptr %46, align 8, !tbaa !26
  %47 = load ptr, ptr @stderr, align 8, !tbaa !5
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef nonnull @.str.1) #8
  call void @llvm.lifetime.start.p0(i64 808, ptr nonnull %12) #10
  call void @make_connected_layer(ptr dead_on_unwind nonnull writable sret(%struct.layer) align 8 %12, i32 noundef %23, i32 noundef %3, i32 noundef %3, i32 noundef 3, i32 noundef %5) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(808) %45, ptr noundef nonnull align 8 dereferenceable(808) %12, i64 808, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 808, ptr nonnull %12) #10
  %49 = getelementptr inbounds i8, ptr %45, i64 72
  store i32 %15, ptr %49, align 8, !tbaa !9
  %50 = getelementptr inbounds i8, ptr %0, i64 64
  store i32 %5, ptr %50, align 8, !tbaa !27
  %51 = getelementptr inbounds i8, ptr %0, i64 88
  store i32 %3, ptr %51, align 8, !tbaa !28
  %52 = mul nsw i32 %15, %3
  %53 = mul nsw i32 %52, %4
  %54 = sext i32 %53 to i64
  %55 = call noalias ptr @calloc(i64 noundef %54, i64 noundef 4) #11
  %56 = getelementptr inbounds i8, ptr %0, i64 528
  store ptr %55, ptr %56, align 8, !tbaa !29
  %57 = call noalias ptr @calloc(i64 noundef %54, i64 noundef 4) #11
  %58 = getelementptr inbounds i8, ptr %0, i64 520
  store ptr %57, ptr %58, align 8, !tbaa !30
  %59 = sext i32 %52 to i64
  %60 = call noalias ptr @calloc(i64 noundef %59, i64 noundef 4) #11
  %61 = getelementptr inbounds i8, ptr %0, i64 400
  store ptr %60, ptr %61, align 8, !tbaa !31
  %62 = call noalias ptr @calloc(i64 noundef %59, i64 noundef 4) #11
  %63 = getelementptr inbounds i8, ptr %0, i64 408
  store ptr %62, ptr %63, align 8, !tbaa !32
  %64 = call noalias ptr @calloc(i64 noundef %59, i64 noundef 4) #11
  %65 = getelementptr inbounds i8, ptr %0, i64 416
  store ptr %64, ptr %65, align 8, !tbaa !33
  %66 = call noalias ptr @calloc(i64 noundef %59, i64 noundef 4) #11
  %67 = getelementptr inbounds i8, ptr %0, i64 424
  store ptr %66, ptr %67, align 8, !tbaa !34
  %68 = call noalias ptr @calloc(i64 noundef %59, i64 noundef 4) #11
  %69 = getelementptr inbounds i8, ptr %0, i64 648
  store ptr %68, ptr %69, align 8, !tbaa !35
  %70 = call noalias ptr @calloc(i64 noundef %59, i64 noundef 4) #11
  %71 = getelementptr inbounds i8, ptr %0, i64 640
  store ptr %70, ptr %71, align 8, !tbaa !36
  %72 = call noalias ptr @calloc(i64 noundef %59, i64 noundef 4) #11
  %73 = getelementptr inbounds i8, ptr %0, i64 656
  store ptr %72, ptr %73, align 8, !tbaa !37
  %74 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr @forward_gru_layer, ptr %74, align 8, !tbaa !38
  %75 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr @backward_gru_layer, ptr %75, align 8, !tbaa !39
  %76 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr @update_gru_layer, ptr %76, align 8, !tbaa !40
  ret void
}

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

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

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

declare void @make_connected_layer(ptr dead_on_unwind writable sret(%struct.layer) align 8, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

; 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) #6

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #7

; Function Attrs: nounwind uwtable
declare dso_local void @forward_gru_layer(ptr noundef byval(%struct.layer) align 8, ptr noundef byval(%struct.network_state) align 8) #0

; Function Attrs: nounwind uwtable
declare dso_local void @backward_gru_layer(ptr noundef byval(%struct.layer) align 8, ptr noundef byval(%struct.network_state) align 8) #0

; Function Attrs: nounwind uwtable
declare dso_local void @update_gru_layer(ptr noundef byval(%struct.layer) align 8, i32 noundef, float noundef, float noundef, float noundef) #0

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 = { nofree nounwind "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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { "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 #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) 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 #8 = { cold nounwind }
attributes #9 = { nounwind allocsize(0) }
attributes #10 = { nounwind }
attributes #11 = { nounwind allocsize(0,1) }

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,TailCallElimPass