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

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

@.str.25 = external hidden unnamed_addr constant [33 x i8], align 1

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

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

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #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: nounwind
declare void @free(ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @resize_network(ptr noundef %0, i32 noundef %1, i32 noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca %struct.layer, align 8
  %11 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %12 = load i32, ptr %5, align 4, !tbaa !9
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.network, ptr %13, i32 0, i32 29
  store i32 %12, ptr %14, align 8, !tbaa !11
  %15 = load i32, ptr %6, align 4, !tbaa !9
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.network, ptr %16, i32 0, i32 28
  store i32 %15, ptr %17, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 0, ptr %9, align 8, !tbaa !15
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %18

18:                                               ; preds = %129, %3
  %19 = load i32, ptr %7, align 4, !tbaa !9
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.network, ptr %20, i32 0, i32 1
  %22 = load i32, ptr %21, align 8, !tbaa !17
  %23 = icmp slt i32 %19, %22
  br i1 %23, label %24, label %132

24:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 808, ptr %10) #6
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.network, ptr %25, i32 0, i32 8
  %27 = load ptr, ptr %26, align 8, !tbaa !18
  %28 = load i32, ptr %7, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds %struct.layer, ptr %27, i64 %29
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %30, i64 808, i1 false), !tbaa.struct !19
  %31 = getelementptr inbounds %struct.layer, ptr %10, i32 0, i32 0
  %32 = load i32, ptr %31, align 8, !tbaa !21
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %34, label %37

34:                                               ; preds = %24
  %35 = load i32, ptr %5, align 4, !tbaa !9
  %36 = load i32, ptr %6, align 4, !tbaa !9
  call void @resize_convolutional_layer(ptr noundef %10, i32 noundef %35, i32 noundef %36)
  br label %100

37:                                               ; preds = %24
  %38 = getelementptr inbounds %struct.layer, ptr %10, i32 0, i32 0
  %39 = load i32, ptr %38, align 8, !tbaa !21
  %40 = icmp eq i32 %39, 7
  br i1 %40, label %41, label %44

41:                                               ; preds = %37
  %42 = load i32, ptr %5, align 4, !tbaa !9
  %43 = load i32, ptr %6, align 4, !tbaa !9
  call void @resize_crop_layer(ptr noundef %10, i32 noundef %42, i32 noundef %43)
  br label %99

44:                                               ; preds = %37
  %45 = getelementptr inbounds %struct.layer, ptr %10, i32 0, i32 0
  %46 = load i32, ptr %45, align 8, !tbaa !21
  %47 = icmp eq i32 %46, 3
  br i1 %47, label %48, label %51

48:                                               ; preds = %44
  %49 = load i32, ptr %5, align 4, !tbaa !9
  %50 = load i32, ptr %6, align 4, !tbaa !9
  call void @resize_maxpool_layer(ptr noundef %10, i32 noundef %49, i32 noundef %50)
  br label %98

51:                                               ; preds = %44
  %52 = getelementptr inbounds %struct.layer, ptr %10, i32 0, i32 0
  %53 = load i32, ptr %52, align 8, !tbaa !21
  %54 = icmp eq i32 %53, 21
  br i1 %54, label %55, label %58

55:                                               ; preds = %51
  %56 = load i32, ptr %5, align 4, !tbaa !9
  %57 = load i32, ptr %6, align 4, !tbaa !9
  call void @resize_region_layer(ptr noundef %10, i32 noundef %56, i32 noundef %57)
  br label %97

58:                                               ; preds = %51
  %59 = getelementptr inbounds %struct.layer, ptr %10, i32 0, i32 0
  %60 = load i32, ptr %59, align 8, !tbaa !21
  %61 = icmp eq i32 %60, 8
  br i1 %61, label %62, label %64

62:                                               ; preds = %58
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  call void @resize_route_layer(ptr noundef %10, ptr noundef %63)
  br label %96

64:                                               ; preds = %58
  %65 = getelementptr inbounds %struct.layer, ptr %10, i32 0, i32 0
  %66 = load i32, ptr %65, align 8, !tbaa !21
  %67 = icmp eq i32 %66, 22
  br i1 %67, label %68, label %71

68:                                               ; preds = %64
  %69 = load i32, ptr %5, align 4, !tbaa !9
  %70 = load i32, ptr %6, align 4, !tbaa !9
  call void @resize_reorg_layer(ptr noundef %10, i32 noundef %69, i32 noundef %70)
  br label %95

71:                                               ; preds = %64
  %72 = getelementptr inbounds %struct.layer, ptr %10, i32 0, i32 0
  %73 = load i32, ptr %72, align 8, !tbaa !21
  %74 = icmp eq i32 %73, 11
  br i1 %74, label %75, label %78

75:                                               ; preds = %71
  %76 = load i32, ptr %5, align 4, !tbaa !9
  %77 = load i32, ptr %6, align 4, !tbaa !9
  call void @resize_avgpool_layer(ptr noundef %10, i32 noundef %76, i32 noundef %77)
  br label %94

78:                                               ; preds = %71
  %79 = getelementptr inbounds %struct.layer, ptr %10, i32 0, i32 0
  %80 = load i32, ptr %79, align 8, !tbaa !21
  %81 = icmp eq i32 %80, 10
  br i1 %81, label %82, label %85

82:                                               ; preds = %78
  %83 = load i32, ptr %5, align 4, !tbaa !9
  %84 = load i32, ptr %6, align 4, !tbaa !9
  call void @resize_normalization_layer(ptr noundef %10, i32 noundef %83, i32 noundef %84)
  br label %93

85:                                               ; preds = %78
  %86 = getelementptr inbounds %struct.layer, ptr %10, i32 0, i32 0
  %87 = load i32, ptr %86, align 8, !tbaa !21
  %88 = icmp eq i32 %87, 9
  br i1 %88, label %89, label %91

89:                                               ; preds = %85
  %90 = load i32, ptr %8, align 4, !tbaa !9
  call void @resize_cost_layer(ptr noundef %10, i32 noundef %90)
  br label %92

91:                                               ; preds = %85
  call void @error(ptr noundef @.str.25)
  br label %92

92:                                               ; preds = %91, %89
  br label %93

93:                                               ; preds = %92, %82
  br label %94

94:                                               ; preds = %93, %75
  br label %95

95:                                               ; preds = %94, %68
  br label %96

96:                                               ; preds = %95, %62
  br label %97

97:                                               ; preds = %96, %55
  br label %98

98:                                               ; preds = %97, %48
  br label %99

99:                                               ; preds = %98, %41
  br label %100

100:                                              ; preds = %99, %34
  %101 = getelementptr inbounds %struct.layer, ptr %10, i32 0, i32 135
  %102 = load i64, ptr %101, align 8, !tbaa !23
  %103 = load i64, ptr %9, align 8, !tbaa !15
  %104 = icmp ugt i64 %102, %103
  br i1 %104, label %105, label %108

105:                                              ; preds = %100
  %106 = getelementptr inbounds %struct.layer, ptr %10, i32 0, i32 135
  %107 = load i64, ptr %106, align 8, !tbaa !23
  store i64 %107, ptr %9, align 8, !tbaa !15
  br label %108

108:                                              ; preds = %105, %100
  %109 = getelementptr inbounds %struct.layer, ptr %10, i32 0, i32 15
  %110 = load i32, ptr %109, align 8, !tbaa !24
  store i32 %110, ptr %8, align 4, !tbaa !9
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.network, ptr %111, i32 0, i32 8
  %113 = load ptr, ptr %112, align 8, !tbaa !18
  %114 = load i32, ptr %7, align 4, !tbaa !9
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds %struct.layer, ptr %113, i64 %115
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %116, ptr align 8 %10, i64 808, i1 false), !tbaa.struct !19
  %117 = getelementptr inbounds %struct.layer, ptr %10, i32 0, i32 21
  %118 = load i32, ptr %117, align 8, !tbaa !25
  store i32 %118, ptr %5, align 4, !tbaa !9
  %119 = getelementptr inbounds %struct.layer, ptr %10, i32 0, i32 20
  %120 = load i32, ptr %119, align 4, !tbaa !26
  store i32 %120, ptr %6, align 4, !tbaa !9
  %121 = getelementptr inbounds %struct.layer, ptr %10, i32 0, i32 0
  %122 = load i32, ptr %121, align 8, !tbaa !21
  %123 = icmp eq i32 %122, 11
  br i1 %123, label %124, label %125

