; LLVM IR from vertver/Fresponze-old :: modules/opus/tests (test_opus_encode)

; 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 = external hidden unnamed_addr constant [93 x i8], align 1
@stderr = external global ptr, align 8
@.str.18 = external hidden unnamed_addr constant [5 x i8], align 1
@iseed = external hidden global i32, align 4
@Rz = external hidden global i32, align 4
@Rw = external hidden global i32, align 4
@.str.19 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [31 x i8], align 1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @fast_rand() #1

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

; Function Attrs: inlinehint noreturn nounwind uwtable
declare hidden void @_test_failed(ptr noundef, i32 noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @fuzz_encoder_settings(i32 noundef, i32 noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local i32 @run_test1(i32 noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local void @print_usage(ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #4 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = 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) #8
  store i32 1, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  store ptr null, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 5, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 40, ptr %12, align 4, !tbaa !5
  store i32 0, ptr %10, align 4, !tbaa !5
  %14 = call ptr @getenv(ptr noundef @.str.18) #8
  store ptr %14, ptr %9, align 8, !tbaa !9
  %15 = load i32, ptr %4, align 4, !tbaa !5
  %16 = icmp sgt i32 %15, 1
  br i1 %16, label %17, label %23

17:                                               ; preds = %2
  %18 = load ptr, ptr %5, align 8, !tbaa !9
  %19 = getelementptr inbounds ptr, ptr %18, i64 1
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %21 = call i64 @strtol(ptr noundef %20, ptr noundef %7, i32 noundef 10) #8
  %22 = trunc i64 %21 to i32
  store i32 %22, ptr @iseed, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %17, %2
  %24 = load ptr, ptr %7, align 8, !tbaa !9
  %25 = icmp ne ptr %24, null
  br i1 %25, label %26, label %35

26:                                               ; preds = %23
  %27 = load ptr, ptr %7, align 8, !tbaa !9
  %28 = getelementptr inbounds i8, ptr %27, i64 0
  %29 = load i8, ptr %28, align 1, !tbaa !11
  %30 = sext i8 %29 to i32
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %35

32:                                               ; preds = %26
  %33 = load i32, ptr %6, align 4, !tbaa !5
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %6, align 4, !tbaa !5
  br label %49

35:                                               ; preds = %26, %23
  %36 = load ptr, ptr %9, align 8, !tbaa !9
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %41

38:                                               ; preds = %35
  %39 = load ptr, ptr %9, align 8, !tbaa !9
  %40 = call i32 @atoi(ptr noundef %39) #9
  store i32 %40, ptr @iseed, align 4, !tbaa !5
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %48

41:                                               ; preds = %35
  %42 = call i64 @time(ptr noundef null) #8
  %43 = trunc i64 %42 to i32
  %44 = call i32 @getpid() #8
  %45 = and i32 %44, 65535
  %46 = shl i32 %45, 16
  %47 = xor i32 %43, %46
  store i32 %47, ptr @iseed, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %41, %38
  br label %49

49:                                               ; preds = %48, %32
  %50 = load i32, ptr @iseed, align 4, !tbaa !5
  store i32 %50, ptr @Rz, align 4, !tbaa !5
  store i32 %50, ptr @Rw, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %111, %49
  %52 = load i32, ptr %6, align 4, !tbaa !5
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %55, label %112

55:                                               ; preds = %51
  %56 = load ptr, ptr %5, align 8, !tbaa !9
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds ptr, ptr %56, i64 %58
  %60 = load ptr, ptr %59, align 8, !tbaa !9
  %61 = call i32 @strcmp(ptr noundef %60, ptr noundef @.str.19) #9
  %62 = icmp eq i32 %61, 0
  br i1 %62, label %63, label %109

63:                                               ; preds = %55
  %64 = load i32, ptr %4, align 4, !tbaa !5
  %65 = load i32, ptr %6, align 4, !tbaa !5
  %66 = add nsw i32 %65, 3
  %67 = icmp eq i32 %64, %66
  br i1 %67, label %68, label %109

68:                                               ; preds = %63
  %69 = load ptr, ptr %5, align 8, !tbaa !9
  %70 = load i32, ptr %6, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds ptr, ptr %69, i64 %72
  %74 = load ptr, ptr %73, align 8, !tbaa !9
  %75 = call i64 @strtol(ptr noundef %74, ptr noundef %7, i32 noundef 10) #8
  %76 = trunc i64 %75 to i32
  store i32 %76, ptr %11, align 4, !tbaa !5
  %77 = load ptr, ptr %7, align 8, !tbaa !9
  %78 = getelementptr inbounds i8, ptr %77, i64 0
  %79 = load i8, ptr %78, align 1, !tbaa !11
  %80 = sext i8 %79 to i32
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %85, label %82

82:                                               ; preds = %68
  %83 = load i32, ptr %11, align 4, !tbaa !5
  %84 = icmp sle i32 %83, 0
  br i1 %84, label %85, label %87

85:                                               ; preds = %82, %68
  %86 = load ptr, ptr %5, align 8, !tbaa !9
  call void @print_usage(ptr noundef %86)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %147

87:                                               ; preds = %82
  %88 = load ptr, ptr %5, align 8, !tbaa !9
  %89 = load i32, ptr %6, align 4, !tbaa !5
  %90 = add nsw i32 %89, 2
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds ptr, ptr %88, i64 %91
  %93 = load ptr, ptr %92, align 8, !tbaa !9
  %94 = call i64 @strtol(ptr noundef %93, ptr noundef %7, i32 noundef 10) #8
  %95 = trunc i64 %94 to i32
  store i32 %95, ptr %12, align 4, !tbaa !5
  %96 = load ptr, ptr %7, align 8, !tbaa !9
  %97 = getelementptr inbounds i8, ptr %96, i64 0
  %98 = load i8, ptr %97, align 1, !tbaa !11
  %99 = sext i8 %98 to i32
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %104, label %101

101:                                              ; preds = %87
  %102 = load i32, ptr %12, align 4, !tbaa !5
  %103 = icmp sle i32 %102, 0
  br i1 %103, label %104, label %106

104:                                              ; preds = %101, %87
  %105 = load ptr, ptr %5, align 8, !tbaa !9
  call void @print_usage(ptr noundef %105)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %147

106:                                              ; preds = %101
  %107 = load i32, ptr %6, align 4, !tbaa !5
  %108 = add nsw i32 %107, 3
  store i32 %108, ptr %6, align 4, !tbaa !5
  br label %111

109:                                              ; preds = %63, %55
  %110 = load ptr, ptr %5, align 8, !tbaa !9
  call void @print_usage(ptr noundef %110)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %147

111:                                              ; preds = %106
  br label %51, !llvm.loop !12

112:                                              ; preds = %51
  %113 = call ptr @opus_get_version_string()
  store ptr %113, ptr %8, align 8, !tbaa !9
  %114 = load ptr, ptr %8, align 8, !tbaa !9
  %115 = icmp ne ptr %114, null
  br i1 %115, label %117, label %116

116:                                              ; preds = %112
  call void @_test_failed(ptr noundef @.str, i32 noundef 682) #10
  unreachable

117:                                              ; preds = %112
  %118 = load ptr, ptr @stderr, align 8, !tbaa !9
  %119 = load ptr, ptr %8, align 8, !tbaa !9
  %120 = load i32, ptr @iseed, align 4, !tbaa !5
  %121 = call i32 @fast_rand()
  %122 = urem i32 %121, 65535
  %123 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %118, ptr noundef @.str.20, ptr noundef %119, i32 noundef %120, i32 noundef %122) #8
  %124 = load i32, ptr %10, align 4, !tbaa !5
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %126, label %130

126:                                              ; preds = %117
  %127 = load ptr, ptr @stderr, align 8, !tbaa !9
  %128 = load ptr, ptr %9, align 8, !tbaa !9
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %127, ptr noundef @.str.21, ptr noundef %128) #8
  br label %130

130:                                              ; preds = %126, %117
  call void @regression_test()
  %131 = call ptr @getenv(ptr noundef @.str.22) #8
  %132 = icmp ne ptr %131, null
  %133 = zext i1 %132 to i32
  %134 = call i32 @run_test1(i32 noundef %133)
  %135 = call ptr @getenv(ptr noundef @.str.22) #8
  %136 = icmp eq ptr %135, null
  br i1 %136, label %137, label %144

137:                                              ; preds = %130
  %138 = load ptr, ptr @stderr, align 8, !tbaa !9
  %139 = load i32, ptr %11, align 4, !tbaa !5
  %140 = load i32, ptr %12, align 4, !tbaa !5
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef @.str.23, i32 noundef %139, i32 noundef %140) #8
  %142 = load i32, ptr %11, align 4, !tbaa !5
  %143 = load i32, ptr %12, align 4, !tbaa !5
  call void @fuzz_encoder_settings(i32 noundef %142, i32 noundef %143)
  br label %144

144:                                              ; preds = %137, %130
  %145 = load ptr, ptr @stderr, align 8, !tbaa !9
  %146 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %145, ptr noundef @.str.24) #8
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %147

147:                                              ; preds = %144, %109, %104, %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  %148 = load i32, ptr %3, align 4
  ret i32 %148
}

; Function Attrs: nounwind
declare ptr @getenv(ptr noundef) #3

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

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

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #3

; Function Attrs: nounwind
declare i32 @getpid() #3

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #6

declare ptr @opus_get_version_string() #7

declare void @regression_test() #7

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 #2 = { inlinehint noreturn 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 #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind 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 = { 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 #6 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { "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 #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { noreturn }

!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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [93 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.18 = external hidden unnamed_addr constant [5 x i8], align 1
@iseed = external hidden local_unnamed_addr global i32, align 4
@Rz = external hidden local_unnamed_addr global i32, align 4
@Rw = external hidden local_unnamed_addr global i32, align 4
@.str.19 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [31 x i8], align 1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @fast_rand() local_unnamed_addr #1

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

; Function Attrs: inlinehint noreturn nounwind uwtable
declare hidden void @_test_failed(ptr noundef, i32 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: nounwind uwtable
declare dso_local void @fuzz_encoder_settings(i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local i32 @run_test1(i32 noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local void @print_usage(ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #4 {
  %3 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #11
  store ptr null, ptr %3, align 8, !tbaa !5
  %4 = tail call ptr @getenv(ptr noundef nonnull @.str.18) #11
  %5 = icmp sgt i32 %0, 1
  br i1 %5, label %6, label %.thread

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = call i64 @strtol(ptr noundef %8, ptr noundef nonnull %3, i32 noundef 10) #11
  %10 = trunc i64 %9 to i32
  store i32 %10, ptr @iseed, align 4, !tbaa !9
  %.pr = load ptr, ptr %3, align 8, !tbaa !5
  %.not = icmp eq ptr %.pr, null
  br i1 %.not, label %.thread, label %11

11:                                               ; preds = %6
  %12 = load i8, ptr %.pr, align 1, !tbaa !11
  %13 = icmp eq i8 %12, 0
  br i1 %13, label %22, label %.thread

.thread:                                          ; preds = %2, %11, %6
  %.not43 = icmp eq ptr %4, null
  br i1 %.not43, label %16, label %14

14:                                               ; preds = %.thread
  %15 = tail call i32 @atoi(ptr nocapture noundef %4) #12
  br label %.sink.split

16:                                               ; preds = %.thread
  %17 = tail call i64 @time(ptr noundef null) #11
  %18 = trunc i64 %17 to i32
  %19 = tail call i32 @getpid() #11
  %20 = shl i32 %19, 16
  %21 = xor i32 %20, %18
  br label %.sink.split

.sink.split:                                      ; preds = %16, %14
  %.sink = phi i32 [ %15, %14 ], [ %21, %16 ]
  store i32 %.sink, ptr @iseed, align 4, !tbaa !9
  br label %22

22:                                               ; preds = %.sink.split, %11
  %23 = phi i32 [ %10, %11 ], [ %.sink, %.sink.split ]
  %.035 = phi i32 [ 2, %11 ], [ 1, %.sink.split ]
  %.not45 = phi i1 [ true, %11 ], [ %.not43, %.sink.split ]
  store i32 %23, ptr @Rz, align 4, !tbaa !9
  store i32 %23, ptr @Rw, align 4, !tbaa !9
  %24 = icmp slt i32 %.035, %0
  br i1 %24, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %22
  %25 = zext nneg i32 %.035 to i64
  %26 = zext nneg i32 %0 to i64
  %27 = getelementptr inbounds ptr, ptr %1, i64 %25
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  %29 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %28, ptr noundef nonnull dereferenceable(1) @.str.19) #12
  %30 = icmp eq i32 %29, 0
  %indvars.iv.next = add nuw nsw i64 %25, 3
  %31 = icmp eq i64 %indvars.iv.next, %26
  %or.cond60 = select i1 %30, i1 %31, i1 false
  br i1 %or.cond60, label %32, label %52

32:                                               ; preds = %.lr.ph
  %33 = getelementptr inbounds i8, ptr %27, i64 8
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  %35 = call i64 @strtol(ptr noundef %34, ptr noundef nonnull %3, i32 noundef 10) #11
  %36 = trunc i64 %35 to i32
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = load i8, ptr %37, align 1, !tbaa !11
  %39 = icmp ne i8 %38, 0
  %40 = icmp slt i32 %36, 1
  %or.cond = select i1 %39, i1 true, i1 %40
  br i1 %or.cond, label %41, label %42

41:                                               ; preds = %32
  tail call void @print_usage(ptr noundef nonnull %1)
  br label %77

42:                                               ; preds = %32
  %43 = getelementptr inbounds i8, ptr %27, i64 16
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  %45 = call i64 @strtol(ptr noundef %44, ptr noundef nonnull %3, i32 noundef 10) #11
  %46 = trunc i64 %45 to i32
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = load i8, ptr %47, align 1, !tbaa !11
  %49 = icmp ne i8 %48, 0
  %50 = icmp slt i32 %46, 1
  %or.cond3 = select i1 %49, i1 true, i1 %50
  br i1 %or.cond3, label %51, label %._crit_edge, !llvm.loop !12

51:                                               ; preds = %42
  tail call void @print_usage(ptr noundef nonnull %1)
  br label %77

52:                                               ; preds = %.lr.ph
  tail call void @print_usage(ptr noundef nonnull %1)
  br label %77

._crit_edge:                                      ; preds = %42, %22
  %.032.lcssa = phi i32 [ 5, %22 ], [ %36, %42 ]
  %.0.lcssa = phi i32 [ 40, %22 ], [ %46, %42 ]
  %53 = tail call ptr @opus_get_version_string() #11
  %.not44 = icmp eq ptr %53, null
  br i1 %.not44, label %54, label %55

54:                                               ; preds = %._crit_edge
  tail call void @_test_failed(ptr noundef nonnull @.str, i32 noundef 682) #13
  unreachable

55:                                               ; preds = %._crit_edge
  %56 = load ptr, ptr @stderr, align 8, !tbaa !5
  %57 = load i32, ptr @iseed, align 4, !tbaa !9
  %58 = tail call i32 @fast_rand()
  %59 = urem i32 %58, 65535
  %60 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.20, ptr noundef nonnull %53, i32 noundef %57, i32 noundef %59) #14
  br i1 %.not45, label %64, label %61

61:                                               ; preds = %55
  %62 = load ptr, ptr @stderr, align 8, !tbaa !5
  %63 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef nonnull @.str.21, ptr noundef %4) #14
  br label %64

64:                                               ; preds = %61, %55
  tail call void @regression_test() #11
  %65 = tail call ptr @getenv(ptr noundef nonnull @.str.22) #11
  %66 = icmp ne ptr %65, null
  %67 = zext i1 %66 to i32
  %68 = tail call i32 @run_test1(i32 noundef %67)
  %69 = tail call ptr @getenv(ptr noundef nonnull @.str.22) #11
  %70 = icmp eq ptr %69, null
  br i1 %70, label %71, label %74

71:                                               ; preds = %64
  %72 = load ptr, ptr @stderr, align 8, !tbaa !5
  %73 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef nonnull @.str.23, i32 noundef %.032.lcssa, i32 noundef %.0.lcssa) #14
  tail call void @fuzz_encoder_settings(i32 noundef %.032.lcssa, i32 noundef %.0.lcssa)
  br label %74

74:                                               ; preds = %71, %64
  %75 = load ptr, ptr @stderr, align 8, !tbaa !5
  %76 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.24) #14
  br label %77

77:                                               ; preds = %74, %52, %51, %41
  %.034 = phi i32 [ 1, %41 ], [ 1, %51 ], [ 1, %52 ], [ 0, %74 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #11
  ret i32 %.034
}

; Function Attrs: nofree nounwind memory(read)
declare noundef ptr @getenv(ptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nounwind willreturn
declare i64 @strtol(ptr noundef readonly, ptr nocapture noundef, i32 noundef) local_unnamed_addr #6

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

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #8

; Function Attrs: nounwind
declare i32 @getpid() local_unnamed_addr #8

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #9

declare ptr @opus_get_version_string() local_unnamed_addr #10

declare void @regression_test() local_unnamed_addr #10

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass