; LLVM IR from jingweizhanghuai/Morn :: example (thread_pool1)

; 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.HandleList = type { %struct.MList, i32, i32, i32, i32 }
%struct.MList = type { i32, ptr }

@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [78 x i8], align 1
@__FUNCTION__.main = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @func(ptr noundef) #0

declare i32 @usleep(i32 noundef) #1

declare i32 @m_Rand(i32 noundef, i32 noundef) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca [16 x [64 x i8]], align 16
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 1024, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %12

12:                                               ; preds = %168, %0
  %13 = load i32, ptr %3, align 4, !tbaa !5
  %14 = icmp slt i32 %13, 16
  br i1 %14, label %16, label %15

15:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  br label %171

16:                                               ; preds = %12
  %17 = call i32 @m_Rand(i32 noundef 0, i32 noundef 30)
  %18 = mul nsw i32 %17, 1000
  %19 = call i32 @usleep(i32 noundef %18)
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [16 x [64 x i8]], ptr %2, i64 0, i64 %21
  %23 = getelementptr inbounds [64 x i8], ptr %22, i64 0, i64 0
  %24 = call i32 @m_RandString(ptr noundef %23, i32 noundef 32, i32 noundef 64)
  br label %25

25:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  %26 = load i8, ptr @.str.2, align 1, !tbaa !9
  %27 = sext i8 %26 to i32
  %28 = icmp ne i32 %27, 0
  %29 = zext i1 %28 to i32
  store i32 %29, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  store i64 ptrtoint (ptr @func to i64), ptr %5, align 8, !tbaa !10
  %30 = load i64, ptr %5, align 8, !tbaa !10
  %31 = icmp eq i64 %30, 0
  br i1 %31, label %39, label %32

32:                                               ; preds = %25
  %33 = load i64, ptr %5, align 8, !tbaa !10
  %34 = inttoptr i64 %33 to ptr
  %35 = getelementptr inbounds %struct.HandleList, ptr %34, i64 -1
  %36 = getelementptr inbounds %struct.HandleList, ptr %35, i32 0, i32 4
  %37 = load i32, ptr %36, align 4, !tbaa !12
  %38 = icmp eq i32 %37, 262587807
  br i1 %38, label %39, label %104

39:                                               ; preds = %32, %25
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = icmp eq i32 %40, 1
  br i1 %41, label %42, label %49

42:                                               ; preds = %39
  %43 = load i64, ptr %5, align 8, !tbaa !10
  %44 = inttoptr i64 %43 to ptr
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [16 x [64 x i8]], ptr %2, i64 0, i64 %46
  %48 = getelementptr inbounds [64 x i8], ptr %47, i64 0, i64 0
  call void @m_ThreadPool(ptr noundef %44, ptr noundef %48, ptr noundef null, ptr noundef null, i32 noundef 0)
  br label %103

49:                                               ; preds = %39
  %50 = load i32, ptr %4, align 4, !tbaa !5
  %51 = icmp eq i32 %50, 2
  br i1 %51, label %52, label %59

52:                                               ; preds = %49
  %53 = load i64, ptr %5, align 8, !tbaa !10
  %54 = inttoptr i64 %53 to ptr
  %55 = load i32, ptr %3, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [16 x [64 x i8]], ptr %2, i64 0, i64 %56
  %58 = getelementptr inbounds [64 x i8], ptr %57, i64 0, i64 0
  call void @m_ThreadPool(ptr noundef %54, ptr noundef %58, ptr noundef inttoptr (i64 -1 to ptr), ptr noundef null, i32 noundef 0)
  br label %102

59:                                               ; preds = %49
  %60 = load i32, ptr %4, align 4, !tbaa !5
  %61 = icmp eq i32 %60, 3
  br i1 %61, label %62, label %81

62:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  store i64 0, ptr %6, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  store i64 0, ptr %7, align 8, !tbaa !10
  %63 = load i64, ptr %6, align 8, !tbaa !10
  %64 = load i64, ptr %7, align 8, !tbaa !10
  %65 = icmp ne i64 %63, %64
  br i1 %65, label %66, label %73

66:                                               ; preds = %62
  %67 = load i64, ptr %5, align 8, !tbaa !10
  %68 = inttoptr i64 %67 to ptr
  %69 = load i32, ptr %3, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [16 x [64 x i8]], ptr %2, i64 0, i64 %70
  %72 = getelementptr inbounds [64 x i8], ptr %71, i64 0, i64 0
  call void @m_ThreadPool(ptr noundef %68, ptr noundef %72, ptr noundef inttoptr (i64 -1 to ptr), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef 0)
  br label %80

73:                                               ; preds = %62
  %74 = load i64, ptr %5, align 8, !tbaa !10
  %75 = inttoptr i64 %74 to ptr
  %76 = load i32, ptr %3, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [16 x [64 x i8]], ptr %2, i64 0, i64 %77
  %79 = getelementptr inbounds [64 x i8], ptr %78, i64 0, i64 0
  call void @m_ThreadPool(ptr noundef %75, ptr noundef %79, ptr noundef inttoptr (i64 -1 to ptr), ptr noundef null, i32 noundef -1)
  br label %80

80:                                               ; preds = %73, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  br label %101

81:                                               ; preds = %59
  %82 = load i32, ptr %4, align 4, !tbaa !5
  %83 = icmp eq i32 %82, 4
  br i1 %83, label %84, label %91

84:                                               ; preds = %81
  %85 = load i64, ptr %5, align 8, !tbaa !10
  %86 = inttoptr i64 %85 to ptr
  %87 = load i32, ptr %3, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [16 x [64 x i8]], ptr %2, i64 0, i64 %88
  %90 = getelementptr inbounds [64 x i8], ptr %89, i64 0, i64 0
  call void @m_ThreadPool(ptr noundef %86, ptr noundef %90, ptr noundef inttoptr (i64 -1 to ptr), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  br label %100

91:                                               ; preds = %81
  br label %92

92:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 1, ptr %8, align 4, !tbaa !5
  %93 = load i32, ptr %8, align 4, !tbaa !5
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %95, label %97

95:                                               ; preds = %92
  %96 = load i32, ptr %8, align 4, !tbaa !5
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %96, i32 noundef -1, ptr noundef @.str.3, i32 noundef 22, ptr noundef @__FUNCTION__.main, ptr noundef @.str.4)
  br label %97

97:                                               ; preds = %95, %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %98

98:                                               ; preds = %97
  br label %99

99:                                               ; preds = %98
  br label %100

100:                                              ; preds = %99, %84
  br label %101

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

102:                                              ; preds = %101, %52
  br label %103

103:                                              ; preds = %102, %42
  br label %165

104:                                              ; preds = %32
  %105 = load i32, ptr %4, align 4, !tbaa !5
  %106 = icmp eq i32 %105, 0
  br i1 %106, label %107, label %110

107:                                              ; preds = %104
  %108 = load i64, ptr %5, align 8, !tbaa !10
  %109 = inttoptr i64 %108 to ptr
  call void @m_ThreadPool(ptr noundef null, ptr noundef %109, ptr noundef null, ptr noundef null, i32 noundef 0)
  br label %164

110:                                              ; preds = %104
  %111 = load i32, ptr %4, align 4, !tbaa !5
  %112 = icmp eq i32 %111, 1
  br i1 %112, label %113, label %120

113:                                              ; preds = %110
  %114 = load i64, ptr %5, align 8, !tbaa !10
  %115 = inttoptr i64 %114 to ptr
  %116 = load i32, ptr %3, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [16 x [64 x i8]], ptr %2, i64 0, i64 %117
  %119 = getelementptr inbounds [64 x i8], ptr %118, i64 0, i64 0
  call void @m_ThreadPool(ptr noundef null, ptr noundef %115, ptr noundef %119, ptr noundef null, i32 noundef 0)
  br label %163

120:                                              ; preds = %110
  %121 = load i32, ptr %4, align 4, !tbaa !5
  %122 = icmp eq i32 %121, 2
  br i1 %122, label %123, label %142

123:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  store i64 0, ptr %9, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  store i64 0, ptr %10, align 8, !tbaa !10
  %124 = load i64, ptr %9, align 8, !tbaa !10
  %125 = load i64, ptr %10, align 8, !tbaa !10
  %126 = icmp ne i64 %124, %125
  br i1 %126, label %127, label %134

127:                                              ; preds = %123
  %128 = load i64, ptr %5, align 8, !tbaa !10
  %129 = inttoptr i64 %128 to ptr
  %130 = load i32, ptr %3, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [16 x [64 x i8]], ptr %2, i64 0, i64 %131
  %133 = getelementptr inbounds [64 x i8], ptr %132, i64 0, i64 0
  call void @m_ThreadPool(ptr noundef null, ptr noundef %129, ptr noundef %133, ptr noundef inttoptr (i64 -1 to ptr), i32 noundef 0)
  br label %141

134:                                              ; preds = %123
  %135 = load i64, ptr %5, align 8, !tbaa !10
  %136 = inttoptr i64 %135 to ptr
  %137 = load i32, ptr %3, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [16 x [64 x i8]], ptr %2, i64 0, i64 %138
  %140 = getelementptr inbounds [64 x i8], ptr %139, i64 0, i64 0
  call void @m_ThreadPool(ptr noundef null, ptr noundef %136, ptr noundef %140, ptr noundef null, i32 noundef -1)
  br label %141

141:                                              ; preds = %134, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %162

142:                                              ; preds = %120
  %143 = load i32, ptr %4, align 4, !tbaa !5
  %144 = icmp eq i32 %143, 3
  br i1 %144, label %145, label %152

145:                                              ; preds = %142
  %146 = load i64, ptr %5, align 8, !tbaa !10
  %147 = inttoptr i64 %146 to ptr
  %148 = load i32, ptr %3, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [16 x [64 x i8]], ptr %2, i64 0, i64 %149
  %151 = getelementptr inbounds [64 x i8], ptr %150, i64 0, i64 0
  call void @m_ThreadPool(ptr noundef null, ptr noundef %147, ptr noundef %151, ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  br label %161

152:                                              ; preds = %142
  br label %153

153:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 1, ptr %11, align 4, !tbaa !5
  %154 = load i32, ptr %11, align 4, !tbaa !5
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %156, label %158

156:                                              ; preds = %153
  %157 = load i32, ptr %11, align 4, !tbaa !5
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %157, i32 noundef -1, ptr noundef @.str.3, i32 noundef 22, ptr noundef @__FUNCTION__.main, ptr noundef @.str.4)
  br label %158

158:                                              ; preds = %156, %153
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %159

159:                                              ; preds = %158
  br label %160

160:                                              ; preds = %159
  br label %161

161:                                              ; preds = %160, %145
  br label %162

162:                                              ; preds = %161, %141
  br label %163

163:                                              ; preds = %162, %113
  br label %164

164:                                              ; preds = %163, %107
  br label %165

165:                                              ; preds = %164, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  br label %166

166:                                              ; preds = %165
  br label %167

167:                                              ; preds = %166
  br label %168

168:                                              ; preds = %167
  %169 = load i32, ptr %3, align 4, !tbaa !5
  %170 = add nsw i32 %169, 1
  store i32 %170, ptr %3, align 4, !tbaa !5
  br label %12, !llvm.loop !16

171:                                              ; preds = %15
  %172 = call ptr @mMornObject(ptr noundef @.str.5, i32 noundef -1)
  %173 = call ptr @m_PropertyWrite(ptr noundef %172, ptr noundef @.str.6, ptr noundef null, i32 noundef -1)
  call void @llvm.lifetime.end.p0(i64 1024, ptr %2) #3
  ret i32 0
}

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

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

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

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

declare ptr @mMornObject(ptr 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" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !7, i64 0}
!12 = !{!13, !6, i64 28}
!13 = !{!"HandleList", !14, i64 0, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28}
!14 = !{!"MList", !6, i64 0, !15, i64 8}
!15 = !{!"any pointer", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


; 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"

@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [78 x i8], align 1
@__FUNCTION__.main = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @func(ptr noundef) #0

declare i32 @usleep(i32 noundef) local_unnamed_addr #1

declare i32 @m_Rand(i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [16 x [64 x i8]], align 16
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %1) #3
  %2 = load i8, ptr @.str.2, align 1
  %.fr = freeze i8 %2
  %.not = icmp eq i8 %.fr, 0
  br i1 %.not, label %.split.us, label %.split

.split.us:                                        ; preds = %0, %12
  %indvars.iv45 = phi i64 [ %indvars.iv.next46, %12 ], [ 0, %0 ]
  %3 = call i32 @m_Rand(i32 noundef 0, i32 noundef 30) #3
  %4 = mul nsw i32 %3, 1000
  %5 = call i32 @usleep(i32 noundef %4) #3
  %6 = getelementptr inbounds [16 x [64 x i8]], ptr %1, i64 0, i64 %indvars.iv45
  %7 = call i32 @m_RandString(ptr noundef nonnull %6, i32 noundef 32, i32 noundef 64) #3
  %8 = load i32, ptr getelementptr inbounds (i8, ptr @func, i64 -4), align 4, !tbaa !5
  %9 = icmp eq i32 %8, 262587807
  br i1 %9, label %11, label %10

10:                                               ; preds = %.split.us
  call void @m_ThreadPool(ptr noundef null, ptr noundef nonnull @func, ptr noundef null, ptr noundef null, i32 noundef 0) #3
  br label %12

11:                                               ; preds = %.split.us
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.3, i32 noundef 22, ptr noundef nonnull @__FUNCTION__.main, ptr noundef nonnull @.str.4) #3
  br label %12

12:                                               ; preds = %11, %10
  %indvars.iv.next46 = add nuw nsw i64 %indvars.iv45, 1
  %exitcond48.not = icmp eq i64 %indvars.iv.next46, 16
  br i1 %exitcond48.not, label %.split42.us, label %.split.us, !llvm.loop !12

.split42.us:                                      ; preds = %24, %12
  %13 = call ptr @mMornObject(ptr noundef nonnull @.str.5, i32 noundef -1) #3
  %14 = call ptr @m_PropertyWrite(ptr noundef %13, ptr noundef nonnull @.str.6, ptr noundef null, i32 noundef -1) #3
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %1) #3
  ret i32 0

.split:                                           ; preds = %0, %24
  %indvars.iv = phi i64 [ %indvars.iv.next, %24 ], [ 0, %0 ]
  %15 = call i32 @m_Rand(i32 noundef 0, i32 noundef 30) #3
  %16 = mul nsw i32 %15, 1000
  %17 = call i32 @usleep(i32 noundef %16) #3
  %18 = getelementptr inbounds [16 x [64 x i8]], ptr %1, i64 0, i64 %indvars.iv
  %19 = call i32 @m_RandString(ptr noundef nonnull %18, i32 noundef 32, i32 noundef 64) #3
  %20 = load i32, ptr getelementptr inbounds (i8, ptr @func, i64 -4), align 4, !tbaa !5
  %21 = icmp eq i32 %20, 262587807
  br i1 %21, label %22, label %23

22:                                               ; preds = %.split
  call void @m_ThreadPool(ptr noundef nonnull @func, ptr noundef nonnull %18, ptr noundef null, ptr noundef null, i32 noundef 0) #3
  br label %24

23:                                               ; preds = %.split
  call void @m_ThreadPool(ptr noundef null, ptr noundef nonnull @func, ptr noundef nonnull %18, ptr noundef null, i32 noundef 0) #3
  br label %24

24:                                               ; preds = %23, %22
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 16
  br i1 %exitcond.not, label %.split42.us, label %.split, !llvm.loop !12
}

declare i32 @m_RandString(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare void @m_ThreadPool(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 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

declare ptr @m_PropertyWrite(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !8, i64 28}
!6 = !{!"HandleList", !7, i64 0, !8, i64 16, !8, i64 20, !8, i64 24, !8, i64 28}
!7 = !{!"MList", !8, i64 0, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass