; LLVM IR from Robert-van-Engelen/lisp-cheney :: src (lisp-cheney)

; 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.State = type { [1 x %struct.__jmp_buf_tag], i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.anon = type { ptr, ptr, i16 }

@PRIM = external dso_local global i64, align 8
@NIL = external dso_local global i64, align 8
@state = external dso_local global %struct.State, align 8
@errors = external dso_local global [9 x ptr], align 16
@hp = external dso_local global i64, align 8
@sp = external dso_local global i64, align 8
@vars = external dso_local global double, align 8
@env = external dso_local global double, align 8
@nil = external dso_local global double, align 8
@fin = external dso_local global i64, align 8
@in = external dso_local global [10 x ptr], align 16
@ps = external dso_local global [20 x i8], align 16
@tru = external dso_local global double, align 8
@out = external dso_local global ptr, align 8
@prim = external dso_local global [43 x %struct.anon], align 16
@.str.72 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [10 x i8], align 1
@stdout = external global ptr, align 8
@.str.74 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @using_history() #0

; Function Attrs: nounwind uwtable
declare dso_local double @box(i64 noundef, i64 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: nounwind uwtable
declare dso_local double @gc(double noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @atom(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @pair(double noundef, double noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @var(i32 noundef, ...) #0

; Function Attrs: nounwind uwtable
declare dso_local void @unwind(i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @input(ptr noundef) #0

declare i32 @fclose(ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local double @readlisp() #0

; Function Attrs: nounwind uwtable
declare dso_local double @eval(double noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @print(double noundef) #0

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #3

; Function Attrs: nounwind returns_twice
declare i32 @_setjmp(ptr noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare i32 @putchar(i32 noundef) #5

; 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
  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) #7
  %7 = call i32 (ptr, ...) @printf(ptr noundef @.str.72)
  %8 = load i32, ptr %4, align 4, !tbaa !5
  %9 = icmp sgt i32 %8, 1
  br i1 %9, label %10, label %14

10:                                               ; preds = %2
  %11 = load ptr, ptr %5, align 8, !tbaa !9
  %12 = getelementptr inbounds ptr, ptr %11, i64 1
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  br label %15

14:                                               ; preds = %2
  br label %15

15:                                               ; preds = %14, %10
  %16 = phi ptr [ %13, %10 ], [ @.str.73, %14 ]
  %17 = call ptr @input(ptr noundef %16)
  %18 = load ptr, ptr @stdout, align 8, !tbaa !9
  store ptr %18, ptr @out, align 8, !tbaa !9
  %19 = call i32 @_setjmp(ptr noundef @state) #8
  %20 = icmp ne i32 %19, 0
  br i1 %20, label %21, label %22

21:                                               ; preds = %15
  call void @abort() #9
  unreachable

22:                                               ; preds = %15
  %23 = load i64, ptr @NIL, align 8, !tbaa !11
  %24 = call double @box(i64 noundef %23, i64 noundef 0)
  store double %24, ptr @nil, align 8, !tbaa !13
  store double %24, ptr @vars, align 8, !tbaa !13
  %25 = call double @atom(ptr noundef @.str.74)
  store double %25, ptr @tru, align 8, !tbaa !13
  call void (i32, ...) @var(i32 noundef 1, ptr noundef @tru)
  %26 = load double, ptr @tru, align 8, !tbaa !13
  %27 = load double, ptr @tru, align 8, !tbaa !13
  %28 = call double @pair(double noundef %26, double noundef %27, ptr noundef @nil)
  store double %28, ptr @env, align 8, !tbaa !13
  call void (i32, ...) @var(i32 noundef 1, ptr noundef @env)
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %48, %22
  %30 = load i32, ptr %6, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [43 x %struct.anon], ptr @prim, i64 0, i64 %31
  %33 = getelementptr inbounds %struct.anon, ptr %32, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !15
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %51

36:                                               ; preds = %29
  %37 = load i32, ptr %6, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [43 x %struct.anon], ptr @prim, i64 0, i64 %38
  %40 = getelementptr inbounds %struct.anon, ptr %39, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8, !tbaa !15
  %42 = call double @atom(ptr noundef %41)
  %43 = load i64, ptr @PRIM, align 8, !tbaa !11
  %44 = load i32, ptr %6, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = call double @box(i64 noundef %43, i64 noundef %45)
  %47 = call double @pair(double noundef %42, double noundef %46, ptr noundef @env)
  store double %47, ptr @env, align 8, !tbaa !13
  br label %48

48:                                               ; preds = %36
  %49 = load i32, ptr %6, align 4, !tbaa !5
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %6, align 4, !tbaa !5
  br label %29, !llvm.loop !18

51:                                               ; preds = %29
  call void @using_history()
  %52 = call i32 @_setjmp(ptr noundef @state) #8
  store i32 %52, ptr %6, align 4, !tbaa !5
  %53 = load i32, ptr %6, align 4, !tbaa !5
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %83

55:                                               ; preds = %51
  %56 = load i32, ptr getelementptr inbounds (%struct.State, ptr @state, i32 0, i32 1), align 8, !tbaa !20
  %57 = sub nsw i32 %56, 2
  call void @unwind(i32 noundef %57)
  br label %58

58:                                               ; preds = %61, %55
  %59 = load i64, ptr @fin, align 8, !tbaa !11
  %60 = icmp ne i64 %59, 0
  br i1 %60, label %61, label %67

61:                                               ; preds = %58
  %62 = load i64, ptr @fin, align 8, !tbaa !11
  %63 = add i64 %62, -1
  store i64 %63, ptr @fin, align 8, !tbaa !11
  %64 = getelementptr inbounds [10 x ptr], ptr @in, i64 0, i64 %63
  %65 = load ptr, ptr %64, align 8, !tbaa !9
  %66 = call i32 @fclose(ptr noundef %65)
  br label %58, !llvm.loop !22

67:                                               ; preds = %58
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = load i32, ptr %6, align 4, !tbaa !5
  %70 = icmp sgt i32 %69, 0
  br i1 %70, label %71, label %76

71:                                               ; preds = %67
  %72 = load i32, ptr %6, align 4, !tbaa !5
  %73 = icmp sle i32 %72, 8
  br i1 %73, label %74, label %76

74:                                               ; preds = %71
  %75 = load i32, ptr %6, align 4, !tbaa !5
  br label %77

76:                                               ; preds = %71, %67
  br label %77

77:                                               ; preds = %76, %74
  %78 = phi i32 [ %75, %74 ], [ 0, %76 ]
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [9 x ptr], ptr @errors, i64 0, i64 %79
  %81 = load ptr, ptr %80, align 8, !tbaa !9
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str.75, i32 noundef %68, ptr noundef %81)
  br label %83

83:                                               ; preds = %77, %51
  br label %84

84:                                               ; preds = %85, %83
  br label %85

85:                                               ; preds = %84
  %86 = call i32 @putchar(i32 noundef 10)
  %87 = call double @gc(double noundef 1.000000e+00)
  %88 = load i64, ptr @sp, align 8, !tbaa !11
  %89 = load i64, ptr @hp, align 8, !tbaa !11
  %90 = udiv i64 %89, 8
  %91 = sub i64 %88, %90
  %92 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef @ps, i64 noundef 20, ptr noundef @.str.76, i64 noundef %91) #7
  %93 = load ptr, ptr @stdout, align 8, !tbaa !9
  store ptr %93, ptr @out, align 8, !tbaa !9
  %94 = call double @readlisp()
  %95 = call double @eval(double noundef %94, ptr noundef @env)
  call void @print(double noundef %95)
  br label %84
}

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

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 "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 returns_twice "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 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 = { nounwind }
attributes #8 = { nounwind returns_twice }
attributes #9 = { noreturn 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 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !10, i64 0}
!16 = !{!"", !10, i64 0, !10, i64 8, !17, i64 16}
!17 = !{!"short", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !6, i64 200}
!21 = !{!"State", !7, i64 0, !6, i64 200}
!22 = distinct !{!22, !19}


; 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.State = type { [1 x %struct.__jmp_buf_tag], i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.anon = type { ptr, ptr, i16 }

@PRIM = external dso_local local_unnamed_addr global i64, align 8
@NIL = external dso_local local_unnamed_addr global i64, align 8
@state = external dso_local global %struct.State, align 8
@errors = external dso_local local_unnamed_addr global [9 x ptr], align 16
@hp = external dso_local local_unnamed_addr global i64, align 8
@sp = external dso_local local_unnamed_addr global i64, align 8
@vars = external dso_local local_unnamed_addr global double, align 8
@env = external dso_local global double, align 8
@nil = external dso_local global double, align 8
@fin = external dso_local local_unnamed_addr global i64, align 8
@in = external dso_local local_unnamed_addr global [10 x ptr], align 16
@ps = external dso_local global [20 x i8], align 16
@tru = external dso_local global double, align 8
@out = external dso_local local_unnamed_addr global ptr, align 8
@prim = external dso_local local_unnamed_addr global [43 x %struct.anon], align 16
@.str.72 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [10 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.74 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @using_history() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local double @box(i64 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local double @gc(double noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare dso_local double @pair(double noundef, double noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @var(i32 noundef, ...) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @unwind(i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @input(ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local double @readlisp() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local double @eval(double noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @print(double noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: nounwind returns_twice
declare i32 @_setjmp(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nofree nounwind uwtable
declare noundef i32 @putchar(i32 noundef) local_unnamed_addr #3

; Function Attrs: noreturn nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #4 {
  %3 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.72)
  %4 = icmp sgt i32 %0, 1
  br i1 %4, label %5, label %8

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %1, i64 8
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  br label %8

8:                                                ; preds = %2, %5
  %9 = phi ptr [ %7, %5 ], [ @.str.73, %2 ]
  %10 = call ptr @input(ptr noundef %9)
  %11 = load ptr, ptr @stdout, align 8, !tbaa !5
  store ptr %11, ptr @out, align 8, !tbaa !5
  %12 = call i32 @_setjmp(ptr noundef nonnull @state) #6
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %14, label %13

13:                                               ; preds = %8
  call void @abort() #7
  unreachable

14:                                               ; preds = %8
  %15 = load i64, ptr @NIL, align 8, !tbaa !9
  %16 = call double @box(i64 noundef %15, i64 noundef 0)
  store double %16, ptr @nil, align 8, !tbaa !11
  store double %16, ptr @vars, align 8, !tbaa !11
  %17 = call double @atom(ptr noundef nonnull @.str.74)
  store double %17, ptr @tru, align 8, !tbaa !11
  call void (i32, ...) @var(i32 noundef 1, ptr noundef nonnull @tru)
  %18 = load double, ptr @tru, align 8, !tbaa !11
  %19 = call double @pair(double noundef %18, double noundef %18, ptr noundef nonnull @nil)
  store double %19, ptr @env, align 8, !tbaa !11
  call void (i32, ...) @var(i32 noundef 1, ptr noundef nonnull @env)
  %20 = load ptr, ptr @prim, align 16, !tbaa !13
  %.not1417 = icmp eq ptr %20, null
  br i1 %.not1417, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %14, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %14 ]
  %21 = phi ptr [ %27, %.lr.ph ], [ %20, %14 ]
  %22 = call double @atom(ptr noundef nonnull %21)
  %23 = load i64, ptr @PRIM, align 8, !tbaa !9
  %24 = call double @box(i64 noundef %23, i64 noundef %indvars.iv)
  %25 = call double @pair(double noundef %22, double noundef %24, ptr noundef nonnull @env)
  store double %25, ptr @env, align 8, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %26 = getelementptr inbounds [43 x %struct.anon], ptr @prim, i64 0, i64 %indvars.iv.next
  %27 = load ptr, ptr %26, align 8, !tbaa !13
  %.not14 = icmp eq ptr %27, null
  br i1 %.not14, label %._crit_edge, label %.lr.ph, !llvm.loop !16

._crit_edge:                                      ; preds = %.lr.ph, %14
  call void @using_history()
  %28 = call i32 @_setjmp(ptr noundef nonnull @state) #6
  %.not15 = icmp eq i32 %28, 0
  br i1 %.not15, label %.preheader, label %29

29:                                               ; preds = %._crit_edge
  %30 = load i32, ptr getelementptr inbounds (i8, ptr @state, i64 200), align 8, !tbaa !18
  %31 = add nsw i32 %30, -2
  call void @unwind(i32 noundef %31)
  %32 = load i64, ptr @fin, align 8, !tbaa !9
  %.not1619 = icmp eq i64 %32, 0
  br i1 %.not1619, label %._crit_edge22, label %.lr.ph21

.lr.ph21:                                         ; preds = %29, %.lr.ph21
  %33 = phi i64 [ %38, %.lr.ph21 ], [ %32, %29 ]
  %34 = add i64 %33, -1
  store i64 %34, ptr @fin, align 8, !tbaa !9
  %35 = getelementptr inbounds [10 x ptr], ptr @in, i64 0, i64 %34
  %36 = load ptr, ptr %35, align 8, !tbaa !5
  %37 = call i32 @fclose(ptr noundef %36)
  %38 = load i64, ptr @fin, align 8, !tbaa !9
  %.not16 = icmp eq i64 %38, 0
  br i1 %.not16, label %._crit_edge22, label %.lr.ph21, !llvm.loop !21

._crit_edge22:                                    ; preds = %.lr.ph21, %29
  %or.cond = icmp ult i32 %28, 9
  %39 = select i1 %or.cond, i32 %28, i32 0
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [9 x ptr], ptr @errors, i64 0, i64 %40
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  %43 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.75, i32 noundef %28, ptr noundef %42)
  br label %.preheader

.preheader:                                       ; preds = %._crit_edge22, %._crit_edge
  br label %44

44:                                               ; preds = %.preheader, %44
  %45 = call i32 @putchar(i32 noundef 10)
  %46 = call double @gc(double noundef 1.000000e+00)
  %47 = load i64, ptr @sp, align 8, !tbaa !9
  %48 = load i64, ptr @hp, align 8, !tbaa !9
  %49 = lshr i64 %48, 3
  %50 = sub i64 %47, %49
  %51 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) @ps, i64 noundef 20, ptr noundef nonnull @.str.76, i64 noundef %50) #8
  %52 = load ptr, ptr @stdout, align 8, !tbaa !5
  store ptr %52, ptr @out, align 8, !tbaa !5
  %53 = call double @readlisp()
  %54 = call double @eval(double noundef %53, ptr noundef nonnull @env)
  call void @print(double noundef %54)
  br label %44
}

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

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 = { 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 #2 = { nounwind returns_twice "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 = { inlinehint nofree 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 #4 = { noreturn 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 #5 = { 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 #6 = { nounwind returns_twice }
attributes #7 = { noreturn nounwind }
attributes #8 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"", !6, i64 0, !6, i64 8, !15, i64 16}
!15 = !{!"short", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !20, i64 200}
!19 = !{!"State", !7, i64 0, !20, i64 200}
!20 = !{!"int", !7, i64 0}
!21 = distinct !{!21, !17}


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