; LLVM IR from hans-ob1/neural_cam_ros :: src/detector (reorg_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 [60 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @make_reorg_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, i32 noundef %6) #0 {
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store i32 %1, ptr %8, align 4, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !5
  store i32 %4, ptr %11, align 4, !tbaa !5
  store i32 %5, ptr %12, align 4, !tbaa !5
  store i32 %6, ptr %13, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 808, i1 false)
  %15 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 0
  store i32 22, ptr %15, align 8, !tbaa !9
  %16 = load i32, ptr %8, align 4, !tbaa !5
  %17 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  store i32 %16, ptr %17, align 8, !tbaa !14
  %18 = load i32, ptr %12, align 4, !tbaa !5
  %19 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 28
  store i32 %18, ptr %19, align 4, !tbaa !15
  %20 = load i32, ptr %10, align 4, !tbaa !5
  %21 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 17
  store i32 %20, ptr %21, align 8, !tbaa !16
  %22 = load i32, ptr %9, align 4, !tbaa !5
  %23 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 18
  store i32 %22, ptr %23, align 4, !tbaa !17
  %24 = load i32, ptr %11, align 4, !tbaa !5
  %25 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 19
  store i32 %24, ptr %25, align 8, !tbaa !18
  %26 = load i32, ptr %13, align 4, !tbaa !5
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %28, label %43

28:                                               ; preds = %7
  %29 = load i32, ptr %9, align 4, !tbaa !5
  %30 = load i32, ptr %12, align 4, !tbaa !5
  %31 = mul nsw i32 %29, %30
  %32 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 21
  store i32 %31, ptr %32, align 8, !tbaa !19
  %33 = load i32, ptr %10, align 4, !tbaa !5
  %34 = load i32, ptr %12, align 4, !tbaa !5
  %35 = mul nsw i32 %33, %34
  %36 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 20
  store i32 %35, ptr %36, align 4, !tbaa !20
  %37 = load i32, ptr %11, align 4, !tbaa !5
  %38 = load i32, ptr %12, align 4, !tbaa !5
  %39 = load i32, ptr %12, align 4, !tbaa !5
  %40 = mul nsw i32 %38, %39
  %41 = sdiv i32 %37, %40
  %42 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 22
  store i32 %41, ptr %42, align 4, !tbaa !21
  br label %58

43:                                               ; preds = %7
  %44 = load i32, ptr %9, align 4, !tbaa !5
  %45 = load i32, ptr %12, align 4, !tbaa !5
  %46 = sdiv i32 %44, %45
  %47 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 21
  store i32 %46, ptr %47, align 8, !tbaa !19
  %48 = load i32, ptr %10, align 4, !tbaa !5
  %49 = load i32, ptr %12, align 4, !tbaa !5
  %50 = sdiv i32 %48, %49
  %51 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 20
  store i32 %50, ptr %51, align 4, !tbaa !20
  %52 = load i32, ptr %11, align 4, !tbaa !5
  %53 = load i32, ptr %12, align 4, !tbaa !5
  %54 = load i32, ptr %12, align 4, !tbaa !5
  %55 = mul nsw i32 %53, %54
  %56 = mul nsw i32 %52, %55
  %57 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 22
  store i32 %56, ptr %57, align 4, !tbaa !21
  br label %58

58:                                               ; preds = %43, %28
  %59 = load i32, ptr %13, align 4, !tbaa !5
  %60 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 29
  store i32 %59, ptr %60, align 8, !tbaa !22
  %61 = load ptr, ptr @stderr, align 8, !tbaa !23
  %62 = load i32, ptr %12, align 4, !tbaa !5
  %63 = load i32, ptr %9, align 4, !tbaa !5
  %64 = load i32, ptr %10, align 4, !tbaa !5
  %65 = load i32, ptr %11, align 4, !tbaa !5
  %66 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 21
  %67 = load i32, ptr %66, align 8, !tbaa !19
  %68 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 20
  %69 = load i32, ptr %68, align 4, !tbaa !20
  %70 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 22
  %71 = load i32, ptr %70, align 4, !tbaa !21
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef @.str, i32 noundef %62, i32 noundef %63, i32 noundef %64, i32 noundef %65, i32 noundef %67, i32 noundef %69, i32 noundef %71) #5
  %73 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 20
  %74 = load i32, ptr %73, align 4, !tbaa !20
  %75 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 21
  %76 = load i32, ptr %75, align 8, !tbaa !19
  %77 = mul nsw i32 %74, %76
  %78 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 22
  %79 = load i32, ptr %78, align 4, !tbaa !21
  %80 = mul nsw i32 %77, %79
  %81 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  store i32 %80, ptr %81, align 8, !tbaa !24
  %82 = load i32, ptr %10, align 4, !tbaa !5
  %83 = load i32, ptr %9, align 4, !tbaa !5
  %84 = mul nsw i32 %82, %83
  %85 = load i32, ptr %11, align 4, !tbaa !5
  %86 = mul nsw i32 %84, %85
  %87 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 14
  store i32 %86, ptr %87, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %88 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 20
  %89 = load i32, ptr %88, align 4, !tbaa !20
  %90 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 21
  %91 = load i32, ptr %90, align 8, !tbaa !19
  %92 = mul nsw i32 %89, %91
  %93 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 22
  %94 = load i32, ptr %93, align 4, !tbaa !21
  %95 = mul nsw i32 %92, %94
  %96 = load i32, ptr %8, align 4, !tbaa !5
  %97 = mul nsw i32 %95, %96
  store i32 %97, ptr %14, align 4, !tbaa !5
  %98 = load i32, ptr %14, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = call noalias ptr @calloc(i64 noundef %99, i64 noundef 4) #6
  %101 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 101
  store ptr %100, ptr %101, align 8, !tbaa !26
  %102 = load i32, ptr %14, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = call noalias ptr @calloc(i64 noundef %103, i64 noundef 4) #6
  %105 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 100
  store ptr %104, ptr %105, align 8, !tbaa !27
  %106 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 3
  store ptr @forward_reorg_layer, ptr %106, align 8, !tbaa !28
  %107 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 4
  store ptr @backward_reorg_layer, ptr %107, align 8, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  ret void
}

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @forward_reorg_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_reorg_layer(ptr noundef byval(%struct.layer) align 8, ptr noundef byval(%struct.network_state) align 8) #0

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { 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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nounwind }
attributes #6 = { 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, !6, i64 0}
!10 = !{!"layer", !6, i64 0, !6, i64 4, !6, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, 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, !12, i64 180, !12, i64 184, !12, i64 188, !12, i64 192, !12, i64 196, !12, i64 200, !12, 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, !12, i64 256, !12, i64 260, !12, i64 264, !6, i64 268, !12, i64 272, !12, i64 276, !12, i64 280, !12, i64 284, !12, i64 288, !12, i64 292, !12, i64 296, !6, i64 300, !6, i64 304, !12, i64 308, !6, i64 312, !6, i64 316, !6, i64 320, !6, i64 324, !12, i64 328, !12, i64 332, !12, i64 336, !11, i64 344, !11, i64 352, !11, i64 360, !11, i64 368, !11, i64 376, !11, i64 384, !11, i64 392, !11, i64 400, !11, i64 408, !11, i64 416, !11, i64 424, !11, i64 432, !11, i64 440, !11, i64 448, !11, i64 456, !11, i64 464, !11, i64 472, !11, i64 480, !11, i64 488, !11, i64 496, !11, i64 504, !11, i64 512, !11, i64 520, !11, i64 528, !11, i64 536, !11, i64 544, !11, i64 552, !11, i64 560, !11, i64 568, !11, i64 576, !11, i64 584, !11, i64 592, !11, i64 600, !11, i64 608, !11, i64 616, !11, i64 624, !11, i64 632, !11, i64 640, !11, i64 648, !11, i64 656, !11, i64 664, !11, i64 672, !11, i64 680, !11, i64 688, !11, i64 696, !11, i64 704, !11, i64 712, !11, i64 720, !11, i64 728, !11, i64 736, !11, i64 744, !11, i64 752, !11, i64 760, !11, i64 768, !11, i64 776, !11, i64 784, !11, i64 792, !13, i64 800}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!10, !6, i64 72}
!15 = !{!10, !6, i64 140}
!16 = !{!10, !6, i64 96}
!17 = !{!10, !6, i64 100}
!18 = !{!10, !6, i64 104}
!19 = !{!10, !6, i64 112}
!20 = !{!10, !6, i64 108}
!21 = !{!10, !6, i64 116}
!22 = !{!10, !6, i64 144}
!23 = !{!11, !11, i64 0}
!24 = !{!10, !6, i64 88}
!25 = !{!10, !6, i64 84}
!26 = !{!10, !11, i64 528}
!27 = !{!10, !11, i64 520}
!28 = !{!10, !11, i64 16}
!29 = !{!10, !11, i64 24}


; 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 [60 x i8], align 1

; Function Attrs: nofree nounwind uwtable
define dso_local void @make_reorg_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, i32 noundef %6) local_unnamed_addr #0 {
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(808) %0, i8 0, i64 808, i1 false)
  store i32 22, ptr %0, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 72
  store i32 %1, ptr %8, align 8, !tbaa !13
  %9 = getelementptr inbounds i8, ptr %0, i64 140
  store i32 %5, ptr %9, align 4, !tbaa !14
  %10 = getelementptr inbounds i8, ptr %0, i64 96
  store i32 %3, ptr %10, align 8, !tbaa !15
  %11 = getelementptr inbounds i8, ptr %0, i64 100
  store i32 %2, ptr %11, align 4, !tbaa !16
  %12 = getelementptr inbounds i8, ptr %0, i64 104
  store i32 %4, ptr %12, align 8, !tbaa !17
  %.not = icmp eq i32 %6, 0
  %13 = mul nsw i32 %5, %5
  br i1 %.not, label %18, label %14

14:                                               ; preds = %7
  %15 = mul nsw i32 %5, %2
  %16 = mul nsw i32 %5, %3
  %17 = sdiv i32 %4, %13
  br label %22

18:                                               ; preds = %7
  %19 = sdiv i32 %2, %5
  %20 = sdiv i32 %3, %5
  %21 = mul nsw i32 %13, %4
  br label %22

22:                                               ; preds = %18, %14
  %.sink32 = phi i32 [ %19, %18 ], [ %15, %14 ]
  %.sink31 = phi i32 [ %20, %18 ], [ %16, %14 ]
  %.sink = phi i32 [ %21, %18 ], [ %17, %14 ]
  %23 = getelementptr inbounds i8, ptr %0, i64 112
  store i32 %.sink32, ptr %23, align 8
  %24 = getelementptr inbounds i8, ptr %0, i64 108
  store i32 %.sink31, ptr %24, align 4
  %25 = getelementptr inbounds i8, ptr %0, i64 116
  store i32 %.sink, ptr %25, align 4
  %26 = getelementptr inbounds i8, ptr %0, i64 144
  store i32 %6, ptr %26, align 8, !tbaa !18
  %27 = load ptr, ptr @stderr, align 8, !tbaa !19
  %28 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str, i32 noundef %5, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %.sink32, i32 noundef %.sink31, i32 noundef %.sink) #5
  %29 = mul nsw i32 %.sink31, %.sink32
  %30 = mul nsw i32 %29, %.sink
  %31 = getelementptr inbounds i8, ptr %0, i64 88
  store i32 %30, ptr %31, align 8, !tbaa !20
  %32 = mul nsw i32 %3, %2
  %33 = mul nsw i32 %32, %4
  %34 = getelementptr inbounds i8, ptr %0, i64 84
  store i32 %33, ptr %34, align 4, !tbaa !21
  %35 = mul nsw i32 %30, %1
  %36 = sext i32 %35 to i64
  %37 = tail call noalias ptr @calloc(i64 noundef %36, i64 noundef 4) #6
  %38 = getelementptr inbounds i8, ptr %0, i64 528
  store ptr %37, ptr %38, align 8, !tbaa !22
  %39 = tail call noalias ptr @calloc(i64 noundef %36, i64 noundef 4) #6
  %40 = getelementptr inbounds i8, ptr %0, i64 520
  store ptr %39, ptr %40, align 8, !tbaa !23
  %41 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr @forward_reorg_layer, ptr %41, align 8, !tbaa !24
  %42 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr @backward_reorg_layer, ptr %42, align 8, !tbaa !25
  ret void
}

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

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

; 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 #3

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

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

attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { 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 #3 = { 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 #4 = { 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 #5 = { cold nounwind }
attributes #6 = { 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, !7, i64 0}
!6 = !{!"layer", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !7, i64 148, !7, i64 152, !7, i64 156, !7, i64 160, !7, i64 164, !7, i64 168, !7, i64 172, !7, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !11, i64 192, !11, i64 196, !11, i64 200, !11, i64 204, !7, i64 208, !7, i64 212, !7, i64 216, !7, i64 220, !7, i64 224, !7, i64 228, !7, i64 232, !7, i64 236, !7, i64 240, !7, i64 244, !7, i64 248, !7, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !7, i64 268, !11, i64 272, !11, i64 276, !11, i64 280, !11, i64 284, !11, i64 288, !11, i64 292, !11, i64 296, !7, i64 300, !7, i64 304, !11, i64 308, !7, i64 312, !7, i64 316, !7, i64 320, !7, i64 324, !11, i64 328, !11, i64 332, !11, 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, !12, i64 800}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !7, i64 72}
!14 = !{!6, !7, i64 140}
!15 = !{!6, !7, i64 96}
!16 = !{!6, !7, i64 100}
!17 = !{!6, !7, i64 104}
!18 = !{!6, !7, i64 144}
!19 = !{!10, !10, i64 0}
!20 = !{!6, !7, i64 88}
!21 = !{!6, !7, i64 84}
!22 = !{!6, !10, i64 528}
!23 = !{!6, !10, i64 520}
!24 = !{!6, !10, i64 16}
!25 = !{!6, !10, i64 24}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass