; LLVM IR from HRI-EU/Rcs :: src/RcsCore (Rcs_timer)

; 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._Timer = type { double, double, double, double, %struct.timeval, i64, i8 }
%struct.timeval = type { i64, i64 }

@RCS_GLOBAL_RLOG_CB = external global ptr, align 8
@.str = external hidden unnamed_addr constant [68 x i8], align 1
@RcsLogLevel = external global i32, align 4
@stderr = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@__func__.Timer_wait = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [44 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local double @Timer_get(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local double @Timer_getTime() #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

; Function Attrs: nounwind uwtable
declare dso_local void @Timer_usleep(i64 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @Timer_wait(ptr noundef %0) #2 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca double, align 8
  %5 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %6 = load ptr, ptr %3, align 8, !tbaa !5
  %7 = icmp eq ptr %6, null
  br i1 %7, label %8, label %27

8:                                                ; preds = %1
  br label %9

9:                                                ; preds = %8
  %10 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %11 = icmp ne ptr %10, null
  br i1 %11, label %12, label %14

12:                                               ; preds = %9
  %13 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  call void (i32, ptr, ptr, i32, ptr, ...) %13(i32 noundef 1, ptr noundef @.str, ptr noundef @__func__.Timer_wait, i32 noundef 226, ptr noundef @.str.8)
  br label %14

14:                                               ; preds = %12, %9
  %15 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %16 = icmp sle i32 1, %15
  br i1 %16, label %17, label %24

17:                                               ; preds = %14
  %18 = load ptr, ptr @stderr, align 8, !tbaa !5
  %19 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef @.str.2, ptr noundef @.str, ptr noundef @__func__.Timer_wait, i32 noundef 226) #5
  %20 = load ptr, ptr @stderr, align 8, !tbaa !5
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef @.str.8) #5
  %22 = load ptr, ptr @stderr, align 8, !tbaa !5
  %23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef @.str.3) #5
  br label %24

24:                                               ; preds = %17, %14
  br label %25

25:                                               ; preds = %24
  br label %26

26:                                               ; preds = %25
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %145

27:                                               ; preds = %1
  %28 = call double @Timer_getTime()
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct._Timer, ptr %29, i32 0, i32 0
  %31 = load double, ptr %30, align 8, !tbaa !11
  %32 = fsub double %28, %31
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct._Timer, ptr %33, i32 0, i32 1
  store double %32, ptr %34, align 8, !tbaa !17
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct._Timer, ptr %35, i32 0, i32 1
  %37 = load double, ptr %36, align 8, !tbaa !17
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct._Timer, ptr %38, i32 0, i32 3
  %40 = load double, ptr %39, align 8, !tbaa !18
  %41 = fcmp oge double %37, %40
  br i1 %41, label %42, label %105

42:                                               ; preds = %27
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct._Timer, ptr %43, i32 0, i32 1
  %45 = load double, ptr %44, align 8, !tbaa !17
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct._Timer, ptr %46, i32 0, i32 3
  %48 = load double, ptr %47, align 8, !tbaa !18
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct._Timer, ptr %49, i32 0, i32 2
  %51 = load double, ptr %50, align 8, !tbaa !19
  %52 = call double @llvm.fmuladd.f64(double 2.500000e-01, double %51, double %48)
  %53 = fcmp ogt double %45, %52
  br i1 %53, label %54, label %97

54:                                               ; preds = %42
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct._Timer, ptr %55, i32 0, i32 6
  %57 = load i8, ptr %56, align 8, !tbaa !20, !range !21, !noundef !22
  %58 = trunc i8 %57 to i1
  br i1 %58, label %59, label %97

59:                                               ; preds = %54
  br label %60

60:                                               ; preds = %59
  %61 = load ptr, ptr @stderr, align 8, !tbaa !5
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef @.str.9, ptr noundef @.str, ptr noundef @__func__.Timer_wait, i32 noundef 239) #5
  %63 = load ptr, ptr @stderr, align 8, !tbaa !5
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct._Timer, ptr %64, i32 0, i32 5
  %66 = load i64, ptr %65, align 8, !tbaa !23
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct._Timer, ptr %67, i32 0, i32 1
  %69 = load double, ptr %68, align 8, !tbaa !17
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct._Timer, ptr %70, i32 0, i32 3
  %72 = load double, ptr %71, align 8, !tbaa !18
  %73 = fsub double %69, %72
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct._Timer, ptr %74, i32 0, i32 2
  %76 = load double, ptr %75, align 8, !tbaa !19
  %77 = fadd double %73, %76
  %78 = fmul double 1.000000e+03, %77
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct._Timer, ptr %79, i32 0, i32 2
  %81 = load double, ptr %80, align 8, !tbaa !19
  %82 = fmul double 1.000000e+03, %81
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef @.str.10, i64 noundef %66, double noundef %78, double noundef %82) #5
  %84 = load ptr, ptr @stderr, align 8, !tbaa !5
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef @.str.3) #5
  %86 = load ptr, ptr @stderr, align 8, !tbaa !5
  %87 = call i32 @fflush(ptr noundef %86)
  br label %88

88:                                               ; preds = %60
  br label %89

89:                                               ; preds = %88
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct._Timer, ptr %90, i32 0, i32 2
  %92 = load double, ptr %91, align 8, !tbaa !19
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct._Timer, ptr %93, i32 0, i32 3
  %95 = load double, ptr %94, align 8, !tbaa !18
  %96 = fadd double %95, %92
  store double %96, ptr %94, align 8, !tbaa !18
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %145

97:                                               ; preds = %54, %42
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct._Timer, ptr %98, i32 0, i32 2
  %100 = load double, ptr %99, align 8, !tbaa !19
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct._Timer, ptr %101, i32 0, i32 3
  %103 = load double, ptr %102, align 8, !tbaa !18
  %104 = fadd double %103, %100
  store double %104, ptr %102, align 8, !tbaa !18
  store i1 true, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %145

105:                                              ; preds = %27
  br label %106

106:                                              ; preds = %125, %105
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = call double @Timer_get(ptr noundef %107)
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct._Timer, ptr %109, i32 0, i32 1
  store double %108, ptr %110, align 8, !tbaa !17
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct._Timer, ptr %111, i32 0, i32 3
  %113 = load double, ptr %112, align 8, !tbaa !18
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct._Timer, ptr %114, i32 0, i32 1
  %116 = load double, ptr %115, align 8, !tbaa !17
  %117 = fsub double %113, %116
  store double %117, ptr %4, align 8, !tbaa !24
  %118 = load double, ptr %4, align 8, !tbaa !24
  %119 = fcmp ogt double %118, 0.000000e+00
  br i1 %119, label %120, label %124

120:                                              ; preds = %106
  %121 = load double, ptr %4, align 8, !tbaa !24
  %122 = fmul double %121, 1.000000e+06
  %123 = fptoui double %122 to i64
  call void @Timer_usleep(i64 noundef %123)
  br label %124

124:                                              ; preds = %120, %106
  br label %125

125:                                              ; preds = %124
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct._Timer, ptr %126, i32 0, i32 1
  %128 = load double, ptr %127, align 8, !tbaa !17
  %129 = load ptr, ptr %3, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct._Timer, ptr %129, i32 0, i32 3
  %131 = load double, ptr %130, align 8, !tbaa !18
  %132 = fcmp olt double %128, %131
  br i1 %132, label %106, label %133, !llvm.loop !25

133:                                              ; preds = %125
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct._Timer, ptr %134, i32 0, i32 2
  %136 = load double, ptr %135, align 8, !tbaa !19
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct._Timer, ptr %137, i32 0, i32 3
  %139 = load double, ptr %138, align 8, !tbaa !18
  %140 = fadd double %139, %136
  store double %140, ptr %138, align 8, !tbaa !18
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct._Timer, ptr %141, i32 0, i32 5
  %143 = load i64, ptr %142, align 8, !tbaa !23
  %144 = add nsw i64 %143, 1
  store i64 %144, ptr %142, align 8, !tbaa !23
  store i1 true, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %145

145:                                              ; preds = %133, %97, %89, %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  %146 = load i1, ptr %2, align 1
  ret i1 %146
}

declare i32 @fflush(ptr noundef) #4

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

!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, !13, i64 0}
!12 = !{!"_Timer", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !14, i64 32, !15, i64 48, !16, i64 56}
!13 = !{!"double", !7, i64 0}
!14 = !{!"timeval", !15, i64 0, !15, i64 8}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!12, !13, i64 8}
!18 = !{!12, !13, i64 24}
!19 = !{!12, !13, i64 16}
!20 = !{!12, !16, i64 56}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!12, !15, i64 48}
!24 = !{!13, !13, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"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"

@RCS_GLOBAL_RLOG_CB = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [68 x i8], align 1
@RcsLogLevel = external local_unnamed_addr global i32, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@__func__.Timer_wait = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [44 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local double @Timer_get(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local double @Timer_getTime() local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

; Function Attrs: nounwind uwtable
declare dso_local void @Timer_usleep(i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i1 @Timer_wait(ptr noundef %0) local_unnamed_addr #1 {
  %2 = icmp eq ptr %0, null
  br i1 %2, label %3, label %16

3:                                                ; preds = %1
  %4 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %6, label %5

5:                                                ; preds = %3
  tail call void (i32, ptr, ptr, i32, ptr, ...) %4(i32 noundef 1, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.Timer_wait, i32 noundef 226, ptr noundef nonnull @.str.8) #3
  br label %6

6:                                                ; preds = %5, %3
  %7 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %9, label %74

9:                                                ; preds = %6
  %10 = load ptr, ptr @stderr, align 8, !tbaa !5
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.Timer_wait, i32 noundef 226) #4
  %12 = load ptr, ptr @stderr, align 8, !tbaa !5
  %13 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef nonnull @.str.8) #4
  %14 = load ptr, ptr @stderr, align 8, !tbaa !5
  %15 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef nonnull @.str.3) #4
  br label %74

16:                                               ; preds = %1
  %17 = tail call double @Timer_getTime()
  %18 = load double, ptr %0, align 8, !tbaa !11
  %19 = fsub double %17, %18
  %20 = getelementptr inbounds i8, ptr %0, i64 8
  store double %19, ptr %20, align 8, !tbaa !17
  %21 = getelementptr inbounds i8, ptr %0, i64 24
  %22 = load double, ptr %21, align 8, !tbaa !18
  %23 = fcmp ult double %19, %22
  br i1 %23, label %.preheader, label %24

24:                                               ; preds = %16
  %25 = getelementptr inbounds i8, ptr %0, i64 16
  %26 = load double, ptr %25, align 8, !tbaa !19
  %27 = tail call double @llvm.fmuladd.f64(double %26, double 2.500000e-01, double %22)
  %28 = fcmp ogt double %19, %27
  br i1 %28, label %29, label %54

29:                                               ; preds = %24
  %30 = getelementptr inbounds i8, ptr %0, i64 56
  %31 = load i8, ptr %30, align 8, !tbaa !20, !range !21, !noundef !22
  %32 = trunc nuw i8 %31 to i1
  br i1 %32, label %33, label %54

33:                                               ; preds = %29
  %34 = load ptr, ptr @stderr, align 8, !tbaa !5
  %35 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.Timer_wait, i32 noundef 239) #4
  %36 = load ptr, ptr @stderr, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %0, i64 48
  %38 = load i64, ptr %37, align 8, !tbaa !23
  %39 = load double, ptr %20, align 8, !tbaa !17
  %40 = load double, ptr %21, align 8, !tbaa !18
  %41 = fsub double %39, %40
  %42 = load double, ptr %25, align 8, !tbaa !19
  %43 = fadd double %41, %42
  %44 = fmul double %43, 1.000000e+03
  %45 = fmul double %42, 1.000000e+03
  %46 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.10, i64 noundef %38, double noundef %44, double noundef %45) #4
  %47 = load ptr, ptr @stderr, align 8, !tbaa !5
  %48 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef nonnull @.str.3) #4
  %49 = load ptr, ptr @stderr, align 8, !tbaa !5
  %50 = tail call i32 @fflush(ptr noundef %49)
  %51 = load double, ptr %25, align 8, !tbaa !19
  %52 = load double, ptr %21, align 8, !tbaa !18
  %53 = fadd double %51, %52
  store double %53, ptr %21, align 8, !tbaa !18
  br label %74

54:                                               ; preds = %29, %24
  %55 = fadd double %22, %26
  store double %55, ptr %21, align 8, !tbaa !18
  br label %74

.preheader:                                       ; preds = %16, %63
  %56 = tail call double @Timer_get(ptr noundef nonnull %0)
  store double %56, ptr %20, align 8, !tbaa !17
  %57 = load double, ptr %21, align 8, !tbaa !18
  %58 = fsub double %57, %56
  %59 = fcmp ogt double %58, 0.000000e+00
  br i1 %59, label %60, label %63

60:                                               ; preds = %.preheader
  %61 = fmul double %58, 1.000000e+06
  %62 = fptoui double %61 to i64
  tail call void @Timer_usleep(i64 noundef %62)
  %.pre = load double, ptr %20, align 8, !tbaa !17
  %.pre36 = load double, ptr %21, align 8, !tbaa !18
  br label %63

63:                                               ; preds = %.preheader, %60
  %64 = phi double [ %57, %.preheader ], [ %.pre36, %60 ]
  %65 = phi double [ %56, %.preheader ], [ %.pre, %60 ]
  %66 = fcmp olt double %65, %64
  br i1 %66, label %.preheader, label %67, !llvm.loop !24

67:                                               ; preds = %63
  %68 = getelementptr inbounds i8, ptr %0, i64 16
  %69 = load double, ptr %68, align 8, !tbaa !19
  %70 = fadd double %64, %69
  store double %70, ptr %21, align 8, !tbaa !18
  %71 = getelementptr inbounds i8, ptr %0, i64 48
  %72 = load i64, ptr %71, align 8, !tbaa !23
  %73 = add nsw i64 %72, 1
  store i64 %73, ptr %71, align 8, !tbaa !23
  br label %74

74:                                               ; preds = %6, %9, %67, %54, %33
  %.0 = phi i1 [ false, %33 ], [ true, %54 ], [ true, %67 ], [ false, %9 ], [ false, %6 ]
  ret i1 %.0
}

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

attributes #0 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
attributes #4 = { 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 = !{!"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, !13, i64 0}
!12 = !{!"_Timer", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !14, i64 32, !15, i64 48, !16, i64 56}
!13 = !{!"double", !7, i64 0}
!14 = !{!"timeval", !15, i64 0, !15, i64 8}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!12, !13, i64 8}
!18 = !{!12, !13, i64 24}
!19 = !{!12, !13, i64 16}
!20 = !{!12, !16, i64 56}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!12, !15, i64 48}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


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