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

@ATOM = external dso_local global i64, align 8
@STRG = external dso_local global i64, align 8
@CONS = external dso_local global i64, align 8
@NIL = external dso_local global i64, align 8
@cell = external dso_local global ptr, align 8
@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 i64 @ord(double 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 @alloc(i64 noundef, i32 noundef) #0

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

; 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
declare ptr @strcpy(ptr noundef, ptr noundef) #3

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

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

14:                                               ; preds = %71, %2
  %15 = load i64, ptr %5, align 8, !tbaa !13
  %16 = lshr i64 %15, 48
  %17 = load i64, ptr @NIL, align 8, !tbaa !13
  %18 = icmp ne i64 %16, %17
  br i1 %18, label %19, label %74

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

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

41:                                               ; preds = %19
  %42 = load i64, ptr %8, align 8, !tbaa !13
  %43 = lshr i64 %42, 48
  %44 = load i64, ptr @CONS, align 8, !tbaa !13
  %45 = icmp eq i64 %43, %44
  br i1 %45, label %46, label %59

46:                                               ; preds = %41
  br label %47

47:                                               ; preds = %55, %46
  %48 = load i64, ptr %8, align 8, !tbaa !13
  %49 = lshr i64 %48, 48
  %50 = load i64, ptr @CONS, align 8, !tbaa !13
  %51 = icmp eq i64 %49, %50
  br i1 %51, label %52, label %58

52:                                               ; preds = %47
  %53 = load i32, ptr %7, align 4, !tbaa !9
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %7, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %52
  %56 = load double, ptr %8, align 8, !tbaa !11
  %57 = call double @cdr(double noundef %56)
  store double %57, ptr %8, align 8, !tbaa !11
  br label %47, !llvm.loop !15

58:                                               ; preds = %47
  br label %69

59:                                               ; preds = %41
  %60 = load double, ptr %8, align 8, !tbaa !11
  %61 = load double, ptr %8, align 8, !tbaa !11
  %62 = fcmp oeq double %60, %61
  br i1 %62, label %63, label %68

63:                                               ; preds = %59
  %64 = load double, ptr %8, align 8, !tbaa !11
  %65 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef @buf, i64 noundef 256, ptr noundef @.str.20, double noundef %64) #4
  %66 = load i32, ptr %7, align 4, !tbaa !9
  %67 = add nsw i32 %66, %65
  store i32 %67, ptr %7, align 4, !tbaa !9
  br label %68

68:                                               ; preds = %63, %59
  br label %69

69:                                               ; preds = %68, %58
  br label %70

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

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

74:                                               ; preds = %14
  %75 = load i64, ptr @STRG, align 8, !tbaa !13
  %76 = load i32, ptr %7, align 4, !tbaa !9
  %77 = add nsw i32 %76, 1
  %78 = call double @alloc(i64 noundef %75, i32 noundef %77)
  store double %78, ptr %6, align 8, !tbaa !11
  %79 = load double, ptr %6, align 8, !tbaa !11
  %80 = call i64 @ord(double noundef %79)
  %81 = trunc i64 %80 to i32
  store i32 %81, ptr %7, align 4, !tbaa !9
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = load double, ptr %82, align 8, !tbaa !11
  store double %83, ptr %5, align 8, !tbaa !11
  br label %84

84:                                               ; preds = %156, %74
  %85 = load i64, ptr %5, align 8, !tbaa !13
  %86 = lshr i64 %85, 48
  %87 = load i64, ptr @NIL, align 8, !tbaa !13
  %88 = icmp ne i64 %86, %87
  br i1 %88, label %89, label %159

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

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

116:                                              ; preds = %89
  %117 = load i64, ptr %9, align 8, !tbaa !13
  %118 = lshr i64 %117, 48
  %119 = load i64, ptr @CONS, align 8, !tbaa !13
  %120 = icmp eq i64 %118, %119
  br i1 %120, label %121, label %140

121:                                              ; preds = %116
  br label %122

122:                                              ; preds = %136, %121
  %123 = load i64, ptr %9, align 8, !tbaa !13
  %124 = lshr i64 %123, 48
  %125 = load i64, ptr @CONS, align 8, !tbaa !13
  %126 = icmp eq i64 %124, %125
  br i1 %126, label %127, label %139

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

136:                                              ; preds = %127
  %137 = load double, ptr %9, align 8, !tbaa !11
  %138 = call double @cdr(double noundef %137)
  store double %138, ptr %9, align 8, !tbaa !11
  br label %122, !llvm.loop !19

139:                                              ; preds = %122
  br label %154

140:                                              ; preds = %116
  %141 = load double, ptr %9, align 8, !tbaa !11
  %142 = load double, ptr %9, align 8, !tbaa !11
  %143 = fcmp oeq double %141, %142
  br i1 %143, label %144, label %153

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

