; LLVM IR from jingweizhanghuai/Morn :: test (test_csv)

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

@.str = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@__FUNCTION__.main = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #3
  %10 = call ptr (ptr, ...) @mFileCreate(ptr noundef @.str)
  store ptr %10, ptr %2, align 8, !tbaa !5
  call void @_mTimerBegin(ptr noundef null)
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  call void @mCSVLoad(ptr noundef %11)
  %12 = call float @_mTimerEnd(ptr noundef null, ptr noundef @.str.1, i32 noundef 11, ptr noundef @__FUNCTION__.main)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  store i32 0, ptr %3, align 4, !tbaa !9
  %13 = load ptr, ptr %2, align 8, !tbaa !5
  %14 = call ptr @m_PropertyRead(ptr noundef %13, ptr noundef @.str.2, ptr noundef %3, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  store i32 0, ptr %4, align 4, !tbaa !9
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = call ptr @m_PropertyRead(ptr noundef %15, ptr noundef @.str.3, ptr noundef %4, ptr noundef null)
  %17 = load i32, ptr %3, align 4, !tbaa !9
  %18 = load i32, ptr %4, align 4, !tbaa !9
  %19 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %17, i32 noundef %18)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %20 = load ptr, ptr %2, align 8, !tbaa !5
  %21 = call ptr (ptr, i64, i64, ptr, ...) @m_CSVRead(ptr noundef %20, i64 noundef 5, i64 noundef 2, ptr noundef null, ptr noundef null)
  store ptr %21, ptr %5, align 8, !tbaa !5
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %22)
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  %25 = call ptr (ptr, i64, i64, ptr, ...) @m_CSVRead(ptr noundef %24, i64 noundef 5, i64 noundef ptrtoint (ptr @.str.6 to i64), ptr noundef null, ptr noundef null)
  store ptr %25, ptr %5, align 8, !tbaa !5
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %26)
  %28 = load ptr, ptr %2, align 8, !tbaa !5
  %29 = call ptr (ptr, i64, i64, ptr, ...) @m_CSVRead(ptr noundef %28, i64 noundef ptrtoint (ptr @.str.7 to i64), i64 noundef 2, ptr noundef null, ptr noundef null)
  store ptr %29, ptr %5, align 8, !tbaa !5
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %30)
  %32 = load ptr, ptr %2, align 8, !tbaa !5
  %33 = call ptr (ptr, i64, i64, ptr, ...) @m_CSVRead(ptr noundef %32, i64 noundef ptrtoint (ptr @.str.7 to i64), i64 noundef ptrtoint (ptr @.str.6 to i64), ptr noundef null, ptr noundef null)
  store ptr %33, ptr %5, align 8, !tbaa !5
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %34)
  %36 = load ptr, ptr %2, align 8, !tbaa !5
  %37 = call ptr @m_PropertyWrite(ptr noundef %36, ptr noundef @.str.8, ptr noundef @.str.9, i32 noundef -1)
  %38 = load ptr, ptr %2, align 8, !tbaa !5
  %39 = call ptr (ptr, i64, i64, ptr, ...) @m_CSVRead(ptr noundef %38, i64 noundef ptrtoint (ptr @.str.10 to i64), i64 noundef ptrtoint (ptr @.str.6 to i64), ptr noundef null, ptr noundef null)
  store ptr %39, ptr %5, align 8, !tbaa !5
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %40)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  %43 = call ptr @m_CSVCol(ptr noundef %42, i64 noundef ptrtoint (ptr @.str.11 to i64))
  store ptr %43, ptr %6, align 8, !tbaa !5
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.MList, ptr %44, i32 0, i32 0
  %46 = load i32, ptr %45, align 8, !tbaa !11
  %47 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %46)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %48

48:                                               ; preds = %64, %0
  %49 = load i32, ptr %7, align 4, !tbaa !9
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.MList, ptr %50, i32 0, i32 0
  %52 = load i32, ptr %51, align 8, !tbaa !11
  %53 = icmp slt i32 %49, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %67

55:                                               ; preds = %48
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.MList, ptr %56, i32 0, i32 1
  %58 = load ptr, ptr %57, align 8, !tbaa !13
  %59 = load i32, ptr %7, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds ptr, ptr %58, i64 %60
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, ptr noundef %62)
  br label %64

64:                                               ; preds = %55
  %65 = load i32, ptr %7, align 4, !tbaa !9
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %7, align 4, !tbaa !9
  br label %48, !llvm.loop !14

67:                                               ; preds = %54
  %68 = load ptr, ptr %2, align 8, !tbaa !5
  %69 = call ptr @m_PropertyWrite(ptr noundef %68, ptr noundef @.str.8, ptr noundef @.str.11, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %95, %67
  %71 = load i32, ptr %8, align 4, !tbaa !9
  %72 = icmp slt i32 %71, 100
  br i1 %72, label %74, label %73

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

74:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.MList, ptr %75, i32 0, i32 1
  %77 = load ptr, ptr %76, align 8, !tbaa !13
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.MList, ptr %78, i32 0, i32 0
  %80 = load i32, ptr %79, align 8, !tbaa !11
  %81 = call i32 @m_Rand(i32 noundef 1, i32 noundef %80)
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds ptr, ptr %77, i64 %82
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  store ptr %84, ptr %9, align 8, !tbaa !5
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  %86 = load ptr, ptr %2, align 8, !tbaa !5
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = ptrtoint ptr %87 to i64
  %89 = call ptr (ptr, i64, i64, ptr, ...) @m_CSVRead(ptr noundef %86, i64 noundef %88, i64 noundef ptrtoint (ptr @.str.9 to i64), ptr noundef null, ptr noundef null)
  %90 = load ptr, ptr %2, align 8, !tbaa !5
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = ptrtoint ptr %91 to i64
  %93 = call ptr (ptr, i64, i64, ptr, ...) @m_CSVRead(ptr noundef %90, i64 noundef %92, i64 noundef ptrtoint (ptr @.str.15 to i64), ptr noundef null, ptr noundef null)
  %94 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, ptr noundef %85, ptr noundef %89, ptr noundef %93)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %95

95:                                               ; preds = %74
  %96 = load i32, ptr %8, align 4, !tbaa !9
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %8, align 4, !tbaa !9
  br label %70, !llvm.loop !16

98:                                               ; preds = %73
  %99 = load ptr, ptr %2, align 8, !tbaa !5
  call void @mObjectRelease(ptr noundef %99)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #3
  ret i32 0
}

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

declare ptr @mFileCreate(ptr noundef, ...) #2

declare void @_mTimerBegin(ptr noundef) #2

declare void @mCSVLoad(ptr noundef) #2

declare float @_mTimerEnd(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

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

declare i32 @printf(ptr noundef, ...) #2

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

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

declare ptr @m_CSVCol(ptr noundef, i64 noundef) #2

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

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

declare void @mObjectRelease(ptr noundef) #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 = { 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 }

!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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"MList", !10, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


; 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 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@__FUNCTION__.main = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call ptr (ptr, ...) @mFileCreate(ptr noundef nonnull @.str) #4
  tail call void @_mTimerBegin(ptr noundef null) #4
  tail call void @mCSVLoad(ptr noundef %3) #4
  %4 = tail call float @_mTimerEnd(ptr noundef null, ptr noundef nonnull @.str.1, i32 noundef 11, ptr noundef nonnull @__FUNCTION__.main) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  store i32 0, ptr %1, align 4, !tbaa !5
  %5 = call ptr @m_PropertyRead(ptr noundef %3, ptr noundef nonnull @.str.2, ptr noundef nonnull %1, ptr noundef null) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  store i32 0, ptr %2, align 4, !tbaa !5
  %6 = call ptr @m_PropertyRead(ptr noundef %3, ptr noundef nonnull @.str.3, ptr noundef nonnull %2, ptr noundef null) #4
  %7 = load i32, ptr %1, align 4, !tbaa !5
  %8 = load i32, ptr %2, align 4, !tbaa !5
  %9 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %7, i32 noundef %8)
  %10 = call ptr (ptr, i64, i64, ptr, ...) @m_CSVRead(ptr noundef %3, i64 noundef 5, i64 noundef 2, ptr noundef null, ptr noundef null) #4
  %11 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, ptr noundef %10)
  %12 = call ptr (ptr, i64, i64, ptr, ...) @m_CSVRead(ptr noundef %3, i64 noundef 5, i64 noundef ptrtoint (ptr @.str.6 to i64), ptr noundef null, ptr noundef null) #4
  %13 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, ptr noundef %12)
  %14 = call ptr (ptr, i64, i64, ptr, ...) @m_CSVRead(ptr noundef %3, i64 noundef ptrtoint (ptr @.str.7 to i64), i64 noundef 2, ptr noundef null, ptr noundef null) #4
  %15 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, ptr noundef %14)
  %16 = call ptr (ptr, i64, i64, ptr, ...) @m_CSVRead(ptr noundef %3, i64 noundef ptrtoint (ptr @.str.7 to i64), i64 noundef ptrtoint (ptr @.str.6 to i64), ptr noundef null, ptr noundef null) #4
  %17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, ptr noundef %16)
  %18 = call ptr @m_PropertyWrite(ptr noundef %3, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.9, i32 noundef -1) #4
  %19 = call ptr (ptr, i64, i64, ptr, ...) @m_CSVRead(ptr noundef %3, i64 noundef ptrtoint (ptr @.str.10 to i64), i64 noundef ptrtoint (ptr @.str.6 to i64), ptr noundef null, ptr noundef null) #4
  %20 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, ptr noundef %19)
  %21 = call ptr @m_CSVCol(ptr noundef %3, i64 noundef ptrtoint (ptr @.str.11 to i64)) #4
  %22 = load i32, ptr %21, align 8, !tbaa !9
  %23 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %22)
  %24 = load i32, ptr %21, align 8, !tbaa !9
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %0
  %26 = getelementptr inbounds i8, ptr %21, i64 8
  br label %29

._crit_edge:                                      ; preds = %29, %0
  %27 = call ptr @m_PropertyWrite(ptr noundef %3, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.11, i32 noundef -1) #4
  %28 = getelementptr inbounds i8, ptr %21, i64 8
  br label %38

29:                                               ; preds = %.lr.ph, %29
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %29 ]
  %30 = load ptr, ptr %26, align 8, !tbaa !12
  %31 = getelementptr inbounds ptr, ptr %30, i64 %indvars.iv
  %32 = load ptr, ptr %31, align 8, !tbaa !13
  %33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, ptr noundef %32)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %34 = load i32, ptr %21, align 8, !tbaa !9
  %35 = sext i32 %34 to i64
  %36 = icmp slt i64 %indvars.iv.next, %35
  br i1 %36, label %29, label %._crit_edge, !llvm.loop !14

37:                                               ; preds = %38
  call void @mObjectRelease(ptr noundef %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  ret i32 0

38:                                               ; preds = %._crit_edge, %38
  %.03133 = phi i32 [ 0, %._crit_edge ], [ %49, %38 ]
  %39 = load ptr, ptr %28, align 8, !tbaa !12
  %40 = load i32, ptr %21, align 8, !tbaa !9
  %41 = call i32 @m_Rand(i32 noundef 1, i32 noundef %40) #4
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds ptr, ptr %39, i64 %42
  %44 = load ptr, ptr %43, align 8, !tbaa !13
  %45 = ptrtoint ptr %44 to i64
  %46 = call ptr (ptr, i64, i64, ptr, ...) @m_CSVRead(ptr noundef %3, i64 noundef %45, i64 noundef ptrtoint (ptr @.str.9 to i64), ptr noundef null, ptr noundef null) #4
  %47 = call ptr (ptr, i64, i64, ptr, ...) @m_CSVRead(ptr noundef %3, i64 noundef %45, i64 noundef ptrtoint (ptr @.str.15 to i64), ptr noundef null, ptr noundef null) #4
  %48 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, ptr noundef %44, ptr noundef %46, ptr noundef %47)
  %49 = add nuw nsw i32 %.03133, 1
  %exitcond.not = icmp eq i32 %49, 100
  br i1 %exitcond.not, label %37, label %38, !llvm.loop !16
}

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

declare ptr @mFileCreate(ptr noundef, ...) local_unnamed_addr #2

declare void @_mTimerBegin(ptr noundef) local_unnamed_addr #2

declare void @mCSVLoad(ptr noundef) local_unnamed_addr #2

declare float @_mTimerEnd(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare ptr @m_PropertyRead(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

declare ptr @m_CSVRead(ptr noundef, i64 noundef, i64 noundef, ptr noundef, ...) local_unnamed_addr #2

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

declare ptr @m_CSVCol(ptr noundef, i64 noundef) local_unnamed_addr #2

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

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

declare void @mObjectRelease(ptr 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 = { mustprogress 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 = { nofree nounwind "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 }

!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 = !{!10, !6, i64 0}
!10 = !{!"MList", !6, i64 0, !11, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!11, !11, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


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