; LLVM IR from reworks-org/galaxy :: deps/sfml_deps/vorbis-src/examples (seeking_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"

%struct.ov_callbacks = type { ptr, ptr, ptr, ptr }
%struct.OggVorbis_File = type { ptr, i32, i64, i64, %struct.ogg_sync_state, i32, ptr, ptr, ptr, ptr, ptr, ptr, i64, i32, i64, i32, double, double, %struct.ogg_stream_state, %struct.vorbis_dsp_state, %struct.vorbis_block, %struct.ov_callbacks }
%struct.ogg_sync_state = type { ptr, i32, i32, i32, i32, i32, i32 }
%struct.ogg_stream_state = type { ptr, i64, i64, i64, ptr, ptr, i64, i64, i64, i64, [282 x i8], i32, i32, i32, i64, i64, i64, i64 }
%struct.vorbis_dsp_state = type { i32, ptr, ptr, ptr, i32, i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, ptr }
%struct.vorbis_block = type { ptr, %struct.oggpack_buffer, i64, i64, i64, i32, i32, i32, i64, i64, ptr, ptr, i64, i64, i64, ptr, i64, i64, i64, i64, ptr }
%struct.oggpack_buffer = type { i64, i32, ptr, ptr, i64 }
%struct.vorbis_info = type { i32, i32, i64, i64, i64, i64, i64, ptr }

@stderr = external global ptr, align 8
@stdin = external global ptr, align 8
@OV_CALLBACKS_NOCLOSE = external hidden global %struct.ov_callbacks, align 8
@.str.10 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @_verify(ptr noundef, i64 noundef, i64 noundef, double noundef, i64 noundef, ptr 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: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

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

declare i64 @ov_pcm_tell(ptr noundef) #4

declare double @ov_time_tell(ptr noundef) #4

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

; 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
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca %struct.OggVorbis_File, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca double, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 944, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  %18 = load ptr, ptr @stdin, align 8, !tbaa !9
  %19 = call i32 @ov_open_callbacks(ptr noundef %18, ptr noundef %2, ptr noundef null, i64 noundef -1, ptr noundef byval(%struct.ov_callbacks) align 8 @OV_CALLBACKS_NOCLOSE)
  %20 = icmp slt i32 %19, 0
  br i1 %20, label %21, label %24

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

24:                                               ; preds = %0
  %25 = call i64 @ov_seekable(ptr noundef %2)
  %26 = icmp ne i64 %25, 0
  br i1 %26, label %27, label %331

27:                                               ; preds = %24
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %44, %27
  %29 = load i32, ptr %3, align 4, !tbaa !5
  %30 = getelementptr inbounds %struct.OggVorbis_File, ptr %2, i32 0, i32 5
  %31 = load i32, ptr %30, align 8, !tbaa !11
  %32 = icmp slt i32 %29, %31
  br i1 %32, label %33, label %47

33:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %34 = load i32, ptr %3, align 4, !tbaa !5
  %35 = call ptr @ov_info(ptr noundef %2, i32 noundef %34)
  store ptr %35, ptr %10, align 8, !tbaa !9
  %36 = load ptr, ptr %10, align 8, !tbaa !9
  %37 = getelementptr inbounds %struct.vorbis_info, ptr %36, i32 0, i32 1
  %38 = load i32, ptr %37, align 4, !tbaa !21
  %39 = icmp ne i32 %38, 2
  br i1 %39, label %40, label %43

40:                                               ; preds = %33
  %41 = load ptr, ptr @stderr, align 8, !tbaa !9
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef @.str.11) #6
  call void @exit(i32 noundef 1) #7
  unreachable

43:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %44

44:                                               ; preds = %43
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %3, align 4, !tbaa !5
  br label %28, !llvm.loop !23

47:                                               ; preds = %28
  %48 = call i64 @ov_pcm_total(ptr noundef %2, i32 noundef -1)
  store i64 %48, ptr %5, align 8, !tbaa !25
  %49 = call double @ov_time_total(ptr noundef %2, i32 noundef -1)
  store double %49, ptr %6, align 8, !tbaa !26
  %50 = load i64, ptr %5, align 8, !tbaa !25
  %51 = load i32, ptr %9, align 4, !tbaa !5
  %52 = zext i32 %51 to i64
  %53 = ashr i64 %50, %52
  %54 = mul nsw i64 %53, 2
  %55 = call noalias ptr @malloc(i64 noundef %54) #8
  store ptr %55, ptr %7, align 8, !tbaa !9
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %99, %47
  %57 = load i32, ptr %3, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = load i64, ptr %5, align 8, !tbaa !25
  %60 = load i32, ptr %9, align 4, !tbaa !5
  %61 = zext i32 %60 to i64
  %62 = ashr i64 %59, %61
  %63 = mul nsw i64 %62, 2
  %64 = icmp slt i64 %58, %63
  br i1 %64, label %65, label %110

65:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %66 = load ptr, ptr %7, align 8, !tbaa !9
  %67 = load i32, ptr %3, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds i8, ptr %66, i64 %68
  %70 = load i64, ptr %5, align 8, !tbaa !25
  %71 = load i32, ptr %9, align 4, !tbaa !5
  %72 = zext i32 %71 to i64
  %73 = ashr i64 %70, %72
  %74 = mul nsw i64 %73, 2
  %75 = load i32, ptr %3, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = sub nsw i64 %74, %76
  %78 = trunc i64 %77 to i32
  %79 = call i64 @ov_read(ptr noundef %2, ptr noundef %69, i32 noundef %78, i32 noundef 1, i32 noundef 1, i32 noundef 1, ptr noundef %8)
  %80 = trunc i64 %79 to i32
  store i32 %80, ptr %11, align 4, !tbaa !5
  %81 = load i32, ptr %11, align 4, !tbaa !5
  %82 = icmp slt i32 %81, 0
  br i1 %82, label %83, label %86

83:                                               ; preds = %65
  %84 = load ptr, ptr @stderr, align 8, !tbaa !9
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef @.str.12) #6
  call void @exit(i32 noundef 1) #7
  unreachable

86:                                               ; preds = %65
  %87 = load i32, ptr %11, align 4, !tbaa !5
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %93

89:                                               ; preds = %86
  %90 = load i32, ptr %11, align 4, !tbaa !5
  %91 = load i32, ptr %3, align 4, !tbaa !5
  %92 = add nsw i32 %91, %90
  store i32 %92, ptr %3, align 4, !tbaa !5
  br label %99

93:                                               ; preds = %86
  %94 = load i32, ptr %3, align 4, !tbaa !5
  %95 = sdiv i32 %94, 2
  %96 = load i32, ptr %9, align 4, !tbaa !5
  %97 = shl i32 %95, %96
  %98 = sext i32 %97 to i64
  store i64 %98, ptr %5, align 8, !tbaa !25
  br label %99

99:                                               ; preds = %93, %89
  %100 = load ptr, ptr @stderr, align 8, !tbaa !9
  %101 = load i64, ptr %5, align 8, !tbaa !25
  %102 = load i32, ptr %9, align 4, !tbaa !5
  %103 = zext i32 %102 to i64
  %104 = ashr i64 %101, %103
  %105 = mul nsw i64 %104, 2
  %106 = load i32, ptr %3, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = sub nsw i64 %105, %107
  %109 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef @.str.13, i64 noundef %108) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %56, !llvm.loop !27

110:                                              ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %111 = getelementptr inbounds %struct.OggVorbis_File, ptr %2, i32 0, i32 3
  %112 = load i64, ptr %111, align 8, !tbaa !28
  store i64 %112, ptr %12, align 8, !tbaa !25
  %113 = load ptr, ptr @stderr, align 8, !tbaa !9
  %114 = load i64, ptr %12, align 8, !tbaa !25
  %115 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %113, ptr noundef @.str.14, i64 noundef %114) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %143, %110
  %117 = load i32, ptr %3, align 4, !tbaa !5
  %118 = icmp slt i32 %117, 1000
  br i1 %118, label %119, label %146

119:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %120 = call i32 @rand() #6
  %121 = sitofp i32 %120 to double
  %122 = fdiv double %121, 0x41DFFFFFFFC00000
  %123 = load i64, ptr %12, align 8, !tbaa !25
  %124 = sitofp i64 %123 to double
  %125 = fmul double %122, %124
  %126 = fptosi double %125 to i64
  store i64 %126, ptr %13, align 8, !tbaa !25
  %127 = load ptr, ptr @stderr, align 8, !tbaa !9
  %128 = load i32, ptr %3, align 4, !tbaa !5
  %129 = load i64, ptr %13, align 8, !tbaa !25
  %130 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %127, ptr noundef @.str.15, i32 noundef %128, i64 noundef %129) #6
  %131 = load i64, ptr %13, align 8, !tbaa !25
  %132 = call i32 @ov_raw_seek(ptr noundef %2, i64 noundef %131)
  store i32 %132, ptr %4, align 4, !tbaa !5
  %133 = load i32, ptr %4, align 4, !tbaa !5
  %134 = icmp slt i32 %133, 0
  br i1 %134, label %135, label %139

135:                                              ; preds = %119
  %136 = load ptr, ptr @stderr, align 8, !tbaa !9
  %137 = load i32, ptr %4, align 4, !tbaa !5
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef @.str.16, i32 noundef %137) #6
  call void @exit(i32 noundef 1) #7
  unreachable

139:                                              ; preds = %119
  %140 = load i64, ptr %13, align 8, !tbaa !25
  %141 = load i64, ptr %5, align 8, !tbaa !25
  %142 = load ptr, ptr %7, align 8, !tbaa !9
  call void @_verify(ptr noundef %2, i64 noundef %140, i64 noundef -1, double noundef -1.000000e+00, i64 noundef %141, ptr noundef %142)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %143

143:                                              ; preds = %139
  %144 = load i32, ptr %3, align 4, !tbaa !5
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %3, align 4, !tbaa !5
  br label %116, !llvm.loop !29

146:                                              ; preds = %116
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %147 = load ptr, ptr @stderr, align 8, !tbaa !9
  %148 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %147, ptr noundef @.str.17) #6
  %149 = load ptr, ptr @stderr, align 8, !tbaa !9
  %150 = load i64, ptr %5, align 8, !tbaa !25
  %151 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %149, ptr noundef @.str.18, i64 noundef %150) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %152

152:                                              ; preds = %185, %146
  %153 = load i32, ptr %3, align 4, !tbaa !5
  %154 = icmp slt i32 %153, 1000
  br i1 %154, label %155, label %188

155:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %156 = load i32, ptr %3, align 4, !tbaa !5
  %157 = icmp eq i32 %156, 0
  br i1 %157, label %158, label %159

158:                                              ; preds = %155
  br label %166

159:                                              ; preds = %155
  %160 = call i32 @rand() #6
  %161 = sitofp i32 %160 to double
  %162 = fdiv double %161, 0x41DFFFFFFFC00000
  %163 = load i64, ptr %5, align 8, !tbaa !25
  %164 = sitofp i64 %163 to double
  %165 = fmul double %162, %164
  br label %166

166:                                              ; preds = %159, %158
  %167 = phi double [ 0.000000e+00, %158 ], [ %165, %159 ]
  %168 = fptosi double %167 to i64
  store i64 %168, ptr %14, align 8, !tbaa !25
  %169 = load ptr, ptr @stderr, align 8, !tbaa !9
  %170 = load i32, ptr %3, align 4, !tbaa !5
  %171 = load i64, ptr %14, align 8, !tbaa !25
  %172 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %169, ptr noundef @.str.19, i32 noundef %170, i64 noundef %171) #6
  %173 = load i64, ptr %14, align 8, !tbaa !25
  %174 = call i32 @ov_pcm_seek_page(ptr noundef %2, i64 noundef %173)
  store i32 %174, ptr %4, align 4, !tbaa !5
  %175 = load i32, ptr %4, align 4, !tbaa !5
  %176 = icmp slt i32 %175, 0
  br i1 %176, label %177, label %181

177:                                              ; preds = %166
  %178 = load ptr, ptr @stderr, align 8, !tbaa !9
  %179 = load i32, ptr %4, align 4, !tbaa !5
  %180 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %178, ptr noundef @.str.16, i32 noundef %179) #6
  call void @exit(i32 noundef 1) #7
  unreachable

181:                                              ; preds = %166
  %182 = load i64, ptr %14, align 8, !tbaa !25
  %183 = load i64, ptr %5, align 8, !tbaa !25
  %184 = load ptr, ptr %7, align 8, !tbaa !9
  call void @_verify(ptr noundef %2, i64 noundef -1, i64 noundef %182, double noundef -1.000000e+00, i64 noundef %183, ptr noundef %184)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %185

185:                                              ; preds = %181
  %186 = load i32, ptr %3, align 4, !tbaa !5
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %3, align 4, !tbaa !5
  br label %152, !llvm.loop !30

188:                                              ; preds = %152
  %189 = load ptr, ptr @stderr, align 8, !tbaa !9
  %190 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %189, ptr noundef @.str.17) #6
  %191 = load ptr, ptr @stderr, align 8, !tbaa !9
  %192 = load double, ptr %6, align 8, !tbaa !26
  %193 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %191, ptr noundef @.str.20, double noundef %192) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %194

194:                                              ; preds = %242, %188
  %195 = load i32, ptr %3, align 4, !tbaa !5
  %196 = icmp slt i32 %195, 1000
  br i1 %196, label %197, label %245

197:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %198 = load i32, ptr %3, align 4, !tbaa !5
  %199 = icmp eq i32 %198, 0
  br i1 %199, label %200, label %201

200:                                              ; preds = %197
  br label %208

201:                                              ; preds = %197
  %202 = call i32 @rand() #6
  %203 = sitofp i32 %202 to double
  %204 = fdiv double %203, 0x41DFFFFFFFC00000
  %205 = load i64, ptr %5, align 8, !tbaa !25
  %206 = sitofp i64 %205 to double
  %207 = fmul double %204, %206
  br label %208

208:                                              ; preds = %201, %200
  %209 = phi double [ 0.000000e+00, %200 ], [ %207, %201 ]
  %210 = fptosi double %209 to i64
  store i64 %210, ptr %15, align 8, !tbaa !25
  %211 = load ptr, ptr @stderr, align 8, !tbaa !9
  %212 = load i32, ptr %3, align 4, !tbaa !5
  %213 = load i64, ptr %15, align 8, !tbaa !25
  %214 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %211, ptr noundef @.str.19, i32 noundef %212, i64 noundef %213) #6
  %215 = load i64, ptr %15, align 8, !tbaa !25
  %216 = call i32 @ov_pcm_seek(ptr noundef %2, i64 noundef %215)
  store i32 %216, ptr %4, align 4, !tbaa !5
  %217 = load i32, ptr %4, align 4, !tbaa !5
  %218 = icmp slt i32 %217, 0
  br i1 %218, label %219, label %223

219:                                              ; preds = %208
  %220 = load ptr, ptr @stderr, align 8, !tbaa !9
  %221 = load i32, ptr %4, align 4, !tbaa !5
  %222 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %220, ptr noundef @.str.16, i32 noundef %221) #6
  call void @exit(i32 noundef 1) #7
  unreachable

223:                                              ; preds = %208
  %224 = call i64 @ov_pcm_tell(ptr noundef %2)
  %225 = load i64, ptr %15, align 8, !tbaa !25
  %226 = load i32, ptr %9, align 4, !tbaa !5
  %227 = zext i32 %226 to i64
  %228 = ashr i64 %225, %227
  %229 = load i32, ptr %9, align 4, !tbaa !5
  %230 = zext i32 %229 to i64
  %231 = shl i64 %228, %230
  %232 = icmp ne i64 %224, %231
  br i1 %232, label %233, label %238

233:                                              ; preds = %223
  %234 = load ptr, ptr @stderr, align 8, !tbaa !9
  %235 = load i64, ptr %15, align 8, !tbaa !25
  %236 = call i64 @ov_pcm_tell(ptr noundef %2)
  %237 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %234, ptr noundef @.str.21, i64 noundef %235, i64 noundef %236) #6
  call void @exit(i32 noundef 1) #7
  unreachable

238:                                              ; preds = %223
  %239 = load i64, ptr %15, align 8, !tbaa !25
  %240 = load i64, ptr %5, align 8, !tbaa !25
  %241 = load ptr, ptr %7, align 8, !tbaa !9
  call void @_verify(ptr noundef %2, i64 noundef -1, i64 noundef %239, double noundef -1.000000e+00, i64 noundef %240, ptr noundef %241)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %242

242:                                              ; preds = %238
  %243 = load i32, ptr %3, align 4, !tbaa !5
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %3, align 4, !tbaa !5
  br label %194, !llvm.loop !31

245:                                              ; preds = %194
  %246 = load ptr, ptr @stderr, align 8, !tbaa !9
  %247 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %246, ptr noundef @.str.17) #6
  %248 = load ptr, ptr @stderr, align 8, !tbaa !9
  %249 = load double, ptr %6, align 8, !tbaa !26
  %250 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %248, ptr noundef @.str.22, double noundef %249) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %251

251:                                              ; preds = %276, %245
  %252 = load i32, ptr %3, align 4, !tbaa !5
  %253 = icmp slt i32 %252, 1000
  br i1 %253, label %254, label %279

254:                                              ; preds = %251
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %255 = call i32 @rand() #6
  %256 = sitofp i32 %255 to double
  %257 = fdiv double %256, 0x41DFFFFFFFC00000
  %258 = load double, ptr %6, align 8, !tbaa !26
  %259 = fmul double %257, %258
  store double %259, ptr %16, align 8, !tbaa !26
  %260 = load ptr, ptr @stderr, align 8, !tbaa !9
  %261 = load i32, ptr %3, align 4, !tbaa !5
  %262 = load double, ptr %16, align 8, !tbaa !26
  %263 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %260, ptr noundef @.str.23, i32 noundef %261, double noundef %262) #6
  %264 = load double, ptr %16, align 8, !tbaa !26
  %265 = call i32 @ov_time_seek_page(ptr noundef %2, double noundef %264)
  store i32 %265, ptr %4, align 4, !tbaa !5
  %266 = load i32, ptr %4, align 4, !tbaa !5
  %267 = icmp slt i32 %266, 0
  br i1 %267, label %268, label %272

268:                                              ; preds = %254
  %269 = load ptr, ptr @stderr, align 8, !tbaa !9
  %270 = load i32, ptr %4, align 4, !tbaa !5
  %271 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %269, ptr noundef @.str.16, i32 noundef %270) #6
  call void @exit(i32 noundef 1) #7
  unreachable

272:                                              ; preds = %254
  %273 = load double, ptr %16, align 8, !tbaa !26
  %274 = load i64, ptr %5, align 8, !tbaa !25
  %275 = load ptr, ptr %7, align 8, !tbaa !9
  call void @_verify(ptr noundef %2, i64 noundef -1, i64 noundef -1, double noundef %273, i64 noundef %274, ptr noundef %275)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %276

276:                                              ; preds = %272
  %277 = load i32, ptr %3, align 4, !tbaa !5
  %278 = add nsw i32 %277, 1
  store i32 %278, ptr %3, align 4, !tbaa !5
  br label %251, !llvm.loop !32

279:                                              ; preds = %251
  %280 = load ptr, ptr @stderr, align 8, !tbaa !9
  %281 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %280, ptr noundef @.str.17) #6
  %282 = load ptr, ptr @stderr, align 8, !tbaa !9
  %283 = load double, ptr %6, align 8, !tbaa !26
  %284 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %282, ptr noundef @.str.24, double noundef %283) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %285

285:                                              ; preds = %325, %279
  %286 = load i32, ptr %3, align 4, !tbaa !5
  %287 = icmp slt i32 %286, 1000
  br i1 %287, label %288, label %328

288:                                              ; preds = %285
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %289 = call i32 @rand() #6
  %290 = sitofp i32 %289 to double
  %291 = fdiv double %290, 0x41DFFFFFFFC00000
  %292 = load double, ptr %6, align 8, !tbaa !26
  %293 = fmul double %291, %292
  store double %293, ptr %17, align 8, !tbaa !26
  %294 = load ptr, ptr @stderr, align 8, !tbaa !9
  %295 = load i32, ptr %3, align 4, !tbaa !5
  %296 = load double, ptr %17, align 8, !tbaa !26
  %297 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %294, ptr noundef @.str.23, i32 noundef %295, double noundef %296) #6
  %298 = load double, ptr %17, align 8, !tbaa !26
  %299 = call i32 @ov_time_seek(ptr noundef %2, double noundef %298)
  store i32 %299, ptr %4, align 4, !tbaa !5
  %300 = load i32, ptr %4, align 4, !tbaa !5
  %301 = icmp slt i32 %300, 0
  br i1 %301, label %302, label %306

302:                                              ; preds = %288
  %303 = load ptr, ptr @stderr, align 8, !tbaa !9
  %304 = load i32, ptr %4, align 4, !tbaa !5
  %305 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %303, ptr noundef @.str.16, i32 noundef %304) #6
  call void @exit(i32 noundef 1) #7
  unreachable

306:                                              ; preds = %288
  %307 = call double @ov_time_tell(ptr noundef %2)
  %308 = load double, ptr %17, align 8, !tbaa !26
  %309 = fsub double %308, 1.000000e+00
  %310 = fcmp olt double %307, %309
  br i1 %310, label %316, label %311

311:                                              ; preds = %306
  %312 = call double @ov_time_tell(ptr noundef %2)
  %313 = load double, ptr %17, align 8, !tbaa !26
  %314 = fadd double %313, 1.000000e+00
  %315 = fcmp ogt double %312, %314
  br i1 %315, label %316, label %321

316:                                              ; preds = %311, %306
  %317 = load ptr, ptr @stderr, align 8, !tbaa !9
  %318 = load double, ptr %17, align 8, !tbaa !26
  %319 = call double @ov_time_tell(ptr noundef %2)
  %320 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %317, ptr noundef @.str.25, double noundef %318, double noundef %319) #6
  call void @exit(i32 noundef 1) #7
  unreachable

321:                                              ; preds = %311
  %322 = load double, ptr %17, align 8, !tbaa !26
  %323 = load i64, ptr %5, align 8, !tbaa !25
  %324 = load ptr, ptr %7, align 8, !tbaa !9
  call void @_verify(ptr noundef %2, i64 noundef -1, i64 noundef -1, double noundef %322, i64 noundef %323, ptr noundef %324)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %325

325:                                              ; preds = %321
  %326 = load i32, ptr %3, align 4, !tbaa !5
  %327 = add nsw i32 %326, 1
  store i32 %327, ptr %3, align 4, !tbaa !5
  br label %285, !llvm.loop !33

328:                                              ; preds = %285
  %329 = load ptr, ptr @stderr, align 8, !tbaa !9
  %330 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %329, ptr noundef @.str.26) #6
  br label %334

331:                                              ; preds = %24
  %332 = load ptr, ptr @stderr, align 8, !tbaa !9
  %333 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %332, ptr noundef @.str.27) #6
  br label %334

334:                                              ; preds = %331, %328
  %335 = call i32 @ov_clear(ptr noundef %2)
  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 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 944, ptr %2) #6
  ret i32 0
}

declare i32 @ov_open_callbacks(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef byval(%struct.ov_callbacks) align 8) #4

declare i64 @ov_seekable(ptr noundef) #4

declare ptr @ov_info(ptr noundef, i32 noundef) #4

declare i64 @ov_pcm_total(ptr noundef, i32 noundef) #4

declare double @ov_time_total(ptr noundef, i32 noundef) #4

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #5

; Function Attrs: nounwind
declare i32 @rand() #2

declare i32 @ov_raw_seek(ptr noundef, i64 noundef) #4

declare i32 @ov_pcm_seek_page(ptr noundef, i64 noundef) #4

declare i32 @ov_pcm_seek(ptr noundef, i64 noundef) #4

declare i32 @ov_time_seek_page(ptr noundef, double noundef) #4

declare i32 @ov_time_seek(ptr noundef, double noundef) #4

declare i32 @ov_clear(ptr noundef) #4

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 = { 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 #4 = { "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 allocsize(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 #6 = { nounwind }
attributes #7 = { noreturn nounwind }
attributes #8 = { nounwind allocsize(0) }

!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, !6, i64 64}
!12 = !{!"OggVorbis_File", !10, i64 0, !6, i64 8, !13, i64 16, !13, i64 24, !14, i64 32, !6, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !13, i64 120, !6, i64 128, !13, i64 136, !6, i64 144, !15, i64 152, !15, i64 160, !16, i64 168, !17, i64 576, !18, i64 720, !20, i64 912}
!13 = !{!"long", !7, i64 0}
!14 = !{!"", !10, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28}
!15 = !{!"double", !7, i64 0}
!16 = !{!"", !10, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !10, i64 32, !10, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !7, i64 80, !6, i64 364, !6, i64 368, !6, i64 372, !13, i64 376, !13, i64 384, !13, i64 392, !13, i64 400}
!17 = !{!"vorbis_dsp_state", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !13, i64 128, !10, i64 136}
!18 = !{!"vorbis_block", !10, i64 0, !19, i64 8, !13, i64 48, !13, i64 56, !13, i64 64, !6, i64 72, !6, i64 76, !6, i64 80, !13, i64 88, !13, i64 96, !10, i64 104, !10, i64 112, !13, i64 120, !13, i64 128, !13, i64 136, !10, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !13, i64 176, !10, i64 184}
!19 = !{!"", !13, i64 0, !6, i64 8, !10, i64 16, !10, i64 24, !13, i64 32}
!20 = !{!"", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!21 = !{!22, !6, i64 4}
!22 = !{!"vorbis_info", !6, i64 0, !6, i64 4, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !10, i64 48}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!13, !13, i64 0}
!26 = !{!15, !15, i64 0}
!27 = distinct !{!27, !24}
!28 = !{!12, !13, i64 24}
!29 = distinct !{!29, !24}
!30 = distinct !{!30, !24}
!31 = distinct !{!31, !24}
!32 = distinct !{!32, !24}
!33 = distinct !{!33, !24}


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

%struct.ov_callbacks = type { ptr, ptr, ptr, ptr }
%struct.OggVorbis_File = type { ptr, i32, i64, i64, %struct.ogg_sync_state, i32, ptr, ptr, ptr, ptr, ptr, ptr, i64, i32, i64, i32, double, double, %struct.ogg_stream_state, %struct.vorbis_dsp_state, %struct.vorbis_block, %struct.ov_callbacks }
%struct.ogg_sync_state = type { ptr, i32, i32, i32, i32, i32, i32 }
%struct.ogg_stream_state = type { ptr, i64, i64, i64, ptr, ptr, i64, i64, i64, i64, [282 x i8], i32, i32, i32, i64, i64, i64, i64 }
%struct.vorbis_dsp_state = type { i32, ptr, ptr, ptr, i32, i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, ptr }
%struct.vorbis_block = type { ptr, %struct.oggpack_buffer, i64, i64, i64, i32, i32, i32, i64, i64, ptr, ptr, i64, i64, i64, ptr, i64, i64, i64, i64, ptr }
%struct.oggpack_buffer = type { i64, i32, ptr, ptr, i64 }

@stderr = external local_unnamed_addr global ptr, align 8
@stdin = external local_unnamed_addr global ptr, align 8
@OV_CALLBACKS_NOCLOSE = external hidden global %struct.ov_callbacks, align 8
@.str.10 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @_verify(ptr noundef, i64 noundef, i64 noundef, double noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

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

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

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

declare i64 @ov_pcm_tell(ptr noundef) local_unnamed_addr #4

declare double @ov_time_tell(ptr noundef) local_unnamed_addr #4

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca %struct.OggVorbis_File, align 8
  %2 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 944, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %3 = load ptr, ptr @stdin, align 8, !tbaa !5
  %4 = call i32 @ov_open_callbacks(ptr noundef %3, ptr noundef nonnull %1, ptr noundef null, i64 noundef -1, ptr noundef nonnull byval(%struct.ov_callbacks) align 8 @OV_CALLBACKS_NOCLOSE) #7
  %5 = icmp slt i32 %4, 0
  br i1 %5, label %6, label %9

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

9:                                                ; preds = %0
  %10 = call i64 @ov_seekable(ptr noundef nonnull %1) #7
  %.not = icmp eq i64 %10, 0
  br i1 %.not, label %.loopexit179, label %.preheader

.preheader:                                       ; preds = %9
  %11 = getelementptr inbounds i8, ptr %1, i64 64
  %12 = load i32, ptr %11, align 8, !tbaa !9
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph, label %._crit_edge

14:                                               ; preds = %.lr.ph
  %15 = add nuw nsw i32 %.0117, 1
  %16 = load i32, ptr %11, align 8, !tbaa !9
  %17 = icmp slt i32 %15, %16
  br i1 %17, label %.lr.ph, label %._crit_edge, !llvm.loop !20

.lr.ph:                                           ; preds = %.preheader, %14
  %.0117 = phi i32 [ %15, %14 ], [ 0, %.preheader ]
  %18 = call ptr @ov_info(ptr noundef nonnull %1, i32 noundef %.0117) #7
  %19 = getelementptr inbounds i8, ptr %18, i64 4
  %20 = load i32, ptr %19, align 4, !tbaa !22
  %.not105 = icmp eq i32 %20, 2
  br i1 %.not105, label %14, label %21

21:                                               ; preds = %.lr.ph
  %22 = load ptr, ptr @stderr, align 8, !tbaa !5
  %23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef nonnull @.str.11) #8
  call void @exit(i32 noundef 1) #9
  unreachable

._crit_edge:                                      ; preds = %14, %.preheader
  %24 = call i64 @ov_pcm_total(ptr noundef nonnull %1, i32 noundef -1) #7
  %25 = call double @ov_time_total(ptr noundef nonnull %1, i32 noundef -1) #7
  %26 = shl nsw i64 %24, 1
  %27 = call noalias ptr @malloc(i64 noundef %26) #10
  %28 = icmp sgt i64 %24, 0
  br i1 %28, label %.lr.ph121, label %._crit_edge122

.lr.ph121:                                        ; preds = %._crit_edge, %40
  %29 = phi i64 [ %45, %40 ], [ %26, %._crit_edge ]
  %30 = phi i64 [ %46, %40 ], [ 0, %._crit_edge ]
  %.1119 = phi i32 [ %41, %40 ], [ 0, %._crit_edge ]
  %.091118 = phi i64 [ %.192, %40 ], [ %24, %._crit_edge ]
  %31 = getelementptr inbounds i8, ptr %27, i64 %30
  %32 = trunc i64 %29 to i32
  %33 = sub i32 %32, %.1119
  %34 = call i64 @ov_read(ptr noundef nonnull %1, ptr noundef %31, i32 noundef %33, i32 noundef 1, i32 noundef 1, i32 noundef 1, ptr noundef nonnull %2) #7
  %35 = trunc i64 %34 to i32
  %36 = icmp slt i32 %35, 0
  br i1 %36, label %37, label %40

37:                                               ; preds = %.lr.ph121
  %38 = load ptr, ptr @stderr, align 8, !tbaa !5
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef nonnull @.str.12) #8
  call void @exit(i32 noundef 1) #9
  unreachable

40:                                               ; preds = %.lr.ph121
  %.not104 = icmp eq i32 %35, 0
  %41 = add nuw nsw i32 %.1119, %35
  %42 = lshr i32 %.1119, 1
  %43 = zext nneg i32 %42 to i64
  %.192 = select i1 %.not104, i64 %43, i64 %.091118
  %44 = load ptr, ptr @stderr, align 8, !tbaa !5
  %45 = shl nsw i64 %.192, 1
  %46 = zext nneg i32 %41 to i64
  %47 = sub nsw i64 %45, %46
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str.13, i64 noundef %47) #8
  %49 = icmp sgt i64 %45, %46
  br i1 %49, label %.lr.ph121, label %._crit_edge122, !llvm.loop !24

._crit_edge122:                                   ; preds = %40, %._crit_edge
  %.091.lcssa = phi i64 [ %24, %._crit_edge ], [ %.192, %40 ]
  %50 = getelementptr inbounds i8, ptr %1, i64 24
  %51 = load i64, ptr %50, align 8, !tbaa !25
  %52 = load ptr, ptr @stderr, align 8, !tbaa !5
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef nonnull @.str.14, i64 noundef %51) #8
  %54 = sitofp i64 %51 to double
  br label %55

55:                                               ; preds = %._crit_edge122, %68
  %.3123 = phi i32 [ 0, %._crit_edge122 ], [ %69, %68 ]
  %56 = call i32 @rand() #7
  %57 = sitofp i32 %56 to double
  %58 = fdiv double %57, 0x41DFFFFFFFC00000
  %59 = fmul double %58, %54
  %60 = fptosi double %59 to i64
  %61 = load ptr, ptr @stderr, align 8, !tbaa !5
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef nonnull @.str.15, i32 noundef %.3123, i64 noundef %60) #8
  %63 = call i32 @ov_raw_seek(ptr noundef nonnull %1, i64 noundef %60) #7
  %64 = icmp slt i32 %63, 0
  br i1 %64, label %65, label %68

65:                                               ; preds = %55
  %66 = load ptr, ptr @stderr, align 8, !tbaa !5
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef nonnull @.str.16, i32 noundef %63) #8
  call void @exit(i32 noundef 1) #9
  unreachable

68:                                               ; preds = %55
  call void @_verify(ptr noundef nonnull %1, i64 noundef %60, i64 noundef -1, double noundef -1.000000e+00, i64 noundef %.091.lcssa, ptr noundef %27)
  %69 = add nuw nsw i32 %.3123, 1
  %exitcond.not = icmp eq i32 %69, 1000
  br i1 %exitcond.not, label %70, label %55, !llvm.loop !26

70:                                               ; preds = %68
  %71 = load ptr, ptr @stderr, align 8, !tbaa !5
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.17) #8
  %73 = load ptr, ptr @stderr, align 8, !tbaa !5
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef nonnull @.str.18, i64 noundef %.091.lcssa) #8
  %75 = sitofp i64 %.091.lcssa to double
  %.pre = load ptr, ptr @stderr, align 8, !tbaa !5
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.pre, ptr noundef nonnull @.str.19, i32 noundef 0, i64 noundef 0) #8
  %77 = call i32 @ov_pcm_seek_page(ptr noundef nonnull %1, i64 noundef 0) #7
  %78 = icmp slt i32 %77, 0
  br i1 %78, label %.loopexit, label %.peel.next

.peel.next:                                       ; preds = %70
  call void @_verify(ptr noundef nonnull %1, i64 noundef -1, i64 noundef 0, double noundef -1.000000e+00, i64 noundef %.091.lcssa, ptr noundef %27)
  br label %79

79:                                               ; preds = %.peel.next, %91
  %.4124 = phi i32 [ 1, %.peel.next ], [ %92, %91 ]
  %80 = call i32 @rand() #7
  %81 = sitofp i32 %80 to double
  %82 = fdiv double %81, 0x41DFFFFFFFC00000
  %83 = fmul double %82, %75
  %84 = fptosi double %83 to i64
  %85 = load ptr, ptr @stderr, align 8, !tbaa !5
  %86 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef nonnull @.str.19, i32 noundef %.4124, i64 noundef %84) #8
  %87 = call i32 @ov_pcm_seek_page(ptr noundef nonnull %1, i64 noundef %84) #7
  %88 = icmp slt i32 %87, 0
  br i1 %88, label %.loopexit, label %91

.loopexit:                                        ; preds = %79, %70
  %.lcssa141 = phi i32 [ %77, %70 ], [ %87, %79 ]
  %89 = load ptr, ptr @stderr, align 8, !tbaa !5
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef nonnull @.str.16, i32 noundef %.lcssa141) #8
  call void @exit(i32 noundef 1) #9
  unreachable

91:                                               ; preds = %79
  call void @_verify(ptr noundef nonnull %1, i64 noundef -1, i64 noundef %84, double noundef -1.000000e+00, i64 noundef %.091.lcssa, ptr noundef %27)
  %92 = add nuw nsw i32 %.4124, 1
  %exitcond145.not = icmp eq i32 %92, 1000
  br i1 %exitcond145.not, label %93, label %79, !llvm.loop !27

93:                                               ; preds = %91
  %94 = load ptr, ptr @stderr, align 8, !tbaa !5
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef nonnull @.str.17) #8
  %96 = load ptr, ptr @stderr, align 8, !tbaa !5
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef nonnull @.str.20, double noundef %25) #8
  %.pre159 = load ptr, ptr @stderr, align 8, !tbaa !5
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.pre159, ptr noundef nonnull @.str.19, i32 noundef 0, i64 noundef 0) #8
  %99 = call i32 @ov_pcm_seek(ptr noundef nonnull %1, i64 noundef 0) #7
  %100 = icmp slt i32 %99, 0
  br i1 %100, label %.loopexit153, label %101

101:                                              ; preds = %93
  %102 = call i64 @ov_pcm_tell(ptr noundef nonnull %1) #7
  %.not103.peel = icmp eq i64 %102, 0
  br i1 %.not103.peel, label %.peel.next150, label %.loopexit154

.peel.next150:                                    ; preds = %101
  call void @_verify(ptr noundef nonnull %1, i64 noundef -1, i64 noundef 0, double noundef -1.000000e+00, i64 noundef %.091.lcssa, ptr noundef %27)
  br label %103

103:                                              ; preds = %.peel.next150, %120
  %.5125 = phi i32 [ 1, %.peel.next150 ], [ %121, %120 ]
  %104 = call i32 @rand() #7
  %105 = sitofp i32 %104 to double
  %106 = fdiv double %105, 0x41DFFFFFFFC00000
  %107 = fmul double %106, %75
  %108 = fptosi double %107 to i64
  %109 = load ptr, ptr @stderr, align 8, !tbaa !5
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef nonnull @.str.19, i32 noundef %.5125, i64 noundef %108) #8
  %111 = call i32 @ov_pcm_seek(ptr noundef nonnull %1, i64 noundef %108) #7
  %112 = icmp slt i32 %111, 0
  br i1 %112, label %.loopexit153, label %115

.loopexit153:                                     ; preds = %103, %93
  %.lcssa135 = phi i32 [ %99, %93 ], [ %111, %103 ]
  %113 = load ptr, ptr @stderr, align 8, !tbaa !5
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %113, ptr noundef nonnull @.str.16, i32 noundef %.lcssa135) #8
  call void @exit(i32 noundef 1) #9
  unreachable

115:                                              ; preds = %103
  %116 = call i64 @ov_pcm_tell(ptr noundef nonnull %1) #7
  %.not103 = icmp eq i64 %116, %108
  br i1 %.not103, label %120, label %.loopexit154

.loopexit154:                                     ; preds = %115, %101
  %.lcssa139 = phi i64 [ 0, %101 ], [ %108, %115 ]
  %117 = load ptr, ptr @stderr, align 8, !tbaa !5
  %118 = call i64 @ov_pcm_tell(ptr noundef nonnull %1) #7
  %119 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef nonnull @.str.21, i64 noundef %.lcssa139, i64 noundef %118) #8
  call void @exit(i32 noundef 1) #9
  unreachable

120:                                              ; preds = %115
  call void @_verify(ptr noundef nonnull %1, i64 noundef -1, i64 noundef %108, double noundef -1.000000e+00, i64 noundef %.091.lcssa, ptr noundef %27)
  %121 = add nuw nsw i32 %.5125, 1
  %exitcond148.not = icmp eq i32 %121, 1000
  br i1 %exitcond148.not, label %.loopexit155, label %103, !llvm.loop !29

.loopexit155:                                     ; preds = %120
  %122 = load ptr, ptr @stderr, align 8, !tbaa !5
  %123 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.17) #8
  %124 = load ptr, ptr @stderr, align 8, !tbaa !5
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %124, ptr noundef nonnull @.str.22, double noundef %25) #8
  br label %126

126:                                              ; preds = %.loopexit155, %138
  %.6126 = phi i32 [ 0, %.loopexit155 ], [ %139, %138 ]
  %127 = call i32 @rand() #7
  %128 = sitofp i32 %127 to double
  %129 = fdiv double %128, 0x41DFFFFFFFC00000
  %130 = fmul double %25, %129
  %131 = load ptr, ptr @stderr, align 8, !tbaa !5
  %132 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.23, i32 noundef %.6126, double noundef %130) #8
  %133 = call i32 @ov_time_seek_page(ptr noundef nonnull %1, double noundef %130) #7
  %134 = icmp slt i32 %133, 0
  br i1 %134, label %135, label %138

135:                                              ; preds = %126
  %136 = load ptr, ptr @stderr, align 8, !tbaa !5
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef nonnull @.str.16, i32 noundef %133) #8
  call void @exit(i32 noundef 1) #9
  unreachable

138:                                              ; preds = %126
  call void @_verify(ptr noundef nonnull %1, i64 noundef -1, i64 noundef -1, double noundef %130, i64 noundef %.091.lcssa, ptr noundef %27)
  %139 = add nuw nsw i32 %.6126, 1
  %exitcond156.not = icmp eq i32 %139, 1000
  br i1 %exitcond156.not, label %140, label %126, !llvm.loop !30

140:                                              ; preds = %138
  %141 = load ptr, ptr @stderr, align 8, !tbaa !5
  %142 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %141, ptr noundef nonnull @.str.17) #8
  %143 = load ptr, ptr @stderr, align 8, !tbaa !5
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %143, ptr noundef nonnull @.str.24, double noundef %25) #8
  br label %145

145:                                              ; preds = %140, %169
  %.7127 = phi i32 [ 0, %140 ], [ %170, %169 ]
  %146 = call i32 @rand() #7
  %147 = sitofp i32 %146 to double
  %148 = fdiv double %147, 0x41DFFFFFFFC00000
  %149 = fmul double %25, %148
  %150 = load ptr, ptr @stderr, align 8, !tbaa !5
  %151 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %150, ptr noundef nonnull @.str.23, i32 noundef %.7127, double noundef %149) #8
  %152 = call i32 @ov_time_seek(ptr noundef nonnull %1, double noundef %149) #7
  %153 = icmp slt i32 %152, 0
  br i1 %153, label %154, label %157

154:                                              ; preds = %145
  %155 = load ptr, ptr @stderr, align 8, !tbaa !5
  %156 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %155, ptr noundef nonnull @.str.16, i32 noundef %152) #8
  call void @exit(i32 noundef 1) #9
  unreachable

157:                                              ; preds = %145
  %158 = call double @ov_time_tell(ptr noundef nonnull %1) #7
  %159 = fadd double %149, -1.000000e+00
  %160 = fcmp olt double %158, %159
  br i1 %160, label %165, label %161

161:                                              ; preds = %157
  %162 = call double @ov_time_tell(ptr noundef nonnull %1) #7
  %163 = fadd double %149, 1.000000e+00
  %164 = fcmp ogt double %162, %163
  br i1 %164, label %165, label %169

165:                                              ; preds = %161, %157
  %166 = load ptr, ptr @stderr, align 8, !tbaa !5
  %167 = call double @ov_time_tell(ptr noundef nonnull %1) #7
  %168 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %166, ptr noundef nonnull @.str.25, double noundef %149, double noundef %167) #8
  call void @exit(i32 noundef 1) #9
  unreachable

169:                                              ; preds = %161
  call void @_verify(ptr noundef nonnull %1, i64 noundef -1, i64 noundef -1, double noundef %149, i64 noundef %.091.lcssa, ptr noundef %27)
  %170 = add nuw nsw i32 %.7127, 1
  %exitcond157.not = icmp eq i32 %170, 1000
  br i1 %exitcond157.not, label %.loopexit179, label %145, !llvm.loop !31

.loopexit179:                                     ; preds = %169, %9
  %.str.27.sink = phi ptr [ @.str.27, %9 ], [ @.str.26, %169 ]
  %171 = load ptr, ptr @stderr, align 8, !tbaa !5
  %172 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %171, ptr noundef nonnull %.str.27.sink) #8
  %173 = call i32 @ov_clear(ptr noundef nonnull %1) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 944, ptr nonnull %1) #7
  ret i32 0
}

declare i32 @ov_open_callbacks(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef byval(%struct.ov_callbacks) align 8) local_unnamed_addr #4

declare i64 @ov_seekable(ptr noundef) local_unnamed_addr #4

declare ptr @ov_info(ptr noundef, i32 noundef) local_unnamed_addr #4

declare i64 @ov_pcm_total(ptr noundef, i32 noundef) local_unnamed_addr #4

declare double @ov_time_total(ptr noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #5

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #6

declare i32 @ov_raw_seek(ptr noundef, i64 noundef) local_unnamed_addr #4

declare i32 @ov_pcm_seek_page(ptr noundef, i64 noundef) local_unnamed_addr #4

declare i32 @ov_pcm_seek(ptr noundef, i64 noundef) local_unnamed_addr #4

declare i32 @ov_time_seek_page(ptr noundef, double noundef) local_unnamed_addr #4

declare i32 @ov_time_seek(ptr noundef, double noundef) local_unnamed_addr #4

declare i32 @ov_clear(ptr noundef) local_unnamed_addr #4

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 = { 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 #3 = { 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 #4 = { "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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 "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 #7 = { nounwind }
attributes #8 = { cold nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { nounwind allocsize(0) }

!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, !11, i64 64}
!10 = !{!"OggVorbis_File", !6, i64 0, !11, i64 8, !12, i64 16, !12, i64 24, !13, i64 32, !11, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !12, i64 120, !11, i64 128, !12, i64 136, !11, i64 144, !14, i64 152, !14, i64 160, !15, i64 168, !16, i64 576, !17, i64 720, !19, i64 912}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28}
!14 = !{!"double", !7, i64 0}
!15 = !{!"", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !6, i64 32, !6, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !7, i64 80, !11, i64 364, !11, i64 368, !11, i64 372, !12, i64 376, !12, i64 384, !12, i64 392, !12, i64 400}
!16 = !{!"vorbis_dsp_state", !11, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !6, i64 136}
!17 = !{!"vorbis_block", !6, i64 0, !18, i64 8, !12, i64 48, !12, i64 56, !12, i64 64, !11, i64 72, !11, i64 76, !11, i64 80, !12, i64 88, !12, i64 96, !6, i64 104, !6, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !6, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !6, i64 184}
!18 = !{!"", !12, i64 0, !11, i64 8, !6, i64 16, !6, i64 24, !12, i64 32}
!19 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!23, !11, i64 4}
!23 = !{!"vorbis_info", !11, i64 0, !11, i64 4, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !6, i64 48}
!24 = distinct !{!24, !21}
!25 = !{!10, !12, i64 24}
!26 = distinct !{!26, !21}
!27 = distinct !{!27, !21, !28}
!28 = !{!"llvm.loop.peeled.count", i32 1}
!29 = distinct !{!29, !21, !28}
!30 = distinct !{!30, !21}
!31 = distinct !{!31, !21}


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