; LLVM IR from themisvaltinos/Partitioned-Hash-Join :: tests/test_phjoin.ll (testPhjoin)

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

@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [13 x i8], align 1
@__PRETTY_FUNCTION__._testPhjoin = external hidden unnamed_addr constant [23 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @acutest_check_(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #0

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

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

; Function Attrs: noreturn nounwind uwtable
declare dso_local void @acutest_abort_() #2

declare i32 @fclose(ptr noundef) #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @_consumedComment(ptr noundef) #0

; Function Attrs: nounwind
declare i32 @feof(ptr noundef) #5

; Function Attrs: nounwind uwtable
define dso_local void @_testPhjoin() #0 {
  %1 = alloca ptr, align 8
  %2 = alloca %struct.join_relation, align 8
  %3 = alloca %struct.join_relation, align 8
  %4 = alloca %struct.join_relation, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i8, align 1
  %10 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #6
  %11 = call noalias ptr @fopen(ptr noundef @.str.44, ptr noundef @.str.45)
  store ptr %11, ptr %1, align 8, !tbaa !5
  %12 = load ptr, ptr %1, align 8, !tbaa !5
  %13 = icmp ne ptr %12, null
  br i1 %13, label %14, label %15

14:                                               ; preds = %0
  br label %16

15:                                               ; preds = %0
  call void @__assert_fail(ptr noundef @.str.46, ptr noundef @.str.38, i32 noundef 54, ptr noundef @__PRETTY_FUNCTION__._testPhjoin) #7
  unreachable

16:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 16, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %17 = call ptr @initializeScheduler(i64 noundef 4)
  store ptr %17, ptr %5, align 8, !tbaa !5
  br label %18

18:                                               ; preds = %105, %30, %16
  %19 = load ptr, ptr %1, align 8, !tbaa !5
  %20 = call i32 @feof(ptr noundef %19) #6
  %21 = icmp ne i32 %20, 0
  %22 = xor i1 %21, true
  br i1 %22, label %23, label %113

23:                                               ; preds = %18
  %24 = load ptr, ptr %1, align 8, !tbaa !5
  %25 = call zeroext i1 @_consumedComment(ptr noundef %24)
  br i1 %25, label %30, label %26

26:                                               ; preds = %23
  %27 = load ptr, ptr %1, align 8, !tbaa !5
  %28 = call i32 @feof(ptr noundef %27) #6
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %31

30:                                               ; preds = %26, %23
  br label %18, !llvm.loop !9

31:                                               ; preds = %26
  %32 = load ptr, ptr %1, align 8, !tbaa !5
  call void @_parseTestCase(ptr noundef %32, ptr noundef %2, ptr noundef %3, ptr noundef %4)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = call ptr @phjoin(ptr noundef %2, ptr noundef %3, ptr noundef %33)
  store ptr %34, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !11
  br label %35

35:                                               ; preds = %102, %31
  %36 = load i32, ptr %7, align 4, !tbaa !11
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.join_relation, ptr %37, i32 0, i32 1
  %39 = load i32, ptr %38, align 8, !tbaa !13
  %40 = icmp ult i32 %36, %39
  br i1 %40, label %42, label %41

41:                                               ; preds = %35
  store i32 4, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %105

42:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  store i8 0, ptr %9, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !11
  br label %43

43:                                               ; preds = %85, %42
  %44 = load i32, ptr %10, align 4, !tbaa !11
  %45 = getelementptr inbounds %struct.join_relation, ptr %4, i32 0, i32 1
  %46 = load i32, ptr %45, align 8, !tbaa !13
  %47 = icmp ult i32 %44, %46
  br i1 %47, label %49, label %48

48:                                               ; preds = %43
  store i32 7, ptr %8, align 4
  br label %88

49:                                               ; preds = %43
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.join_relation, ptr %50, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8, !tbaa !17
  %53 = load i32, ptr %7, align 4, !tbaa !11
  %54 = zext i32 %53 to i64
  %55 = getelementptr inbounds %struct.tuple, ptr %52, i64 %54
  %56 = getelementptr inbounds %struct.tuple, ptr %55, i32 0, i32 0
  %57 = load i32, ptr %56, align 4, !tbaa !18
  %58 = getelementptr inbounds %struct.join_relation, ptr %4, i32 0, i32 0
  %59 = load ptr, ptr %58, align 8, !tbaa !17
  %60 = load i32, ptr %10, align 4, !tbaa !11
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds %struct.tuple, ptr %59, i64 %61
  %63 = getelementptr inbounds %struct.tuple, ptr %62, i32 0, i32 0
  %64 = load i32, ptr %63, align 4, !tbaa !18
  %65 = icmp eq i32 %57, %64
  br i1 %65, label %66, label %84

66:                                               ; preds = %49
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.join_relation, ptr %67, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !17
  %70 = load i32, ptr %7, align 4, !tbaa !11
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds %struct.tuple, ptr %69, i64 %71
  %73 = getelementptr inbounds %struct.tuple, ptr %72, i32 0, i32 1
  %74 = load i32, ptr %73, align 4, !tbaa !20
  %75 = getelementptr inbounds %struct.join_relation, ptr %4, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8, !tbaa !17
  %77 = load i32, ptr %10, align 4, !tbaa !11
  %78 = zext i32 %77 to i64
  %79 = getelementptr inbounds %struct.tuple, ptr %76, i64 %78
  %80 = getelementptr inbounds %struct.tuple, ptr %79, i32 0, i32 1
  %81 = load i32, ptr %80, align 4, !tbaa !20
  %82 = icmp eq i32 %74, %81
  br i1 %82, label %83, label %84

83:                                               ; preds = %66
  store i8 1, ptr %9, align 1, !tbaa !15
  store i32 7, ptr %8, align 4
  br label %88

84:                                               ; preds = %66, %49
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %10, align 4, !tbaa !11
  %87 = add i32 %86, 1
  store i32 %87, ptr %10, align 4, !tbaa !11
  br label %43, !llvm.loop !21

88:                                               ; preds = %83, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %89

89:                                               ; preds = %88
  br label %90

90:                                               ; preds = %89
  %91 = load i8, ptr %9, align 1, !tbaa !15, !range !22, !noundef !23
  %92 = trunc i8 %91 to i1
  %93 = zext i1 %92 to i32
  %94 = icmp eq i32 %93, 1
  %95 = zext i1 %94 to i32
  %96 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %95, ptr noundef @.str.38, i32 noundef 79, ptr noundef @.str.5, ptr noundef @.str.47)
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %99, label %98

98:                                               ; preds = %90
  call void @acutest_abort_() #8
  unreachable

99:                                               ; preds = %90
  br label %100

100:                                              ; preds = %99
  br label %101

101:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  br label %102

102:                                              ; preds = %101
  %103 = load i32, ptr %7, align 4, !tbaa !11
  %104 = add i32 %103, 1
  store i32 %104, ptr %7, align 4, !tbaa !11
  br label %35, !llvm.loop !24

105:                                              ; preds = %41
  %106 = getelementptr inbounds %struct.join_relation, ptr %2, i32 0, i32 0
  %107 = load ptr, ptr %106, align 8, !tbaa !17
  call void @free(ptr noundef %107) #6
  %108 = getelementptr inbounds %struct.join_relation, ptr %3, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8, !tbaa !17
  call void @free(ptr noundef %109) #6
  %110 = getelementptr inbounds %struct.join_relation, ptr %4, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8, !tbaa !17
  call void @free(ptr noundef %111) #6
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  call void @destroyJoinRelation(ptr noundef %112)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %18, !llvm.loop !9

113:                                              ; preds = %18
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  call void @destroyScheduler(ptr noundef %114)
  %115 = load ptr, ptr %1, align 8, !tbaa !5
  %116 = call i32 @fclose(ptr noundef %115)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #6
  ret void
}

