; LLVM IR from ponylang/ponyc :: src/libponyc/pkg (buildflagset)

; 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.buildflagset_t = type { i8, i8, i8, i8, i8, i8, ptr, i32, i32, i32, i32, ptr, i64 }
%struct.flag_t = type { ptr, i8 }

@.str.1 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1
@_os_flags = external hidden global [9 x ptr], align 16
@_arch_flags = external hidden global [4 x ptr], align 16
@_size_flags = external hidden global [5 x ptr], align 16
@_endian_flags = external hidden global [4 x ptr], align 16
@__func__.buildflagset_next = external hidden unnamed_addr constant [18 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1

; 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 ptr @flagtab_next(ptr noundef, ptr noundef) #1

declare void @ponyint_assert_fail(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @buildflagset_next(ptr noundef %0) #1 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %7 = load ptr, ptr %3, align 8, !tbaa !5
  %8 = icmp ne ptr %7, null
  br i1 %8, label %9, label %10

9:                                                ; preds = %1
  br label %11

10:                                               ; preds = %1
  call void @ponyint_assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i64 noundef 369, ptr noundef @__func__.buildflagset_next)
  br label %11

11:                                               ; preds = %10, %9
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.buildflagset_t, ptr %12, i32 0, i32 6
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = icmp ne ptr %14, null
  br i1 %15, label %16, label %17

16:                                               ; preds = %11
  br label %18

17:                                               ; preds = %11
  call void @ponyint_assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i64 noundef 370, ptr noundef @__func__.buildflagset_next)
  br label %18

18:                                               ; preds = %17, %16
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.buildflagset_t, ptr %19, i32 0, i32 4
  %21 = load i8, ptr %20, align 4, !tbaa !14, !range !15, !noundef !16
  %22 = trunc i8 %21 to i1
  br i1 %22, label %23, label %24

23:                                               ; preds = %18
  br label %25

24:                                               ; preds = %18
  call void @ponyint_assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i64 noundef 371, ptr noundef @__func__.buildflagset_next)
  br label %25

25:                                               ; preds = %24, %23
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.buildflagset_t, ptr %26, i32 0, i32 5
  %28 = load i8, ptr %27, align 1, !tbaa !17, !range !15, !noundef !16
  %29 = trunc i8 %28 to i1
  br i1 %29, label %30, label %33

30:                                               ; preds = %25
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.buildflagset_t, ptr %31, i32 0, i32 5
  store i8 0, ptr %32, align 1, !tbaa !17
  store i1 true, ptr %2, align 1
  br label %137

33:                                               ; preds = %25
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.buildflagset_t, ptr %34, i32 0, i32 0
  %36 = load i8, ptr %35, align 8, !tbaa !18, !range !15, !noundef !16
  %37 = trunc i8 %36 to i1
  br i1 %37, label %38, label %54

38:                                               ; preds = %33
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.buildflagset_t, ptr %39, i32 0, i32 7
  %41 = load i32, ptr %40, align 8, !tbaa !19
  %42 = add i32 %41, 1
  store i32 %42, ptr %40, align 8, !tbaa !19
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.buildflagset_t, ptr %43, i32 0, i32 7
  %45 = load i32, ptr %44, align 8, !tbaa !19
  %46 = zext i32 %45 to i64
  %47 = getelementptr inbounds [9 x ptr], ptr @_os_flags, i64 0, i64 %46
  %48 = load ptr, ptr %47, align 8, !tbaa !5
  %49 = icmp ne ptr %48, null
  br i1 %49, label %50, label %51

50:                                               ; preds = %38
  store i1 true, ptr %2, align 1
  br label %137

51:                                               ; preds = %38
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.buildflagset_t, ptr %52, i32 0, i32 7
  store i32 0, ptr %53, align 8, !tbaa !19
  br label %54

54:                                               ; preds = %51, %33
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.buildflagset_t, ptr %55, i32 0, i32 1
  %57 = load i8, ptr %56, align 1, !tbaa !20, !range !15, !noundef !16
  %58 = trunc i8 %57 to i1
  br i1 %58, label %59, label %75

59:                                               ; preds = %54
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.buildflagset_t, ptr %60, i32 0, i32 8
  %62 = load i32, ptr %61, align 4, !tbaa !21
  %63 = add i32 %62, 1
  store i32 %63, ptr %61, align 4, !tbaa !21
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.buildflagset_t, ptr %64, i32 0, i32 8
  %66 = load i32, ptr %65, align 4, !tbaa !21
  %67 = zext i32 %66 to i64
  %68 = getelementptr inbounds [4 x ptr], ptr @_arch_flags, i64 0, i64 %67
  %69 = load ptr, ptr %68, align 8, !tbaa !5
  %70 = icmp ne ptr %69, null
  br i1 %70, label %71, label %72

71:                                               ; preds = %59
  store i1 true, ptr %2, align 1
  br label %137

72:                                               ; preds = %59
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.buildflagset_t, ptr %73, i32 0, i32 8
  store i32 0, ptr %74, align 4, !tbaa !21
  br label %75

75:                                               ; preds = %72, %54
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.buildflagset_t, ptr %76, i32 0, i32 2
  %78 = load i8, ptr %77, align 2, !tbaa !22, !range !15, !noundef !16
  %79 = trunc i8 %78 to i1
  br i1 %79, label %80, label %96

80:                                               ; preds = %75
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.buildflagset_t, ptr %81, i32 0, i32 9
  %83 = load i32, ptr %82, align 8, !tbaa !23
  %84 = add i32 %83, 1
  store i32 %84, ptr %82, align 8, !tbaa !23
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.buildflagset_t, ptr %85, i32 0, i32 9
  %87 = load i32, ptr %86, align 8, !tbaa !23
  %88 = zext i32 %87 to i64
  %89 = getelementptr inbounds [5 x ptr], ptr @_size_flags, i64 0, i64 %88
  %90 = load ptr, ptr %89, align 8, !tbaa !5
  %91 = icmp ne ptr %90, null
  br i1 %91, label %92, label %93

92:                                               ; preds = %80
  store i1 true, ptr %2, align 1
  br label %137

93:                                               ; preds = %80
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.buildflagset_t, ptr %94, i32 0, i32 9
  store i32 0, ptr %95, align 8, !tbaa !23
  br label %96

96:                                               ; preds = %93, %75
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.buildflagset_t, ptr %97, i32 0, i32 3
  %99 = load i8, ptr %98, align 1, !tbaa !24, !range !15, !noundef !16
  %100 = trunc i8 %99 to i1
  br i1 %100, label %101, label %117

101:                                              ; preds = %96
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.buildflagset_t, ptr %102, i32 0, i32 10
  %104 = load i32, ptr %103, align 4, !tbaa !25
  %105 = add i32 %104, 1
  store i32 %105, ptr %103, align 4, !tbaa !25
  %106 = load ptr, ptr %3, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.buildflagset_t, ptr %106, i32 0, i32 10
  %108 = load i32, ptr %107, align 4, !tbaa !25
  %109 = zext i32 %108 to i64
  %110 = getelementptr inbounds [4 x ptr], ptr @_endian_flags, i64 0, i64 %109
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  %112 = icmp ne ptr %111, null
  br i1 %112, label %113, label %114

113:                                              ; preds = %101
  store i1 true, ptr %2, align 1
  br label %137

114:                                              ; preds = %101
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.buildflagset_t, ptr %115, i32 0, i32 10
  store i32 0, ptr %116, align 4, !tbaa !25
  br label %117

117:                                              ; preds = %114, %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  store i64 -1, ptr %4, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  br label %118

118:                                              ; preds = %132, %117
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.buildflagset_t, ptr %119, i32 0, i32 6
  %121 = load ptr, ptr %120, align 8, !tbaa !9
  %122 = call ptr @flagtab_next(ptr noundef %121, ptr noundef %4)
  store ptr %122, ptr %5, align 8, !tbaa !5
  %123 = icmp ne ptr %122, null
  br i1 %123, label %124, label %135

124:                                              ; preds = %118
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.flag_t, ptr %125, i32 0, i32 1
  %127 = load i8, ptr %126, align 8, !tbaa !27, !range !15, !noundef !16
  %128 = trunc i8 %127 to i1
  br i1 %128, label %132, label %129

129:                                              ; preds = %124
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.flag_t, ptr %130, i32 0, i32 1
  store i8 1, ptr %131, align 8, !tbaa !27
  store i1 true, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %136

132:                                              ; preds = %124
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.flag_t, ptr %133, i32 0, i32 1
  store i8 0, ptr %134, align 8, !tbaa !27
  br label %118, !llvm.loop !29

135:                                              ; preds = %118
  store i1 false, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %136

136:                                              ; preds = %135, %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  br label %137

137:                                              ; preds = %136, %113, %92, %71, %50, %30
  %138 = load i1, ptr %2, align 1
  ret i1 %138
}

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 = { "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, !6, i64 8}
!10 = !{!"buildflagset_t", !11, i64 0, !11, i64 1, !11, i64 2, !11, i64 3, !11, i64 4, !11, i64 5, !6, i64 8, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !6, i64 32, !13, i64 40}
!11 = !{!"_Bool", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!10, !11, i64 4}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!10, !11, i64 5}
!18 = !{!10, !11, i64 0}
!19 = !{!10, !12, i64 16}
!20 = !{!10, !11, i64 1}
!21 = !{!10, !12, i64 20}
!22 = !{!10, !11, i64 2}
!23 = !{!10, !12, i64 24}
!24 = !{!10, !11, i64 3}
!25 = !{!10, !12, i64 28}
!26 = !{!13, !13, i64 0}
!27 = !{!28, !11, i64 8}
!28 = !{!"flag_t", !6, i64 0, !11, i64 8}
!29 = distinct !{!29, !30}
!30 = !{!"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.1 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1
@_os_flags = external hidden local_unnamed_addr global [9 x ptr], align 16
@_arch_flags = external hidden local_unnamed_addr global [4 x ptr], align 16
@_size_flags = external hidden local_unnamed_addr global [5 x ptr], align 16
@_endian_flags = external hidden local_unnamed_addr global [4 x ptr], align 16
@__func__.buildflagset_next = external hidden unnamed_addr constant [18 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1

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

; Function Attrs: mustprogress 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 ptr @flagtab_next(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @ponyint_assert_fail(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i1 @buildflagset_next(ptr noundef %0) local_unnamed_addr #1 {
  %2 = alloca i64, align 8
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %3, label %4

3:                                                ; preds = %1
  tail call void @ponyint_assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i64 noundef 369, ptr noundef nonnull @__func__.buildflagset_next) #3
  br label %4

4:                                                ; preds = %1, %3
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %.not27 = icmp eq ptr %6, null
  br i1 %.not27, label %7, label %8

7:                                                ; preds = %4
  tail call void @ponyint_assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i64 noundef 370, ptr noundef nonnull @__func__.buildflagset_next) #3
  br label %8

8:                                                ; preds = %4, %7
  %9 = getelementptr inbounds i8, ptr %0, i64 4
  %10 = load i8, ptr %9, align 4, !tbaa !13, !range !14, !noundef !15
  %11 = trunc nuw i8 %10 to i1
  br i1 %11, label %13, label %12

12:                                               ; preds = %8
  tail call void @ponyint_assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i64 noundef 371, ptr noundef nonnull @__func__.buildflagset_next) #3
  br label %13

13:                                               ; preds = %8, %12
  %14 = getelementptr inbounds i8, ptr %0, i64 5
  %15 = load i8, ptr %14, align 1, !tbaa !16, !range !14, !noundef !15
  %16 = trunc nuw i8 %15 to i1
  br i1 %16, label %17, label %18

17:                                               ; preds = %13
  store i8 0, ptr %14, align 1, !tbaa !16
  br label %76

18:                                               ; preds = %13
  %19 = load i8, ptr %0, align 8, !tbaa !17, !range !14, !noundef !15
  %20 = trunc nuw i8 %19 to i1
  br i1 %20, label %21, label %29

21:                                               ; preds = %18
  %22 = getelementptr inbounds i8, ptr %0, i64 16
  %23 = load i32, ptr %22, align 8, !tbaa !18
  %24 = add i32 %23, 1
  store i32 %24, ptr %22, align 8, !tbaa !18
  %25 = zext i32 %24 to i64
  %26 = getelementptr inbounds [9 x ptr], ptr @_os_flags, i64 0, i64 %25
  %27 = load ptr, ptr %26, align 8, !tbaa !19
  %.not28 = icmp eq ptr %27, null
  br i1 %.not28, label %28, label %76

28:                                               ; preds = %21
  store i32 0, ptr %22, align 8, !tbaa !18
  br label %29

29:                                               ; preds = %28, %18
  %30 = getelementptr inbounds i8, ptr %0, i64 1
  %31 = load i8, ptr %30, align 1, !tbaa !20, !range !14, !noundef !15
  %32 = trunc nuw i8 %31 to i1
  br i1 %32, label %33, label %41

33:                                               ; preds = %29
  %34 = getelementptr inbounds i8, ptr %0, i64 20
  %35 = load i32, ptr %34, align 4, !tbaa !21
  %36 = add i32 %35, 1
  store i32 %36, ptr %34, align 4, !tbaa !21
  %37 = zext i32 %36 to i64
  %38 = getelementptr inbounds [4 x ptr], ptr @_arch_flags, i64 0, i64 %37
  %39 = load ptr, ptr %38, align 8, !tbaa !19
  %.not29 = icmp eq ptr %39, null
  br i1 %.not29, label %40, label %76

40:                                               ; preds = %33
  store i32 0, ptr %34, align 4, !tbaa !21
  br label %41

41:                                               ; preds = %40, %29
  %42 = getelementptr inbounds i8, ptr %0, i64 2
  %43 = load i8, ptr %42, align 2, !tbaa !22, !range !14, !noundef !15
  %44 = trunc nuw i8 %43 to i1
  br i1 %44, label %45, label %53

45:                                               ; preds = %41
  %46 = getelementptr inbounds i8, ptr %0, i64 24
  %47 = load i32, ptr %46, align 8, !tbaa !23
  %48 = add i32 %47, 1
  store i32 %48, ptr %46, align 8, !tbaa !23
  %49 = zext i32 %48 to i64
  %50 = getelementptr inbounds [5 x ptr], ptr @_size_flags, i64 0, i64 %49
  %51 = load ptr, ptr %50, align 8, !tbaa !19
  %.not30 = icmp eq ptr %51, null
  br i1 %.not30, label %52, label %76

52:                                               ; preds = %45
  store i32 0, ptr %46, align 8, !tbaa !23
  br label %53

53:                                               ; preds = %52, %41
  %54 = getelementptr inbounds i8, ptr %0, i64 3
  %55 = load i8, ptr %54, align 1, !tbaa !24, !range !14, !noundef !15
  %56 = trunc nuw i8 %55 to i1
  br i1 %56, label %57, label %65

57:                                               ; preds = %53
  %58 = getelementptr inbounds i8, ptr %0, i64 28
  %59 = load i32, ptr %58, align 4, !tbaa !25
  %60 = add i32 %59, 1
  store i32 %60, ptr %58, align 4, !tbaa !25
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds [4 x ptr], ptr @_endian_flags, i64 0, i64 %61
  %63 = load ptr, ptr %62, align 8, !tbaa !19
  %.not31 = icmp eq ptr %63, null
  br i1 %.not31, label %64, label %76

64:                                               ; preds = %57
  store i32 0, ptr %58, align 4, !tbaa !25
  br label %65

65:                                               ; preds = %64, %53
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
  store i64 -1, ptr %2, align 8, !tbaa !26
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = call ptr @flagtab_next(ptr noundef %66, ptr noundef nonnull %2)
  %.not3235.not = icmp eq ptr %67, null
  br i1 %.not3235.not, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %65, %73
  %68 = phi ptr [ %75, %73 ], [ %67, %65 ]
  %69 = getelementptr inbounds i8, ptr %68, i64 8
  %70 = load i8, ptr %69, align 8, !tbaa !27, !range !14, !noundef !15
  %71 = trunc nuw i8 %70 to i1
  br i1 %71, label %73, label %72

72:                                               ; preds = %.lr.ph
  store i8 1, ptr %69, align 8, !tbaa !27
  br label %.loopexit

73:                                               ; preds = %.lr.ph
  store i8 0, ptr %69, align 8, !tbaa !27
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = call ptr @flagtab_next(ptr noundef %74, ptr noundef nonnull %2)
  %.not32.not = icmp eq ptr %75, null
  br i1 %.not32.not, label %.loopexit, label %.lr.ph, !llvm.loop !29

.loopexit:                                        ; preds = %73, %65, %72
  %.not3234 = phi i1 [ true, %72 ], [ false, %65 ], [ false, %73 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
  br label %76

76:                                               ; preds = %57, %45, %33, %21, %.loopexit, %17
  %.1 = phi i1 [ true, %17 ], [ %.not3234, %.loopexit ], [ true, %21 ], [ true, %33 ], [ true, %45 ], [ true, %57 ]
  ret i1 %.1
}

attributes #0 = { mustprogress 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 = { "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, !10, i64 8}
!6 = !{!"buildflagset_t", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !10, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !10, i64 32, !12, i64 40}
!7 = !{!"_Bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !7, i64 4}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!6, !7, i64 5}
!17 = !{!6, !7, i64 0}
!18 = !{!6, !11, i64 16}
!19 = !{!10, !10, i64 0}
!20 = !{!6, !7, i64 1}
!21 = !{!6, !11, i64 20}
!22 = !{!6, !7, i64 2}
!23 = !{!6, !11, i64 24}
!24 = !{!6, !7, i64 3}
!25 = !{!6, !11, i64 28}
!26 = !{!12, !12, i64 0}
!27 = !{!28, !7, i64 8}
!28 = !{!"flag_t", !10, i64 0, !7, i64 8}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass