; LLVM IR from totte174/minesolve :: src (permutations)

; 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.PermutationSet = type { ptr, i32, i32, i8, [192 x i32], [192 x i32], i32 }
%struct.Mask = type { [3 x i64] }

; 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
declare dso_local zeroext i1 @join_permutations(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @join_new_permutations(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5) #1 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store i32 %3, ptr %11, align 4, !tbaa !9
  store ptr %4, ptr %12, align 8, !tbaa !5
  store i32 %5, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %19 = load ptr, ptr %8, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.PermutationSet, ptr %19, i32 0, i32 4
  %21 = load i32, ptr %11, align 4, !tbaa !9
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [192 x i32], ptr %20, i64 0, i64 %22
  %24 = load i32, ptr %23, align 4, !tbaa !9
  %25 = sext i32 %24 to i64
  %26 = mul i64 24, %25
  %27 = call noalias ptr @malloc(i64 noundef %26) #7
  store ptr %27, ptr %14, align 8, !tbaa !5
  %28 = load ptr, ptr %14, align 8, !tbaa !5
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.PermutationSet, ptr %29, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !11
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.PermutationSet, ptr %32, i32 0, i32 5
  %34 = load i32, ptr %11, align 4, !tbaa !9
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [192 x i32], ptr %33, i64 0, i64 %35
  %37 = load i32, ptr %36, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds %struct.Mask, ptr %31, i64 %38
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.PermutationSet, ptr %40, i32 0, i32 4
  %42 = load i32, ptr %11, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [192 x i32], ptr %41, i64 0, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = mul i64 24, %46
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %28, ptr align 8 %39, i64 %47, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %48

48:                                               ; preds = %136, %6
  %49 = load i32, ptr %16, align 4, !tbaa !9
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.PermutationSet, ptr %50, i32 0, i32 4
  %52 = load i32, ptr %11, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [192 x i32], ptr %51, i64 0, i64 %53
  %55 = load i32, ptr %54, align 4, !tbaa !9
  %56 = icmp slt i32 %49, %55
  br i1 %56, label %58, label %57

57:                                               ; preds = %48
  store i32 2, ptr %17, align 4
  br label %139

58:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %59

59:                                               ; preds = %130, %58
  %60 = load i32, ptr %18, align 4, !tbaa !9
  %61 = load i32, ptr %13, align 4, !tbaa !9
  %62 = icmp slt i32 %60, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %59
  store i32 5, ptr %17, align 4
  br label %133

64:                                               ; preds = %59
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.PermutationSet, ptr %65, i32 0, i32 2
  %67 = load i32, ptr %66, align 4, !tbaa !14
  %68 = load i32, ptr %15, align 4, !tbaa !9
  %69 = add nsw i32 %67, %68
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.PermutationSet, ptr %70, i32 0, i32 1
  %72 = load i32, ptr %71, align 8, !tbaa !15
  %73 = icmp eq i32 %69, %72
  br i1 %73, label %74, label %100

74:                                               ; preds = %64
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.PermutationSet, ptr %75, i32 0, i32 1
  %77 = load i32, ptr %76, align 8, !tbaa !15
  %78 = sext i32 %77 to i64
  %79 = icmp uge i64 %78, 67108864
  br i1 %79, label %80, label %82

80:                                               ; preds = %74
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  call void @free(ptr noundef %81) #6
  store i32 1, ptr %7, align 4
  store i32 1, ptr %17, align 4
  br label %133

82:                                               ; preds = %74
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.PermutationSet, ptr %83, i32 0, i32 1
  %85 = load i32, ptr %84, align 8, !tbaa !15
  %86 = shl i32 %85, 1
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.PermutationSet, ptr %87, i32 0, i32 1
  store i32 %86, ptr %88, align 8, !tbaa !15
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.PermutationSet, ptr %89, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8, !tbaa !11
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.PermutationSet, ptr %92, i32 0, i32 1
  %94 = load i32, ptr %93, align 8, !tbaa !15
  %95 = sext i32 %94 to i64
  %96 = mul i64 24, %95
  %97 = call ptr @realloc(ptr noundef %91, i64 noundef %96) #8
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.PermutationSet, ptr %98, i32 0, i32 0
  store ptr %97, ptr %99, align 8, !tbaa !11
  br label %100

100:                                              ; preds = %82, %64
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.PermutationSet, ptr %103, i32 0, i32 0
  %105 = load ptr, ptr %104, align 8, !tbaa !11
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.PermutationSet, ptr %106, i32 0, i32 5
  %108 = load i32, ptr %11, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [192 x i32], ptr %107, i64 0, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds %struct.Mask, ptr %105, i64 %112
  %114 = load i32, ptr %15, align 4, !tbaa !9
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds %struct.Mask, ptr %113, i64 %115
  %117 = load ptr, ptr %14, align 8, !tbaa !5
  %118 = load i32, ptr %16, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds %struct.Mask, ptr %117, i64 %119
  %121 = load ptr, ptr %12, align 8, !tbaa !5
  %122 = load i32, ptr %18, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds %struct.Mask, ptr %121, i64 %123
  %125 = call zeroext i1 @join_permutations(ptr noundef %101, ptr noundef %102, ptr noundef %116, ptr noundef %120, ptr noundef %124)
  br i1 %125, label %126, label %129

126:                                              ; preds = %100
  %127 = load i32, ptr %15, align 4, !tbaa !9
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %15, align 4, !tbaa !9
  br label %129

129:                                              ; preds = %126, %100
  br label %130

130:                                              ; preds = %129
  %131 = load i32, ptr %18, align 4, !tbaa !9
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %18, align 4, !tbaa !9
  br label %59, !llvm.loop !16

133:                                              ; preds = %80, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  %134 = load i32, ptr %17, align 4
  switch i32 %134, label %139 [
    i32 5, label %135
  ]

135:                                              ; preds = %133
  br label %136

136:                                              ; preds = %135
  %137 = load i32, ptr %16, align 4, !tbaa !9
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %16, align 4, !tbaa !9
  br label %48, !llvm.loop !18

139:                                              ; preds = %133, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  %140 = load i32, ptr %17, align 4
  switch i32 %140, label %149 [
    i32 2, label %141
  ]

141:                                              ; preds = %139
  %142 = load i32, ptr %15, align 4, !tbaa !9
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.PermutationSet, ptr %143, i32 0, i32 4
  %145 = load i32, ptr %11, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [192 x i32], ptr %144, i64 0, i64 %146
  store i32 %142, ptr %147, align 4, !tbaa !9
  %148 = load ptr, ptr %14, align 8, !tbaa !5
  call void @free(ptr noundef %148) #6
  store i32 0, ptr %7, align 4
  store i32 1, ptr %17, align 4
  br label %149

149:                                              ; preds = %141, %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  %150 = load i32, ptr %7, align 4
  ret i32 %150
}

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #5

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 = { nounwind allocsize(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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 allocsize(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 #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }
attributes #8 = { nounwind allocsize(1) }

!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, !6, i64 0}
!12 = !{!"PermutationSet", !6, i64 0, !10, i64 8, !10, i64 12, !13, i64 16, !7, i64 20, !7, i64 788, !10, i64 1556}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!12, !10, i64 12}
!15 = !{!12, !10, i64 8}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}