declare noalias ptr @fopen(ptr noundef, ptr noundef) #3

declare ptr @initializeScheduler(i64 noundef) #3

declare ptr @phjoin(ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #5

declare void @destroyJoinRelation(ptr noundef) #3

declare void @destroyScheduler(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 = { noreturn 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 #3 = { "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 = { noreturn 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 #5 = { 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 #6 = { nounwind }
attributes #7 = { noreturn nounwind }
attributes #8 = { noreturn }

!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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 8}
!14 = !{!"join_relation", !6, i64 0, !12, i64 8}
!15 = !{!16, !16, i64 0}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!14, !6, i64 0}
!18 = !{!19, !12, i64 0}
!19 = !{!"tuple", !12, i64 0, !12, i64 4}
!20 = !{!19, !12, i64 4}
!21 = distinct !{!21, !10}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = distinct !{!24, !10}


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

@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [13 x i8], align 1
@__PRETTY_FUNCTION__._testPhjoin = external hidden unnamed_addr constant [23 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @acutest_check_(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #0

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

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

; Function Attrs: noreturn nounwind uwtable
declare dso_local void @acutest_abort_() local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @_consumedComment(ptr noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @feof(ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @_testPhjoin() local_unnamed_addr #0 {
  %1 = alloca %struct.join_relation, align 8
  %2 = alloca %struct.join_relation, align 8
  %3 = alloca %struct.join_relation, align 8
  %4 = tail call noalias ptr @fopen(ptr noundef nonnull @.str.44, ptr noundef nonnull @.str.45)
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %5, label %6

5:                                                ; preds = %0
  tail call void @__assert_fail(ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.38, i32 noundef 54, ptr noundef nonnull @__PRETTY_FUNCTION__._testPhjoin) #7
  unreachable

6:                                                ; preds = %0
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #8
  %7 = tail call ptr @initializeScheduler(i64 noundef 4) #8
  %8 = tail call i32 @feof(ptr noundef nonnull %4) #8
  %.not2331 = icmp eq i32 %8, 0
  br i1 %.not2331, label %.lr.ph33, label %._crit_edge34

.lr.ph33:                                         ; preds = %6
  %9 = getelementptr inbounds i8, ptr %3, i64 8
  br label %10

10:                                               ; preds = %.lr.ph33, %.backedge
  %11 = call zeroext i1 @_consumedComment(ptr noundef nonnull %4)
  br i1 %11, label %.backedge, label %12

12:                                               ; preds = %10
  %13 = call i32 @feof(ptr noundef nonnull %4) #8
  %.not24 = icmp eq i32 %13, 0
  br i1 %.not24, label %15, label %.backedge

.backedge:                                        ; preds = %10, %12, %._crit_edge30
  %14 = call i32 @feof(ptr noundef nonnull %4) #8
  %.not23 = icmp eq i32 %14, 0
  br i1 %.not23, label %10, label %._crit_edge34, !llvm.loop !5

15:                                               ; preds = %12
  call void @_parseTestCase(ptr noundef nonnull %4, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %16 = call ptr @phjoin(ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %7) #8
  %17 = getelementptr inbounds i8, ptr %16, i64 8
  %18 = load i32, ptr %17, align 8, !tbaa !7
  %.not35 = icmp eq i32 %18, 0
  br i1 %.not35, label %._crit_edge30, label %.preheader

19:                                               ; preds = %._crit_edge
  %indvars.iv.next37 = add nuw nsw i64 %indvars.iv36, 1
  %20 = load i32, ptr %17, align 8, !tbaa !7
  %21 = zext i32 %20 to i64
  %22 = icmp ult i64 %indvars.iv.next37, %21
  br i1 %22, label %.preheader, label %._crit_edge30, !llvm.loop !13

.preheader:                                       ; preds = %15, %19
  %indvars.iv36 = phi i64 [ %indvars.iv.next37, %19 ], [ 0, %15 ]
  %23 = load i32, ptr %9, align 8, !tbaa !7
  %.not39 = icmp eq i32 %23, 0
  br i1 %.not39, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %24 = load ptr, ptr %16, align 8, !tbaa !14
  %25 = getelementptr inbounds %struct.tuple, ptr %24, i64 %indvars.iv36
  %26 = load i32, ptr %25, align 4, !tbaa !15
  %27 = load ptr, ptr %3, align 8, !tbaa !14
  %28 = getelementptr inbounds i8, ptr %25, i64 4
  %29 = zext i32 %23 to i64
  br label %33

._crit_edge30:                                    ; preds = %19, %15
  %30 = load ptr, ptr %1, align 8, !tbaa !14
  call void @free(ptr noundef %30) #8
  %31 = load ptr, ptr %2, align 8, !tbaa !14
  call void @free(ptr noundef %31) #8
  %32 = load ptr, ptr %3, align 8, !tbaa !14
  call void @free(ptr noundef %32) #8
  call void @destroyJoinRelation(ptr noundef nonnull %16) #8
  br label %.backedge

33:                                               ; preds = %.lr.ph, %43
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %43 ]
  %34 = phi i1 [ true, %.lr.ph ], [ %44, %43 ]
  %35 = getelementptr inbounds %struct.tuple, ptr %27, i64 %indvars.iv
  %36 = load i32, ptr %35, align 4, !tbaa !15
  %37 = icmp eq i32 %26, %36
  br i1 %37, label %38, label %43

38:                                               ; preds = %33
  %39 = load i32, ptr %28, align 4, !tbaa !17
  %40 = getelementptr inbounds i8, ptr %35, i64 4
  %41 = load i32, ptr %40, align 4, !tbaa !17
  %42 = icmp eq i32 %39, %41
  br i1 %42, label %._crit_edge, label %43

43:                                               ; preds = %33, %38
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %44 = icmp ult i64 %indvars.iv.next, %29
  %exitcond.not = icmp eq i64 %indvars.iv.next, %29
  br i1 %exitcond.not, label %._crit_edge, label %33, !llvm.loop !18

._crit_edge:                                      ; preds = %43, %38, %.preheader
  %.lcssa = phi i1 [ false, %.preheader ], [ %34, %38 ], [ %44, %43 ]
  %45 = zext i1 %.lcssa to i32
  %46 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %45, ptr noundef nonnull @.str.38, i32 noundef 79, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.47)
  %.not25 = icmp eq i32 %46, 0
  br i1 %.not25, label %47, label %19

47:                                               ; preds = %._crit_edge
  call void @acutest_abort_() #9
  unreachable

._crit_edge34:                                    ; preds = %.backedge, %6
  call void @destroyScheduler(ptr noundef %7) #8
  %48 = call i32 @fclose(ptr noundef nonnull %4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #8
  ret void
}

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #3

declare ptr @initializeScheduler(i64 noundef) local_unnamed_addr #5

declare ptr @phjoin(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #6

declare void @destroyJoinRelation(ptr noundef) local_unnamed_addr #5

declare void @destroyScheduler(ptr noundef) local_unnamed_addr #5

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 = { noreturn 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 #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 = { noreturn 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 #5 = { "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 #6 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #7 = { noreturn nounwind }
attributes #8 = { nounwind }
attributes #9 = { noreturn }

!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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !12, i64 8}
!8 = !{!"join_relation", !9, i64 0, !12, i64 8}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"int", !10, i64 0}
!13 = distinct !{!13, !6}
!14 = !{!8, !9, i64 0}
!15 = !{!16, !12, i64 0}
!16 = !{!"tuple", !12, i64 0, !12, i64 4}
!17 = !{!16, !12, i64 4}
!18 = distinct !{!18, !6}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass