; LLVM IR from jingweizhanghuai/Morn :: src/deep_learning (morn_tensor_batch_normlize)

; 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.TensorRegister = type { [32 x i8], ptr, ptr, ptr }
%struct.TensorBatchNormPara = type { ptr, i32, float, float, float }
%struct.MLayer = type { [32 x i8], i32, ptr, ptr, ptr, i32 }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [102 x i8], align 1
@__FUNCTION__.mTensorBatchNormPara = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@morn_tensor_register = external global [256 x %struct.TensorRegister], align 16
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @mTensorBatchNormPara(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %9 = call ptr @m_Malloc(i32 noundef 24)
  store ptr %9, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = ptrtoint ptr %11 to i64
  %13 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %10, i64 noundef %12, i64 noundef ptrtoint (ptr @.str to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %13, ptr %6, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = call ptr @mNetworkLayer(ptr noundef %14, ptr noundef %15)
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %17, i32 0, i32 0
  store ptr %16, ptr %18, align 8, !tbaa !9
  br label %19

19:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %20, i32 0, i32 0
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  %23 = icmp eq ptr %22, null
  %24 = zext i1 %23 to i32
  store i32 %24, ptr %7, align 4, !tbaa !13
  %25 = load i32, ptr %7, align 4, !tbaa !13
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %27, label %29

27:                                               ; preds = %19
  %28 = load i32, ptr %7, align 4, !tbaa !13
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %28, i32 noundef -1, ptr noundef @.str.1, i32 noundef 25, ptr noundef @__FUNCTION__.mTensorBatchNormPara, ptr noundef @.str.2)
  br label %29

29:                                               ; preds = %27, %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %30

30:                                               ; preds = %29
  br label %31

31:                                               ; preds = %30
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %32, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  %35 = getelementptr inbounds %struct.MLayer, ptr %34, i32 0, i32 1
  %36 = load i32, ptr %35, align 8, !tbaa !14
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [256 x %struct.TensorRegister], ptr @morn_tensor_register, i64 0, i64 %37
  %39 = getelementptr inbounds %struct.TensorRegister, ptr %38, i32 0, i32 0
  %40 = getelementptr inbounds [32 x i8], ptr %39, i64 0, i64 0
  %41 = call i32 @strcmp(ptr noundef @.str.3, ptr noundef %40) #6
  %42 = icmp ne i32 %41, 0
  %43 = zext i1 %42 to i32
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %44, i32 0, i32 1
  store i32 %43, ptr %45, align 8, !tbaa !16
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = ptrtoint ptr %47 to i64
  %49 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %46, i64 noundef %48, i64 noundef ptrtoint (ptr @.str.4 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %49, ptr %6, align 8, !tbaa !5
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = icmp ne ptr %50, null
  br i1 %51, label %52, label %58

52:                                               ; preds = %31
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = call double @atof(ptr noundef %53) #6
  %55 = fptrunc double %54 to float
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %56, i32 0, i32 2
  store float %55, ptr %57, align 4, !tbaa !17
  br label %73

58:                                               ; preds = %31
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %59, i64 noundef ptrtoint (ptr @.str.5 to i64), i64 noundef ptrtoint (ptr @.str.4 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %60, ptr %6, align 8, !tbaa !5
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = icmp ne ptr %61, null
  br i1 %62, label %63, label %69

63:                                               ; preds = %58
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = call double @atof(ptr noundef %64) #6
  %66 = fptrunc double %65 to float
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %67, i32 0, i32 2
  store float %66, ptr %68, align 4, !tbaa !17
  br label %72

69:                                               ; preds = %58
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %70, i32 0, i32 2
  store float 0x3F50624DE0000000, ptr %71, align 4, !tbaa !17
  br label %72

72:                                               ; preds = %69, %63
  br label %73

73:                                               ; preds = %72, %52
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = ptrtoint ptr %75 to i64
  %77 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %74, i64 noundef %76, i64 noundef ptrtoint (ptr @.str.6 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %77, ptr %6, align 8, !tbaa !5
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = icmp ne ptr %78, null
  br i1 %79, label %80, label %86

80:                                               ; preds = %73
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = call double @atof(ptr noundef %81) #6
  %83 = fptrunc double %82 to float
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %84, i32 0, i32 3
  store float %83, ptr %85, align 8, !tbaa !18
  br label %101

86:                                               ; preds = %73
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %87, i64 noundef ptrtoint (ptr @.str.5 to i64), i64 noundef ptrtoint (ptr @.str.6 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %88, ptr %6, align 8, !tbaa !5
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = icmp ne ptr %89, null
  br i1 %90, label %91, label %97

91:                                               ; preds = %86
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = call double @atof(ptr noundef %92) #6
  %94 = fptrunc double %93 to float
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %95, i32 0, i32 3
  store float %94, ptr %96, align 8, !tbaa !18
  br label %100

97:                                               ; preds = %86
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %98, i32 0, i32 3
  store float 0x3F847AE140000000, ptr %99, align 8, !tbaa !18
  br label %100

100:                                              ; preds = %97, %91
  br label %101

101:                                              ; preds = %100, %80
  br label %102

102:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %103, i32 0, i32 3
  %105 = load float, ptr %104, align 8, !tbaa !18
  %106 = fcmp olt float %105, 0.000000e+00
  br i1 %106, label %112, label %107

107:                                              ; preds = %102
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %108, i32 0, i32 3
  %110 = load float, ptr %109, align 8, !tbaa !18
  %111 = fcmp oge float %110, 1.000000e+00
  br label %112

112:                                              ; preds = %107, %102
  %113 = phi i1 [ true, %102 ], [ %111, %107 ]
  %114 = zext i1 %113 to i32
  store i32 %114, ptr %8, align 4, !tbaa !13
  %115 = load i32, ptr %8, align 4, !tbaa !13
  %116 = icmp ne i32 %115, 0
  br i1 %116, label %117, label %119

117:                                              ; preds = %112
  %118 = load i32, ptr %8, align 4, !tbaa !13
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %118, i32 noundef -1, ptr noundef @.str.1, i32 noundef 46, ptr noundef @__FUNCTION__.mTensorBatchNormPara, ptr noundef @.str.7)
  br label %119

119:                                              ; preds = %117, %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %120

120:                                              ; preds = %119
  br label %121

121:                                              ; preds = %120
  %122 = load ptr, ptr %3, align 8, !tbaa !5
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = ptrtoint ptr %123 to i64
  %125 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %122, i64 noundef %124, i64 noundef ptrtoint (ptr @.str.8 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %125, ptr %6, align 8, !tbaa !5
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = icmp ne ptr %126, null
  br i1 %127, label %128, label %134

128:                                              ; preds = %121
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = call double @atof(ptr noundef %129) #6
  %131 = fptrunc double %130 to float
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %132, i32 0, i32 4
  store float %131, ptr %133, align 4, !tbaa !19
  br label %149

134:                                              ; preds = %121
  %135 = load ptr, ptr %3, align 8, !tbaa !5
  %136 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %135, i64 noundef ptrtoint (ptr @.str.5 to i64), i64 noundef ptrtoint (ptr @.str.8 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %136, ptr %6, align 8, !tbaa !5
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  %138 = icmp ne ptr %137, null
  br i1 %138, label %139, label %145

139:                                              ; preds = %134
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = call double @atof(ptr noundef %140) #6
  %142 = fptrunc double %141 to float
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %143, i32 0, i32 4
  store float %142, ptr %144, align 4, !tbaa !19
  br label %148

145:                                              ; preds = %134
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %146, i32 0, i32 4
  store float 0x3FECCCCCC0000000, ptr %147, align 4, !tbaa !19
  br label %148

148:                                              ; preds = %145, %139
  br label %149

149:                                              ; preds = %148, %128
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret ptr %150
}

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

declare ptr @m_Malloc(i32 noundef) #2

declare ptr @m_INIRead(ptr noundef, i64 noundef, i64 noundef, ptr noundef, ...) #2

declare ptr @mNetworkLayer(ptr noundef, ptr noundef) #2

declare void @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) #2

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #4

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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 willreturn memory(read) "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 = { inlinehint nounwind willreturn memory(read) 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 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }

!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, !6, i64 0}
!10 = !{!"TensorBatchNormPara", !6, i64 0, !11, i64 8, !12, i64 12, !12, i64 16, !12, i64 20}
!11 = !{!"int", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !11, i64 32}
!15 = !{!"MLayer", !7, i64 0, !11, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !11, i64 64}
!16 = !{!10, !11, i64 8}
!17 = !{!10, !12, i64 12}
!18 = !{!10, !12, i64 16}
!19 = !{!10, !12, i64 20}


; 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.TensorRegister = type { [32 x i8], ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [102 x i8], align 1
@__FUNCTION__.mTensorBatchNormPara = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@morn_tensor_register = external global [256 x %struct.TensorRegister], align 16
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @mTensorBatchNormPara(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = tail call ptr @m_Malloc(i32 noundef 24) #4
  %4 = ptrtoint ptr %1 to i64
  %5 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %6 = tail call ptr @mNetworkLayer(ptr noundef %0, ptr noundef %5) #4
  store ptr %6, ptr %3, align 8, !tbaa !5
  %7 = icmp eq ptr %6, null
  br i1 %7, label %8, label %9

8:                                                ; preds = %2
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.1, i32 noundef 25, ptr noundef nonnull @__FUNCTION__.mTensorBatchNormPara, ptr noundef nonnull @.str.2) #4
  %.pre = load ptr, ptr %3, align 8, !tbaa !5
  br label %9

9:                                                ; preds = %8, %2
  %10 = phi ptr [ %.pre, %8 ], [ %6, %2 ]
  %11 = getelementptr inbounds i8, ptr %10, i64 32
  %12 = load i32, ptr %11, align 8, !tbaa !12
  %13 = sext i32 %12 to i64
  %14 = getelementptr inbounds [256 x %struct.TensorRegister], ptr @morn_tensor_register, i64 0, i64 %13
  %15 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull dereferenceable(1) %14) #5
  %16 = icmp ne i32 %15, 0
  %17 = zext i1 %16 to i32
  %18 = getelementptr inbounds i8, ptr %3, i64 8
  store i32 %17, ptr %18, align 8, !tbaa !14
  %19 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str.4 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %.not = icmp eq ptr %19, null
  br i1 %.not, label %20, label %.sink.split

20:                                               ; preds = %9
  %21 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef ptrtoint (ptr @.str.5 to i64), i64 noundef ptrtoint (ptr @.str.4 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %.not50 = icmp eq ptr %21, null
  br i1 %.not50, label %24, label %.sink.split

.sink.split:                                      ; preds = %20, %9
  %.sink61 = phi ptr [ %19, %9 ], [ %21, %20 ]
  %22 = tail call double @atof(ptr noundef %.sink61) #5
  %23 = fptrunc double %22 to float
  br label %24

24:                                               ; preds = %.sink.split, %20
  %.sink = phi float [ 0x3F50624DE0000000, %20 ], [ %23, %.sink.split ]
  %25 = getelementptr inbounds i8, ptr %3, i64 12
  store float %.sink, ptr %25, align 4, !tbaa !15
  %26 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str.6 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %.not51 = icmp eq ptr %26, null
  br i1 %.not51, label %27, label %.sink.split62

27:                                               ; preds = %24
  %28 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef ptrtoint (ptr @.str.5 to i64), i64 noundef ptrtoint (ptr @.str.6 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %.not52 = icmp eq ptr %28, null
  br i1 %.not52, label %31, label %.sink.split62

.sink.split62:                                    ; preds = %27, %24
  %.sink64 = phi ptr [ %26, %24 ], [ %28, %27 ]
  %29 = tail call double @atof(ptr noundef %.sink64) #5
  %30 = fptrunc double %29 to float
  br label %31

31:                                               ; preds = %.sink.split62, %27
  %.sink56 = phi float [ 0x3F847AE140000000, %27 ], [ %30, %.sink.split62 ]
  %32 = getelementptr inbounds i8, ptr %3, i64 16
  store float %.sink56, ptr %32, align 8, !tbaa !16
  %33 = fcmp olt float %.sink56, 0.000000e+00
  %34 = fcmp oge float %.sink56, 1.000000e+00
  %35 = or i1 %33, %34
  br i1 %35, label %36, label %37

36:                                               ; preds = %31
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.1, i32 noundef 46, ptr noundef nonnull @__FUNCTION__.mTensorBatchNormPara, ptr noundef nonnull @.str.7) #4
  br label %37

37:                                               ; preds = %36, %31
  %38 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str.8 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %.not53 = icmp eq ptr %38, null
  br i1 %.not53, label %39, label %.sink.split65

39:                                               ; preds = %37
  %40 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef ptrtoint (ptr @.str.5 to i64), i64 noundef ptrtoint (ptr @.str.8 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %.not54 = icmp eq ptr %40, null
  br i1 %.not54, label %43, label %.sink.split65

.sink.split65:                                    ; preds = %39, %37
  %.sink67 = phi ptr [ %38, %37 ], [ %40, %39 ]
  %41 = tail call double @atof(ptr noundef %.sink67) #5
  %42 = fptrunc double %41 to float
  br label %43

43:                                               ; preds = %.sink.split65, %39
  %.sink58 = phi float [ 0x3FECCCCCC0000000, %39 ], [ %42, %.sink.split65 ]
  %44 = getelementptr inbounds i8, ptr %3, i64 20
  store float %.sink58, ptr %44, align 4, !tbaa !17
  ret ptr %3
}

declare ptr @m_Malloc(i32 noundef) local_unnamed_addr #1

declare ptr @m_INIRead(ptr noundef, i64 noundef, i64 noundef, ptr noundef, ...) local_unnamed_addr #1

declare ptr @mNetworkLayer(ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare double @atof(ptr nocapture noundef nonnull) local_unnamed_addr #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 = { "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 nofree nounwind willreturn memory(argmem: read) "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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 #4 = { nounwind }
attributes #5 = { nounwind willreturn memory(read) }

!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 = !{!"TensorBatchNormPara", !7, i64 0, !10, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!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 = !{!13, !10, i64 32}
!13 = !{!"MLayer", !8, i64 0, !10, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !10, i64 64}
!14 = !{!6, !10, i64 8}
!15 = !{!6, !11, i64 12}
!16 = !{!6, !11, i64 16}
!17 = !{!6, !11, i64 20}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass