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

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

@ATOM = external dso_local global i32, align 4
@STRG = external dso_local global i32, align 4
@CONS = external dso_local global i32, align 4
@NIL = external dso_local global i32, align 4
@cell = external dso_local global [10240 x double], align 16
@buf = external dso_local global [256 x i8], align 16
@.str.20 = external hidden unnamed_addr constant [7 x i8], align 1

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #2

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

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

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

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #3

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

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

; Function Attrs: nounwind uwtable
define dso_local double @f_string(double noundef %0, ptr noundef %1) #0 {
  %3 = alloca double, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  store double %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store i32 0, ptr %5, align 4, !tbaa !11
  %10 = load double, ptr %3, align 8, !tbaa !5
  store double %10, ptr %7, align 8, !tbaa !5
  br label %11

11:                                               ; preds = %73, %2
  %12 = load i64, ptr %7, align 8, !tbaa !13
  %13 = lshr i64 %12, 48
  %14 = load i32, ptr @NIL, align 4, !tbaa !11
  %15 = zext i32 %14 to i64
  %16 = icmp ne i64 %13, %15
  br i1 %16, label %17, label %76

17:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %18 = load double, ptr %7, align 8, !tbaa !5
  %19 = call double @car(double noundef %18)
  store double %19, ptr %8, align 8, !tbaa !5
  %20 = load i64, ptr %8, align 8, !tbaa !13
  %21 = lshr i64 %20, 48
  %22 = load i32, ptr @ATOM, align 4, !tbaa !11
  %23 = load i32, ptr @STRG, align 4, !tbaa !11
  %24 = xor i32 %22, %23
  %25 = xor i32 %24, -1
  %26 = zext i32 %25 to i64
  %27 = and i64 %21, %26
  %28 = load i32, ptr @ATOM, align 4, !tbaa !11
  %29 = zext i32 %28 to i64
  %30 = icmp eq i64 %27, %29
  br i1 %30, label %31, label %41

31:                                               ; preds = %17
  %32 = load double, ptr %8, align 8, !tbaa !5
  %33 = call i32 @ord(double noundef %32)
  %34 = zext i32 %33 to i64
  %35 = getelementptr inbounds i8, ptr @cell, i64 %34
  %36 = call i64 @strlen(ptr noundef %35) #5
  %37 = load i32, ptr %5, align 4, !tbaa !11
  %38 = zext i32 %37 to i64
  %39 = add i64 %38, %36
  %40 = trunc i64 %39 to i32
  store i32 %40, ptr %5, align 4, !tbaa !11
  br label %72

41:                                               ; preds = %17
  %42 = load i64, ptr %8, align 8, !tbaa !13
  %43 = lshr i64 %42, 48
  %44 = load i32, ptr @CONS, align 4, !tbaa !11
  %45 = zext i32 %44 to i64
  %46 = icmp eq i64 %43, %45
  br i1 %46, label %47, label %61

47:                                               ; preds = %41
  br label %48

48:                                               ; preds = %57, %47
  %49 = load i64, ptr %8, align 8, !tbaa !13
  %50 = lshr i64 %49, 48
  %51 = load i32, ptr @CONS, align 4, !tbaa !11
  %52 = zext i32 %51 to i64
  %53 = icmp eq i64 %50, %52
  br i1 %53, label %54, label %60

54:                                               ; preds = %48
  %55 = load i32, ptr %5, align 4, !tbaa !11
  %56 = add i32 %55, 1
  store i32 %56, ptr %5, align 4, !tbaa !11
  br label %57

57:                                               ; preds = %54
  %58 = load double, ptr %8, align 8, !tbaa !5
  %59 = call double @cdr(double noundef %58)
  store double %59, ptr %8, align 8, !tbaa !5
  br label %48, !llvm.loop !15

60:                                               ; preds = %48
  br label %71

61:                                               ; preds = %41
  %62 = load double, ptr %8, align 8, !tbaa !5
  %63 = load double, ptr %8, align 8, !tbaa !5
  %64 = fcmp oeq double %62, %63
  br i1 %64, label %65, label %70

65:                                               ; preds = %61
  %66 = load double, ptr %8, align 8, !tbaa !5
  %67 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef @buf, i64 noundef 256, ptr noundef @.str.20, double noundef %66) #4
  %68 = load i32, ptr %5, align 4, !tbaa !11
  %69 = add i32 %68, %67
  store i32 %69, ptr %5, align 4, !tbaa !11
  br label %70

70:                                               ; preds = %65, %61
  br label %71

71:                                               ; preds = %70, %60
  br label %72

72:                                               ; preds = %71, %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %73

73:                                               ; preds = %72
  %74 = load double, ptr %7, align 8, !tbaa !5
  %75 = call double @cdr(double noundef %74)
  store double %75, ptr %7, align 8, !tbaa !5
  br label %11, !llvm.loop !17

76:                                               ; preds = %11
  %77 = load double, ptr %3, align 8, !tbaa !5
  %78 = call ptr @push(double noundef %77)
  %79 = load i32, ptr %5, align 4, !tbaa !11
  %80 = call i32 @alloc(i32 noundef %79)
  store i32 %80, ptr %6, align 4, !tbaa !11
  store i32 %80, ptr %5, align 4, !tbaa !11
  %81 = call double @pop()
  %82 = load double, ptr %3, align 8, !tbaa !5
  store double %82, ptr %7, align 8, !tbaa !5
  br label %83

83:                                               ; preds = %157, %76
  %84 = load i64, ptr %7, align 8, !tbaa !13
  %85 = lshr i64 %84, 48
  %86 = load i32, ptr @NIL, align 4, !tbaa !11
  %87 = zext i32 %86 to i64
  %88 = icmp ne i64 %85, %87
  br i1 %88, label %89, label %160

89:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %90 = load double, ptr %7, align 8, !tbaa !5
  %91 = call double @car(double noundef %90)
  store double %91, ptr %9, align 8, !tbaa !5
  %92 = load i64, ptr %9, align 8, !tbaa !13
  %93 = lshr i64 %92, 48
  %94 = load i32, ptr @ATOM, align 4, !tbaa !11
  %95 = load i32, ptr @STRG, align 4, !tbaa !11
  %96 = xor i32 %94, %95
  %97 = xor i32 %96, -1
  %98 = zext i32 %97 to i64
  %99 = and i64 %93, %98
  %100 = load i32, ptr @ATOM, align 4, !tbaa !11
  %101 = zext i32 %100 to i64
  %102 = icmp eq i64 %99, %101
  br i1 %102, label %103, label %117

103:                                              ; preds = %89
  %104 = load i32, ptr %5, align 4, !tbaa !11
  %105 = zext i32 %104 to i64
  %106 = getelementptr inbounds i8, ptr @cell, i64 %105
  %107 = load double, ptr %9, align 8, !tbaa !5
  %108 = call i32 @ord(double noundef %107)
  %109 = zext i32 %108 to i64
  %110 = getelementptr inbounds i8, ptr @cell, i64 %109
  %111 = call ptr @strcpy(ptr noundef %106, ptr noundef %110) #4
  %112 = call i64 @strlen(ptr noundef %111) #5
  %113 = load i32, ptr %5, align 4, !tbaa !11
  %114 = zext i32 %113 to i64
  %115 = add i64 %114, %112
  %116 = trunc i64 %115 to i32
  store i32 %116, ptr %5, align 4, !tbaa !11
  br label %156

117:                                              ; preds = %89
  %118 = load i64, ptr %9, align 8, !tbaa !13
  %119 = lshr i64 %118, 48
  %120 = load i32, ptr @CONS, align 4, !tbaa !11
  %121 = zext i32 %120 to i64
  %122 = icmp eq i64 %119, %121
  br i1 %122, label %123, label %142

123:                                              ; preds = %117
  br label %124

124:                                              ; preds = %138, %123
  %125 = load i64, ptr %9, align 8, !tbaa !13
  %126 = lshr i64 %125, 48
  %127 = load i32, ptr @CONS, align 4, !tbaa !11
  %128 = zext i32 %127 to i64
  %129 = icmp eq i64 %126, %128
  br i1 %129, label %130, label %141

130:                                              ; preds = %124
  %131 = load double, ptr %9, align 8, !tbaa !5
  %132 = call double @car(double noundef %131)
  %133 = fptosi double %132 to i8
  %134 = load i32, ptr %5, align 4, !tbaa !11
  %135 = add i32 %134, 1
  store i32 %135, ptr %5, align 4, !tbaa !11
  %136 = zext i32 %134 to i64
  %137 = getelementptr inbounds i8, ptr @cell, i64 %136
  store i8 %133, ptr %137, align 1, !tbaa !18
  br label %138

138:                                              ; preds = %130
  %139 = load double, ptr %9, align 8, !tbaa !5
  %140 = call double @cdr(double noundef %139)
  store double %140, ptr %9, align 8, !tbaa !5
  br label %124, !llvm.loop !19

141:                                              ; preds = %124
  br label %155

142:                                              ; preds = %117
  %143 = load double, ptr %9, align 8, !tbaa !5
  %144 = load double, ptr %9, align 8, !tbaa !5
  %145 = fcmp oeq double %143, %144
  br i1 %145, label %146, label %154

146:                                              ; preds = %142
  %147 = load i32, ptr %5, align 4, !tbaa !11
  %148 = zext i32 %147 to i64
  %149 = getelementptr inbounds i8, ptr @cell, i64 %148
  %150 = load double, ptr %9, align 8, !tbaa !5
  %151 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %149, i64 noundef 256, ptr noundef @.str.20, double noundef %150) #4
  %152 = load i32, ptr %5, align 4, !tbaa !11
  %153 = add i32 %152, %151
  store i32 %153, ptr %5, align 4, !tbaa !11
  br label %154

154:                                              ; preds = %146, %142
  br label %155

155:                                              ; preds = %154, %141
  br label %156

156:                                              ; preds = %155, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %157

157:                                              ; preds = %156
  %158 = load double, ptr %7, align 8, !tbaa !5
  %159 = call double @cdr(double noundef %158)
  store double %159, ptr %7, align 8, !tbaa !5
  br label %83, !llvm.loop !20

160:                                              ; preds = %83
  %161 = load i32, ptr %5, align 4, !tbaa !11
  %162 = zext i32 %161 to i64
  %163 = getelementptr inbounds i8, ptr @cell, i64 %162
  store i8 0, ptr %163, align 1, !tbaa !18
  %164 = load i32, ptr @STRG, align 4, !tbaa !11
  %165 = load i32, ptr %6, align 4, !tbaa !11
  %166 = call double @box(i32 noundef %164, i32 noundef %165)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret double %166
}

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 }
attributes #5 = { nounwind willreturn memory(read) }

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


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

@ATOM = external dso_local local_unnamed_addr global i32, align 4
@STRG = external dso_local local_unnamed_addr global i32, align 4
@CONS = external dso_local local_unnamed_addr global i32, align 4
@NIL = external dso_local local_unnamed_addr global i32, align 4
@cell = external dso_local global [10240 x double], align 16
@buf = external dso_local global [256 x i8], align 16
@.str.20 = external hidden unnamed_addr constant [7 x i8], align 1

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #2

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

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

