; LLVM IR from ryanlayer/giggle :: src (speed_tests)

; 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.uint64_t_ll = type { i64, ptr, ptr }
%struct.uint64_t_ll_node = type { i64, ptr }

@WAH_SIZE = external dso_local global i32, align 4
@WAH_MAX_FILL_WORDS = external dso_local global i32, align 4
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  store i32 32, ptr @WAH_SIZE, align 4, !tbaa !5
  %18 = load i32, ptr @WAH_SIZE, align 4, !tbaa !5
  %19 = sub i32 %18, 1
  %20 = shl i32 1, %19
  %21 = sub nsw i32 %20, 1
  store i32 %21, ptr @WAH_MAX_FILL_WORDS, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %22 = load ptr, ptr %5, align 8, !tbaa !9
  %23 = getelementptr inbounds ptr, ptr %22, i64 1
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = call i32 @atoi(ptr noundef %24) #7
  store i32 %25, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %26 = load i32, ptr %6, align 4, !tbaa !5
  %27 = zext i32 %26 to i64
  %28 = call noalias ptr @calloc(i64 noundef %27, i64 noundef 4) #8
  store ptr %28, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %29 = load i32, ptr %6, align 4, !tbaa !5
  %30 = zext i32 %29 to i64
  %31 = call noalias ptr @calloc(i64 noundef %30, i64 noundef 4) #8
  store ptr %31, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %32 = load ptr, ptr %5, align 8, !tbaa !9
  %33 = getelementptr inbounds ptr, ptr %32, i64 2
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  %35 = getelementptr inbounds i8, ptr %34, i64 0
  %36 = load i8, ptr %35, align 1, !tbaa !11
  %37 = sext i8 %36 to i32
  %38 = icmp eq i32 %37, 119
  br i1 %38, label %39, label %90

39:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store ptr null, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store ptr null, ptr %11, align 8, !tbaa !9
  call void (...) @start()
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %40

40:                                               ; preds = %55, %39
  %41 = load i32, ptr %9, align 4, !tbaa !5
  %42 = load i32, ptr %6, align 4, !tbaa !5
  %43 = icmp ult i32 %41, %42
  br i1 %43, label %44, label %58

44:                                               ; preds = %40
  %45 = call i32 @rand() #6
  %46 = load ptr, ptr %7, align 8, !tbaa !9
  %47 = load i32, ptr %9, align 4, !tbaa !5
  %48 = zext i32 %47 to i64
  %49 = getelementptr inbounds i32, ptr %46, i64 %48
  store i32 %45, ptr %49, align 4, !tbaa !5
  %50 = load ptr, ptr %7, align 8, !tbaa !9
  %51 = load i32, ptr %9, align 4, !tbaa !5
  %52 = zext i32 %51 to i64
  %53 = getelementptr inbounds i32, ptr %50, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !5
  call void @wah_uniq_append(ptr noundef %11, i32 noundef %54)
  br label %55

55:                                               ; preds = %44
  %56 = load i32, ptr %9, align 4, !tbaa !5
  %57 = add i32 %56, 1
  store i32 %57, ptr %9, align 4, !tbaa !5
  br label %40, !llvm.loop !12

58:                                               ; preds = %40
  call void (...) @stop()
  %59 = load ptr, ptr @stderr, align 8, !tbaa !9
  %60 = call i64 (...) @report()
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str, i64 noundef %60) #6
  call void (...) @start()
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %77, %58
  %63 = load i32, ptr %9, align 4, !tbaa !5
  %64 = load i32, ptr %6, align 4, !tbaa !5
  %65 = icmp ult i32 %63, %64
  br i1 %65, label %66, label %80

66:                                               ; preds = %62
  %67 = call i32 @rand() #6
  %68 = load ptr, ptr %8, align 8, !tbaa !9
  %69 = load i32, ptr %9, align 4, !tbaa !5
  %70 = zext i32 %69 to i64
  %71 = getelementptr inbounds i32, ptr %68, i64 %70
  store i32 %67, ptr %71, align 4, !tbaa !5
  %72 = load ptr, ptr %8, align 8, !tbaa !9
  %73 = load i32, ptr %9, align 4, !tbaa !5
  %74 = zext i32 %73 to i64
  %75 = getelementptr inbounds i32, ptr %72, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !5
  call void @wah_uniq_append(ptr noundef %10, i32 noundef %76)
  br label %77

77:                                               ; preds = %66
  %78 = load i32, ptr %9, align 4, !tbaa !5
  %79 = add i32 %78, 1
  store i32 %79, ptr %9, align 4, !tbaa !5
  br label %62, !llvm.loop !14

80:                                               ; preds = %62
  call void (...) @stop()
  %81 = load ptr, ptr @stderr, align 8, !tbaa !9
  %82 = call i64 (...) @report()
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %81, ptr noundef @.str, i64 noundef %82) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store ptr null, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  call void (...) @start()
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %84 = load ptr, ptr %11, align 8, !tbaa !9
  %85 = load ptr, ptr %10, align 8, !tbaa !9
  %86 = call i32 @wah_or(ptr noundef %84, ptr noundef %85, ptr noundef %12, ptr noundef %13)
  store i32 %86, ptr %14, align 4, !tbaa !5
  call void (...) @stop()
  %87 = load ptr, ptr @stderr, align 8, !tbaa !9
  %88 = call i64 (...) @report()
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %87, ptr noundef @.str.1, i64 noundef %88) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %163

90:                                               ; preds = %2
  %91 = load ptr, ptr %5, align 8, !tbaa !9
  %92 = getelementptr inbounds ptr, ptr %91, i64 2
  %93 = load ptr, ptr %92, align 8, !tbaa !9
  %94 = getelementptr inbounds i8, ptr %93, i64 0
  %95 = load i8, ptr %94, align 1, !tbaa !11
  %96 = sext i8 %95 to i32
  %97 = icmp eq i32 %96, 108
  br i1 %97, label %98, label %162

98:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store ptr null, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store ptr null, ptr %16, align 8, !tbaa !9
  call void (...) @start()
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %115, %98
  %100 = load i32, ptr %9, align 4, !tbaa !5
  %101 = load i32, ptr %6, align 4, !tbaa !5
  %102 = icmp ult i32 %100, %101
  br i1 %102, label %103, label %118

103:                                              ; preds = %99
  %104 = call i32 @rand() #6
  %105 = load ptr, ptr %7, align 8, !tbaa !9
  %106 = load i32, ptr %9, align 4, !tbaa !5
  %107 = zext i32 %106 to i64
  %108 = getelementptr inbounds i32, ptr %105, i64 %107
  store i32 %104, ptr %108, align 4, !tbaa !5
  %109 = load ptr, ptr %7, align 8, !tbaa !9
  %110 = load i32, ptr %9, align 4, !tbaa !5
  %111 = zext i32 %110 to i64
  %112 = getelementptr inbounds i32, ptr %109, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = zext i32 %113 to i64
  call void @uint64_t_ll_append(ptr noundef %15, i64 noundef %114)
  br label %115

115:                                              ; preds = %103
  %116 = load i32, ptr %9, align 4, !tbaa !5
  %117 = add i32 %116, 1
  store i32 %117, ptr %9, align 4, !tbaa !5
  br label %99, !llvm.loop !15

118:                                              ; preds = %99
  call void (...) @stop()
  %119 = load ptr, ptr @stderr, align 8, !tbaa !9
  %120 = call i64 (...) @report()
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %119, ptr noundef @.str, i64 noundef %120) #6
  call void (...) @start()
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %122

122:                                              ; preds = %138, %118
  %123 = load i32, ptr %9, align 4, !tbaa !5
  %124 = load i32, ptr %6, align 4, !tbaa !5
  %125 = icmp ult i32 %123, %124
  br i1 %125, label %126, label %141

126:                                              ; preds = %122
  %127 = call i32 @rand() #6
  %128 = load ptr, ptr %8, align 8, !tbaa !9
  %129 = load i32, ptr %9, align 4, !tbaa !5
  %130 = zext i32 %129 to i64
  %131 = getelementptr inbounds i32, ptr %128, i64 %130
  store i32 %127, ptr %131, align 4, !tbaa !5
  %132 = load ptr, ptr %8, align 8, !tbaa !9
  %133 = load i32, ptr %9, align 4, !tbaa !5
  %134 = zext i32 %133 to i64
  %135 = getelementptr inbounds i32, ptr %132, i64 %134
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = zext i32 %136 to i64
  call void @uint64_t_ll_append(ptr noundef %16, i64 noundef %137)
  br label %138

138:                                              ; preds = %126
  %139 = load i32, ptr %9, align 4, !tbaa !5
  %140 = add i32 %139, 1
  store i32 %140, ptr %9, align 4, !tbaa !5
  br label %122, !llvm.loop !16

141:                                              ; preds = %122
  call void (...) @stop()
  %142 = load ptr, ptr @stderr, align 8, !tbaa !9
  %143 = call i64 (...) @report()
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef @.str, i64 noundef %143) #6
  call void (...) @start()
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %145 = load ptr, ptr %15, align 8, !tbaa !9
  %146 = getelementptr inbounds %struct.uint64_t_ll, ptr %145, i32 0, i32 1
  %147 = load ptr, ptr %146, align 8, !tbaa !17
  store ptr %147, ptr %17, align 8, !tbaa !9
  br label %148

148:                                              ; preds = %151, %141
  %149 = load ptr, ptr %17, align 8, !tbaa !9
  %150 = icmp ne ptr %149, null
  br i1 %150, label %151, label %158

151:                                              ; preds = %148
  %152 = load ptr, ptr %17, align 8, !tbaa !9
  %153 = getelementptr inbounds %struct.uint64_t_ll_node, ptr %152, i32 0, i32 0
  %154 = load i64, ptr %153, align 8, !tbaa !20
  call void @uint64_t_ll_uniq_append(ptr noundef %16, i64 noundef %154)
  %155 = load ptr, ptr %17, align 8, !tbaa !9
  %156 = getelementptr inbounds %struct.uint64_t_ll_node, ptr %155, i32 0, i32 1
  %157 = load ptr, ptr %156, align 8, !tbaa !22
  store ptr %157, ptr %17, align 8, !tbaa !9
  br label %148, !llvm.loop !23

158:                                              ; preds = %148
  call void (...) @stop()
  %159 = load ptr, ptr @stderr, align 8, !tbaa !9
  %160 = call i64 (...) @report()
  %161 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %159, ptr noundef @.str.1, i64 noundef %160) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %162

162:                                              ; preds = %158, %90
  br label %163

163:                                              ; preds = %162, %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %164 = load i32, ptr %3, align 4
  ret i32 %164
}

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

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #2

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #3

declare void @start(...) #4

; Function Attrs: nounwind
declare i32 @rand() #5

declare void @wah_uniq_append(ptr noundef, i32 noundef) #4

declare void @stop(...) #4

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #5

declare i64 @report(...) #4