124:                                              ; preds = %108
  store i32 2, ptr %11, align 4
  br label %126

125:                                              ; preds = %108
  store i32 0, ptr %11, align 4
  br label %126

126:                                              ; preds = %125, %124
  call void @llvm.lifetime.end.p0(i64 808, ptr %10) #6
  %127 = load i32, ptr %11, align 4
  switch i32 %127, label %140 [
    i32 0, label %128
    i32 2, label %132
  ]

128:                                              ; preds = %126
  br label %129

129:                                              ; preds = %128
  %130 = load i32, ptr %7, align 4, !tbaa !9
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %7, align 4, !tbaa !9
  br label %18, !llvm.loop !27

132:                                              ; preds = %126, %18
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.network, ptr %133, i32 0, i32 0
  %135 = load ptr, ptr %134, align 8, !tbaa !29
  call void @free(ptr noundef %135) #6
  %136 = load i64, ptr %9, align 8, !tbaa !15
  %137 = call noalias ptr @calloc(i64 noundef 1, i64 noundef %136) #7
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.network, ptr %138, i32 0, i32 0
  store ptr %137, ptr %139, align 8, !tbaa !29
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  ret i32 0

140:                                              ; preds = %126
  unreachable
}

declare void @resize_convolutional_layer(ptr noundef, i32 noundef, i32 noundef) #5

declare void @resize_crop_layer(ptr noundef, i32 noundef, i32 noundef) #5

declare void @resize_maxpool_layer(ptr noundef, i32 noundef, i32 noundef) #5

declare void @resize_region_layer(ptr noundef, i32 noundef, i32 noundef) #5

declare void @resize_route_layer(ptr noundef, ptr noundef) #5

declare void @resize_reorg_layer(ptr noundef, i32 noundef, i32 noundef) #5

declare void @resize_avgpool_layer(ptr noundef, i32 noundef, i32 noundef) #5

declare void @resize_normalization_layer(ptr noundef, i32 noundef, i32 noundef) #5

declare void @resize_cost_layer(ptr noundef, i32 noundef) #5

declare void @error(ptr noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = { "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 = { nounwind }
attributes #7 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 144}
!12 = !{!"network", !6, i64 0, !10, i64 8, !10, i64 12, !6, i64 16, !13, i64 24, !10, i64 28, !13, i64 32, !13, i64 36, !6, i64 40, !10, i64 48, !6, i64 56, !10, i64 64, !13, i64 68, !13, i64 72, !13, i64 76, !13, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !6, i64 96, !6, i64 104, !10, i64 112, !10, i64 116, !10, i64 120, !13, i64 124, !13, i64 128, !13, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156, !13, i64 160, !13, i64 164, !13, i64 168, !13, i64 172, !13, i64 176, !10, i64 180, !6, i64 184}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !10, i64 140}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!12, !10, i64 8}
!18 = !{!12, !6, i64 40}
!19 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, 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, !9, i64 68, i64 4, !9, i64 72, i64 4, !9, i64 76, i64 4, !9, i64 80, i64 4, !9, i64 84, i64 4, !9, i64 88, i64 4, !9, i64 92, i64 4, !9, i64 96, i64 4, !9, i64 100, i64 4, !9, i64 104, i64 4, !9, i64 108, i64 4, !9, i64 112, i64 4, !9, i64 116, i64 4, !9, i64 120, i64 4, !9, i64 124, i64 4, !9, i64 128, i64 4, !9, i64 132, i64 4, !9, i64 136, i64 4, !9, i64 140, i64 4, !9, i64 144, i64 4, !9, i64 148, i64 4, !9, i64 152, i64 4, !9, i64 156, i64 4, !9, i64 160, i64 4, !9, i64 164, i64 4, !9, i64 168, i64 4, !9, i64 172, i64 4, !9, i64 176, i64 4, !9, 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, !9, i64 212, i64 4, !9, i64 216, i64 4, !9, i64 220, i64 4, !9, i64 224, i64 4, !9, i64 228, i64 4, !9, i64 232, i64 4, !9, i64 236, i64 4, !9, i64 240, i64 4, !9, i64 244, i64 4, !9, i64 248, i64 4, !9, i64 252, i64 4, !9, i64 256, i64 4, !20, i64 260, i64 4, !20, i64 264, i64 4, !20, i64 268, i64 4, !9, 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, !9, i64 304, i64 4, !9, i64 308, i64 4, !20, i64 312, i64 4, !9, i64 316, i64 4, !9, i64 320, i64 4, !9, i64 324, i64 4, !9, 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, !15}
!20 = !{!13, !13, i64 0}
!21 = !{!22, !10, i64 0}
!22 = !{!"layer", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, 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, !13, i64 180, !13, i64 184, !13, i64 188, !13, i64 192, !13, i64 196, !13, i64 200, !13, 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, !13, i64 256, !13, i64 260, !13, i64 264, !10, i64 268, !13, i64 272, !13, i64 276, !13, i64 280, !13, i64 284, !13, i64 288, !13, i64 292, !13, i64 296, !10, i64 300, !10, i64 304, !13, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !13, i64 328, !13, i64 332, !13, 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, !16, i64 800}
!23 = !{!22, !16, i64 800}
!24 = !{!22, !10, i64 88}
!25 = !{!22, !10, i64 112}
!26 = !{!22, !10, i64 108}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!12, !6, i64 0}


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

@.str.25 = external hidden unnamed_addr constant [33 x i8], align 1

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

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

; 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 #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 nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @resize_network(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #4 {
  %4 = alloca %struct.layer, align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 144
  store i32 %1, ptr %5, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 140
  store i32 %2, ptr %6, align 4, !tbaa !12
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = load i32, ptr %7, align 8, !tbaa !13
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %3
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  %11 = getelementptr inbounds i8, ptr %4, i64 800
  %12 = getelementptr inbounds i8, ptr %4, i64 88
  %13 = getelementptr inbounds i8, ptr %4, i64 112
  %14 = getelementptr inbounds i8, ptr %4, i64 108
  br label %19

15:                                               ; preds = %33
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %16 = load i32, ptr %7, align 8, !tbaa !13
  %17 = sext i32 %16 to i64
  %18 = icmp slt i64 %indvars.iv.next, %17
  br i1 %18, label %19, label %._crit_edge, !llvm.loop !14

19:                                               ; preds = %.lr.ph, %15
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %15 ]
  %.03142 = phi i64 [ 0, %.lr.ph ], [ %spec.select, %15 ]
  %.03241 = phi i32 [ 0, %.lr.ph ], [ %35, %15 ]
  %.03439 = phi i32 [ %2, %.lr.ph ], [ %39, %15 ]
  %.03538 = phi i32 [ %1, %.lr.ph ], [ %38, %15 ]
  call void @llvm.lifetime.start.p0(i64 808, ptr nonnull %4) #7
  %20 = load ptr, ptr %10, align 8, !tbaa !16
  %21 = getelementptr inbounds %struct.layer, ptr %20, i64 %indvars.iv
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(808) %4, ptr noundef nonnull align 8 dereferenceable(808) %21, i64 808, i1 false), !tbaa.struct !17
  %22 = load i32, ptr %4, align 8, !tbaa !23
  switch i32 %22, label %32 [
    i32 0, label %23
    i32 7, label %24
    i32 3, label %25
    i32 21, label %26
    i32 8, label %27
    i32 22, label %28
    i32 11, label %29
    i32 10, label %30
    i32 9, label %31
  ]

23:                                               ; preds = %19
  call void @resize_convolutional_layer(ptr noundef nonnull %4, i32 noundef %.03538, i32 noundef %.03439) #7
  br label %33

24:                                               ; preds = %19
  call void @resize_crop_layer(ptr noundef nonnull %4, i32 noundef %.03538, i32 noundef %.03439) #7
  br label %33

25:                                               ; preds = %19
  call void @resize_maxpool_layer(ptr noundef nonnull %4, i32 noundef %.03538, i32 noundef %.03439) #7
  br label %33

26:                                               ; preds = %19
  call void @resize_region_layer(ptr noundef nonnull %4, i32 noundef %.03538, i32 noundef %.03439) #7
  br label %33

27:                                               ; preds = %19
  call void @resize_route_layer(ptr noundef nonnull %4, ptr noundef nonnull %0) #7
  br label %33

28:                                               ; preds = %19
  call void @resize_reorg_layer(ptr noundef nonnull %4, i32 noundef %.03538, i32 noundef %.03439) #7
  br label %33

29:                                               ; preds = %19
  call void @resize_avgpool_layer(ptr noundef nonnull %4, i32 noundef %.03538, i32 noundef %.03439) #7
  br label %33

30:                                               ; preds = %19
  call void @resize_normalization_layer(ptr noundef nonnull %4, i32 noundef %.03538, i32 noundef %.03439) #7
  br label %33

31:                                               ; preds = %19
  call void @resize_cost_layer(ptr noundef nonnull %4, i32 noundef %.03241) #7
  br label %33

32:                                               ; preds = %19
  call void @error(ptr noundef nonnull @.str.25) #7
  br label %33

33:                                               ; preds = %24, %26, %28, %30, %32, %31, %29, %27, %25, %23
  %34 = load i64, ptr %11, align 8, !tbaa !25
  %spec.select = call i64 @llvm.umax.i64(i64 %34, i64 %.03142)
  %35 = load i32, ptr %12, align 8, !tbaa !26
  %36 = load ptr, ptr %10, align 8, !tbaa !16
  %37 = getelementptr inbounds %struct.layer, ptr %36, i64 %indvars.iv
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(808) %37, ptr noundef nonnull align 8 dereferenceable(808) %4, i64 808, i1 false), !tbaa.struct !17
  %38 = load i32, ptr %13, align 8, !tbaa !27
  %39 = load i32, ptr %14, align 4, !tbaa !28
  %40 = load i32, ptr %4, align 8, !tbaa !23
  %41 = icmp eq i32 %40, 11
  call void @llvm.lifetime.end.p0(i64 808, ptr nonnull %4) #7
  br i1 %41, label %._crit_edge, label %15

._crit_edge:                                      ; preds = %15, %33, %3
  %.2 = phi i64 [ 0, %3 ], [ %spec.select, %33 ], [ %spec.select, %15 ]
  %42 = load ptr, ptr %0, align 8, !tbaa !29
  call void @free(ptr noundef %42) #7
  %43 = call noalias ptr @calloc(i64 noundef 1, i64 noundef %.2) #8
  store ptr %43, ptr %0, align 8, !tbaa !29
  ret i32 0
}

declare void @resize_convolutional_layer(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

declare void @resize_crop_layer(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

declare void @resize_maxpool_layer(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

declare void @resize_region_layer(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

declare void @resize_route_layer(ptr noundef, ptr noundef) local_unnamed_addr #5

declare void @resize_reorg_layer(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

declare void @resize_avgpool_layer(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

declare void @resize_normalization_layer(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

declare void @resize_cost_layer(ptr noundef, i32 noundef) local_unnamed_addr #5

declare void @error(ptr noundef) local_unnamed_addr #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #6

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass