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

; 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.TensorConvPara = type { ptr, i32, i32, i32, i32, i32, 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 [92 x i8], align 1
@__FUNCTION__.mTensorConvPara = external hidden unnamed_addr constant [16 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 [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 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 uwtable
define dso_local ptr @mTensorConvPara(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = 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) #4
  %8 = call ptr @m_Malloc(i32 noundef 48)
  store ptr %8, ptr %5, align 8, !tbaa !5
  %9 = load ptr, ptr %3, align 8, !tbaa !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)
  %14 = call ptr @mNetworkLayer(ptr noundef %9, ptr noundef %13)
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.TensorConvPara, ptr %15, i32 0, i32 0
  store ptr %14, ptr %16, align 8, !tbaa !9
  br label %17

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

25:                                               ; preds = %17
  %26 = load i32, ptr %6, align 4, !tbaa !13
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %26, i32 noundef -1, ptr noundef @.str.1, i32 noundef 188, ptr noundef @__FUNCTION__.mTensorConvPara, ptr noundef @.str.2)
  br label %27

27:                                               ; preds = %25, %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %28

28:                                               ; preds = %27
  br label %29

29:                                               ; preds = %28
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.TensorConvPara, ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  %33 = getelementptr inbounds %struct.MLayer, ptr %32, i32 0, i32 1
  %34 = load i32, ptr %33, align 8, !tbaa !14
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [256 x %struct.TensorRegister], ptr @morn_tensor_register, i64 0, i64 %35
  %37 = getelementptr inbounds %struct.TensorRegister, ptr %36, i32 0, i32 0
  %38 = getelementptr inbounds [32 x i8], ptr %37, i64 0, i64 0
  %39 = call i32 @strcmp(ptr noundef @.str.3, ptr noundef %38) #5
  %40 = icmp ne i32 %39, 0
  %41 = zext i1 %40 to i32
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.TensorConvPara, ptr %42, i32 0, i32 6
  store i32 %41, ptr %43, align 4, !tbaa !16
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.TensorConvPara, ptr %44, i32 0, i32 1
  store i32 1, ptr %45, align 8, !tbaa !17
  %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 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.TensorConvPara, ptr %49, i32 0, i32 1
  %51 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %46, i64 noundef %48, i64 noundef ptrtoint (ptr @.str.4 to i64), ptr noundef @.str.5, ptr noundef %50, i32 noundef -1, i32 noundef -1)
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.TensorConvPara, ptr %52, i32 0, i32 2
  store i32 1, ptr %53, align 4, !tbaa !18
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = ptrtoint ptr %55 to i64
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.TensorConvPara, ptr %57, i32 0, i32 2
  %59 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %54, i64 noundef %56, i64 noundef ptrtoint (ptr @.str.6 to i64), ptr noundef @.str.5, ptr noundef %58, i32 noundef -1, i32 noundef -1)
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.TensorConvPara, ptr %60, i32 0, i32 3
  store i32 1, ptr %61, align 8, !tbaa !19
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = ptrtoint ptr %63 to i64
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.TensorConvPara, ptr %65, i32 0, i32 3
  %67 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %62, i64 noundef %64, i64 noundef ptrtoint (ptr @.str.7 to i64), ptr noundef @.str.5, ptr noundef %66, i32 noundef -1, i32 noundef -1)
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.TensorConvPara, ptr %68, i32 0, i32 4
  store i32 1, ptr %69, align 4, !tbaa !20
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = ptrtoint ptr %71 to i64
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.TensorConvPara, ptr %73, i32 0, i32 4
  %75 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %70, i64 noundef %72, i64 noundef ptrtoint (ptr @.str.8 to i64), ptr noundef @.str.5, ptr noundef %74, i32 noundef -1, i32 noundef -1)
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.TensorConvPara, ptr %76, i32 0, i32 5
  store i32 1, ptr %77, align 8, !tbaa !21
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = ptrtoint ptr %79 to i64
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.TensorConvPara, ptr %81, i32 0, i32 5
  %83 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %78, i64 noundef %80, i64 noundef ptrtoint (ptr @.str.9 to i64), ptr noundef @.str.5, ptr noundef %82, i32 noundef -1, i32 noundef -1)
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.TensorConvPara, ptr %84, i32 0, i32 7
  store float 0x3F50624DE0000000, ptr %85, align 8, !tbaa !22
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = ptrtoint ptr %87 to i64
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.TensorConvPara, ptr %89, i32 0, i32 7
  %91 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %86, i64 noundef %88, i64 noundef ptrtoint (ptr @.str.10 to i64), ptr noundef @.str.11, ptr noundef %90, i32 noundef -1, i32 noundef -1)
  %92 = icmp eq ptr %91, null
  br i1 %92, label %93, label %98

93:                                               ; preds = %29
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.TensorConvPara, ptr %95, i32 0, i32 7
  %97 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %94, i64 noundef ptrtoint (ptr @.str.12 to i64), i64 noundef ptrtoint (ptr @.str.10 to i64), ptr noundef @.str.11, ptr noundef %96, i32 noundef -1, i32 noundef -1)
  br label %98

98:                                               ; preds = %93, %29
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.TensorConvPara, ptr %99, i32 0, i32 9
  store float 0x3FECCCCCC0000000, ptr %100, align 8, !tbaa !23
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = ptrtoint ptr %102 to i64
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.TensorConvPara, ptr %104, i32 0, i32 9
  %106 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %101, i64 noundef %103, i64 noundef ptrtoint (ptr @.str.13 to i64), ptr noundef @.str.11, ptr noundef %105, i32 noundef -1, i32 noundef -1)
  %107 = icmp eq ptr %106, null
  br i1 %107, label %108, label %113

108:                                              ; preds = %98
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.TensorConvPara, ptr %110, i32 0, i32 9
  %112 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %109, i64 noundef ptrtoint (ptr @.str.12 to i64), i64 noundef ptrtoint (ptr @.str.13 to i64), ptr noundef @.str.11, ptr noundef %111, i32 noundef -1, i32 noundef -1)
  br label %113

113:                                              ; preds = %108, %98
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.TensorConvPara, ptr %114, i32 0, i32 8
  store float 0x3F847AE140000000, ptr %115, align 4, !tbaa !24
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = ptrtoint ptr %117 to i64
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.TensorConvPara, ptr %119, i32 0, i32 8
  %121 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %116, i64 noundef %118, i64 noundef ptrtoint (ptr @.str.14 to i64), ptr noundef @.str.11, ptr noundef %120, i32 noundef -1, i32 noundef -1)
  %122 = icmp eq ptr %121, null
  br i1 %122, label %123, label %128

123:                                              ; preds = %113
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.TensorConvPara, ptr %125, i32 0, i32 8
  %127 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %124, i64 noundef ptrtoint (ptr @.str.12 to i64), i64 noundef ptrtoint (ptr @.str.14 to i64), ptr noundef @.str.11, ptr noundef %126, i32 noundef -1, i32 noundef -1)
  br label %128

128:                                              ; preds = %123, %113
  br label %129

129:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.TensorConvPara, ptr %130, i32 0, i32 8
  %132 = load float, ptr %131, align 4, !tbaa !24
  %133 = fcmp olt float %132, 0.000000e+00
  br i1 %133, label %139, label %134

134:                                              ; preds = %129
  %135 = load ptr, ptr %5, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.TensorConvPara, ptr %135, i32 0, i32 8
  %137 = load float, ptr %136, align 4, !tbaa !24
  %138 = fcmp oge float %137, 1.000000e+00
  br label %139

139:                                              ; preds = %134, %129
  %140 = phi i1 [ true, %129 ], [ %138, %134 ]
  %141 = zext i1 %140 to i32
  store i32 %141, ptr %7, align 4, !tbaa !13
  %142 = load i32, ptr %7, align 4, !tbaa !13
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %144, label %146

144:                                              ; preds = %139
  %145 = load i32, ptr %7, align 4, !tbaa !13
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %145, i32 noundef -1, ptr noundef @.str.1, i32 noundef 200, ptr noundef @__FUNCTION__.mTensorConvPara, ptr noundef @.str.15)
  br label %146

146:                                              ; preds = %144, %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %147

147:                                              ; preds = %146
  br label %148

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

declare ptr @m_Malloc(i32 noundef) #2

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = { 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, !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 = !{!"TensorConvPara", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !12, i64 32, !12, i64 36, !12, i64 40}
!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 28}
!17 = !{!10, !11, i64 8}
!18 = !{!10, !11, i64 12}
!19 = !{!10, !11, i64 16}
!20 = !{!10, !11, i64 20}
!21 = !{!10, !11, i64 24}
!22 = !{!10, !12, i64 32}
!23 = !{!10, !12, i64 40}
!24 = !{!10, !12, i64 36}


; 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 [92 x i8], align 1
@__FUNCTION__.mTensorConvPara = external hidden unnamed_addr constant [16 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 [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @mTensorConvPara(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = tail call ptr @m_Malloc(i32 noundef 48) #3
  %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) #3
  %6 = tail call ptr @mNetworkLayer(ptr noundef %0, ptr noundef %5) #3
  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 188, ptr noundef nonnull @__FUNCTION__.mTensorConvPara, ptr noundef nonnull @.str.2) #3
  %.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) #4
  %16 = icmp ne i32 %15, 0
  %17 = zext i1 %16 to i32
  %18 = getelementptr inbounds i8, ptr %3, i64 28
  store i32 %17, ptr %18, align 4, !tbaa !14
  %19 = getelementptr inbounds i8, ptr %3, i64 8
  store i32 1, ptr %19, align 8, !tbaa !15
  %20 = 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 @.str.5, ptr noundef nonnull %19, i32 noundef -1, i32 noundef -1) #3
  %21 = getelementptr inbounds i8, ptr %3, i64 12
  store i32 1, ptr %21, align 4, !tbaa !16
  %22 = 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 @.str.5, ptr noundef nonnull %21, i32 noundef -1, i32 noundef -1) #3
  %23 = getelementptr inbounds i8, ptr %3, i64 16
  store i32 1, ptr %23, align 8, !tbaa !17
  %24 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str.7 to i64), ptr noundef nonnull @.str.5, ptr noundef nonnull %23, i32 noundef -1, i32 noundef -1) #3
  %25 = getelementptr inbounds i8, ptr %3, i64 20
  store i32 1, ptr %25, align 4, !tbaa !18
  %26 = 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 @.str.5, ptr noundef nonnull %25, i32 noundef -1, i32 noundef -1) #3
  %27 = getelementptr inbounds i8, ptr %3, i64 24
  store i32 1, ptr %27, align 8, !tbaa !19
  %28 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str.9 to i64), ptr noundef nonnull @.str.5, ptr noundef nonnull %27, i32 noundef -1, i32 noundef -1) #3
  %29 = getelementptr inbounds i8, ptr %3, i64 32
  store float 0x3F50624DE0000000, ptr %29, align 8, !tbaa !20
  %30 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str.10 to i64), ptr noundef nonnull @.str.11, ptr noundef nonnull %29, i32 noundef -1, i32 noundef -1) #3
  %31 = icmp eq ptr %30, null
  br i1 %31, label %32, label %34

32:                                               ; preds = %9
  %33 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef ptrtoint (ptr @.str.12 to i64), i64 noundef ptrtoint (ptr @.str.10 to i64), ptr noundef nonnull @.str.11, ptr noundef nonnull %29, i32 noundef -1, i32 noundef -1) #3
  br label %34

34:                                               ; preds = %32, %9
  %35 = getelementptr inbounds i8, ptr %3, i64 40
  store float 0x3FECCCCCC0000000, ptr %35, align 8, !tbaa !21
  %36 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str.13 to i64), ptr noundef nonnull @.str.11, ptr noundef nonnull %35, i32 noundef -1, i32 noundef -1) #3
  %37 = icmp eq ptr %36, null
  br i1 %37, label %38, label %40

38:                                               ; preds = %34
  %39 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef ptrtoint (ptr @.str.12 to i64), i64 noundef ptrtoint (ptr @.str.13 to i64), ptr noundef nonnull @.str.11, ptr noundef nonnull %35, i32 noundef -1, i32 noundef -1) #3
  br label %40

40:                                               ; preds = %38, %34
  %41 = getelementptr inbounds i8, ptr %3, i64 36
  store float 0x3F847AE140000000, ptr %41, align 4, !tbaa !22
  %42 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str.14 to i64), ptr noundef nonnull @.str.11, ptr noundef nonnull %41, i32 noundef -1, i32 noundef -1) #3
  %43 = icmp eq ptr %42, null
  br i1 %43, label %44, label %46

44:                                               ; preds = %40
  %45 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef ptrtoint (ptr @.str.12 to i64), i64 noundef ptrtoint (ptr @.str.14 to i64), ptr noundef nonnull @.str.11, ptr noundef nonnull %41, i32 noundef -1, i32 noundef -1) #3
  br label %46

46:                                               ; preds = %40, %44
  %47 = load float, ptr %41, align 4, !tbaa !22
  %48 = fcmp olt float %47, 0.000000e+00
  %49 = fcmp oge float %47, 1.000000e+00
  %50 = or i1 %48, %49
  br i1 %50, label %51, label %52

51:                                               ; preds = %46
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.1, i32 noundef 200, ptr noundef nonnull @__FUNCTION__.mTensorConvPara, ptr noundef nonnull @.str.15) #3
  br label %52

52:                                               ; preds = %51, %46
  ret ptr %3
}

declare ptr @m_Malloc(i32 noundef) local_unnamed_addr #1

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

declare ptr @m_INIRead(ptr noundef, i64 noundef, i64 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

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 = { nounwind }
attributes #4 = { 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 = !{!"TensorConvPara", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !11, i64 32, !11, i64 36, !11, i64 40}
!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 28}
!15 = !{!6, !10, i64 8}
!16 = !{!6, !10, i64 12}
!17 = !{!6, !10, i64 16}
!18 = !{!6, !10, i64 20}
!19 = !{!6, !10, i64 24}
!20 = !{!6, !11, i64 32}
!21 = !{!6, !11, i64 40}
!22 = !{!6, !11, i64 36}


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