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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

; Function Attrs: nounwind uwtable
define dso_local void @forward_batchnorm_layer(ptr noundef byval(%struct.layer) align 8 %0, ptr noundef byval(%struct.network_state) align 8 %1) #0 {
  %3 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 0
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = icmp eq i32 %4, 18
  br i1 %5, label %6, label %16

6:                                                ; preds = %2
  %7 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  %8 = load i32, ptr %7, align 8, !tbaa !13
  %9 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %10 = load i32, ptr %9, align 8, !tbaa !14
  %11 = mul nsw i32 %8, %10
  %12 = getelementptr inbounds %struct.network_state, ptr %1, i32 0, i32 1
  %13 = load ptr, ptr %12, align 8, !tbaa !15
  %14 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 101
  %15 = load ptr, ptr %14, align 8, !tbaa !18
  call void @copy_cpu(i32 noundef %11, ptr noundef %13, i32 noundef 1, ptr noundef %15, i32 noundef 1)
  br label %16

16:                                               ; preds = %6, %2
  %17 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 0
  %18 = load i32, ptr %17, align 8, !tbaa !5
  %19 = icmp eq i32 %18, 2
  br i1 %19, label %20, label %26

20:                                               ; preds = %16
  %21 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  %22 = load i32, ptr %21, align 8, !tbaa !13
  %23 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 22
  store i32 %22, ptr %23, align 4, !tbaa !19
  %24 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 21
  store i32 1, ptr %24, align 8, !tbaa !20
  %25 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 20
  store i32 1, ptr %25, align 4, !tbaa !21
  br label %26

26:                                               ; preds = %20, %16
  %27 = getelementptr inbounds %struct.network_state, ptr %1, i32 0, i32 4
  %28 = load i32, ptr %27, align 8, !tbaa !22
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %112

30:                                               ; preds = %26
  %31 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 101
  %32 = load ptr, ptr %31, align 8, !tbaa !18
  %33 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %34 = load i32, ptr %33, align 8, !tbaa !14
  %35 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 22
  %36 = load i32, ptr %35, align 4, !tbaa !19
  %37 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 20
  %38 = load i32, ptr %37, align 4, !tbaa !21
  %39 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 21
  %40 = load i32, ptr %39, align 8, !tbaa !20
  %41 = mul nsw i32 %38, %40
  %42 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 105
  %43 = load ptr, ptr %42, align 8, !tbaa !23
  call void @mean_cpu(ptr noundef %32, i32 noundef %34, i32 noundef %36, i32 noundef %41, ptr noundef %43)
  %44 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 101
  %45 = load ptr, ptr %44, align 8, !tbaa !18
  %46 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 105
  %47 = load ptr, ptr %46, align 8, !tbaa !23
  %48 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %49 = load i32, ptr %48, align 8, !tbaa !14
  %50 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 22
  %51 = load i32, ptr %50, align 4, !tbaa !19
  %52 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 20
  %53 = load i32, ptr %52, align 4, !tbaa !21
  %54 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 21
  %55 = load i32, ptr %54, align 8, !tbaa !20
  %56 = mul nsw i32 %53, %55
  %57 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 106
  %58 = load ptr, ptr %57, align 8, !tbaa !24
  call void @variance_cpu(ptr noundef %45, ptr noundef %47, i32 noundef %49, i32 noundef %51, i32 noundef %56, ptr noundef %58)
  %59 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 22
  %60 = load i32, ptr %59, align 4, !tbaa !19
  %61 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 109
  %62 = load ptr, ptr %61, align 8, !tbaa !25
  call void @scal_cpu(i32 noundef %60, float noundef 0x3FECCCCCC0000000, ptr noundef %62, i32 noundef 1)
  %63 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 22
  %64 = load i32, ptr %63, align 4, !tbaa !19
  %65 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 105
  %66 = load ptr, ptr %65, align 8, !tbaa !23
  %67 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 109
  %68 = load ptr, ptr %67, align 8, !tbaa !25
  call void @axpy_cpu(i32 noundef %64, float noundef 0x3FB99999A0000000, ptr noundef %66, i32 noundef 1, ptr noundef %68, i32 noundef 1)
  %69 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 22
  %70 = load i32, ptr %69, align 4, !tbaa !19
  %71 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 110
  %72 = load ptr, ptr %71, align 8, !tbaa !26
  call void @scal_cpu(i32 noundef %70, float noundef 0x3FECCCCCC0000000, ptr noundef %72, i32 noundef 1)
  %73 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 22
  %74 = load i32, ptr %73, align 4, !tbaa !19
  %75 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 106
  %76 = load ptr, ptr %75, align 8, !tbaa !24
  %77 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 110
  %78 = load ptr, ptr %77, align 8, !tbaa !26
  call void @axpy_cpu(i32 noundef %74, float noundef 0x3FB99999A0000000, ptr noundef %76, i32 noundef 1, ptr noundef %78, i32 noundef 1)
  %79 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  %80 = load i32, ptr %79, align 8, !tbaa !13
  %81 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %82 = load i32, ptr %81, align 8, !tbaa !14
  %83 = mul nsw i32 %80, %82
  %84 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 101
  %85 = load ptr, ptr %84, align 8, !tbaa !18
  %86 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 111
  %87 = load ptr, ptr %86, align 8, !tbaa !27
  call void @copy_cpu(i32 noundef %83, ptr noundef %85, i32 noundef 1, ptr noundef %87, i32 noundef 1)
  %88 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 101
  %89 = load ptr, ptr %88, align 8, !tbaa !18
  %90 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 105
  %91 = load ptr, ptr %90, align 8, !tbaa !23
  %92 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 106
  %93 = load ptr, ptr %92, align 8, !tbaa !24
  %94 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %95 = load i32, ptr %94, align 8, !tbaa !14
  %96 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 22
  %97 = load i32, ptr %96, align 4, !tbaa !19
  %98 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 20
  %99 = load i32, ptr %98, align 4, !tbaa !21
  %100 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 21
  %101 = load i32, ptr %100, align 8, !tbaa !20
  %102 = mul nsw i32 %99, %101
  call void @normalize_cpu(ptr noundef %89, ptr noundef %91, ptr noundef %93, i32 noundef %95, i32 noundef %97, i32 noundef %102)
  %103 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 15
  %104 = load i32, ptr %103, align 8, !tbaa !13
  %105 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %106 = load i32, ptr %105, align 8, !tbaa !14
  %107 = mul nsw i32 %104, %106
  %108 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 101
  %109 = load ptr, ptr %108, align 8, !tbaa !18
  %110 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 112
  %111 = load ptr, ptr %110, align 8, !tbaa !28
  call void @copy_cpu(i32 noundef %107, ptr noundef %109, i32 noundef 1, ptr noundef %111, i32 noundef 1)
  br label %128