; Function Attrs: nounwind uwtable
define dso_local double @f_string(double noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = bitcast double %0 to i64
  %4 = lshr i64 %3, 48
  %5 = load i32, ptr @NIL, align 4, !tbaa !5
  %6 = zext i32 %5 to i64
  %.not45 = icmp eq i64 %4, %6
  br i1 %.not45, label %._crit_edge, label %.lr.ph48

.lr.ph48:                                         ; preds = %2, %.loopexit42
  %.03747 = phi double [ %41, %.loopexit42 ], [ %0, %2 ]
  %.03846 = phi i32 [ %.2, %.loopexit42 ], [ 0, %2 ]
  %7 = tail call double @car(double noundef %.03747)
  %8 = bitcast double %7 to i64
  %9 = lshr i64 %8, 48
  %10 = load i32, ptr @ATOM, align 4, !tbaa !5
  %11 = load i32, ptr @STRG, align 4, !tbaa !5
  %12 = xor i32 %10, %11
  %13 = xor i32 %12, -1
  %14 = zext i32 %13 to i64
  %15 = and i64 %9, %14
  %16 = zext i32 %10 to i64
  %17 = icmp eq i64 %15, %16
  br i1 %17, label %18, label %25

18:                                               ; preds = %.lr.ph48
  %19 = tail call i32 @ord(double noundef %7)
  %20 = zext i32 %19 to i64
  %21 = getelementptr inbounds i8, ptr @cell, i64 %20
  %22 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %21) #4
  %23 = trunc i64 %22 to i32
  %24 = add i32 %.03846, %23
  br label %.loopexit42

25:                                               ; preds = %.lr.ph48
  %26 = load i32, ptr @CONS, align 4, !tbaa !5
  %27 = zext i32 %26 to i64
  %28 = icmp eq i64 %9, %27
  br i1 %28, label %.lr.ph, label %36

.lr.ph:                                           ; preds = %25, %.lr.ph
  %.03644 = phi double [ %30, %.lr.ph ], [ %7, %25 ]
  %.13943 = phi i32 [ %29, %.lr.ph ], [ %.03846, %25 ]
  %29 = add i32 %.13943, 1
  %30 = tail call double @cdr(double noundef %.03644)
  %31 = bitcast double %30 to i64
  %32 = lshr i64 %31, 48
  %33 = load i32, ptr @CONS, align 4, !tbaa !5
  %34 = zext i32 %33 to i64
  %35 = icmp eq i64 %32, %34
  br i1 %35, label %.lr.ph, label %.loopexit42, !llvm.loop !9

36:                                               ; preds = %25
  %37 = fcmp ord double %7, 0.000000e+00
  br i1 %37, label %38, label %.loopexit42

38:                                               ; preds = %36
  %39 = tail call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) @buf, i64 noundef 256, ptr noundef nonnull @.str.20, double noundef %7) #5
  %40 = add i32 %39, %.03846
  br label %.loopexit42

.loopexit42:                                      ; preds = %.lr.ph, %38, %36, %18
  %.2 = phi i32 [ %24, %18 ], [ %40, %38 ], [ %.03846, %36 ], [ %29, %.lr.ph ]
  %41 = tail call double @cdr(double noundef %.03747)
  %42 = bitcast double %41 to i64
  %43 = lshr i64 %42, 48
  %44 = load i32, ptr @NIL, align 4, !tbaa !5
  %45 = zext i32 %44 to i64
  %.not = icmp eq i64 %43, %45
  br i1 %.not, label %._crit_edge, label %.lr.ph48, !llvm.loop !11

._crit_edge:                                      ; preds = %.loopexit42, %2
  %.038.lcssa = phi i32 [ 0, %2 ], [ %.2, %.loopexit42 ]
  %46 = tail call ptr @push(double noundef %0)
  %47 = tail call i32 @alloc(i32 noundef %.038.lcssa)
  %48 = tail call double @pop()
  %49 = load i32, ptr @NIL, align 4, !tbaa !5
  %50 = zext i32 %49 to i64
  %.not4054 = icmp eq i64 %4, %50
  br i1 %.not4054, label %._crit_edge59, label %.lr.ph58