; 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.Mask = type { [3 x i64] }

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @join_new_permutations(ptr nocapture noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5) local_unnamed_addr #0 {
  %7 = getelementptr inbounds i8, ptr %0, i64 20
  %8 = sext i32 %3 to i64
  %9 = getelementptr inbounds [192 x i32], ptr %7, i64 0, i64 %8
  %10 = load i32, ptr %9, align 4, !tbaa !5
  %11 = sext i32 %10 to i64
  %12 = mul nsw i64 %11, 24
  %13 = tail call noalias ptr @malloc(i64 noundef %12) #5
  %14 = load ptr, ptr %0, align 8, !tbaa !9
  %15 = getelementptr inbounds i8, ptr %0, i64 788
  %16 = getelementptr inbounds [192 x i32], ptr %15, i64 0, i64 %8
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds %struct.Mask, ptr %14, i64 %18
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %19, i64 %12, i1 false)
  %.not5260 = icmp sgt i32 %10, 0
  br i1 %.not5260, label %.preheader.lr.ph, label %.thread

.preheader.lr.ph:                                 ; preds = %6
  %.not57 = icmp sgt i32 %5, 0
  %20 = getelementptr inbounds i8, ptr %0, i64 12
  %21 = getelementptr inbounds i8, ptr %0, i64 8
  br i1 %.not57, label %.preheader.us.preheader, label %.thread

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %wide.trip.count = zext nneg i32 %5 to i64
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %..critedge_crit_edge.us
  %indvars.iv67 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next68, %..critedge_crit_edge.us ]
  %.04561.us = phi i32 [ 0, %.preheader.us.preheader ], [ %spec.select.us, %..critedge_crit_edge.us ]
  %22 = getelementptr inbounds %struct.Mask, ptr %13, i64 %indvars.iv67
  br label %23

23:                                               ; preds = %.preheader.us, %35
  %indvars.iv = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next, %35 ]
  %.14658.us = phi i32 [ %.04561.us, %.preheader.us ], [ %spec.select.us, %35 ]
  %24 = load i32, ptr %20, align 4, !tbaa !13
  %25 = add nsw i32 %24, %.14658.us
  %26 = load i32, ptr %21, align 8, !tbaa !14
  %27 = icmp eq i32 %25, %26
  br i1 %27, label %28, label %._crit_edge

._crit_edge:                                      ; preds = %23
  %.pre = load ptr, ptr %0, align 8, !tbaa !9
  br label %35

28:                                               ; preds = %23
  %29 = icmp ugt i32 %25, 67108863
  br i1 %29, label %.split.us, label %30

30:                                               ; preds = %28
  %31 = shl nuw nsw i32 %25, 1
  store i32 %31, ptr %21, align 8, !tbaa !14
  %32 = load ptr, ptr %0, align 8, !tbaa !9
  %narrow.us = mul nuw i32 %25, 48
  %33 = zext i32 %narrow.us to i64
  %34 = tail call ptr @realloc(ptr noundef %32, i64 noundef %33) #6
  store ptr %34, ptr %0, align 8, !tbaa !9
  br label %35

35:                                               ; preds = %._crit_edge, %30
  %36 = phi ptr [ %.pre, %._crit_edge ], [ %34, %30 ]
  %37 = load i32, ptr %16, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds %struct.Mask, ptr %36, i64 %38
  %40 = sext i32 %.14658.us to i64
  %41 = getelementptr inbounds %struct.Mask, ptr %39, i64 %40
  %42 = getelementptr inbounds %struct.Mask, ptr %4, i64 %indvars.iv
  %43 = tail call zeroext i1 @join_permutations(ptr noundef %1, ptr noundef %2, ptr noundef %41, ptr noundef %22, ptr noundef %42)
  %44 = zext i1 %43 to i32
  %spec.select.us = add nsw i32 %.14658.us, %44
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %..critedge_crit_edge.us, label %23, !llvm.loop !15

..critedge_crit_edge.us:                          ; preds = %35
  %indvars.iv.next68 = add nuw nsw i64 %indvars.iv67, 1
  %45 = load i32, ptr %9, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %.not52.us = icmp slt i64 %indvars.iv.next68, %46
  br i1 %.not52.us, label %.preheader.us, label %.thread, !llvm.loop !17

.thread:                                          ; preds = %..critedge_crit_edge.us, %.preheader.lr.ph, %6
  %.045.lcssa = phi i32 [ 0, %6 ], [ 0, %.preheader.lr.ph ], [ %spec.select.us, %..critedge_crit_edge.us ]
  store i32 %.045.lcssa, ptr %9, align 4, !tbaa !5
  br label %.split.us

.split.us:                                        ; preds = %28, %.thread
  %.350 = phi i32 [ 0, %.thread ], [ 1, %28 ]
  tail call void @free(ptr noundef %13) #7
  ret i32 %.350
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #4

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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) 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 #5 = { nounwind allocsize(0) }
attributes #6 = { nounwind allocsize(1) }
attributes #7 = { 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, !11, i64 0}
!10 = !{!"PermutationSet", !11, i64 0, !6, i64 8, !6, i64 12, !12, i64 16, !7, i64 20, !7, i64 788, !6, i64 1556}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"_Bool", !7, i64 0}
!13 = !{!10, !6, i64 12}
!14 = !{!10, !6, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


; Effective O3 passes: ConstraintEliminationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass