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

; 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.size_params = type { i32, i32, i32, i32, i32, 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 }

@.str.29 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [4 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

declare i32 @option_find_int(ptr noundef, ptr noundef, i32 noundef) #1

declare ptr @option_find_str(ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @get_activation(ptr noundef) #1

declare void @error(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @parse_convolutional(ptr dead_on_unwind noalias writable sret(%struct.layer) align 8 %0, ptr noundef %1, ptr noundef byval(%struct.size_params) align 8 %2) #2 {
  %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 i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = call i32 @option_find_int(ptr noundef %19, ptr noundef @.str.29, i32 noundef 1)
  store i32 %20, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = call i32 @option_find_int(ptr noundef %21, ptr noundef @.str.30, i32 noundef 1)
  store i32 %22, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = call i32 @option_find_int(ptr noundef %23, ptr noundef @.str.31, i32 noundef 1)
  store i32 %24, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = call i32 @option_find_int_quiet(ptr noundef %25, ptr noundef @.str.32, i32 noundef 0)
  store i32 %26, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = call i32 @option_find_int_quiet(ptr noundef %27, ptr noundef @.str.36, i32 noundef 0)
  store i32 %28, ptr %9, align 4, !tbaa !9
  %29 = load i32, ptr %8, align 4, !tbaa !9
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %31, label %34

31:                                               ; preds = %3
  %32 = load i32, ptr %6, align 4, !tbaa !9
  %33 = sdiv i32 %32, 2
  store i32 %33, ptr %9, align 4, !tbaa !9
  br label %34

34:                                               ; preds = %31, %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = call ptr @option_find_str(ptr noundef %35, ptr noundef @.str.33, ptr noundef @.str.34)
  store ptr %36, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = call i32 @get_activation(ptr noundef %37)
  store i32 %38, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %39 = getelementptr inbounds %struct.size_params, ptr %2, i32 0, i32 2
  %40 = load i32, ptr %39, align 8, !tbaa !11
  store i32 %40, ptr %13, align 4, !tbaa !9
  %41 = getelementptr inbounds %struct.size_params, ptr %2, i32 0, i32 3
  %42 = load i32, ptr %41, align 4, !tbaa !15
  store i32 %42, ptr %14, align 4, !tbaa !9
  %43 = getelementptr inbounds %struct.size_params, ptr %2, i32 0, i32 4
  %44 = load i32, ptr %43, align 8, !tbaa !16
  store i32 %44, ptr %15, align 4, !tbaa !9
  %45 = getelementptr inbounds %struct.size_params, ptr %2, i32 0, i32 0
  %46 = load i32, ptr %45, align 8, !tbaa !17
  store i32 %46, ptr %12, align 4, !tbaa !9
  %47 = load i32, ptr %13, align 4, !tbaa !9
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %55

49:                                               ; preds = %34
  %50 = load i32, ptr %14, align 4, !tbaa !9
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %52, label %55

52:                                               ; preds = %49
  %53 = load i32, ptr %15, align 4, !tbaa !9
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %56, label %55

55:                                               ; preds = %52, %49, %34
  call void @error(ptr noundef @.str.37)
  br label %56

56:                                               ; preds = %55, %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = call i32 @option_find_int_quiet(ptr noundef %57, ptr noundef @.str.38, i32 noundef 0)
  store i32 %58, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = call i32 @option_find_int_quiet(ptr noundef %59, ptr noundef @.str.39, i32 noundef 0)
  store i32 %60, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = call i32 @option_find_int_quiet(ptr noundef %61, ptr noundef @.str.40, i32 noundef 0)
  store i32 %62, ptr %18, align 4, !tbaa !9
  %63 = load i32, ptr %12, align 4, !tbaa !9
  %64 = load i32, ptr %13, align 4, !tbaa !9
  %65 = load i32, ptr %14, align 4, !tbaa !9
  %66 = load i32, ptr %15, align 4, !tbaa !9
  %67 = load i32, ptr %5, align 4, !tbaa !9
  %68 = load i32, ptr %6, align 4, !tbaa !9
  %69 = load i32, ptr %7, align 4, !tbaa !9
  %70 = load i32, ptr %9, align 4, !tbaa !9
  %71 = load i32, ptr %11, align 4, !tbaa !9
  %72 = load i32, ptr %16, align 4, !tbaa !9
  %73 = load i32, ptr %17, align 4, !tbaa !9
  %74 = load i32, ptr %18, align 4, !tbaa !9
  %75 = getelementptr inbounds %struct.size_params, ptr %2, i32 0, i32 7
  %76 = getelementptr inbounds %struct.network, ptr %75, i32 0, i32 23
  %77 = load i32, ptr %76, align 8, !tbaa !18
  call void @make_convolutional_layer(ptr dead_on_unwind writable sret(%struct.layer) align 8 %0, i32 noundef %63, i32 noundef %64, i32 noundef %65, i32 noundef %66, i32 noundef %67, i32 noundef %68, i32 noundef %69, i32 noundef %70, i32 noundef %71, i32 noundef %72, i32 noundef %73, i32 noundef %74, i32 noundef %77)
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = call i32 @option_find_int_quiet(ptr noundef %78, ptr noundef @.str.41, i32 noundef 0)
  %80 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 13
  store i32 %79, ptr %80, align 8, !tbaa !19
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = call float @option_find_float_quiet(ptr noundef %81, ptr noundef @.str.42, float noundef 0.000000e+00)
  %83 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 38
  store float %82, ptr %83, align 4, !tbaa !22
  %84 = getelementptr inbounds %struct.size_params, ptr %2, i32 0, i32 7
  %85 = getelementptr inbounds %struct.network, ptr %84, i32 0, i32 23
  %86 = load i32, ptr %85, align 8, !tbaa !18
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %101

88:                                               ; preds = %56
  %89 = getelementptr inbounds %struct.size_params, ptr %2, i32 0, i32 7
  %90 = getelementptr inbounds %struct.network, ptr %89, i32 0, i32 24
  %91 = load float, ptr %90, align 4, !tbaa !23
  %92 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 57
  store float %91, ptr %92, align 8, !tbaa !24
  %93 = getelementptr inbounds %struct.size_params, ptr %2, i32 0, i32 7
  %94 = getelementptr inbounds %struct.network, ptr %93, i32 0, i32 25
  %95 = load float, ptr %94, align 8, !tbaa !25
  %96 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 58
  store float %95, ptr %96, align 4, !tbaa !26
  %97 = getelementptr inbounds %struct.size_params, ptr %2, i32 0, i32 7
  %98 = getelementptr inbounds %struct.network, ptr %97, i32 0, i32 26
  %99 = load float, ptr %98, align 4, !tbaa !27
  %100 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 59
  store float %99, ptr %100, align 8, !tbaa !28
  br label %101

101:                                              ; preds = %88, %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  ret void
}

declare i32 @option_find_int_quiet(ptr noundef, ptr noundef, i32 noundef) #1

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

declare float @option_find_float_quiet(ptr noundef, ptr noundef, float noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #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 = { 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 #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 8}
!12 = !{!"size_params", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !13, i64 32}
!13 = !{!"network", !6, i64 0, !10, i64 8, !10, i64 12, !6, i64 16, !14, i64 24, !10, i64 28, !14, i64 32, !14, i64 36, !6, i64 40, !10, i64 48, !6, i64 56, !10, i64 64, !14, i64 68, !14, i64 72, !14, i64 76, !14, 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, !14, i64 124, !14, i64 128, !14, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156, !14, i64 160, !14, i64 164, !14, i64 168, !14, i64 172, !14, i64 176, !10, i64 180, !6, i64 184}
!14 = !{!"float", !7, i64 0}
!15 = !{!12, !10, i64 12}
!16 = !{!12, !10, i64 16}
!17 = !{!12, !10, i64 0}
!18 = !{!12, !10, i64 152}
!19 = !{!20, !10, i64 80}
!20 = !{!"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, !14, i64 180, !14, i64 184, !14, i64 188, !14, i64 192, !14, i64 196, !14, i64 200, !14, 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, !14, i64 256, !14, i64 260, !14, i64 264, !10, i64 268, !14, i64 272, !14, i64 276, !14, i64 280, !14, i64 284, !14, i64 288, !14, i64 292, !14, i64 296, !10, i64 300, !10, i64 304, !14, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !14, i64 328, !14, i64 332, !14, 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, !21, i64 800}
!21 = !{!"long", !7, i64 0}
!22 = !{!20, !14, i64 180}
!23 = !{!12, !14, i64 156}
!24 = !{!20, !14, i64 256}
!25 = !{!12, !14, i64 160}
!26 = !{!20, !14, i64 260}
!27 = !{!12, !14, i64 164}
!28 = !{!20, !14, i64 264}


; 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.size_params = type { i32, i32, i32, i32, i32, 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 }

@.str.29 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [4 x i8], align 1

declare i32 @option_find_int(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare ptr @option_find_str(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @get_activation(ptr noundef) local_unnamed_addr #0

declare void @error(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @parse_convolutional(ptr dead_on_unwind noalias writable sret(%struct.layer) align 8 %0, ptr noundef %1, ptr nocapture noundef readonly byval(%struct.size_params) align 8 %2) local_unnamed_addr #1 {
  %4 = tail call i32 @option_find_int(ptr noundef %1, ptr noundef nonnull @.str.29, i32 noundef 1) #2
  %5 = tail call i32 @option_find_int(ptr noundef %1, ptr noundef nonnull @.str.30, i32 noundef 1) #2
  %6 = tail call i32 @option_find_int(ptr noundef %1, ptr noundef nonnull @.str.31, i32 noundef 1) #2
  %7 = tail call i32 @option_find_int_quiet(ptr noundef %1, ptr noundef nonnull @.str.32, i32 noundef 0) #2
  %8 = tail call i32 @option_find_int_quiet(ptr noundef %1, ptr noundef nonnull @.str.36, i32 noundef 0) #2
  %.not = icmp eq i32 %7, 0
  %9 = sdiv i32 %5, 2
  %.0 = select i1 %.not, i32 %8, i32 %9
  %10 = tail call ptr @option_find_str(ptr noundef %1, ptr noundef nonnull @.str.33, ptr noundef nonnull @.str.34) #2
  %11 = tail call i32 @get_activation(ptr noundef %10) #2
  %12 = getelementptr inbounds i8, ptr %2, i64 8
  %13 = load i32, ptr %12, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %2, i64 12
  %15 = load i32, ptr %14, align 4, !tbaa !13
  %16 = getelementptr inbounds i8, ptr %2, i64 16
  %17 = load i32, ptr %16, align 8, !tbaa !14
  %18 = load i32, ptr %2, align 8, !tbaa !15
  %19 = icmp ne i32 %13, 0
  %20 = icmp ne i32 %15, 0
  %or.cond = select i1 %19, i1 %20, i1 false
  %21 = icmp ne i32 %17, 0
  %or.cond3 = select i1 %or.cond, i1 %21, i1 false
  br i1 %or.cond3, label %23, label %22

22:                                               ; preds = %3
  tail call void @error(ptr noundef nonnull @.str.37) #2
  br label %23

23:                                               ; preds = %3, %22
  %24 = tail call i32 @option_find_int_quiet(ptr noundef %1, ptr noundef nonnull @.str.38, i32 noundef 0) #2
  %25 = tail call i32 @option_find_int_quiet(ptr noundef %1, ptr noundef nonnull @.str.39, i32 noundef 0) #2
  %26 = tail call i32 @option_find_int_quiet(ptr noundef %1, ptr noundef nonnull @.str.40, i32 noundef 0) #2
  %27 = getelementptr inbounds i8, ptr %2, i64 152
  %28 = load i32, ptr %27, align 8, !tbaa !16
  tail call void @make_convolutional_layer(ptr dead_on_unwind writable sret(%struct.layer) align 8 %0, i32 noundef %18, i32 noundef %13, i32 noundef %15, i32 noundef %17, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %.0, i32 noundef %11, i32 noundef %24, i32 noundef %25, i32 noundef %26, i32 noundef %28) #2
  %29 = tail call i32 @option_find_int_quiet(ptr noundef %1, ptr noundef nonnull @.str.41, i32 noundef 0) #2
  %30 = getelementptr inbounds i8, ptr %0, i64 80
  store i32 %29, ptr %30, align 8, !tbaa !17
  %31 = tail call float @option_find_float_quiet(ptr noundef %1, ptr noundef nonnull @.str.42, float noundef 0.000000e+00) #2
  %32 = getelementptr inbounds i8, ptr %0, i64 180
  store float %31, ptr %32, align 4, !tbaa !20
  %.not31 = icmp eq i32 %28, 0
  br i1 %.not31, label %40, label %33

33:                                               ; preds = %23
  %34 = getelementptr inbounds i8, ptr %2, i64 156
  %35 = getelementptr inbounds i8, ptr %0, i64 256
  %36 = load <2 x float>, ptr %34, align 4, !tbaa !21
  store <2 x float> %36, ptr %35, align 8, !tbaa !21
  %37 = getelementptr inbounds i8, ptr %2, i64 164
  %38 = load float, ptr %37, align 4, !tbaa !22
  %39 = getelementptr inbounds i8, ptr %0, i64 264
  store float %38, ptr %39, align 8, !tbaa !23
  br label %40

40:                                               ; preds = %33, %23
  ret void
}

declare i32 @option_find_int_quiet(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

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

declare float @option_find_float_quiet(ptr noundef, ptr noundef, float noundef) local_unnamed_addr #0

attributes #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 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 #2 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"size_params", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !10, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"network", !11, i64 0, !7, i64 8, !7, i64 12, !11, i64 16, !12, i64 24, !7, i64 28, !12, i64 32, !12, i64 36, !11, i64 40, !7, i64 48, !11, i64 56, !7, i64 64, !12, i64 68, !12, i64 72, !12, i64 76, !12, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !11, i64 96, !11, i64 104, !7, i64 112, !7, i64 116, !7, i64 120, !12, i64 124, !12, i64 128, !12, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !7, i64 148, !7, i64 152, !7, i64 156, !12, i64 160, !12, i64 164, !12, i64 168, !12, i64 172, !12, i64 176, !7, i64 180, !11, i64 184}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"float", !8, i64 0}
!13 = !{!6, !7, i64 12}
!14 = !{!6, !7, i64 16}
!15 = !{!6, !7, i64 0}
!16 = !{!6, !7, i64 152}
!17 = !{!18, !7, i64 80}
!18 = !{!"layer", !7, i64 0, !7, i64 4, !7, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, 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, !12, i64 180, !12, i64 184, !12, i64 188, !12, i64 192, !12, i64 196, !12, i64 200, !12, 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, !12, i64 256, !12, i64 260, !12, i64 264, !7, i64 268, !12, i64 272, !12, i64 276, !12, i64 280, !12, i64 284, !12, i64 288, !12, i64 292, !12, i64 296, !7, i64 300, !7, i64 304, !12, i64 308, !7, i64 312, !7, i64 316, !7, i64 320, !7, 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, !19, i64 800}
!19 = !{!"long", !8, i64 0}
!20 = !{!18, !12, i64 180}
!21 = !{!12, !12, i64 0}
!22 = !{!6, !12, i64 164}
!23 = !{!18, !12, i64 264}


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