; LLVM IR from CLASS-SZ/class_sz :: class-sz/hyrec (history)

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

@.str = external hidden unnamed_addr constant [39 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1

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

10:                                               ; preds = %3
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  %12 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef @.str) #5
  br label %13

13:                                               ; preds = %10, %3
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.REC_COSMOPARAMS, ptr %15, i32 0, i32 0
  %17 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %14, ptr noundef @.str.1, ptr noundef %16)
  %18 = load i32, ptr %7, align 4, !tbaa !9
  %19 = add nsw i32 %18, %17
  store i32 %19, ptr %7, align 4, !tbaa !9
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %25

22:                                               ; preds = %13
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef @.str.2) #5
  br label %25

25:                                               ; preds = %22, %13
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.REC_COSMOPARAMS, ptr %27, i32 0, i32 1
  %29 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %26, ptr noundef @.str.1, ptr noundef %28)
  %30 = load i32, ptr %7, align 4, !tbaa !9
  %31 = add nsw i32 %30, %29
  store i32 %31, ptr %7, align 4, !tbaa !9
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %37

34:                                               ; preds = %25
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef @.str.3) #5
  br label %37

37:                                               ; preds = %34, %25
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.REC_COSMOPARAMS, ptr %39, i32 0, i32 2
  %41 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %38, ptr noundef @.str.1, ptr noundef %40)
  %42 = load i32, ptr %7, align 4, !tbaa !9
  %43 = add nsw i32 %42, %41
  store i32 %43, ptr %7, align 4, !tbaa !9
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = icmp ne ptr %44, null
  br i1 %45, label %46, label %49

46:                                               ; preds = %37
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef @.str.4) #5
  br label %49

49:                                               ; preds = %46, %37
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.REC_COSMOPARAMS, ptr %51, i32 0, i32 3
  %53 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %50, ptr noundef @.str.1, ptr noundef %52)
  %54 = load i32, ptr %7, align 4, !tbaa !9
  %55 = add nsw i32 %54, %53
  store i32 %55, ptr %7, align 4, !tbaa !9
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = icmp ne ptr %56, null
  br i1 %57, label %58, label %61

58:                                               ; preds = %49
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str.5) #5
  br label %61

61:                                               ; preds = %58, %49
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.REC_COSMOPARAMS, ptr %63, i32 0, i32 4
  %65 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %62, ptr noundef @.str.1, ptr noundef %64)
  %66 = load i32, ptr %7, align 4, !tbaa !9
  %67 = add nsw i32 %66, %65
  store i32 %67, ptr %7, align 4, !tbaa !9
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = icmp ne ptr %68, null
  br i1 %69, label %70, label %73

70:                                               ; preds = %61
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef @.str.6) #5
  br label %73

73:                                               ; preds = %70, %61
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.REC_COSMOPARAMS, ptr %75, i32 0, i32 5
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.REC_COSMOPARAMS, ptr %77, i32 0, i32 6
  %79 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %74, ptr noundef @.str.7, ptr noundef %76, ptr noundef %78)
  %80 = load i32, ptr %7, align 4, !tbaa !9
  %81 = add nsw i32 %80, %79
  store i32 %81, ptr %7, align 4, !tbaa !9
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = icmp ne ptr %82, null
  br i1 %83, label %84, label %87

84:                                               ; preds = %73
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef @.str.8) #5
  br label %87

87:                                               ; preds = %84, %73
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.REC_COSMOPARAMS, ptr %89, i32 0, i32 7
  %91 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %88, ptr noundef @.str.1, ptr noundef %90)
  %92 = load i32, ptr %7, align 4, !tbaa !9
  %93 = add nsw i32 %92, %91
  store i32 %93, ptr %7, align 4, !tbaa !9
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = icmp ne ptr %94, null
  br i1 %95, label %96, label %99

96:                                               ; preds = %87
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef @.str.9) #5
  br label %99

99:                                               ; preds = %96, %87
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.REC_COSMOPARAMS, ptr %101, i32 0, i32 8
  %103 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %100, ptr noundef @.str.1, ptr noundef %102)
  %104 = load i32, ptr %7, align 4, !tbaa !9
  %105 = add nsw i32 %104, %103
  store i32 %105, ptr %7, align 4, !tbaa !9
  %106 = load i32, ptr %7, align 4, !tbaa !9
  %107 = icmp ne i32 %106, 9
  br i1 %107, label %108, label %110

108:                                              ; preds = %99
  %109 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  br label %110

110:                                              ; preds = %108, %99
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.REC_COSMOPARAMS, ptr %111, i32 0, i32 1
  %113 = load double, ptr %112, align 8, !tbaa !11
  %114 = fmul double 0x4026729BFC8F8864, %113
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.REC_COSMOPARAMS, ptr %115, i32 0, i32 7
  %117 = load double, ptr %116, align 8, !tbaa !16
  %118 = fsub double 1.000000e+00, %117
  %119 = fmul double %114, %118
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.REC_COSMOPARAMS, ptr %120, i32 0, i32 9
  store double %119, ptr %121, align 8, !tbaa !17
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.REC_COSMOPARAMS, ptr %122, i32 0, i32 7
  %124 = load double, ptr %123, align 8, !tbaa !16
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.REC_COSMOPARAMS, ptr %125, i32 0, i32 7
  %127 = load double, ptr %126, align 8, !tbaa !16
  %128 = fsub double 1.000000e+00, %127
  %129 = fdiv double %124, %128
  %130 = fdiv double %129, 3.971530e+00
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.REC_COSMOPARAMS, ptr %131, i32 0, i32 10
  store double %130, ptr %132, align 8, !tbaa !18
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.REC_COSMOPARAMS, ptr %133, i32 0, i32 11
  store double 8.000000e+03, ptr %134, align 8, !tbaa !19
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.REC_COSMOPARAMS, ptr %135, i32 0, i32 12
  store double 0.000000e+00, ptr %136, align 8, !tbaa !20
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.REC_COSMOPARAMS, ptr %137, i32 0, i32 13
  store double 8.490000e-05, ptr %138, align 8, !tbaa !21
  %139 = load ptr, ptr %6, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.REC_COSMOPARAMS, ptr %139, i32 0, i32 11
  %141 = load double, ptr %140, align 8, !tbaa !19
  %142 = fadd double 1.000000e+00, %141
  %143 = load ptr, ptr %6, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.REC_COSMOPARAMS, ptr %143, i32 0, i32 12
  %145 = load double, ptr %144, align 8, !tbaa !20
  %146 = fadd double 1.000000e+00, %145
  %147 = fdiv double %142, %146
  %148 = call double @log(double noundef %147) #5
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.REC_COSMOPARAMS, ptr %149, i32 0, i32 13
  %151 = load double, ptr %150, align 8, !tbaa !21
  %152 = fdiv double %148, %151
  %153 = fadd double 2.000000e+00, %152
  %154 = call double @llvm.floor.f64(double %153)
  %155 = fptosi double %154 to i64
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.REC_COSMOPARAMS, ptr %156, i32 0, i32 14
  store i64 %155, ptr %157, align 8, !tbaa !22
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  %159 = icmp ne ptr %158, null
  br i1 %159, label %160, label %163

160:                                              ; preds = %110
  %161 = load ptr, ptr %5, align 8, !tbaa !5
  %162 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %161, ptr noundef @.str.11) #5
  br label %163

163:                                              ; preds = %160, %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret void
}

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

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

declare i32 @__isoc99_fscanf(ptr noundef, ptr noundef, ...) #3

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

; Function Attrs: nounwind
declare double @log(double noundef) #2

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

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

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 "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 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 8}
!12 = !{!"", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !14, i64 112, !13, i64 120, !15, i64 128, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !13, i64 176, !13, i64 184}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = !{!12, !13, i64 56}
!17 = !{!12, !13, i64 72}
!18 = !{!12, !13, i64 80}
!19 = !{!12, !13, i64 88}
!20 = !{!12, !13, i64 96}
!21 = !{!12, !13, i64 104}
!22 = !{!12, !14, i64 112}


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

@.str = external hidden unnamed_addr constant [39 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @rec_get_cosmoparam(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %.thread62, label %24

.thread62:                                        ; preds = %3
  %4 = tail call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %0, ptr noundef nonnull @.str.1, ptr noundef %2) #3
  %5 = getelementptr inbounds i8, ptr %2, i64 8
  %6 = tail call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %0, ptr noundef nonnull @.str.1, ptr noundef nonnull %5) #3
  %7 = add nsw i32 %6, %4
  %8 = getelementptr inbounds i8, ptr %2, i64 16
  %9 = tail call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %0, ptr noundef nonnull @.str.1, ptr noundef nonnull %8) #3
  %10 = add nsw i32 %7, %9
  %11 = getelementptr inbounds i8, ptr %2, i64 24
  %12 = tail call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %0, ptr noundef nonnull @.str.1, ptr noundef nonnull %11) #3
  %13 = add nsw i32 %10, %12
  %14 = getelementptr inbounds i8, ptr %2, i64 32
  %15 = tail call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %0, ptr noundef nonnull @.str.1, ptr noundef nonnull %14) #3
  %16 = add nsw i32 %13, %15
  %17 = getelementptr inbounds i8, ptr %2, i64 40
  %18 = getelementptr inbounds i8, ptr %2, i64 48
  %19 = tail call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %0, ptr noundef nonnull @.str.7, ptr noundef nonnull %17, ptr noundef nonnull %18) #3
  %20 = add nsw i32 %16, %19
  %21 = getelementptr inbounds i8, ptr %2, i64 56
  %22 = tail call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %0, ptr noundef nonnull @.str.1, ptr noundef nonnull %21) #3
  %23 = add nsw i32 %20, %22
  br label %53

24:                                               ; preds = %3
  %25 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %1, ptr noundef nonnull @.str) #3
  %26 = tail call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %0, ptr noundef nonnull @.str.1, ptr noundef %2) #3
  %27 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %1, ptr noundef nonnull @.str.2) #3
  %28 = getelementptr inbounds i8, ptr %2, i64 8
  %29 = tail call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %0, ptr noundef nonnull @.str.1, ptr noundef nonnull %28) #3
  %30 = add nsw i32 %29, %26
  %31 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %1, ptr noundef nonnull @.str.3) #3
  %32 = getelementptr inbounds i8, ptr %2, i64 16
  %33 = tail call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %0, ptr noundef nonnull @.str.1, ptr noundef nonnull %32) #3
  %34 = add nsw i32 %30, %33
  %35 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %1, ptr noundef nonnull @.str.4) #3
  %36 = getelementptr inbounds i8, ptr %2, i64 24
  %37 = tail call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %0, ptr noundef nonnull @.str.1, ptr noundef nonnull %36) #3
  %38 = add nsw i32 %34, %37
  %39 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %1, ptr noundef nonnull @.str.5) #3
  %40 = getelementptr inbounds i8, ptr %2, i64 32
  %41 = tail call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %0, ptr noundef nonnull @.str.1, ptr noundef nonnull %40) #3
  %42 = add nsw i32 %38, %41
  %43 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %1, ptr noundef nonnull @.str.6) #3
  %44 = getelementptr inbounds i8, ptr %2, i64 40
  %45 = getelementptr inbounds i8, ptr %2, i64 48
  %46 = tail call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %0, ptr noundef nonnull @.str.7, ptr noundef nonnull %44, ptr noundef nonnull %45) #3
  %47 = add nsw i32 %42, %46
  %48 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %1, ptr noundef nonnull @.str.8) #3
  %49 = getelementptr inbounds i8, ptr %2, i64 56
  %50 = tail call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %0, ptr noundef nonnull @.str.1, ptr noundef nonnull %49) #3
  %51 = add nsw i32 %47, %50
  %52 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %1, ptr noundef nonnull @.str.9) #3
  br label %53

53:                                               ; preds = %.thread62, %24
  %54 = phi i32 [ %23, %.thread62 ], [ %51, %24 ]
  %55 = phi ptr [ %21, %.thread62 ], [ %49, %24 ]
  %56 = phi ptr [ %5, %.thread62 ], [ %28, %24 ]
  %57 = getelementptr inbounds i8, ptr %2, i64 64
  %58 = tail call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %0, ptr noundef nonnull @.str.1, ptr noundef nonnull %57) #3
  %59 = add nsw i32 %58, %54
  %.not56 = icmp eq i32 %59, 9
  br i1 %.not56, label %62, label %60

60:                                               ; preds = %53
  %61 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  br label %62

62:                                               ; preds = %60, %53
  %63 = load double, ptr %56, align 8, !tbaa !5
  %64 = fmul double %63, 0x4026729BFC8F8864
  %65 = load double, ptr %55, align 8, !tbaa !12
  %66 = fsub double 1.000000e+00, %65
  %67 = fmul double %64, %66
  %68 = getelementptr inbounds i8, ptr %2, i64 72
  store double %67, ptr %68, align 8, !tbaa !13
  %69 = fdiv double %65, %66
  %70 = fdiv double %69, 3.971530e+00
  %71 = getelementptr inbounds i8, ptr %2, i64 80
  store double %70, ptr %71, align 8, !tbaa !14
  %72 = getelementptr inbounds i8, ptr %2, i64 88
  store <2 x double> <double 8.000000e+03, double 0.000000e+00>, ptr %72, align 8, !tbaa !15
  %73 = getelementptr inbounds i8, ptr %2, i64 104
  store double 8.490000e-05, ptr %73, align 8, !tbaa !16
  %74 = getelementptr inbounds i8, ptr %2, i64 112
  store i64 105859, ptr %74, align 8, !tbaa !17
  br i1 %.not, label %77, label %75

75:                                               ; preds = %62
  %76 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %1, ptr noundef nonnull @.str.11) #3
  br label %77

77:                                               ; preds = %75, %62
  ret void
}

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

declare i32 @__isoc99_fscanf(ptr noundef, ptr noundef, ...) local_unnamed_addr #2

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

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 = { "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 }

!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, !7, i64 8}
!6 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !10, i64 112, !7, i64 120, !11, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !7, i64 176, !7, i64 184}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"short", !8, i64 0}
!12 = !{!6, !7, i64 56}
!13 = !{!6, !7, i64 72}
!14 = !{!6, !7, i64 80}
!15 = !{!7, !7, i64 0}
!16 = !{!6, !7, i64 104}
!17 = !{!6, !10, i64 112}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SLPVectorizerPass,SROAPass,TailCallElimPass