153:                                              ; preds = %144, %140
  br label %154

154:                                              ; preds = %153, %139
  br label %155

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

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

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

; 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 = !{!"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, !12, i64 0}
!12 = !{!"double", !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 i64, align 8
@STRG = external dso_local local_unnamed_addr global i64, align 8
@CONS = external dso_local local_unnamed_addr global i64, align 8
@NIL = external dso_local local_unnamed_addr global i64, align 8
@cell = external dso_local local_unnamed_addr global ptr, align 8
@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 i64 @ord(double noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local double @alloc(i64 noundef, i32 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 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: 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 @evlis(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noundef double @f_string(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = tail call double @evlis(ptr noundef %0, ptr noundef %1)
  store double %3, ptr %0, align 8, !tbaa !5
  %4 = bitcast double %3 to i64
  %5 = lshr i64 %4, 48
  %6 = load i64, ptr @NIL, align 8, !tbaa !9
  %.not47 = icmp eq i64 %5, %6
  br i1 %.not47, label %._crit_edge, label %.lr.ph50

.lr.ph50:                                         ; preds = %2, %.loopexit44
  %.03949 = phi i32 [ %.2, %.loopexit44 ], [ 0, %2 ]
  %.04048 = phi double [ %37, %.loopexit44 ], [ %3, %2 ]
  %7 = tail call double @car(double noundef %.04048)
  %8 = bitcast double %7 to i64
  %9 = lshr i64 %8, 48
  %10 = load i64, ptr @ATOM, align 8, !tbaa !9
  %11 = load i64, ptr @STRG, align 8, !tbaa !9
  %12 = xor i64 %10, %11
  %13 = xor i64 %12, -1
  %14 = and i64 %9, %13
  %15 = icmp eq i64 %14, %10
  br i1 %15, label %16, label %23

16:                                               ; preds = %.lr.ph50
  %17 = load ptr, ptr @cell, align 8, !tbaa !11
  %18 = tail call i64 @ord(double noundef %7)
  %19 = getelementptr inbounds i8, ptr %17, i64 %18
  %20 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %19) #4
  %21 = trunc i64 %20 to i32
  %22 = add i32 %.03949, %21
  br label %.loopexit44

23:                                               ; preds = %.lr.ph50
  %24 = load i64, ptr @CONS, align 8, !tbaa !9
  %25 = icmp eq i64 %9, %24
  br i1 %25, label %.lr.ph, label %32

.lr.ph:                                           ; preds = %23, %.lr.ph
  %.03846 = phi double [ %27, %.lr.ph ], [ %7, %23 ]
  %.145 = phi i32 [ %26, %.lr.ph ], [ %.03949, %23 ]
  %26 = add nsw i32 %.145, 1
  %27 = tail call double @cdr(double noundef %.03846)
  %28 = bitcast double %27 to i64
  %29 = lshr i64 %28, 48
  %30 = load i64, ptr @CONS, align 8, !tbaa !9
  %31 = icmp eq i64 %29, %30
  br i1 %31, label %.lr.ph, label %.loopexit44, !llvm.loop !13

32:                                               ; preds = %23
  %33 = fcmp ord double %7, 0.000000e+00
  br i1 %33, label %34, label %.loopexit44

34:                                               ; preds = %32
  %35 = 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
  %36 = add nsw i32 %35, %.03949
  br label %.loopexit44

.loopexit44:                                      ; preds = %.lr.ph, %34, %32, %16
  %.2 = phi i32 [ %22, %16 ], [ %36, %34 ], [ %.03949, %32 ], [ %26, %.lr.ph ]
  %37 = tail call double @cdr(double noundef %.04048)
  %38 = bitcast double %37 to i64
  %39 = lshr i64 %38, 48
  %40 = load i64, ptr @NIL, align 8, !tbaa !9
  %.not = icmp eq i64 %39, %40
  br i1 %.not, label %._crit_edge.loopexit, label %.lr.ph50, !llvm.loop !15

._crit_edge.loopexit:                             ; preds = %.loopexit44
  %41 = add nsw i32 %.2, 1
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %2
  %.039.lcssa = phi i32 [ 1, %2 ], [ %41, %._crit_edge.loopexit ]
  %42 = load i64, ptr @STRG, align 8, !tbaa !9
  %43 = tail call double @alloc(i64 noundef %42, i32 noundef %.039.lcssa)
  %44 = tail call i64 @ord(double noundef %43)
  %45 = trunc i64 %44 to i32
  %46 = load double, ptr %0, align 8, !tbaa !5
  %47 = bitcast double %46 to i64
  %48 = lshr i64 %47, 48
  %49 = load i64, ptr @NIL, align 8, !tbaa !9
  %.not4256 = icmp eq i64 %48, %49
  br i1 %.not4256, label %._crit_edge61, label %.lr.ph60

.lr.ph60:                                         ; preds = %._crit_edge, %.loopexit
  %.358 = phi i32 [ %.5, %.loopexit ], [ %45, %._crit_edge ]
  %.14157 = phi double [ %91, %.loopexit ], [ %46, %._crit_edge ]
  %50 = tail call double @car(double noundef %.14157)
  %51 = bitcast double %50 to i64
  %52 = lshr i64 %51, 48
  %53 = load i64, ptr @ATOM, align 8, !tbaa !9
  %54 = load i64, ptr @STRG, align 8, !tbaa !9
  %55 = xor i64 %53, %54
  %56 = xor i64 %55, -1
  %57 = and i64 %52, %56
  %58 = icmp eq i64 %57, %53
  br i1 %58, label %59, label %69

59:                                               ; preds = %.lr.ph60
  %60 = load ptr, ptr @cell, align 8, !tbaa !11
  %61 = sext i32 %.358 to i64
  %62 = getelementptr inbounds i8, ptr %60, i64 %61
  %63 = tail call i64 @ord(double noundef %50)
  %64 = getelementptr inbounds i8, ptr %60, i64 %63
  %65 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %62, ptr noundef nonnull dereferenceable(1) %64) #5
  %66 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %62) #4
  %67 = trunc i64 %66 to i32
  %68 = add i32 %.358, %67
  br label %.loopexit

69:                                               ; preds = %.lr.ph60
  %70 = load i64, ptr @CONS, align 8, !tbaa !9
  %71 = icmp eq i64 %52, %70
  br i1 %71, label %.lr.ph54.preheader, label %82

.lr.ph54.preheader:                               ; preds = %69
  %72 = sext i32 %.358 to i64
  br label %.lr.ph54

.lr.ph54:                                         ; preds = %.lr.ph54.preheader, %.lr.ph54
  %indvars.iv = phi i64 [ %72, %.lr.ph54.preheader ], [ %indvars.iv.next, %.lr.ph54 ]
  %.053 = phi double [ %50, %.lr.ph54.preheader ], [ %77, %.lr.ph54 ]
  %73 = tail call double @car(double noundef %.053)
  %74 = fptosi double %73 to i8
  %75 = load ptr, ptr @cell, align 8, !tbaa !11
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %76 = getelementptr inbounds i8, ptr %75, i64 %indvars.iv
  store i8 %74, ptr %76, align 1, !tbaa !16
  %77 = tail call double @cdr(double noundef %.053)
  %78 = bitcast double %77 to i64
  %79 = lshr i64 %78, 48
  %80 = load i64, ptr @CONS, align 8, !tbaa !9
  %81 = icmp eq i64 %79, %80
  br i1 %81, label %.lr.ph54, label %.loopexit.loopexit, !llvm.loop !17

82:                                               ; preds = %69
  %83 = fcmp ord double %50, 0.000000e+00
  br i1 %83, label %84, label %.loopexit

84:                                               ; preds = %82
  %85 = load ptr, ptr @cell, align 8, !tbaa !11
  %86 = sext i32 %.358 to i64
  %87 = getelementptr inbounds i8, ptr %85, i64 %86
  %88 = tail call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %87, i64 noundef 256, ptr noundef nonnull @.str.20, double noundef %50) #5
  %89 = add nsw i32 %88, %.358
  br label %.loopexit

.loopexit.loopexit:                               ; preds = %.lr.ph54
  %90 = trunc nsw i64 %indvars.iv.next to i32
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %84, %82, %59
  %.5 = phi i32 [ %68, %59 ], [ %89, %84 ], [ %.358, %82 ], [ %90, %.loopexit.loopexit ]
  %91 = tail call double @cdr(double noundef %.14157)
  %92 = bitcast double %91 to i64
  %93 = lshr i64 %92, 48
  %94 = load i64, ptr @NIL, align 8, !tbaa !9
  %.not42 = icmp eq i64 %93, %94
  br i1 %.not42, label %._crit_edge61, label %.lr.ph60, !llvm.loop !18

._crit_edge61:                                    ; preds = %.loopexit, %._crit_edge
  %.3.lcssa = phi i32 [ %45, %._crit_edge ], [ %.5, %.loopexit ]
  %95 = load ptr, ptr @cell, align 8, !tbaa !11
  %96 = sext i32 %.3.lcssa to i64
  %97 = getelementptr inbounds i8, ptr %95, i64 %96
  store i8 0, ptr %97, align 1, !tbaa !16
  ret double %43
}

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


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