.lr.ph58:                                         ; preds = %._crit_edge, %.loopexit
  %.156 = phi double [ %94, %.loopexit ], [ %0, %._crit_edge ]
  %.355 = phi i32 [ %.5, %.loopexit ], [ %47, %._crit_edge ]
  %51 = tail call double @car(double noundef %.156)
  %52 = bitcast double %51 to i64
  %53 = lshr i64 %52, 48
  %54 = load i32, ptr @ATOM, align 4, !tbaa !5
  %55 = load i32, ptr @STRG, align 4, !tbaa !5
  %56 = xor i32 %54, %55
  %57 = xor i32 %56, -1
  %58 = zext i32 %57 to i64
  %59 = and i64 %53, %58
  %60 = zext i32 %54 to i64
  %61 = icmp eq i64 %59, %60
  br i1 %61, label %62, label %72

62:                                               ; preds = %.lr.ph58
  %63 = zext i32 %.355 to i64
  %64 = getelementptr inbounds i8, ptr @cell, i64 %63
  %65 = tail call i32 @ord(double noundef %51)
  %66 = zext i32 %65 to i64
  %67 = getelementptr inbounds i8, ptr @cell, i64 %66
  %68 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %64, ptr noundef nonnull dereferenceable(1) %67) #5
  %69 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %64) #4
  %70 = trunc i64 %69 to i32
  %71 = add i32 %.355, %70
  br label %.loopexit

72:                                               ; preds = %.lr.ph58
  %73 = load i32, ptr @CONS, align 4, !tbaa !5
  %74 = zext i32 %73 to i64
  %75 = icmp eq i64 %53, %74
  br i1 %75, label %.lr.ph52, label %87

.lr.ph52:                                         ; preds = %72, %.lr.ph52
  %.051 = phi double [ %81, %.lr.ph52 ], [ %51, %72 ]
  %.450 = phi i32 [ %78, %.lr.ph52 ], [ %.355, %72 ]
  %76 = tail call double @car(double noundef %.051)
  %77 = fptosi double %76 to i8
  %78 = add i32 %.450, 1
  %79 = zext i32 %.450 to i64
  %80 = getelementptr inbounds i8, ptr @cell, i64 %79
  store i8 %77, ptr %80, align 1, !tbaa !12
  %81 = tail call double @cdr(double noundef %.051)
  %82 = bitcast double %81 to i64
  %83 = lshr i64 %82, 48
  %84 = load i32, ptr @CONS, align 4, !tbaa !5
  %85 = zext i32 %84 to i64
  %86 = icmp eq i64 %83, %85
  br i1 %86, label %.lr.ph52, label %.loopexit, !llvm.loop !13

87:                                               ; preds = %72
  %88 = fcmp ord double %51, 0.000000e+00
  br i1 %88, label %89, label %.loopexit

89:                                               ; preds = %87
  %90 = zext i32 %.355 to i64
  %91 = getelementptr inbounds i8, ptr @cell, i64 %90
  %92 = tail call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %91, i64 noundef 256, ptr noundef nonnull @.str.20, double noundef %51) #5
  %93 = add i32 %92, %.355
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph52, %89, %87, %62
  %.5 = phi i32 [ %71, %62 ], [ %93, %89 ], [ %.355, %87 ], [ %78, %.lr.ph52 ]
  %94 = tail call double @cdr(double noundef %.156)
  %95 = bitcast double %94 to i64
  %96 = lshr i64 %95, 48
  %97 = load i32, ptr @NIL, align 4, !tbaa !5
  %98 = zext i32 %97 to i64
  %.not40 = icmp eq i64 %96, %98
  br i1 %.not40, label %._crit_edge59, label %.lr.ph58, !llvm.loop !14

._crit_edge59:                                    ; preds = %.loopexit, %._crit_edge
  %.3.lcssa = phi i32 [ %47, %._crit_edge ], [ %.5, %.loopexit ]
  %99 = zext i32 %.3.lcssa to i64
  %100 = getelementptr inbounds i8, ptr @cell, i64 %99
  store i8 0, ptr %100, align 1, !tbaa !12
  %101 = load i32, ptr @STRG, align 4, !tbaa !5
  %102 = tail call double @box(i32 noundef %101, i32 noundef %47)
  ret double %102
}

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) 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 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 #2 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 = { 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 #4 = { nounwind willreturn memory(read) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


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