; LLVM IR from jgaeddert/liquid-dsp :: examples (compand_example)

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

@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@optarg = external global ptr, align 8
@stderr = external global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [7 x i8], align 1

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

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

; 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
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = 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) #6
  store i32 31, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store float 2.550000e+02, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store float 1.250000e+00, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 1, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  br label %18

18:                                               ; preds = %40, %2
  %19 = load i32, ptr %4, align 4, !tbaa !5
  %20 = load ptr, ptr %5, align 8, !tbaa !9
  %21 = call i32 @getopt(i32 noundef %19, ptr noundef %20, ptr noundef @.str.6) #6
  store i32 %21, ptr %10, align 4, !tbaa !5
  %22 = icmp ne i32 %21, -1
  br i1 %22, label %23, label %41

23:                                               ; preds = %18
  %24 = load i32, ptr %10, align 4, !tbaa !5
  switch i32 %24, label %39 [
    i32 117, label %25
    i32 104, label %25
    i32 118, label %26
    i32 113, label %27
    i32 110, label %28
    i32 109, label %31
    i32 114, label %35
  ]

25:                                               ; preds = %23, %23
  call void @usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %144

26:                                               ; preds = %23
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %40

27:                                               ; preds = %23
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %40

28:                                               ; preds = %23
  %29 = load ptr, ptr @optarg, align 8, !tbaa !9
  %30 = call i32 @atoi(ptr noundef %29) #7
  store i32 %30, ptr %6, align 4, !tbaa !5
  br label %40

31:                                               ; preds = %23
  %32 = load ptr, ptr @optarg, align 8, !tbaa !9
  %33 = call double @atof(ptr noundef %32) #7
  %34 = fptrunc double %33 to float
  store float %34, ptr %7, align 4, !tbaa !11
  br label %40

35:                                               ; preds = %23
  %36 = load ptr, ptr @optarg, align 8, !tbaa !9
  %37 = call double @atof(ptr noundef %36) #7
  %38 = fptrunc double %37 to float
  store float %38, ptr %8, align 4, !tbaa !11
  br label %40

39:                                               ; preds = %23
  call void @exit(i32 noundef 1) #8
  unreachable

40:                                               ; preds = %35, %31, %28, %27, %26
  br label %18, !llvm.loop !13

41:                                               ; preds = %18
  %42 = load float, ptr %7, align 4, !tbaa !11
  %43 = fcmp olt float %42, 0.000000e+00
  br i1 %43, label %44, label %50

44:                                               ; preds = %41
  %45 = load ptr, ptr @stderr, align 8, !tbaa !9
  %46 = load ptr, ptr %5, align 8, !tbaa !9
  %47 = getelementptr inbounds ptr, ptr %46, i64 0
  %48 = load ptr, ptr %47, align 8, !tbaa !9
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef @.str.7, ptr noundef %48) #6
  call void @usage()
  call void @exit(i32 noundef 1) #8
  unreachable

50:                                               ; preds = %41
  %51 = load float, ptr %8, align 4, !tbaa !11
  %52 = fcmp ole float %51, 0.000000e+00
  br i1 %52, label %53, label %59

53:                                               ; preds = %50
  %54 = load ptr, ptr @stderr, align 8, !tbaa !9
  %55 = load ptr, ptr %5, align 8, !tbaa !9
  %56 = getelementptr inbounds ptr, ptr %55, i64 0
  %57 = load ptr, ptr %56, align 8, !tbaa !9
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef @.str.8, ptr noundef %57) #6
  call void @usage()
  call void @exit(i32 noundef 1) #8
  unreachable

59:                                               ; preds = %50
  br label %60

60:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %61 = call noalias ptr @fopen(ptr noundef @.str.9, ptr noundef @.str.10)
  store ptr %61, ptr %12, align 8, !tbaa !9
  %62 = load ptr, ptr %12, align 8, !tbaa !9
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef @.str.11, ptr noundef @.str.9) #6
  %64 = load ptr, ptr %12, align 8, !tbaa !9
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef @.str.12) #6
  %66 = load ptr, ptr %12, align 8, !tbaa !9
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef @.str.13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %68 = load float, ptr %8, align 4, !tbaa !11
  %69 = fneg float %68
  store float %69, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %70 = load float, ptr %8, align 4, !tbaa !11
  %71 = fpext float %70 to double
  %72 = fmul double 2.000000e+00, %71
  %73 = load i32, ptr %6, align 4, !tbaa !5
  %74 = sub i32 %73, 1
  %75 = uitofp i32 %74 to float
  %76 = fpext float %75 to double
  %77 = fdiv double %72, %76
  %78 = fptrunc double %77 to float
  store float %78, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %122, %60
  %80 = load i32, ptr %17, align 4, !tbaa !5
  %81 = load i32, ptr %6, align 4, !tbaa !5
  %82 = icmp ult i32 %80, %81
  br i1 %82, label %83, label %125

83:                                               ; preds = %79
  %84 = load float, ptr %13, align 4, !tbaa !11
  %85 = load float, ptr %7, align 4, !tbaa !11
  %86 = call float @compress_mulaw(float noundef %84, float noundef %85)
  store float %86, ptr %14, align 4, !tbaa !11
  %87 = load float, ptr %14, align 4, !tbaa !11
  %88 = load float, ptr %7, align 4, !tbaa !11
  %89 = call float @expand_mulaw(float noundef %87, float noundef %88)
  store float %89, ptr %15, align 4, !tbaa !11
  %90 = load i32, ptr %9, align 4, !tbaa !5
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %92, label %100

92:                                               ; preds = %83
  %93 = load float, ptr %13, align 4, !tbaa !11
  %94 = fpext float %93 to double
  %95 = load float, ptr %14, align 4, !tbaa !11
  %96 = fpext float %95 to double
  %97 = load float, ptr %15, align 4, !tbaa !11
  %98 = fpext float %97 to double
  %99 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, double noundef %94, double noundef %96, double noundef %98)
  br label %100

100:                                              ; preds = %92, %83
  %101 = load ptr, ptr %12, align 8, !tbaa !9
  %102 = load i32, ptr %17, align 4, !tbaa !5
  %103 = add i32 %102, 1
  %104 = load float, ptr %13, align 4, !tbaa !11
  %105 = fpext float %104 to double
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef @.str.15, i32 noundef %103, double noundef %105) #6
  %107 = load ptr, ptr %12, align 8, !tbaa !9
  %108 = load i32, ptr %17, align 4, !tbaa !5
  %109 = add i32 %108, 1
  %110 = load float, ptr %14, align 4, !tbaa !11
  %111 = fpext float %110 to double
  %112 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef @.str.16, i32 noundef %109, double noundef %111) #6
  %113 = load ptr, ptr %12, align 8, !tbaa !9
  %114 = load i32, ptr %17, align 4, !tbaa !5
  %115 = add i32 %114, 1
  %116 = load float, ptr %15, align 4, !tbaa !11
  %117 = fpext float %116 to double
  %118 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %113, ptr noundef @.str.17, i32 noundef %115, double noundef %117) #6
  %119 = load float, ptr %16, align 4, !tbaa !11
  %120 = load float, ptr %13, align 4, !tbaa !11
  %121 = fadd float %120, %119
  store float %121, ptr %13, align 4, !tbaa !11
  br label %122

122:                                              ; preds = %100
  %123 = load i32, ptr %17, align 4, !tbaa !5
  %124 = add i32 %123, 1
  store i32 %124, ptr %17, align 4, !tbaa !5
  br label %79, !llvm.loop !15

125:                                              ; preds = %79
  %126 = load ptr, ptr %12, align 8, !tbaa !9
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %126, ptr noundef @.str.18) #6
  %128 = load ptr, ptr %12, align 8, !tbaa !9
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %128, ptr noundef @.str.19) #6
  %130 = load ptr, ptr %12, align 8, !tbaa !9
  %131 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %130, ptr noundef @.str.20) #6
  %132 = load ptr, ptr %12, align 8, !tbaa !9
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %132, ptr noundef @.str.21) #6
  %134 = load ptr, ptr %12, align 8, !tbaa !9
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef @.str.22) #6
  %136 = load ptr, ptr %12, align 8, !tbaa !9
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef @.str.23) #6
  %138 = load ptr, ptr %12, align 8, !tbaa !9
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef @.str.24) #6
  %140 = load ptr, ptr %12, align 8, !tbaa !9
  %141 = call i32 @fclose(ptr noundef %140)
  %142 = call i32 (ptr, ...) @printf(ptr noundef @.str.25, ptr noundef @.str.9)
  %143 = call i32 (ptr, ...) @printf(ptr noundef @.str.26)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %144

144:                                              ; preds = %125, %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %145 = load i32, ptr %3, align 4
  ret i32 %145
}

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

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

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #4

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #4

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #1

declare float @compress_mulaw(float noundef, float noundef) #1

declare float @expand_mulaw(float noundef, float noundef) #1

declare i32 @fclose(ptr noundef) #1

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

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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint nounwind willreturn memory(read) 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 }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { 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 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; 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.6 = external hidden unnamed_addr constant [11 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [7 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  br label %.outer

.outer:                                           ; preds = %.outer.backedge, %2
  %.050.ph = phi i32 [ 1, %2 ], [ %.050.ph.be, %.outer.backedge ]
  %.048.ph = phi float [ 1.250000e+00, %2 ], [ %.048.ph94, %.outer.backedge ]
  %.045.ph = phi float [ 2.550000e+02, %2 ], [ %.045.ph98, %.outer.backedge ]
  %.044.ph = phi i32 [ 31, %2 ], [ %.044, %.outer.backedge ]
  br label %.outer93

.outer93:                                         ; preds = %.outer, %14
  %.048.ph94 = phi float [ %.048.ph, %.outer ], [ %17, %14 ]
  %.045.ph95 = phi float [ %.045.ph, %.outer ], [ %.045.ph98, %14 ]
  %.044.ph96 = phi i32 [ %.044.ph, %.outer ], [ %.044, %14 ]
  br label %.outer97

.outer97:                                         ; preds = %.outer93, %10
  %.045.ph98 = phi float [ %.045.ph95, %.outer93 ], [ %13, %10 ]
  %.044.ph99 = phi i32 [ %.044.ph96, %.outer93 ], [ %.044, %10 ]
  br label %3

3:                                                ; preds = %.outer97, %7
  %.044 = phi i32 [ %9, %7 ], [ %.044.ph99, %.outer97 ]
  %4 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.6) #6
  switch i32 %4, label %18 [
    i32 -1, label %19
    i32 117, label %5
    i32 104, label %5
    i32 118, label %.outer.backedge
    i32 113, label %6
    i32 110, label %7
    i32 109, label %10
    i32 114, label %14
  ], !llvm.loop !5

5:                                                ; preds = %3, %3
  tail call void @usage()
  br label %75

6:                                                ; preds = %3
  br label %.outer.backedge

.outer.backedge:                                  ; preds = %3, %6
  %.050.ph.be = phi i32 [ 0, %6 ], [ 1, %3 ]
  br label %.outer, !llvm.loop !5

7:                                                ; preds = %3
  %8 = load ptr, ptr @optarg, align 8, !tbaa !7
  %9 = tail call i32 @atoi(ptr nocapture noundef %8) #7
  br label %3, !llvm.loop !5

10:                                               ; preds = %3
  %11 = load ptr, ptr @optarg, align 8, !tbaa !7
  %12 = tail call double @atof(ptr noundef %11) #7
  %13 = fptrunc double %12 to float
  br label %.outer97, !llvm.loop !5

14:                                               ; preds = %3
  %15 = load ptr, ptr @optarg, align 8, !tbaa !7
  %16 = tail call double @atof(ptr noundef %15) #7
  %17 = fptrunc double %16 to float
  br label %.outer93, !llvm.loop !5

18:                                               ; preds = %3
  tail call void @exit(i32 noundef 1) #8
  unreachable

19:                                               ; preds = %3
  %20 = fcmp olt float %.045.ph98, 0.000000e+00
  br i1 %20, label %21, label %25

21:                                               ; preds = %19
  %22 = load ptr, ptr @stderr, align 8, !tbaa !7
  %23 = load ptr, ptr %1, align 8, !tbaa !7
  %24 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef nonnull @.str.7, ptr noundef %23) #9
  tail call void @usage()
  tail call void @exit(i32 noundef 1) #8
  unreachable

25:                                               ; preds = %19
  %26 = fcmp ugt float %.048.ph94, 0.000000e+00
  br i1 %26, label %31, label %27

27:                                               ; preds = %25
  %28 = load ptr, ptr @stderr, align 8, !tbaa !7
  %29 = load ptr, ptr %1, align 8, !tbaa !7
  %30 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef nonnull @.str.8, ptr noundef %29) #9
  tail call void @usage()
  tail call void @exit(i32 noundef 1) #8
  unreachable

31:                                               ; preds = %25
  %32 = tail call noalias ptr @fopen(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.10)
  %33 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.9) #6
  %34 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.12) #6
  %35 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.13) #6
  %36 = fpext float %.048.ph94 to double
  %37 = fmul double %36, 2.000000e+00
  %38 = add i32 %.044, -1
  %39 = uitofp i32 %38 to float
  %40 = fpext float %39 to double
  %41 = fdiv double %37, %40
  %42 = fptrunc double %41 to float
  %.not = icmp eq i32 %.044, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %31
  %43 = fneg float %.048.ph94
  %.not53 = icmp eq i32 %.050.ph, 0
  br i1 %.not53, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %.lr.ph.split.us
  %.063.us = phi i32 [ %46, %.lr.ph.split.us ], [ 0, %.lr.ph ]
  %.04762.us = phi float [ %53, %.lr.ph.split.us ], [ %43, %.lr.ph ]
  %44 = tail call float @compress_mulaw(float noundef %.04762.us, float noundef %.045.ph98) #6
  %45 = tail call float @expand_mulaw(float noundef %44, float noundef %.045.ph98) #6
  %46 = add nuw i32 %.063.us, 1
  %47 = fpext float %.04762.us to double
  %48 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.15, i32 noundef %46, double noundef %47) #6
  %49 = fpext float %44 to double
  %50 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.16, i32 noundef %46, double noundef %49) #6
  %51 = fpext float %45 to double
  %52 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.17, i32 noundef %46, double noundef %51) #6
  %53 = fadd float %.04762.us, %42
  %exitcond73.not = icmp eq i32 %46, %.044
  br i1 %exitcond73.not, label %._crit_edge, label %.lr.ph.split.us, !llvm.loop !11

.lr.ph.split:                                     ; preds = %.lr.ph, %.lr.ph.split
  %.063 = phi i32 [ %60, %.lr.ph.split ], [ 0, %.lr.ph ]
  %.04762 = phi float [ %64, %.lr.ph.split ], [ %43, %.lr.ph ]
  %54 = tail call float @compress_mulaw(float noundef %.04762, float noundef %.045.ph98) #6
  %55 = tail call float @expand_mulaw(float noundef %54, float noundef %.045.ph98) #6
  %56 = fpext float %.04762 to double
  %57 = fpext float %54 to double
  %58 = fpext float %55 to double
  %59 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, double noundef %56, double noundef %57, double noundef %58)
  %60 = add nuw i32 %.063, 1
  %61 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.15, i32 noundef %60, double noundef %56) #6
  %62 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.16, i32 noundef %60, double noundef %57) #6
  %63 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.17, i32 noundef %60, double noundef %58) #6
  %64 = fadd float %.04762, %42
  %exitcond.not = icmp eq i32 %60, %.044
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph.split, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph.split, %.lr.ph.split.us, %31
  %65 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.18) #6
  %66 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.19) #6
  %67 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.20) #6
  %68 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.21) #6
  %69 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.22) #6
  %70 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.23) #6
  %71 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.24) #6
  %72 = tail call i32 @fclose(ptr noundef %32)
  %73 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.25, ptr noundef nonnull @.str.9)
  %74 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26)
  br label %75

75:                                               ; preds = %._crit_edge, %5
  ret i32 0
}

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare double @atof(ptr nocapture noundef nonnull) local_unnamed_addr #3

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #4

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #1

declare float @compress_mulaw(float noundef, float noundef) local_unnamed_addr #5

declare float @expand_mulaw(float noundef, float noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) 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 = { 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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 "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 = { "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 }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { noreturn nounwind }
attributes #9 = { cold nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = distinct !{!11, !6}


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