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

; 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.TensorConnectPara = type { ptr, 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 [95 x i8], align 1
@__FUNCTION__.mTensorConnectPara = external hidden unnamed_addr constant [19 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 [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @mTensorConnectPara(ptr noundef %0, ptr noundef %1) #0 {
  %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 40)
  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.TensorConnectPara, 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.TensorConnectPara, 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 27, ptr noundef @__FUNCTION__.mTensorConnectPara, 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.TensorConnectPara, 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.TensorConnectPara, ptr %42, i32 0, i32 4
  store i32 %41, ptr %43, align 4, !tbaa !16
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.TensorConnectPara, 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.TensorConnectPara, 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.TensorConnectPara, 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.TensorConnectPara, 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.TensorConnectPara, 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.TensorConnectPara, 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.TensorConnectPara, ptr %68, i32 0, i32 5
  store float 0x3F50624DE0000000, ptr %69, align 8, !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.TensorConnectPara, ptr %73, i32 0, i32 5
  %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.9, ptr noundef %74, i32 noundef -1, i32 noundef -1)
  %76 = icmp eq ptr %75, null
  br i1 %76, label %77, label %82

77:                                               ; preds = %29
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.TensorConnectPara, ptr %79, i32 0, i32 5
  %81 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %78, i64 noundef ptrtoint (ptr @.str.10 to i64), i64 noundef ptrtoint (ptr @.str.8 to i64), ptr noundef @.str.9, ptr noundef %80, i32 noundef -1, i32 noundef -1)
  br label %82

82:                                               ; preds = %77, %29
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.TensorConnectPara, ptr %83, i32 0, i32 7
  store float 0x3FECCCCCC0000000, ptr %84, align 8, !tbaa !21
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = ptrtoint ptr %86 to i64
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.TensorConnectPara, ptr %88, i32 0, i32 7
  %90 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %85, i64 noundef %87, i64 noundef ptrtoint (ptr @.str.11 to i64), ptr noundef @.str.9, ptr noundef %89, i32 noundef -1, i32 noundef -1)
  %91 = icmp eq ptr %90, null
  br i1 %91, label %92, label %97

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

97:                                               ; preds = %92, %82
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.TensorConnectPara, ptr %98, i32 0, i32 6
  store float 0x3F847AE140000000, ptr %99, align 4, !tbaa !22
  %100 = load ptr, ptr %3, align 8, !tbaa !5
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = ptrtoint ptr %101 to i64
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.TensorConnectPara, ptr %103, i32 0, i32 6
  %105 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %100, i64 noundef %102, i64 noundef ptrtoint (ptr @.str.12 to i64), ptr noundef @.str.9, ptr noundef %104, i32 noundef -1, i32 noundef -1)
  %106 = icmp eq ptr %105, null
  br i1 %106, label %107, label %112

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

112:                                              ; preds = %107, %97
  br label %113

113:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.TensorConnectPara, ptr %114, i32 0, i32 6
  %116 = load float, ptr %115, align 4, !tbaa !22
  %117 = fcmp olt float %116, 0.000000e+00
  br i1 %117, label %123, label %118

118:                                              ; preds = %113
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.TensorConnectPara, ptr %119, i32 0, i32 6
  %121 = load float, ptr %120, align 4, !tbaa !22
  %122 = fcmp oge float %121, 1.000000e+00
  br label %123

123:                                              ; preds = %118, %113
  %124 = phi i1 [ true, %113 ], [ %122, %118 ]
  %125 = zext i1 %124 to i32
  store i32 %125, ptr %7, align 4, !tbaa !13
  %126 = load i32, ptr %7, align 4, !tbaa !13
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %130

128:                                              ; preds = %123
  %129 = load i32, ptr %7, align 4, !tbaa !13
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %129, i32 noundef -1, ptr noundef @.str.1, i32 noundef 37, ptr noundef @__FUNCTION__.mTensorConnectPara, ptr noundef @.str.13)
  br label %130

130:                                              ; preds = %128, %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %131

131:                                              ; preds = %130
  br label %132

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

; 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 @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: 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

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 = { 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 = !{!"TensorConnectPara", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !12, i64 24, !12, i64 28, !12, i64 32}
!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 20}
!17 = !{!10, !11, i64 8}
!18 = !{!10, !11, i64 12}
!19 = !{!10, !11, i64 16}
!20 = !{!10, !12, i64 24}
!21 = !{!10, !12, i64 32}
!22 = !{!10, !12, i64 28}


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

; Function Attrs: nounwind uwtable
define dso_local ptr @mTensorConnectPara(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = tail call ptr @m_Malloc(i32 noundef 40) #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 27, ptr noundef nonnull @__FUNCTION__.mTensorConnectPara, 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 20
  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 24
  store float 0x3F50624DE0000000, ptr %25, align 8, !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.9, ptr noundef nonnull %25, i32 noundef -1, i32 noundef -1) #3
  %27 = icmp eq ptr %26, null
  br i1 %27, label %28, label %30

28:                                               ; preds = %9
  %29 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef ptrtoint (ptr @.str.10 to i64), i64 noundef ptrtoint (ptr @.str.8 to i64), ptr noundef nonnull @.str.9, ptr noundef nonnull %25, i32 noundef -1, i32 noundef -1) #3
  br label %30

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

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

36:                                               ; preds = %34, %30
  %37 = getelementptr inbounds i8, ptr %3, i64 28
  store float 0x3F847AE140000000, ptr %37, align 4, !tbaa !20
  %38 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str.12 to i64), ptr noundef nonnull @.str.9, ptr noundef nonnull %37, i32 noundef -1, i32 noundef -1) #3
  %39 = icmp eq ptr %38, null
  br i1 %39, label %40, label %42

40:                                               ; preds = %36
  %41 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef ptrtoint (ptr @.str.10 to i64), i64 noundef ptrtoint (ptr @.str.12 to i64), ptr noundef nonnull @.str.9, ptr noundef nonnull %37, i32 noundef -1, i32 noundef -1) #3
  br label %42

42:                                               ; preds = %36, %40
  %43 = load float, ptr %37, align 4, !tbaa !20
  %44 = fcmp olt float %43, 0.000000e+00
  %45 = fcmp oge float %43, 1.000000e+00
  %46 = or i1 %44, %45
  br i1 %46, label %47, label %48

47:                                               ; preds = %42
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.1, i32 noundef 37, ptr noundef nonnull @__FUNCTION__.mTensorConnectPara, ptr noundef nonnull @.str.13) #3
  br label %48

48:                                               ; preds = %47, %42
  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 = !{!"TensorConnectPara", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !11, i64 24, !11, i64 28, !11, i64 32}
!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 20}
!15 = !{!6, !10, i64 8}
!16 = !{!6, !10, i64 12}
!17 = !{!6, !10, i64 16}
!18 = !{!6, !11, i64 24}
!19 = !{!6, !11, i64 32}
!20 = !{!6, !11, i64 28}


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