; LLVM IR from humz2k/sugaryc :: ext/bdwgc/tests (disclaim_bench)

; 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.timespec = type { i64, i64 }

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [112 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [41 x i8], align 1
@GC_on_abort = external global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@free_count = external hidden global i32, align 4
@seed = external hidden global i32, align 4
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1
@model_str = external hidden global [3 x ptr], align 16
@.str.7 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 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 i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca %struct.timespec, align 8
  %14 = alloca %struct.timespec, align 8
  %15 = alloca i32, align 4
  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
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  call void @GC_init()
  call void @GC_init_finalized_malloc()
  %16 = load i32, ptr %4, align 4, !tbaa !5
  %17 = icmp eq i32 %16, 2
  br i1 %17, label %18, label %30

18:                                               ; preds = %2
  %19 = load ptr, ptr %5, align 8, !tbaa !9
  %20 = getelementptr inbounds ptr, ptr %19, i64 1
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  %22 = call i32 @strcmp(ptr noundef %21, ptr noundef @.str) #9
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %30

24:                                               ; preds = %18
  %25 = load ptr, ptr @stderr, align 8, !tbaa !9
  %26 = load ptr, ptr %5, align 8, !tbaa !9
  %27 = getelementptr inbounds ptr, ptr %26, i64 0
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef @.str.1, ptr noundef %28) #8
  store i32 1, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %154

30:                                               ; preds = %18, %2
  %31 = load i32, ptr %4, align 4, !tbaa !5
  %32 = icmp eq i32 %31, 2
  br i1 %32, label %33, label %47

33:                                               ; preds = %30
  %34 = load ptr, ptr %5, align 8, !tbaa !9
  %35 = getelementptr inbounds ptr, ptr %34, i64 1
  %36 = load ptr, ptr %35, align 8, !tbaa !9
  %37 = call i32 @atoi(ptr noundef %36) #9
  %38 = sext i32 %37 to i64
  %39 = trunc i64 %38 to i32
  store i32 %39, ptr %9, align 4, !tbaa !5
  store i32 %39, ptr %8, align 4, !tbaa !5
  %40 = load i32, ptr %8, align 4, !tbaa !5
  %41 = icmp slt i32 %40, 0
  br i1 %41, label %45, label %42

42:                                               ; preds = %33
  %43 = load i32, ptr %9, align 4, !tbaa !5
  %44 = icmp sgt i32 %43, 2
  br i1 %44, label %45, label %46

45:                                               ; preds = %42, %33
  call void @exit(i32 noundef 2) #10
  unreachable

46:                                               ; preds = %42
  br label %48

47:                                               ; preds = %30
  store i32 0, ptr %8, align 4, !tbaa !5
  store i32 2, ptr %9, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %47, %46
  %49 = call i32 @GC_get_find_leak()
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %53

51:                                               ; preds = %48
  %52 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %53

53:                                               ; preds = %51, %48
  %54 = call noalias ptr @GC_malloc(i64 noundef 262144) #11
  store ptr %54, ptr %10, align 8, !tbaa !9
  br label %55

55:                                               ; preds = %53
  %56 = load ptr, ptr %10, align 8, !tbaa !9
  %57 = icmp eq ptr null, %56
  br i1 %57, label %58, label %61

58:                                               ; preds = %55
  %59 = load ptr, ptr @stderr, align 8, !tbaa !9
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str.3) #8
  call void @exit(i32 noundef 69) #10
  unreachable

61:                                               ; preds = %55
  br label %62

62:                                               ; preds = %61
  br label %63

63:                                               ; preds = %62
  %64 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  %65 = load i32, ptr %8, align 4, !tbaa !5
  store i32 %65, ptr %7, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %150, %63
  %67 = load i32, ptr %7, align 4, !tbaa !5
  %68 = load i32, ptr %9, align 4, !tbaa !5
  %69 = icmp sle i32 %67, %68
  br i1 %69, label %70, label %153

70:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  store double 0.000000e+00, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #8
  br label %71

71:                                               ; preds = %70
  %72 = call i32 @clock_gettime(i32 noundef 1, ptr noundef %13) #8
  %73 = icmp eq i32 %72, -1
  br i1 %73, label %74, label %76

74:                                               ; preds = %71
  %75 = load ptr, ptr @GC_on_abort, align 8, !tbaa !9
  call void %75(ptr noundef @.str.5)
  call void @abort() #10
  unreachable

76:                                               ; preds = %71
  br label %77

77:                                               ; preds = %76
  br label %78

78:                                               ; preds = %77
  store i32 0, ptr @free_count, align 4, !tbaa !5
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %94, %78
  %80 = load i32, ptr %6, align 4, !tbaa !5
  %81 = icmp slt i32 %80, 2097152
  br i1 %81, label %82, label %97

82:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %83 = load i32, ptr @seed, align 4, !tbaa !5
  %84 = mul i32 %83, 1103515245
  %85 = add i32 %84, 12345
  %86 = and i32 %85, 2147483647
  store i32 %86, ptr @seed, align 4, !tbaa !5
  %87 = srem i32 %86, 32768
  store i32 %87, ptr %15, align 4, !tbaa !5
  %88 = load i32, ptr %7, align 4, !tbaa !5
  %89 = call ptr @testobj_new(i32 noundef %88)
  %90 = load ptr, ptr %10, align 8, !tbaa !9
  %91 = load i32, ptr %15, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds ptr, ptr %90, i64 %92
  store ptr %89, ptr %93, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %94

94:                                               ; preds = %82
  %95 = load i32, ptr %6, align 4, !tbaa !5
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %6, align 4, !tbaa !5
  br label %79, !llvm.loop !13

97:                                               ; preds = %79
  call void @GC_gcollect()
  br label %98

98:                                               ; preds = %97
  %99 = call i32 @clock_gettime(i32 noundef 1, ptr noundef %14) #8
  %100 = icmp eq i32 %99, -1
  br i1 %100, label %101, label %103

101:                                              ; preds = %98
  %102 = load ptr, ptr @GC_on_abort, align 8, !tbaa !9
  call void %102(ptr noundef @.str.5)
  call void @abort() #10
  unreachable

103:                                              ; preds = %98
  br label %104

104:                                              ; preds = %103
  br label %105

105:                                              ; preds = %104
  %106 = getelementptr inbounds %struct.timespec, ptr %14, i32 0, i32 1
  %107 = load i64, ptr %106, align 8, !tbaa !15
  %108 = getelementptr inbounds %struct.timespec, ptr %13, i32 0, i32 1
  %109 = load i64, ptr %108, align 8, !tbaa !15
  %110 = sub nsw i64 1000000000, %109
  %111 = add nsw i64 %107, %110
  %112 = udiv i64 %111, 1000000
  %113 = getelementptr inbounds %struct.timespec, ptr %14, i32 0, i32 0
  %114 = load i64, ptr %113, align 8, !tbaa !18
  %115 = getelementptr inbounds %struct.timespec, ptr %13, i32 0, i32 0
  %116 = load i64, ptr %115, align 8, !tbaa !18
  %117 = sub nsw i64 %114, %116
  %118 = mul i64 %117, 1000
  %119 = add i64 %112, %118
  %120 = sub i64 %119, 1000
  %121 = uitofp i64 %120 to double
  %122 = fmul double %121, 1.000000e-03
  store double %122, ptr %12, align 8, !tbaa !11
  %123 = load i32, ptr %7, align 4, !tbaa !5
  %124 = icmp slt i32 %123, 2
  br i1 %124, label %125, label %142

125:                                              ; preds = %105
  %126 = load i32, ptr @free_count, align 4, !tbaa !5
  %127 = icmp sgt i32 %126, 0
  br i1 %127, label %128, label %142

128:                                              ; preds = %125
  %129 = load i32, ptr %7, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [3 x ptr], ptr @model_str, i64 0, i64 %130
  %132 = load ptr, ptr %131, align 8, !tbaa !9
  %133 = load i32, ptr @free_count, align 4, !tbaa !5
  %134 = sitofp i32 %133 to double
  %135 = fdiv double %134, 0x4140000000000000
  %136 = load double, ptr %12, align 8, !tbaa !11
  %137 = load double, ptr %12, align 8, !tbaa !11
  %138 = load i32, ptr @free_count, align 4, !tbaa !5
  %139 = sitofp i32 %138 to double
  %140 = fdiv double %137, %139
  %141 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %132, double noundef %135, double noundef %136, double noundef %140)
  br label %149

142:                                              ; preds = %125, %105
  %143 = load i32, ptr %7, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [3 x ptr], ptr @model_str, i64 0, i64 %144
  %146 = load ptr, ptr %145, align 8, !tbaa !9
  %147 = load double, ptr %12, align 8, !tbaa !11
  %148 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %146, double noundef 0.000000e+00, double noundef %147, ptr noundef @.str.8)
  br label %149

149:                                              ; preds = %142, %128
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %150

150:                                              ; preds = %149
  %151 = load i32, ptr %7, align 4, !tbaa !5
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %7, align 4, !tbaa !5
  br label %66, !llvm.loop !19

153:                                              ; preds = %66
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %154

154:                                              ; preds = %153, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  %155 = load i32, ptr %3, align 4
  ret i32 %155
}

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

declare void @GC_init() #2

declare void @GC_init_finalized_malloc() #2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #3

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #6

declare i32 @GC_get_find_leak() #2

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

; Function Attrs: allocsize(0)
declare noalias ptr @GC_malloc(i64 noundef) #7

; Function Attrs: nounwind
declare i32 @clock_gettime(i32 noundef, ptr noundef) #4

; Function Attrs: noreturn nounwind
declare void @abort() #6

; Function Attrs: nounwind uwtable
declare hidden ptr @testobj_new(i32 noundef) #0

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

declare void @GC_gcollect() #2

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) "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 = { 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 #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { noreturn nounwind }
attributes #11 = { allocsize(0) }

!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 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !17, i64 8}
!16 = !{!"timespec", !17, i64 0, !17, i64 8}
!17 = !{!"long", !7, i64 0}
!18 = !{!16, !17, i64 0}
!19 = distinct !{!19, !14}


; 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.timespec = type { i64, i64 }

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [112 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [41 x i8], align 1
@GC_on_abort = external local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@free_count = external hidden local_unnamed_addr global i32, align 4
@seed = external hidden local_unnamed_addr global i32, align 4
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1
@model_str = external hidden local_unnamed_addr global [3 x ptr], align 16
@.str.7 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca %struct.timespec, align 8
  %4 = alloca %struct.timespec, align 8
  tail call void @GC_init() #9
  tail call void @GC_init_finalized_malloc() #9
  %5 = icmp eq i32 %0, 2
  br i1 %5, label %6, label %.critedge

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str) #10
  %10 = icmp eq i32 %9, 0
  br i1 %10, label %11, label %15

11:                                               ; preds = %6
  %12 = load ptr, ptr @stderr, align 8, !tbaa !5
  %13 = load ptr, ptr %1, align 8, !tbaa !5
  %14 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef nonnull @.str.1, ptr noundef %13) #11
  br label %.loopexit

15:                                               ; preds = %6
  %16 = tail call i32 @atoi(ptr nocapture noundef %8) #10
  %or.cond = icmp ugt i32 %16, 2
  br i1 %or.cond, label %17, label %.critedge

17:                                               ; preds = %15
  tail call void @exit(i32 noundef 2) #12
  unreachable

.critedge:                                        ; preds = %2, %15
  %.028 = phi i32 [ %16, %15 ], [ 0, %2 ]
  %.027 = phi i32 [ %16, %15 ], [ 2, %2 ]
  %18 = tail call i32 @GC_get_find_leak() #9
  %.not = icmp eq i32 %18, 0
  br i1 %.not, label %21, label %19

19:                                               ; preds = %.critedge
  %20 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %21

21:                                               ; preds = %19, %.critedge
  %22 = tail call noalias dereferenceable_or_null(262144) ptr @GC_malloc(i64 noundef 262144) #13
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %27

24:                                               ; preds = %21
  %25 = load ptr, ptr @stderr, align 8, !tbaa !5
  %26 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.3) #11
  tail call void @exit(i32 noundef 69) #12
  unreachable

27:                                               ; preds = %21
  %28 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %.not3335 = icmp ugt i32 %.028, %.027
  br i1 %.not3335, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %27
  %29 = getelementptr inbounds i8, ptr %4, i64 8
  %30 = getelementptr inbounds i8, ptr %3, i64 8
  %31 = zext nneg i32 %.028 to i64
  %32 = add nuw nsw i32 %.027, 1
  %wide.trip.count = zext nneg i32 %32 to i64
  br label %33

33:                                               ; preds = %.lr.ph, %80
  %indvars.iv = phi i64 [ %31, %.lr.ph ], [ %indvars.iv.next, %80 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #9
  %34 = call i32 @clock_gettime(i32 noundef 1, ptr noundef nonnull %3) #9
  %35 = icmp eq i32 %34, -1
  br i1 %35, label %36, label %38

36:                                               ; preds = %33
  %37 = load ptr, ptr @GC_on_abort, align 8, !tbaa !5
  call void %37(ptr noundef nonnull @.str.5) #9
  call void @abort() #12
  unreachable

38:                                               ; preds = %33
  store i32 0, ptr @free_count, align 4, !tbaa !9
  %39 = trunc nuw nsw i64 %indvars.iv to i32
  br label %40

40:                                               ; preds = %38, %40
  %.02634 = phi i32 [ 0, %38 ], [ %49, %40 ]
  %41 = load i32, ptr @seed, align 4, !tbaa !9
  %42 = mul i32 %41, 1103515245
  %43 = add i32 %42, 12345
  %44 = and i32 %43, 2147483647
  store i32 %44, ptr @seed, align 4, !tbaa !9
  %45 = and i32 %43, 32767
  %46 = call ptr @testobj_new(i32 noundef %39)
  %47 = zext nneg i32 %45 to i64
  %48 = getelementptr inbounds ptr, ptr %22, i64 %47
  store ptr %46, ptr %48, align 8, !tbaa !5
  %49 = add nuw nsw i32 %.02634, 1
  %exitcond.not = icmp eq i32 %49, 2097152
  br i1 %exitcond.not, label %50, label %40, !llvm.loop !11

50:                                               ; preds = %40
  call void @GC_gcollect() #9
  %51 = call i32 @clock_gettime(i32 noundef 1, ptr noundef nonnull %4) #9
  %52 = icmp eq i32 %51, -1
  br i1 %52, label %53, label %55

53:                                               ; preds = %50
  %54 = load ptr, ptr @GC_on_abort, align 8, !tbaa !5
  call void %54(ptr noundef nonnull @.str.5) #9
  call void @abort() #12
  unreachable

55:                                               ; preds = %50
  %56 = load i64, ptr %29, align 8, !tbaa !13
  %57 = load i64, ptr %30, align 8, !tbaa !13
  %reass.sub = add i64 %56, 1000000000
  %58 = sub i64 %reass.sub, %57
  %59 = udiv i64 %58, 1000000
  %60 = load i64, ptr %4, align 8, !tbaa !16
  %61 = load i64, ptr %3, align 8, !tbaa !16
  %62 = sub nsw i64 %60, %61
  %63 = mul i64 %62, 1000
  %64 = add nsw i64 %59, -1000
  %65 = add i64 %64, %63
  %66 = uitofp i64 %65 to double
  %67 = fmul double %66, 1.000000e-03
  %68 = icmp ult i64 %indvars.iv, 2
  %69 = load i32, ptr @free_count, align 4
  %70 = icmp sgt i32 %69, 0
  %or.cond3 = select i1 %68, i1 %70, i1 false
  %71 = getelementptr inbounds [3 x ptr], ptr @model_str, i64 0, i64 %indvars.iv
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  br i1 %or.cond3, label %73, label %78

73:                                               ; preds = %55
  %74 = uitofp nneg i32 %69 to double
  %75 = fmul double %74, 0x3EA0000000000000
  %76 = fdiv double %67, %74
  %77 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef %72, double noundef %75, double noundef %67, double noundef %76)
  br label %80

78:                                               ; preds = %55
  %79 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef %72, double noundef 0.000000e+00, double noundef %67, ptr noundef nonnull @.str.8)
  br label %80

80:                                               ; preds = %78, %73
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond38.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond38.not, label %.loopexit, label %33, !llvm.loop !17

.loopexit:                                        ; preds = %80, %27, %11
  %.0 = phi i32 [ 1, %11 ], [ 0, %27 ], [ 0, %80 ]
  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

declare void @GC_init() local_unnamed_addr #2

declare void @GC_init_finalized_malloc() local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #5

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #6

declare i32 @GC_get_find_leak() local_unnamed_addr #2

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

; Function Attrs: allocsize(0)
declare noalias ptr @GC_malloc(i64 noundef) local_unnamed_addr #7

; Function Attrs: nounwind
declare i32 @clock_gettime(i32 noundef, ptr noundef) local_unnamed_addr #8

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #6

; Function Attrs: nounwind uwtable
declare hidden ptr @testobj_new(i32 noundef) local_unnamed_addr #0

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

declare void @GC_gcollect() local_unnamed_addr #2

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { 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 #5 = { 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 #6 = { 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 #7 = { 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { cold nounwind }
attributes #12 = { noreturn nounwind }
attributes #13 = { nounwind allocsize(0) }

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


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