112:                                              ; preds = %26
  %113 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 101
  %114 = load ptr, ptr %113, align 8, !tbaa !18
  %115 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 109
  %116 = load ptr, ptr %115, align 8, !tbaa !25
  %117 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 110
  %118 = load ptr, ptr %117, align 8, !tbaa !26
  %119 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %120 = load i32, ptr %119, align 8, !tbaa !14
  %121 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 22
  %122 = load i32, ptr %121, align 4, !tbaa !19
  %123 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 20
  %124 = load i32, ptr %123, align 4, !tbaa !21
  %125 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 21
  %126 = load i32, ptr %125, align 8, !tbaa !20
  %127 = mul nsw i32 %124, %126
  call void @normalize_cpu(ptr noundef %114, ptr noundef %116, ptr noundef %118, i32 noundef %120, i32 noundef %122, i32 noundef %127)
  br label %128

128:                                              ; preds = %112, %30
  %129 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 101
  %130 = load ptr, ptr %129, align 8, !tbaa !18
  %131 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 95
  %132 = load ptr, ptr %131, align 8, !tbaa !29
  %133 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 11
  %134 = load i32, ptr %133, align 8, !tbaa !14
  %135 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 22
  %136 = load i32, ptr %135, align 4, !tbaa !19
  %137 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 20
  %138 = load i32, ptr %137, align 4, !tbaa !21
  %139 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 21
  %140 = load i32, ptr %139, align 8, !tbaa !20
  %141 = mul nsw i32 %138, %140
  call void @scale_bias(ptr noundef %130, ptr noundef %132, i32 noundef %134, i32 noundef %136, i32 noundef %141)
  ret void
}

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

declare void @mean_cpu(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1

declare void @variance_cpu(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1

declare void @scal_cpu(i32 noundef, float noundef, ptr noundef, i32 noundef) #1

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

declare void @normalize_cpu(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1

declare void @scale_bias(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1

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 = { "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" }

!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 88}
!14 = !{!6, !7, i64 72}
!15 = !{!16, !10, i64 8}
!16 = !{!"network_state", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !7, i64 32, !7, i64 36, !17, i64 40}
!17 = !{!"network", !10, i64 0, !7, i64 8, !7, i64 12, !10, i64 16, !11, i64 24, !7, i64 28, !11, i64 32, !11, i64 36, !10, i64 40, !7, i64 48, !10, i64 56, !7, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !10, i64 96, !10, i64 104, !7, i64 112, !7, i64 116, !7, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !7, i64 148, !7, i64 152, !7, i64 156, !11, i64 160, !11, i64 164, !11, i64 168, !11, i64 172, !11, i64 176, !7, i64 180, !10, i64 184}
!18 = !{!6, !10, i64 528}
!19 = !{!6, !7, i64 116}
!20 = !{!6, !7, i64 112}
!21 = !{!6, !7, i64 108}
!22 = !{!16, !7, i64 32}
!23 = !{!6, !10, i64 560}
!24 = !{!6, !10, i64 568}
!25 = !{!6, !10, i64 592}
!26 = !{!6, !10, i64 600}
!27 = !{!6, !10, i64 608}
!28 = !{!6, !10, i64 616}
!29 = !{!6, !10, i64 480}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

; Function Attrs: nounwind uwtable
define dso_local void @forward_batchnorm_layer(ptr nocapture noundef byval(%struct.layer) align 8 %0, ptr nocapture noundef readonly byval(%struct.network_state) align 8 %1) local_unnamed_addr #0 {
  %3 = load i32, ptr %0, align 8, !tbaa !5
  switch i32 %3, label %19 [
    i32 18, label %.thread
    i32 2, label %13
  ]

.thread:                                          ; preds = %2
  %4 = getelementptr inbounds i8, ptr %0, i64 88
  %5 = load i32, ptr %4, align 8, !tbaa !13
  %6 = getelementptr inbounds i8, ptr %0, i64 72
  %7 = load i32, ptr %6, align 8, !tbaa !14
  %8 = mul nsw i32 %7, %5
  %9 = getelementptr inbounds i8, ptr %1, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !15
  %11 = getelementptr inbounds i8, ptr %0, i64 528
  %12 = load ptr, ptr %11, align 8, !tbaa !18
  tail call void @copy_cpu(i32 noundef %8, ptr noundef %10, i32 noundef 1, ptr noundef %12, i32 noundef 1) #2
  br label %19

13:                                               ; preds = %2
  %14 = getelementptr inbounds i8, ptr %0, i64 88
  %15 = load i32, ptr %14, align 8, !tbaa !13
  %16 = getelementptr inbounds i8, ptr %0, i64 116
  store i32 %15, ptr %16, align 4, !tbaa !19
  %17 = getelementptr inbounds i8, ptr %0, i64 112
  store i32 1, ptr %17, align 8, !tbaa !20
  %18 = getelementptr inbounds i8, ptr %0, i64 108
  store i32 1, ptr %18, align 4, !tbaa !21
  br label %19

19:                                               ; preds = %2, %.thread, %13
  %20 = getelementptr inbounds i8, ptr %1, i64 32
  %21 = load i32, ptr %20, align 8, !tbaa !22
  %.not = icmp eq i32 %21, 0
  %22 = getelementptr inbounds i8, ptr %0, i64 528
  %23 = load ptr, ptr %22, align 8, !tbaa !18
  br i1 %.not, label %49, label %24

24:                                               ; preds = %19
  %25 = getelementptr inbounds i8, ptr %0, i64 72
  %26 = load i32, ptr %25, align 8, !tbaa !14
  %27 = getelementptr inbounds i8, ptr %0, i64 116
  %28 = load i32, ptr %27, align 4, !tbaa !19
  %29 = getelementptr inbounds i8, ptr %0, i64 108
  %30 = load i32, ptr %29, align 4, !tbaa !21
  %31 = getelementptr inbounds i8, ptr %0, i64 112
  %32 = load i32, ptr %31, align 8, !tbaa !20
  %33 = mul nsw i32 %32, %30
  %34 = getelementptr inbounds i8, ptr %0, i64 560
  %35 = load ptr, ptr %34, align 8, !tbaa !23
  tail call void @mean_cpu(ptr noundef %23, i32 noundef %26, i32 noundef %28, i32 noundef %33, ptr noundef %35) #2
  %36 = getelementptr inbounds i8, ptr %0, i64 568
  %37 = load ptr, ptr %36, align 8, !tbaa !24
  tail call void @variance_cpu(ptr noundef %23, ptr noundef %35, i32 noundef %26, i32 noundef %28, i32 noundef %33, ptr noundef %37) #2
  %38 = getelementptr inbounds i8, ptr %0, i64 592
  %39 = load ptr, ptr %38, align 8, !tbaa !25
  tail call void @scal_cpu(i32 noundef %28, float noundef 0x3FECCCCCC0000000, ptr noundef %39, i32 noundef 1) #2
  tail call void @axpy_cpu(i32 noundef %28, float noundef 0x3FB99999A0000000, ptr noundef %35, i32 noundef 1, ptr noundef %39, i32 noundef 1) #2
  %40 = getelementptr inbounds i8, ptr %0, i64 600
  %41 = load ptr, ptr %40, align 8, !tbaa !26
  tail call void @scal_cpu(i32 noundef %28, float noundef 0x3FECCCCCC0000000, ptr noundef %41, i32 noundef 1) #2
  tail call void @axpy_cpu(i32 noundef %28, float noundef 0x3FB99999A0000000, ptr noundef %37, i32 noundef 1, ptr noundef %41, i32 noundef 1) #2
  %42 = getelementptr inbounds i8, ptr %0, i64 88
  %43 = load i32, ptr %42, align 8, !tbaa !13
  %44 = mul nsw i32 %43, %26
  %45 = getelementptr inbounds i8, ptr %0, i64 608
  %46 = load ptr, ptr %45, align 8, !tbaa !27
  tail call void @copy_cpu(i32 noundef %44, ptr noundef %23, i32 noundef 1, ptr noundef %46, i32 noundef 1) #2
  tail call void @normalize_cpu(ptr noundef %23, ptr noundef %35, ptr noundef %37, i32 noundef %26, i32 noundef %28, i32 noundef %33) #2
  %47 = getelementptr inbounds i8, ptr %0, i64 616
  %48 = load ptr, ptr %47, align 8, !tbaa !28
  tail call void @copy_cpu(i32 noundef %44, ptr noundef %23, i32 noundef 1, ptr noundef %48, i32 noundef 1) #2
  br label %63

49:                                               ; preds = %19
  %50 = getelementptr inbounds i8, ptr %0, i64 592
  %51 = load ptr, ptr %50, align 8, !tbaa !25
  %52 = getelementptr inbounds i8, ptr %0, i64 600
  %53 = load ptr, ptr %52, align 8, !tbaa !26
  %54 = getelementptr inbounds i8, ptr %0, i64 72
  %55 = load i32, ptr %54, align 8, !tbaa !14
  %56 = getelementptr inbounds i8, ptr %0, i64 116
  %57 = load i32, ptr %56, align 4, !tbaa !19
  %58 = getelementptr inbounds i8, ptr %0, i64 108
  %59 = load i32, ptr %58, align 4, !tbaa !21
  %60 = getelementptr inbounds i8, ptr %0, i64 112
  %61 = load i32, ptr %60, align 8, !tbaa !20
  %62 = mul nsw i32 %61, %59
  tail call void @normalize_cpu(ptr noundef %23, ptr noundef %51, ptr noundef %53, i32 noundef %55, i32 noundef %57, i32 noundef %62) #2
  br label %63

63:                                               ; preds = %49, %24
  %.pre-phi = phi i32 [ %62, %49 ], [ %33, %24 ]
  %64 = phi i32 [ %57, %49 ], [ %28, %24 ]
  %65 = phi i32 [ %55, %49 ], [ %26, %24 ]
  %66 = getelementptr inbounds i8, ptr %0, i64 480
  %67 = load ptr, ptr %66, align 8, !tbaa !29
  tail call void @scale_bias(ptr noundef %23, ptr noundef %67, i32 noundef %65, i32 noundef %64, i32 noundef %.pre-phi) #2
  ret void
}

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

declare void @mean_cpu(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

declare void @variance_cpu(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

declare void @scal_cpu(i32 noundef, float noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

declare void @normalize_cpu(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare void @scale_bias(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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 = { "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 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 88}
!14 = !{!6, !7, i64 72}
!15 = !{!16, !10, i64 8}
!16 = !{!"network_state", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !7, i64 32, !7, i64 36, !17, i64 40}
!17 = !{!"network", !10, i64 0, !7, i64 8, !7, i64 12, !10, i64 16, !11, i64 24, !7, i64 28, !11, i64 32, !11, i64 36, !10, i64 40, !7, i64 48, !10, i64 56, !7, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !10, i64 96, !10, i64 104, !7, i64 112, !7, i64 116, !7, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !7, i64 148, !7, i64 152, !7, i64 156, !11, i64 160, !11, i64 164, !11, i64 168, !11, i64 172, !11, i64 176, !7, i64 180, !10, i64 184}
!18 = !{!6, !10, i64 528}
!19 = !{!6, !7, i64 116}
!20 = !{!6, !7, i64 112}
!21 = !{!6, !7, i64 108}
!22 = !{!16, !7, i64 32}
!23 = !{!6, !10, i64 560}
!24 = !{!6, !10, i64 568}
!25 = !{!6, !10, i64 592}
!26 = !{!6, !10, i64 600}
!27 = !{!6, !10, i64 608}
!28 = !{!6, !10, i64 616}
!29 = !{!6, !10, i64 480}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SimplifyCFGPass,TailCallElimPass