declare i32 @wah_or(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

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

declare void @uint64_t_ll_append(ptr noundef, i64 noundef) #4

declare void @uint64_t_ll_uniq_append(ptr noundef, i64 noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint nounwind willreturn memory(read) 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 = { nounwind allocsize(0,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 #4 = { "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 = { nounwind willreturn memory(read) }
attributes #8 = { nounwind allocsize(0,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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = !{!18, !10, i64 8}
!18 = !{!"uint64_t_ll", !19, i64 0, !10, i64 8, !10, i64 16}
!19 = !{!"long", !7, i64 0}
!20 = !{!21, !19, i64 0}
!21 = !{!"uint64_t_ll_node", !19, i64 0, !10, i64 8}
!22 = !{!21, !10, i64 8}
!23 = distinct !{!23, !13}


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

@WAH_SIZE = external dso_local local_unnamed_addr global i32, align 4
@WAH_MAX_FILL_WORDS = external dso_local local_unnamed_addr global i32, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  store i32 32, ptr @WAH_SIZE, align 4, !tbaa !5
  store i32 2147483647, ptr @WAH_MAX_FILL_WORDS, align 4, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %1, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !9
  %11 = tail call i32 @atoi(ptr nocapture noundef %10) #6
  %12 = getelementptr inbounds i8, ptr %1, i64 16
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  %14 = load i8, ptr %13, align 1, !tbaa !11
  switch i8 %14, label %56 [
    i8 119, label %15
    i8 108, label %35
  ]

15:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  store ptr null, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  store ptr null, ptr %4, align 8, !tbaa !9
  tail call void (...) @start() #7
  %.not62 = icmp eq i32 %11, 0
  br i1 %.not62, label %._crit_edge59.critedge, label %.lr.ph54

.lr.ph54:                                         ; preds = %15, %.lr.ph54
  %.03652 = phi i32 [ %17, %.lr.ph54 ], [ 0, %15 ]
  %16 = call i32 @rand() #7
  call void @wah_uniq_append(ptr noundef nonnull %4, i32 noundef %16) #7
  %17 = add nuw i32 %.03652, 1
  %exitcond65.not = icmp eq i32 %17, %11
  br i1 %exitcond65.not, label %._crit_edge55, label %.lr.ph54, !llvm.loop !12

._crit_edge55:                                    ; preds = %.lr.ph54
  call void (...) @stop() #7
  %18 = load ptr, ptr @stderr, align 8, !tbaa !9
  %19 = call i64 (...) @report() #7
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str, i64 noundef %19) #8
  call void (...) @start() #7
  br label %.lr.ph58

.lr.ph58:                                         ; preds = %._crit_edge55, %.lr.ph58
  %.156 = phi i32 [ %22, %.lr.ph58 ], [ 0, %._crit_edge55 ]
  %21 = call i32 @rand() #7
  call void @wah_uniq_append(ptr noundef nonnull %3, i32 noundef %21) #7
  %22 = add nuw i32 %.156, 1
  %exitcond66.not = icmp eq i32 %22, %11
  br i1 %exitcond66.not, label %._crit_edge59, label %.lr.ph58, !llvm.loop !14

._crit_edge59.critedge:                           ; preds = %15
  tail call void (...) @stop() #7
  %23 = load ptr, ptr @stderr, align 8, !tbaa !9
  %24 = tail call i64 (...) @report() #7
  %25 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str, i64 noundef %24) #8
  tail call void (...) @start() #7
  br label %._crit_edge59

._crit_edge59:                                    ; preds = %.lr.ph58, %._crit_edge59.critedge
  call void (...) @stop() #7
  %26 = load ptr, ptr @stderr, align 8, !tbaa !9
  %27 = call i64 (...) @report() #7
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str, i64 noundef %27) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  store ptr null, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  store i32 0, ptr %6, align 4, !tbaa !5
  call void (...) @start() #7
  %29 = load ptr, ptr %4, align 8, !tbaa !9
  %30 = load ptr, ptr %3, align 8, !tbaa !9
  %31 = call i32 @wah_or(ptr noundef %29, ptr noundef %30, ptr noundef nonnull %5, ptr noundef nonnull %6) #7
  call void (...) @stop() #7
  %32 = load ptr, ptr @stderr, align 8, !tbaa !9
  %33 = call i64 (...) @report() #7
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.1, i64 noundef %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  br label %56

35:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  store ptr null, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  store ptr null, ptr %8, align 8, !tbaa !9
  tail call void (...) @start() #7
  %.not60 = icmp eq i32 %11, 0
  br i1 %.not60, label %._crit_edge44.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %35, %.lr.ph
  %.240 = phi i32 [ %38, %.lr.ph ], [ 0, %35 ]
  %36 = call i32 @rand() #7
  %37 = zext i32 %36 to i64
  call void @uint64_t_ll_append(ptr noundef nonnull %7, i64 noundef %37) #7
  %38 = add nuw i32 %.240, 1
  %exitcond.not = icmp eq i32 %38, %11
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !15

._crit_edge:                                      ; preds = %.lr.ph
  call void (...) @stop() #7
  %39 = load ptr, ptr @stderr, align 8, !tbaa !9
  %40 = call i64 (...) @report() #7
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str, i64 noundef %40) #8
  call void (...) @start() #7
  br label %.lr.ph43

.lr.ph43:                                         ; preds = %._crit_edge, %.lr.ph43
  %.341 = phi i32 [ %44, %.lr.ph43 ], [ 0, %._crit_edge ]
  %42 = call i32 @rand() #7
  %43 = zext i32 %42 to i64
  call void @uint64_t_ll_append(ptr noundef nonnull %8, i64 noundef %43) #7
  %44 = add nuw i32 %.341, 1
  %exitcond64.not = icmp eq i32 %44, %11
  br i1 %exitcond64.not, label %._crit_edge44, label %.lr.ph43, !llvm.loop !16

._crit_edge44.critedge:                           ; preds = %35
  tail call void (...) @stop() #7
  %45 = load ptr, ptr @stderr, align 8, !tbaa !9
  %46 = tail call i64 (...) @report() #7
  %47 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull @.str, i64 noundef %46) #8
  tail call void (...) @start() #7
  br label %._crit_edge44

._crit_edge44:                                    ; preds = %.lr.ph43, %._crit_edge44.critedge
  call void (...) @stop() #7
  %48 = load ptr, ptr @stderr, align 8, !tbaa !9
  %49 = call i64 (...) @report() #7
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str, i64 noundef %49) #8
  call void (...) @start() #7
  %51 = load ptr, ptr %7, align 8, !tbaa !9
  %.0.in45 = getelementptr inbounds i8, ptr %51, i64 8
  %.046 = load ptr, ptr %.0.in45, align 8, !tbaa !9
  %.not47 = icmp eq ptr %.046, null
  br i1 %.not47, label %._crit_edge51, label %.lr.ph50

.lr.ph50:                                         ; preds = %._crit_edge44, %.lr.ph50
  %.048 = phi ptr [ %.0, %.lr.ph50 ], [ %.046, %._crit_edge44 ]
  %52 = load i64, ptr %.048, align 8, !tbaa !17
  call void @uint64_t_ll_uniq_append(ptr noundef nonnull %8, i64 noundef %52) #7
  %.0.in = getelementptr inbounds i8, ptr %.048, i64 8
  %.0 = load ptr, ptr %.0.in, align 8, !tbaa !9
  %.not = icmp eq ptr %.0, null
  br i1 %.not, label %._crit_edge51, label %.lr.ph50, !llvm.loop !20

._crit_edge51:                                    ; preds = %.lr.ph50, %._crit_edge44
  call void (...) @stop() #7
  %53 = load ptr, ptr @stderr, align 8, !tbaa !9
  %54 = call i64 (...) @report() #7
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.1, i64 noundef %54) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %56

56:                                               ; preds = %2, %._crit_edge51, %._crit_edge59
  ret i32 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: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #2

declare void @start(...) local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #4

declare void @wah_uniq_append(ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @stop(...) local_unnamed_addr #3

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

declare i64 @report(...) local_unnamed_addr #3

declare i32 @wah_or(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

declare void @uint64_t_ll_append(ptr noundef, i64 noundef) local_unnamed_addr #3

declare void @uint64_t_ll_uniq_append(ptr noundef, i64 noundef) local_unnamed_addr #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 = { 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 = { 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 #6 = { nounwind willreturn memory(read) }
attributes #7 = { nounwind }
attributes #8 = { cold 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, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = !{!18, !19, i64 0}
!18 = !{!"uint64_t_ll_node", !19, i64 0, !10, i64 8}
!19 = !{!"long", !7, i64 0}
!20 = distinct !{!20, !13}


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