; LLVM IR from reworks-org/galaxy :: deps/sfml_deps/vorbis-src/examples/seeking_example.ll (verify)

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

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [55 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @_verify(ptr noundef %0, i64 noundef %1, i64 noundef %2, double noundef %3, i64 noundef %4, ptr noundef %5) #0 {
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca double, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca [4096 x i8], align 16
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i64 %1, ptr %8, align 8, !tbaa !9
  store i64 %2, ptr %9, align 8, !tbaa !9
  store double %3, ptr %10, align 8, !tbaa !11
  store i64 %4, ptr %11, align 8, !tbaa !9
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4096, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = call i32 @ov_halfrate_p(ptr noundef %21)
  store i32 %22, ptr %19, align 4, !tbaa !13
  %23 = load i64, ptr %8, align 8, !tbaa !9
  %24 = icmp ne i64 %23, -1
  br i1 %24, label %25, label %36

25:                                               ; preds = %6
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = call i64 @ov_raw_tell(ptr noundef %26)
  %28 = load i64, ptr %8, align 8, !tbaa !9
  %29 = icmp slt i64 %27, %28
  br i1 %29, label %30, label %36

30:                                               ; preds = %25
  %31 = load ptr, ptr @stderr, align 8, !tbaa !5
  %32 = load i64, ptr %8, align 8, !tbaa !9
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = call i64 @ov_raw_tell(ptr noundef %33)
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef @.str, i64 noundef %32, i64 noundef %34) #5
  call void @exit(i32 noundef 1) #6
  unreachable

36:                                               ; preds = %25, %6
  %37 = load i64, ptr %9, align 8, !tbaa !9
  %38 = icmp ne i64 %37, -1
  br i1 %38, label %39, label %50

39:                                               ; preds = %36
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = call i64 @ov_pcm_tell(ptr noundef %40)
  %42 = load i64, ptr %9, align 8, !tbaa !9
  %43 = icmp sgt i64 %41, %42
  br i1 %43, label %44, label %50

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

50:                                               ; preds = %39, %36
  %51 = load double, ptr %10, align 8, !tbaa !11
  %52 = fcmp une double %51, -1.000000e+00
  br i1 %52, label %53, label %64

53:                                               ; preds = %50
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = call double @ov_time_tell(ptr noundef %54)
  %56 = load double, ptr %10, align 8, !tbaa !11
  %57 = fcmp ogt double %55, %56
  br i1 %57, label %58, label %64

58:                                               ; preds = %53
  %59 = load ptr, ptr @stderr, align 8, !tbaa !5
  %60 = load double, ptr %10, align 8, !tbaa !11
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = call double @ov_time_tell(ptr noundef %61)
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str.2, double noundef %60, double noundef %62) #5
  call void @exit(i32 noundef 1) #6
  unreachable

64:                                               ; preds = %53, %50
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = call i64 @ov_pcm_tell(ptr noundef %65)
  store i64 %66, ptr %18, align 8, !tbaa !9
  %67 = load i64, ptr %18, align 8, !tbaa !9
  %68 = icmp slt i64 %67, 0
  br i1 %68, label %73, label %69

69:                                               ; preds = %64
  %70 = load i64, ptr %18, align 8, !tbaa !9
  %71 = load i64, ptr %11, align 8, !tbaa !9
  %72 = icmp sgt i64 %70, %71
  br i1 %72, label %73, label %77

73:                                               ; preds = %69, %64
  %74 = load ptr, ptr @stderr, align 8, !tbaa !5
  %75 = load i64, ptr %18, align 8, !tbaa !9
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef @.str.3, i64 noundef %75) #5
  call void @exit(i32 noundef 1) #6
  unreachable

77:                                               ; preds = %69
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = getelementptr inbounds [4096 x i8], ptr %16, i64 0, i64 0
  %80 = call i64 @ov_read(ptr noundef %78, ptr noundef %79, i32 noundef 4096, i32 noundef 1, i32 noundef 1, i32 noundef 1, ptr noundef %17)
  store i64 %80, ptr %15, align 8, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !13
  br label %81

81:                                               ; preds = %240, %77
  %82 = load i32, ptr %14, align 4, !tbaa !13
  %83 = sext i32 %82 to i64
  %84 = load i64, ptr %15, align 8, !tbaa !9
  %85 = icmp slt i64 %83, %84
  br i1 %85, label %86, label %243

86:                                               ; preds = %81
  %87 = load i32, ptr %14, align 4, !tbaa !13
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [4096 x i8], ptr %16, i64 0, i64 %88
  %90 = load i8, ptr %89, align 1, !tbaa !15
  %91 = sext i8 %90 to i32
  %92 = load ptr, ptr %12, align 8, !tbaa !5
  %93 = load i32, ptr %14, align 4, !tbaa !13
  %94 = sext i32 %93 to i64
  %95 = load i64, ptr %18, align 8, !tbaa !9
  %96 = load i32, ptr %19, align 4, !tbaa !13
  %97 = zext i32 %96 to i64
  %98 = ashr i64 %95, %97
  %99 = mul nsw i64 %98, 2
  %100 = add nsw i64 %94, %99
  %101 = getelementptr inbounds i8, ptr %92, i64 %100
  %102 = load i8, ptr %101, align 1, !tbaa !15
  %103 = sext i8 %102 to i32
  %104 = icmp ne i32 %91, %103
  br i1 %104, label %105, label %239

105:                                              ; preds = %86
  %106 = load ptr, ptr @stderr, align 8, !tbaa !5
  %107 = load i64, ptr %18, align 8, !tbaa !9
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %106, ptr noundef @.str.4, i64 noundef %107) #5
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %109

109:                                              ; preds = %159, %105
  %110 = load i64, ptr %13, align 8, !tbaa !9
  %111 = load i64, ptr %11, align 8, !tbaa !9
  %112 = load i32, ptr %19, align 4, !tbaa !13
  %113 = zext i32 %112 to i64
  %114 = ashr i64 %111, %113
  %115 = mul nsw i64 %114, 2
  %116 = load i64, ptr %15, align 8, !tbaa !9
  %117 = sub nsw i64 %115, %116
  %118 = icmp slt i64 %110, %117
  br i1 %118, label %119, label %162

119:                                              ; preds = %109
  store i32 0, ptr %14, align 4, !tbaa !13
  br label %120

120:                                              ; preds = %142, %119
  %121 = load i32, ptr %14, align 4, !tbaa !13
  %122 = sext i32 %121 to i64
  %123 = load i64, ptr %15, align 8, !tbaa !9
  %124 = icmp slt i64 %122, %123
  br i1 %124, label %125, label %145

125:                                              ; preds = %120
  %126 = load i32, ptr %14, align 4, !tbaa !13
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [4096 x i8], ptr %16, i64 0, i64 %127
  %129 = load i8, ptr %128, align 1, !tbaa !15
  %130 = sext i8 %129 to i32
  %131 = load ptr, ptr %12, align 8, !tbaa !5
  %132 = load i64, ptr %13, align 8, !tbaa !9
  %133 = load i32, ptr %14, align 4, !tbaa !13
  %134 = sext i32 %133 to i64
  %135 = add nsw i64 %132, %134
  %136 = getelementptr inbounds i8, ptr %131, i64 %135
  %137 = load i8, ptr %136, align 1, !tbaa !15
  %138 = sext i8 %137 to i32
  %139 = icmp ne i32 %130, %138
  br i1 %139, label %140, label %141

140:                                              ; preds = %125
  br label %145

141:                                              ; preds = %125
  br label %142

142:                                              ; preds = %141
  %143 = load i32, ptr %14, align 4, !tbaa !13
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %14, align 4, !tbaa !13
  br label %120, !llvm.loop !16

145:                                              ; preds = %140, %120
  %146 = load i32, ptr %14, align 4, !tbaa !13
  %147 = sext i32 %146 to i64
  %148 = load i64, ptr %15, align 8, !tbaa !9
  %149 = icmp eq i64 %147, %148
  br i1 %149, label %150, label %158

150:                                              ; preds = %145
  %151 = load ptr, ptr @stderr, align 8, !tbaa !5
  %152 = load i64, ptr %13, align 8, !tbaa !9
  %153 = sdiv i64 %152, 2
  %154 = load i32, ptr %19, align 4, !tbaa !13
  %155 = zext i32 %154 to i64
  %156 = shl i64 %153, %155
  %157 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %151, ptr noundef @.str.5, i64 noundef %156) #5
  br label %158

158:                                              ; preds = %150, %145
  br label %159

159:                                              ; preds = %158
  %160 = load i64, ptr %13, align 8, !tbaa !9
  %161 = add nsw i64 %160, 1
  store i64 %161, ptr %13, align 8, !tbaa !9
  br label %109, !llvm.loop !18

162:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %163 = call noalias ptr @fopen(ptr noundef @.str.6, ptr noundef @.str.7)
  store ptr %163, ptr %20, align 8, !tbaa !5
  store i32 0, ptr %14, align 4, !tbaa !13
  br label %164

164:                                              ; preds = %178, %162
  %165 = load i32, ptr %14, align 4, !tbaa !13
  %166 = sext i32 %165 to i64
  %167 = load i64, ptr %15, align 8, !tbaa !9
  %168 = icmp slt i64 %166, %167
  br i1 %168, label %169, label %181

169:                                              ; preds = %164
  %170 = load ptr, ptr %20, align 8, !tbaa !5
  %171 = load i32, ptr %14, align 4, !tbaa !13
  %172 = load i32, ptr %14, align 4, !tbaa !13
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [4096 x i8], ptr %16, i64 0, i64 %173
  %175 = load i8, ptr %174, align 1, !tbaa !15
  %176 = sext i8 %175 to i32
  %177 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %170, ptr noundef @.str.8, i32 noundef %171, i32 noundef %176) #5
  br label %178

178:                                              ; preds = %169
  %179 = load i32, ptr %14, align 4, !tbaa !13
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr %14, align 4, !tbaa !13
  br label %164, !llvm.loop !19

181:                                              ; preds = %164
  %182 = load ptr, ptr %20, align 8, !tbaa !5
  %183 = call i32 @fclose(ptr noundef %182)
  %184 = call noalias ptr @fopen(ptr noundef @.str.9, ptr noundef @.str.7)
  store ptr %184, ptr %20, align 8, !tbaa !5
  store i32 -4096, ptr %14, align 4, !tbaa !13
  br label %185

185:                                              ; preds = %233, %181
  %186 = load i32, ptr %14, align 4, !tbaa !13
  %187 = sext i32 %186 to i64
  %188 = load i64, ptr %15, align 8, !tbaa !9
  %189 = add nsw i64 %188, 4096
  %190 = icmp slt i64 %187, %189
  br i1 %190, label %191, label %236

191:                                              ; preds = %185
  %192 = load i32, ptr %14, align 4, !tbaa !13
  %193 = sext i32 %192 to i64
  %194 = load i64, ptr %18, align 8, !tbaa !9
  %195 = mul nsw i64 %194, 2
  %196 = load i32, ptr %19, align 4, !tbaa !13
  %197 = zext i32 %196 to i64
  %198 = ashr i64 %195, %197
  %199 = add nsw i64 %193, %198
  %200 = icmp sge i64 %199, 0
  br i1 %200, label %201, label %232

201:                                              ; preds = %191
  %202 = load i32, ptr %14, align 4, !tbaa !13
  %203 = sext i32 %202 to i64
  %204 = load i64, ptr %18, align 8, !tbaa !9
  %205 = mul nsw i64 %204, 2
  %206 = load i32, ptr %19, align 4, !tbaa !13
  %207 = zext i32 %206 to i64
  %208 = ashr i64 %205, %207
  %209 = add nsw i64 %203, %208
  %210 = load i64, ptr %11, align 8, !tbaa !9
  %211 = load i32, ptr %19, align 4, !tbaa !13
  %212 = zext i32 %211 to i64
  %213 = ashr i64 %210, %212
  %214 = mul nsw i64 %213, 2
  %215 = icmp slt i64 %209, %214
  br i1 %215, label %216, label %232

216:                                              ; preds = %201
  %217 = load ptr, ptr %20, align 8, !tbaa !5
  %218 = load i32, ptr %14, align 4, !tbaa !13
  %219 = load ptr, ptr %12, align 8, !tbaa !5
  %220 = load i32, ptr %14, align 4, !tbaa !13
  %221 = sext i32 %220 to i64
  %222 = load i64, ptr %18, align 8, !tbaa !9
  %223 = mul nsw i64 %222, 2
  %224 = load i32, ptr %19, align 4, !tbaa !13
  %225 = zext i32 %224 to i64
  %226 = ashr i64 %223, %225
  %227 = add nsw i64 %221, %226
  %228 = getelementptr inbounds i8, ptr %219, i64 %227
  %229 = load i8, ptr %228, align 1, !tbaa !15
  %230 = sext i8 %229 to i32
  %231 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %217, ptr noundef @.str.8, i32 noundef %218, i32 noundef %230) #5
  br label %232

232:                                              ; preds = %216, %201, %191
  br label %233

233:                                              ; preds = %232
  %234 = load i32, ptr %14, align 4, !tbaa !13
  %235 = add nsw i32 %234, 1
  store i32 %235, ptr %14, align 4, !tbaa !13
  br label %185, !llvm.loop !20

236:                                              ; preds = %185
  %237 = load ptr, ptr %20, align 8, !tbaa !5
  %238 = call i32 @fclose(ptr noundef %237)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @exit(i32 noundef 1) #6
  unreachable

239:                                              ; preds = %86
  br label %240

240:                                              ; preds = %239
  %241 = load i32, ptr %14, align 4, !tbaa !13
  %242 = add nsw i32 %241, 1
  store i32 %242, ptr %14, align 4, !tbaa !13
  br label %81, !llvm.loop !21

243:                                              ; preds = %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4096, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  ret void
}

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

declare i32 @ov_halfrate_p(ptr noundef) #2

declare i64 @ov_raw_tell(ptr noundef) #2

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

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

declare i64 @ov_pcm_tell(ptr noundef) #2

declare double @ov_time_tell(ptr noundef) #2

declare i64 @ov_read(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #2

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

declare i32 @fclose(ptr noundef) #2

; 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 = { "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 = { 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 = { nounwind }
attributes #6 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [55 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @_verify(ptr noundef %0, i64 noundef %1, i64 noundef %2, double noundef %3, i64 noundef %4, ptr nocapture noundef readonly %5) local_unnamed_addr #0 {
  %7 = alloca [4096 x i8], align 16
  %8 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  %9 = tail call i32 @ov_halfrate_p(ptr noundef %0) #6
  %.not = icmp eq i64 %1, -1
  br i1 %.not, label %17, label %10

10:                                               ; preds = %6
  %11 = tail call i64 @ov_raw_tell(ptr noundef %0) #6
  %12 = icmp slt i64 %11, %1
  br i1 %12, label %13, label %17

13:                                               ; preds = %10
  %14 = load ptr, ptr @stderr, align 8, !tbaa !5
  %15 = tail call i64 @ov_raw_tell(ptr noundef %0) #6
  %16 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef nonnull @.str, i64 noundef %1, i64 noundef %15) #7
  tail call void @exit(i32 noundef 1) #8
  unreachable

17:                                               ; preds = %10, %6
  %.not83 = icmp eq i64 %2, -1
  br i1 %.not83, label %25, label %18

18:                                               ; preds = %17
  %19 = tail call i64 @ov_pcm_tell(ptr noundef %0) #6
  %20 = icmp sgt i64 %19, %2
  br i1 %20, label %21, label %25

21:                                               ; preds = %18
  %22 = load ptr, ptr @stderr, align 8, !tbaa !5
  %23 = tail call i64 @ov_pcm_tell(ptr noundef %0) #6
  %24 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef nonnull @.str.1, i64 noundef %2, i64 noundef %23) #7
  tail call void @exit(i32 noundef 1) #8
  unreachable

25:                                               ; preds = %18, %17
  %26 = fcmp une double %3, -1.000000e+00
  br i1 %26, label %27, label %34

27:                                               ; preds = %25
  %28 = tail call double @ov_time_tell(ptr noundef %0) #6
  %29 = fcmp ogt double %28, %3
  br i1 %29, label %30, label %34

30:                                               ; preds = %27
  %31 = load ptr, ptr @stderr, align 8, !tbaa !5
  %32 = tail call double @ov_time_tell(ptr noundef %0) #6
  %33 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef nonnull @.str.2, double noundef %3, double noundef %32) #7
  tail call void @exit(i32 noundef 1) #8
  unreachable

34:                                               ; preds = %27, %25
  %35 = tail call i64 @ov_pcm_tell(ptr noundef %0) #6
  %36 = icmp slt i64 %35, 0
  %37 = icmp sgt i64 %35, %4
  %or.cond = or i1 %36, %37
  br i1 %or.cond, label %38, label %41

38:                                               ; preds = %34
  %39 = load ptr, ptr @stderr, align 8, !tbaa !5
  %40 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str.3, i64 noundef %35) #7
  tail call void @exit(i32 noundef 1) #8
  unreachable

41:                                               ; preds = %34
  %42 = call i64 @ov_read(ptr noundef %0, ptr noundef nonnull %7, i32 noundef 4096, i32 noundef 1, i32 noundef 1, i32 noundef 1, ptr noundef nonnull %8) #6
  %43 = icmp sgt i64 %42, 0
  br i1 %43, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %41
  %44 = zext i32 %9 to i64
  %45 = lshr i64 %35, %44
  %46 = shl nuw nsw i64 %45, 1
  %47 = getelementptr inbounds i8, ptr %5, i64 %46
  br label %49

48:                                               ; preds = %49
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %42
  br i1 %exitcond.not, label %._crit_edge, label %49, !llvm.loop !9

49:                                               ; preds = %.lr.ph, %48
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %48 ]
  %50 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 %indvars.iv
  %51 = load i8, ptr %50, align 1, !tbaa !11
  %52 = getelementptr inbounds i8, ptr %47, i64 %indvars.iv
  %53 = load i8, ptr %52, align 1, !tbaa !11
  %.not84 = icmp eq i8 %51, %53
  br i1 %.not84, label %48, label %54

54:                                               ; preds = %49
  %55 = load ptr, ptr @stderr, align 8, !tbaa !5
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef nonnull @.str.4, i64 noundef %35) #7
  %57 = lshr i64 %4, %44
  %58 = shl nsw i64 %57, 1
  %59 = sub nsw i64 %58, %42
  %60 = icmp sgt i64 %59, 0
  br i1 %60, label %.preheader.us, label %.lr.ph100.preheader

.preheader.us:                                    ; preds = %54, %73
  %.095.us = phi i64 [ %74, %73 ], [ 0, %54 ]
  %61 = getelementptr inbounds i8, ptr %5, i64 %.095.us
  br label %63

62:                                               ; preds = %63
  %indvars.iv.next109 = add nuw nsw i64 %indvars.iv108, 1
  %exitcond111.not = icmp eq i64 %indvars.iv.next109, %42
  br i1 %exitcond111.not, label %._crit_edge92.us.thread, label %63, !llvm.loop !12

63:                                               ; preds = %.preheader.us, %62
  %indvars.iv108 = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next109, %62 ]
  %64 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 %indvars.iv108
  %65 = load i8, ptr %64, align 1, !tbaa !11
  %66 = getelementptr inbounds i8, ptr %61, i64 %indvars.iv108
  %67 = load i8, ptr %66, align 1, !tbaa !11
  %.not85.us = icmp eq i8 %65, %67
  br i1 %.not85.us, label %62, label %._crit_edge92.us

._crit_edge92.us:                                 ; preds = %63
  %68 = icmp eq i64 %42, %indvars.iv108
  br i1 %68, label %._crit_edge92.us.thread, label %73

._crit_edge92.us.thread:                          ; preds = %62, %._crit_edge92.us
  %69 = load ptr, ptr @stderr, align 8, !tbaa !5
  %70 = lshr i64 %.095.us, 1
  %71 = shl i64 %70, %44
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef nonnull @.str.5, i64 noundef %71) #7
  br label %73

73:                                               ; preds = %._crit_edge92.us.thread, %._crit_edge92.us
  %74 = add nuw nsw i64 %.095.us, 1
  %exitcond112.not = icmp eq i64 %74, %59
  br i1 %exitcond112.not, label %.lr.ph100.preheader, label %.preheader.us, !llvm.loop !13

.lr.ph100.preheader:                              ; preds = %73, %54
  %75 = call noalias ptr @fopen(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7)
  %smax = call i64 @llvm.smax.i64(i64 %42, i64 1)
  br label %.lr.ph100

.lr.ph100:                                        ; preds = %.lr.ph100.preheader, %.lr.ph100
  %indvars.iv113 = phi i64 [ 0, %.lr.ph100.preheader ], [ %indvars.iv.next114, %.lr.ph100 ]
  %76 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 %indvars.iv113
  %77 = load i8, ptr %76, align 1, !tbaa !11
  %78 = sext i8 %77 to i32
  %79 = trunc nuw nsw i64 %indvars.iv113 to i32
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.8, i32 noundef %79, i32 noundef %78) #6
  %indvars.iv.next114 = add nuw nsw i64 %indvars.iv113, 1
  %exitcond116.not = icmp eq i64 %indvars.iv.next114, %smax
  br i1 %exitcond116.not, label %.lr.ph104, label %.lr.ph100, !llvm.loop !14

.lr.ph104:                                        ; preds = %.lr.ph100
  %81 = call i32 @fclose(ptr noundef %75)
  %82 = call noalias ptr @fopen(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.7)
  %83 = shl nuw nsw i64 %35, 1
  %84 = lshr i64 %83, %44
  %85 = add nuw nsw i64 %42, 4095
  br label %86

86:                                               ; preds = %.lr.ph104, %96
  %indvars.iv117 = phi i64 [ -4096, %.lr.ph104 ], [ %indvars.iv.next118, %96 ]
  %87 = add nsw i64 %indvars.iv117, %84
  %88 = icmp sgt i64 %87, -1
  %89 = icmp slt i64 %87, %58
  %or.cond86 = and i1 %88, %89
  br i1 %or.cond86, label %90, label %96

90:                                               ; preds = %86
  %91 = getelementptr inbounds i8, ptr %5, i64 %87
  %92 = load i8, ptr %91, align 1, !tbaa !11
  %93 = sext i8 %92 to i32
  %94 = trunc nsw i64 %indvars.iv117 to i32
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef nonnull @.str.8, i32 noundef %94, i32 noundef %93) #6
  br label %96

96:                                               ; preds = %86, %90
  %indvars.iv.next118 = add nsw i64 %indvars.iv117, 1
  %97 = icmp sgt i64 %85, %indvars.iv117
  br i1 %97, label %86, label %._crit_edge105, !llvm.loop !15

._crit_edge105:                                   ; preds = %96
  %98 = call i32 @fclose(ptr noundef %82)
  call void @exit(i32 noundef 1) #8
  unreachable

._crit_edge:                                      ; preds = %48, %41
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %7) #6
  ret void
}

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

declare i32 @ov_halfrate_p(ptr noundef) local_unnamed_addr #2

declare i64 @ov_raw_tell(ptr noundef) local_unnamed_addr #2

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

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

declare i64 @ov_pcm_tell(ptr noundef) local_unnamed_addr #2

declare double @ov_time_tell(ptr noundef) local_unnamed_addr #2

declare i64 @ov_read(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #5

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { cold nounwind }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}


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