; LLVM IR from charcole/Z3 :: bios (compressicon)

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

@header_data_cmap = external hidden global [256 x [3 x i8]], align 16
@header_data = external hidden global [48000 x i8], align 16
@.str = external hidden unnamed_addr constant [38 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

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

18:                                               ; preds = %21, %2
  %19 = load i32, ptr %9, align 4, !tbaa !5
  %20 = icmp slt i32 %19, 320
  br i1 %20, label %21, label %38

21:                                               ; preds = %18
  %22 = load ptr, ptr %7, align 8, !tbaa !9
  %23 = getelementptr inbounds i8, ptr %22, i32 1
  store ptr %23, ptr %7, align 8, !tbaa !9
  store i8 0, ptr %22, align 1, !tbaa !11
  %24 = load i32, ptr %9, align 4, !tbaa !5
  %25 = sitofp i32 %24 to float
  %26 = fsub float 1.600000e+02, %25
  %27 = call float @llvm.fabs.f32(float %26)
  %28 = fsub float 1.600000e+02, %27
  %29 = fmul float 0x3FF91EB860000000, %28
  %30 = fdiv float %29, 1.600000e+02
  %31 = call float @sinf(float noundef %30) #6
  %32 = fmul float 4.500000e+01, %31
  %33 = fptosi float %32 to i8
  %34 = load ptr, ptr %7, align 8, !tbaa !9
  %35 = getelementptr inbounds i8, ptr %34, i32 1
  store ptr %35, ptr %7, align 8, !tbaa !9
  store i8 %33, ptr %34, align 1, !tbaa !11
  %36 = load i32, ptr %9, align 4, !tbaa !5
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %9, align 4, !tbaa !5
  br label %18, !llvm.loop !12

38:                                               ; preds = %18
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %42, %38
  %40 = load i32, ptr %9, align 4, !tbaa !5
  %41 = icmp slt i32 %40, 128
  br i1 %41, label %42, label %81

42:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  %43 = load i32, ptr %9, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [256 x [3 x i8]], ptr @header_data_cmap, i64 0, i64 %44
  %46 = getelementptr inbounds [3 x i8], ptr %45, i64 0, i64 0
  %47 = load i8, ptr %46, align 1, !tbaa !11
  store i8 %47, ptr %10, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  %48 = load i32, ptr %9, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [256 x [3 x i8]], ptr @header_data_cmap, i64 0, i64 %49
  %51 = getelementptr inbounds [3 x i8], ptr %50, i64 0, i64 1
  %52 = load i8, ptr %51, align 1, !tbaa !11
  store i8 %52, ptr %11, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  %53 = load i32, ptr %9, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [256 x [3 x i8]], ptr @header_data_cmap, i64 0, i64 %54
  %56 = getelementptr inbounds [3 x i8], ptr %55, i64 0, i64 2
  %57 = load i8, ptr %56, align 1, !tbaa !11
  store i8 %57, ptr %12, align 1, !tbaa !11
  %58 = load i8, ptr %10, align 1, !tbaa !11
  %59 = zext i8 %58 to i32
  %60 = and i32 %59, 248
  %61 = load i8, ptr %11, align 1, !tbaa !11
  %62 = zext i8 %61 to i32
  %63 = ashr i32 %62, 5
  %64 = or i32 %60, %63
  %65 = trunc i32 %64 to i8
  %66 = load ptr, ptr %7, align 8, !tbaa !9
  %67 = getelementptr inbounds i8, ptr %66, i32 1
  store ptr %67, ptr %7, align 8, !tbaa !9
  store i8 %65, ptr %66, align 1, !tbaa !11
  %68 = load i8, ptr %11, align 1, !tbaa !11
  %69 = zext i8 %68 to i32
  %70 = shl i32 %69, 3
  %71 = and i32 %70, 224
  %72 = load i8, ptr %12, align 1, !tbaa !11
  %73 = zext i8 %72 to i32
  %74 = ashr i32 %73, 3
  %75 = or i32 %71, %74
  %76 = trunc i32 %75 to i8
  %77 = load ptr, ptr %7, align 8, !tbaa !9
  %78 = getelementptr inbounds i8, ptr %77, i32 1
  store ptr %78, ptr %7, align 8, !tbaa !9
  store i8 %76, ptr %77, align 1, !tbaa !11
  %79 = load i32, ptr %9, align 4, !tbaa !5
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  br label %39, !llvm.loop !14

81:                                               ; preds = %39
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %82

82:                                               ; preds = %165, %81
  %83 = load i32, ptr %9, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = icmp ult i64 %84, 48000
  br i1 %85, label %86, label %166

86:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  %87 = load i32, ptr %9, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [48000 x i8], ptr @header_data, i64 0, i64 %88
  %90 = load i8, ptr %89, align 1, !tbaa !11
  store i8 %90, ptr %13, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %91 = load i32, ptr %9, align 4, !tbaa !5
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 1, ptr %15, align 4, !tbaa !5
  br label %93

93:                                               ; preds = %108, %86
  %94 = load i32, ptr %14, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = icmp ult i64 %95, 48000
  br i1 %96, label %97, label %106

97:                                               ; preds = %93
  %98 = load i32, ptr %14, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [48000 x i8], ptr @header_data, i64 0, i64 %99
  %101 = load i8, ptr %100, align 1, !tbaa !11
  %102 = sext i8 %101 to i32
  %103 = load i8, ptr %13, align 1, !tbaa !11
  %104 = sext i8 %103 to i32
  %105 = icmp eq i32 %102, %104
  br label %106

106:                                              ; preds = %97, %93
  %107 = phi i1 [ false, %93 ], [ %105, %97 ]
  br i1 %107, label %108, label %113

108:                                              ; preds = %106
  %109 = load i32, ptr %15, align 4, !tbaa !5
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %15, align 4, !tbaa !5
  %111 = load i32, ptr %14, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %14, align 4, !tbaa !5
  br label %93, !llvm.loop !15

113:                                              ; preds = %106
  %114 = load i32, ptr %15, align 4, !tbaa !5
  %115 = load i32, ptr %9, align 4, !tbaa !5
  %116 = add nsw i32 %115, %114
  store i32 %116, ptr %9, align 4, !tbaa !5
  %117 = load i32, ptr %15, align 4, !tbaa !5
  %118 = icmp eq i32 %117, 1
  br i1 %118, label %119, label %123

119:                                              ; preds = %113
  %120 = load i8, ptr %13, align 1, !tbaa !11
  %121 = load ptr, ptr %7, align 8, !tbaa !9
  %122 = getelementptr inbounds i8, ptr %121, i32 1
  store ptr %122, ptr %7, align 8, !tbaa !9
  store i8 %120, ptr %121, align 1, !tbaa !11
  br label %165

123:                                              ; preds = %113
  %124 = load i32, ptr %15, align 4, !tbaa !5
  %125 = icmp eq i32 %124, 2
  br i1 %125, label %126, label %133

126:                                              ; preds = %123
  %127 = load i8, ptr %13, align 1, !tbaa !11
  %128 = load ptr, ptr %7, align 8, !tbaa !9
  %129 = getelementptr inbounds i8, ptr %128, i32 1
  store ptr %129, ptr %7, align 8, !tbaa !9
  store i8 %127, ptr %128, align 1, !tbaa !11
  %130 = load i8, ptr %13, align 1, !tbaa !11
  %131 = load ptr, ptr %7, align 8, !tbaa !9
  %132 = getelementptr inbounds i8, ptr %131, i32 1
  store ptr %132, ptr %7, align 8, !tbaa !9
  store i8 %130, ptr %131, align 1, !tbaa !11
  br label %164

133:                                              ; preds = %123
  br label %134

134:                                              ; preds = %159, %133
  %135 = load i32, ptr %15, align 4, !tbaa !5
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %137, label %163

137:                                              ; preds = %134
  %138 = load i8, ptr %13, align 1, !tbaa !11
  %139 = sext i8 %138 to i32
  %140 = or i32 %139, 128
  %141 = trunc i32 %140 to i8
  %142 = load ptr, ptr %7, align 8, !tbaa !9
  %143 = getelementptr inbounds i8, ptr %142, i32 1
  store ptr %143, ptr %7, align 8, !tbaa !9
  store i8 %141, ptr %142, align 1, !tbaa !11
  %144 = load i32, ptr %15, align 4, !tbaa !5
  %145 = icmp slt i32 255, %144
  br i1 %145, label %146, label %147

146:                                              ; preds = %137
  br label %149

147:                                              ; preds = %137
  %148 = load i32, ptr %15, align 4, !tbaa !5
  br label %149

149:                                              ; preds = %147, %146
  %150 = phi i32 [ 255, %146 ], [ %148, %147 ]
  %151 = trunc i32 %150 to i8
  %152 = load ptr, ptr %7, align 8, !tbaa !9
  %153 = getelementptr inbounds i8, ptr %152, i32 1
  store ptr %153, ptr %7, align 8, !tbaa !9
  store i8 %151, ptr %152, align 1, !tbaa !11
  %154 = load i32, ptr %15, align 4, !tbaa !5
  %155 = icmp slt i32 255, %154
  br i1 %155, label %156, label %157

156:                                              ; preds = %149
  br label %159

157:                                              ; preds = %149
  %158 = load i32, ptr %15, align 4, !tbaa !5
  br label %159

159:                                              ; preds = %157, %156
  %160 = phi i32 [ 255, %156 ], [ %158, %157 ]
  %161 = load i32, ptr %15, align 4, !tbaa !5
  %162 = sub nsw i32 %161, %160
  store i32 %162, ptr %15, align 4, !tbaa !5
  br label %134, !llvm.loop !16

163:                                              ; preds = %134
  br label %164

164:                                              ; preds = %163, %126
  br label %165

165:                                              ; preds = %164, %119
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  br label %82, !llvm.loop !17

166:                                              ; preds = %82
  %167 = load ptr, ptr %7, align 8, !tbaa !9
  %168 = load ptr, ptr %6, align 8, !tbaa !9
  %169 = ptrtoint ptr %167 to i64
  %170 = ptrtoint ptr %168 to i64
  %171 = sub i64 %169, %170
  %172 = trunc i64 %171 to i32
  %173 = load ptr, ptr %7, align 8, !tbaa !9
  %174 = load ptr, ptr %6, align 8, !tbaa !9
  %175 = ptrtoint ptr %173 to i64
  %176 = ptrtoint ptr %174 to i64
  %177 = sub i64 %175, %176
  %178 = sitofp i64 %177 to float
  %179 = fmul float 1.000000e+02, %178
  %180 = fdiv float %179, 4.876800e+04
  %181 = fpext float %180 to double
  %182 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 48768, i32 noundef %172, double noundef %181)
  %183 = call noalias ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.2)
  store ptr %183, ptr %8, align 8, !tbaa !9
  %184 = load ptr, ptr %6, align 8, !tbaa !9
  %185 = load ptr, ptr %7, align 8, !tbaa !9
  %186 = load ptr, ptr %6, align 8, !tbaa !9
  %187 = ptrtoint ptr %185 to i64
  %188 = ptrtoint ptr %186 to i64
  %189 = sub i64 %187, %188
  %190 = load ptr, ptr %8, align 8, !tbaa !9
  %191 = call i64 @fwrite(ptr noundef %184, i64 noundef %189, i64 noundef 1, ptr noundef %190)
  %192 = load ptr, ptr %8, align 8, !tbaa !9
  %193 = call i32 @fclose(ptr noundef %192)
  %194 = load ptr, ptr %6, align 8, !tbaa !9
  call void @free(ptr noundef %194) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, 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
  ret i32 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 allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

; Function Attrs: nounwind
declare float @sinf(float noundef) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #4

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

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

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

declare i64 @fwrite(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #5

declare i32 @fclose(ptr noundef) #5

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

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 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { nounwind 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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}


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

@header_data_cmap = external hidden local_unnamed_addr global [256 x [3 x i8]], align 16
@header_data = external hidden local_unnamed_addr global [48000 x i8], align 16
@.str = external hidden unnamed_addr constant [38 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = tail call noalias dereferenceable_or_null(48000) ptr @malloc(i64 noundef 48000) #7
  br label %4

4:                                                ; preds = %2, %4
  %indvar = phi i64 [ 0, %2 ], [ %indvar.next, %4 ]
  %.05464 = phi ptr [ %3, %2 ], [ %15, %4 ]
  %.05663 = phi i32 [ 0, %2 ], [ %16, %4 ]
  %5 = getelementptr inbounds i8, ptr %.05464, i64 1
  store i8 0, ptr %.05464, align 1, !tbaa !5
  %6 = uitofp nneg i32 %.05663 to float
  %7 = fsub float 1.600000e+02, %6
  %8 = tail call float @llvm.fabs.f32(float %7)
  %9 = fsub float 1.600000e+02, %8
  %10 = fmul float %9, 0x3FF91EB860000000
  %11 = fdiv float %10, 1.600000e+02
  %12 = tail call float @sinf(float noundef %11) #8
  %13 = fmul float %12, 4.500000e+01
  %14 = fptosi float %13 to i8
  %15 = getelementptr i8, ptr %.05464, i64 2
  store i8 %14, ptr %5, align 1, !tbaa !5
  %16 = add nuw nsw i32 %.05663, 1
  %exitcond.not = icmp eq i32 %16, 320
  %indvar.next = add i64 %indvar, 1
  br i1 %exitcond.not, label %vector.memcheck, label %4, !llvm.loop !8

vector.memcheck:                                  ; preds = %4
  %17 = shl nuw nsw i64 %indvar, 1
  %18 = getelementptr i8, ptr %3, i64 %17
  %scevgep = getelementptr i8, ptr %18, i64 258
  %bound0 = icmp ult ptr %15, getelementptr inbounds (i8, ptr @header_data_cmap, i64 384)
  %bound1 = icmp ugt ptr %scevgep, @header_data_cmap
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.preheader62, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %ind.end = getelementptr i8, ptr %.05464, i64 258
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %19 = or disjoint i64 %index, 1
  %20 = or disjoint i64 %index, 2
  %21 = or disjoint i64 %index, 3
  %22 = or disjoint i64 %index, 4
  %23 = or disjoint i64 %index, 5
  %24 = or disjoint i64 %index, 6
  %25 = or disjoint i64 %index, 7
  %offset.idx = shl i64 %index, 1
  %next.gep = getelementptr i8, ptr %15, i64 %offset.idx
  %26 = getelementptr inbounds [256 x [3 x i8]], ptr @header_data_cmap, i64 0, i64 %index
  %27 = getelementptr inbounds [256 x [3 x i8]], ptr @header_data_cmap, i64 0, i64 %19
  %28 = getelementptr inbounds [256 x [3 x i8]], ptr @header_data_cmap, i64 0, i64 %20
  %29 = getelementptr inbounds [256 x [3 x i8]], ptr @header_data_cmap, i64 0, i64 %21
  %30 = getelementptr inbounds [256 x [3 x i8]], ptr @header_data_cmap, i64 0, i64 %22
  %31 = getelementptr inbounds [256 x [3 x i8]], ptr @header_data_cmap, i64 0, i64 %23
  %32 = getelementptr inbounds [256 x [3 x i8]], ptr @header_data_cmap, i64 0, i64 %24
  %33 = getelementptr inbounds [256 x [3 x i8]], ptr @header_data_cmap, i64 0, i64 %25
  %34 = load i8, ptr %26, align 8, !tbaa !5, !alias.scope !10
  %35 = load i8, ptr %27, align 1, !tbaa !5, !alias.scope !10
  %36 = load i8, ptr %28, align 2, !tbaa !5, !alias.scope !10
  %37 = load i8, ptr %29, align 1, !tbaa !5, !alias.scope !10
  %38 = load i8, ptr %30, align 4, !tbaa !5, !alias.scope !10
  %39 = load i8, ptr %31, align 1, !tbaa !5, !alias.scope !10
  %40 = load i8, ptr %32, align 2, !tbaa !5, !alias.scope !10
  %41 = load i8, ptr %33, align 1, !tbaa !5, !alias.scope !10
  %42 = insertelement <8 x i8> poison, i8 %34, i64 0
  %43 = insertelement <8 x i8> %42, i8 %35, i64 1
  %44 = insertelement <8 x i8> %43, i8 %36, i64 2
  %45 = insertelement <8 x i8> %44, i8 %37, i64 3
  %46 = insertelement <8 x i8> %45, i8 %38, i64 4
  %47 = insertelement <8 x i8> %46, i8 %39, i64 5
  %48 = insertelement <8 x i8> %47, i8 %40, i64 6
  %49 = insertelement <8 x i8> %48, i8 %41, i64 7
  %50 = getelementptr inbounds i8, ptr %26, i64 1
  %51 = getelementptr inbounds i8, ptr %27, i64 1
  %52 = getelementptr inbounds i8, ptr %28, i64 1
  %53 = getelementptr inbounds i8, ptr %29, i64 1
  %54 = getelementptr inbounds i8, ptr %30, i64 1
  %55 = getelementptr inbounds i8, ptr %31, i64 1
  %56 = getelementptr inbounds i8, ptr %32, i64 1
  %57 = getelementptr inbounds i8, ptr %33, i64 1
  %58 = load i8, ptr %50, align 1, !tbaa !5, !alias.scope !10
  %59 = load i8, ptr %51, align 4, !tbaa !5, !alias.scope !10
  %60 = load i8, ptr %52, align 1, !tbaa !5, !alias.scope !10
  %61 = load i8, ptr %53, align 2, !tbaa !5, !alias.scope !10
  %62 = load i8, ptr %54, align 1, !tbaa !5, !alias.scope !10
  %63 = load i8, ptr %55, align 8, !tbaa !5, !alias.scope !10
  %64 = load i8, ptr %56, align 1, !tbaa !5, !alias.scope !10
  %65 = load i8, ptr %57, align 2, !tbaa !5, !alias.scope !10
  %66 = insertelement <8 x i8> poison, i8 %58, i64 0
  %67 = insertelement <8 x i8> %66, i8 %59, i64 1
  %68 = insertelement <8 x i8> %67, i8 %60, i64 2
  %69 = insertelement <8 x i8> %68, i8 %61, i64 3
  %70 = insertelement <8 x i8> %69, i8 %62, i64 4
  %71 = insertelement <8 x i8> %70, i8 %63, i64 5
  %72 = insertelement <8 x i8> %71, i8 %64, i64 6
  %73 = insertelement <8 x i8> %72, i8 %65, i64 7
  %74 = getelementptr inbounds i8, ptr %26, i64 2
  %75 = getelementptr inbounds i8, ptr %27, i64 2
  %76 = getelementptr inbounds i8, ptr %28, i64 2
  %77 = getelementptr inbounds i8, ptr %29, i64 2
  %78 = getelementptr inbounds i8, ptr %30, i64 2
  %79 = getelementptr inbounds i8, ptr %31, i64 2
  %80 = getelementptr inbounds i8, ptr %32, i64 2
  %81 = getelementptr inbounds i8, ptr %33, i64 2
  %82 = load i8, ptr %74, align 2, !tbaa !5, !alias.scope !10
  %83 = load i8, ptr %75, align 1, !tbaa !5, !alias.scope !10
  %84 = load i8, ptr %76, align 8, !tbaa !5, !alias.scope !10
  %85 = load i8, ptr %77, align 1, !tbaa !5, !alias.scope !10
  %86 = load i8, ptr %78, align 2, !tbaa !5, !alias.scope !10
  %87 = load i8, ptr %79, align 1, !tbaa !5, !alias.scope !10
  %88 = load i8, ptr %80, align 4, !tbaa !5, !alias.scope !10
  %89 = load i8, ptr %81, align 1, !tbaa !5, !alias.scope !10
  %90 = insertelement <8 x i8> poison, i8 %82, i64 0
  %91 = insertelement <8 x i8> %90, i8 %83, i64 1
  %92 = insertelement <8 x i8> %91, i8 %84, i64 2
  %93 = insertelement <8 x i8> %92, i8 %85, i64 3
  %94 = insertelement <8 x i8> %93, i8 %86, i64 4
  %95 = insertelement <8 x i8> %94, i8 %87, i64 5
  %96 = insertelement <8 x i8> %95, i8 %88, i64 6
  %97 = insertelement <8 x i8> %96, i8 %89, i64 7
  %98 = and <8 x i8> %49, <i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8>
  %99 = lshr <8 x i8> %73, <i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5>
  %100 = or disjoint <8 x i8> %99, %98
  %101 = shl <8 x i8> %73, <i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3>
  %102 = and <8 x i8> %101, <i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32>
  %103 = lshr <8 x i8> %97, <i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3>
  %104 = or disjoint <8 x i8> %102, %103
  %interleaved.vec = shufflevector <8 x i8> %100, <8 x i8> %104, <16 x i32> <i32 0, i32 8, i32 1, i32 9, i32 2, i32 10, i32 3, i32 11, i32 4, i32 12, i32 5, i32 13, i32 6, i32 14, i32 7, i32 15>
  store <16 x i8> %interleaved.vec, ptr %next.gep, align 1, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %105 = icmp eq i64 %index.next, 128
  br i1 %105, label %.preheader61.preheader, label %vector.body, !llvm.loop !13

.preheader62:                                     ; preds = %vector.memcheck, %.preheader62
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %.preheader62 ], [ 0, %vector.memcheck ]
  %.15566 = phi ptr [ %135, %.preheader62 ], [ %15, %vector.memcheck ]
  %106 = getelementptr inbounds [256 x [3 x i8]], ptr @header_data_cmap, i64 0, i64 %indvars.iv
  %107 = load i8, ptr %106, align 2, !tbaa !5
  %108 = getelementptr inbounds i8, ptr %106, i64 1
  %109 = load i8, ptr %108, align 1, !tbaa !5
  %110 = getelementptr inbounds i8, ptr %106, i64 2
  %111 = load i8, ptr %110, align 2, !tbaa !5
  %112 = and i8 %107, -8
  %113 = lshr i8 %109, 5
  %114 = or disjoint i8 %113, %112
  %115 = getelementptr inbounds i8, ptr %.15566, i64 1
  store i8 %114, ptr %.15566, align 1, !tbaa !5
  %116 = shl i8 %109, 3
  %117 = and i8 %116, -32
  %118 = lshr i8 %111, 3
  %119 = or disjoint i8 %117, %118
  %120 = getelementptr inbounds i8, ptr %.15566, i64 2
  store i8 %119, ptr %115, align 1, !tbaa !5
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %121 = getelementptr inbounds [256 x [3 x i8]], ptr @header_data_cmap, i64 0, i64 %indvars.iv.next
  %122 = load i8, ptr %121, align 1, !tbaa !5
  %123 = getelementptr inbounds i8, ptr %121, i64 1
  %124 = load i8, ptr %123, align 2, !tbaa !5
  %125 = getelementptr inbounds i8, ptr %121, i64 2
  %126 = load i8, ptr %125, align 1, !tbaa !5
  %127 = and i8 %122, -8
  %128 = lshr i8 %124, 5
  %129 = or disjoint i8 %128, %127
  %130 = getelementptr inbounds i8, ptr %.15566, i64 3
  store i8 %129, ptr %120, align 1, !tbaa !5
  %131 = shl i8 %124, 3
  %132 = and i8 %131, -32
  %133 = lshr i8 %126, 3
  %134 = or disjoint i8 %132, %133
  %135 = getelementptr inbounds i8, ptr %.15566, i64 4
  store i8 %134, ptr %130, align 1, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond79.not.1 = icmp eq i64 %indvars.iv.next.1, 128
  br i1 %exitcond79.not.1, label %.preheader61.preheader, label %.preheader62, !llvm.loop !16

.preheader61.preheader:                           ; preds = %vector.body, %.preheader62
  %.275.ph = phi ptr [ %135, %.preheader62 ], [ %ind.end, %vector.body ]
  br label %.preheader61

.preheader61:                                     ; preds = %.preheader61.preheader, %.loopexit
  %.275 = phi ptr [ %.4, %.loopexit ], [ %.275.ph, %.preheader61.preheader ]
  %.25874 = phi i32 [ %157, %.loopexit ], [ 0, %.preheader61.preheader ]
  %136 = zext nneg i32 %.25874 to i64
  %137 = getelementptr inbounds [48000 x i8], ptr @header_data, i64 0, i64 %136
  %138 = load i8, ptr %137, align 1, !tbaa !5
  %139 = icmp ult i32 %.25874, 47999
  br i1 %139, label %.lr.ph.preheader, label %.loopexit.sink.split

.lr.ph.preheader:                                 ; preds = %.preheader61
  %140 = sub nuw nsw i32 48000, %.25874
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %144
  %indvars.iv80 = phi i64 [ %136, %.lr.ph.preheader ], [ %indvars.iv.next81, %144 ]
  %.068 = phi i32 [ 1, %.lr.ph.preheader ], [ %145, %144 ]
  %indvars.iv.next81 = add nuw nsw i64 %indvars.iv80, 1
  %141 = getelementptr inbounds [48000 x i8], ptr @header_data, i64 0, i64 %indvars.iv.next81
  %142 = load i8, ptr %141, align 1, !tbaa !5
  %143 = icmp eq i8 %142, %138
  br i1 %143, label %144, label %.critedge

144:                                              ; preds = %.lr.ph
  %145 = add nuw nsw i32 %.068, 1
  %exitcond83.not = icmp eq i64 %indvars.iv.next81, 47999
  br i1 %exitcond83.not, label %.critedge, label %.lr.ph, !llvm.loop !17

.critedge:                                        ; preds = %.lr.ph, %144
  %.0.lcssa = phi i32 [ %.068, %.lr.ph ], [ %140, %144 ]
  %146 = add nuw nsw i32 %.0.lcssa, %.25874
  switch i32 %.0.lcssa, label %.preheader [
    i32 1, label %.loopexit.sink.split
    i32 2, label %148
  ]

.preheader:                                       ; preds = %.critedge
  %147 = or i8 %138, -128
  br label %150

148:                                              ; preds = %.critedge
  %149 = getelementptr inbounds i8, ptr %.275, i64 1
  store i8 %138, ptr %.275, align 1, !tbaa !5
  br label %.loopexit.sink.split

150:                                              ; preds = %.preheader, %150
  %.173 = phi i32 [ %.0.lcssa, %.preheader ], [ %155, %150 ]
  %.372 = phi ptr [ %.275, %.preheader ], [ %154, %150 ]
  %151 = getelementptr inbounds i8, ptr %.372, i64 1
  store i8 %147, ptr %.372, align 1, !tbaa !5
  %152 = tail call i32 @llvm.smin.i32(i32 %.173, i32 255)
  %153 = trunc i32 %152 to i8
  %154 = getelementptr inbounds i8, ptr %.372, i64 2
  store i8 %153, ptr %151, align 1, !tbaa !5
  %155 = sub nsw i32 %.173, %152
  %.not = icmp eq i32 %155, 0
  br i1 %.not, label %.loopexit, label %150, !llvm.loop !18

.loopexit.sink.split:                             ; preds = %.critedge, %.preheader61, %148
  %.sink87 = phi i64 [ 2, %148 ], [ 1, %.preheader61 ], [ 1, %.critedge ]
  %.sink = phi ptr [ %149, %148 ], [ %.275, %.preheader61 ], [ %.275, %.critedge ]
  %.ph = phi i32 [ %146, %148 ], [ 48000, %.preheader61 ], [ %146, %.critedge ]
  %156 = getelementptr inbounds i8, ptr %.275, i64 %.sink87
  store i8 %138, ptr %.sink, align 1, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %150, %.loopexit.sink.split
  %157 = phi i32 [ %.ph, %.loopexit.sink.split ], [ %146, %150 ]
  %.4 = phi ptr [ %156, %.loopexit.sink.split ], [ %154, %150 ]
  %158 = icmp ult i32 %157, 48000
  br i1 %158, label %.preheader61, label %159, !llvm.loop !19

159:                                              ; preds = %.loopexit
  %160 = ptrtoint ptr %.4 to i64
  %161 = ptrtoint ptr %3 to i64
  %162 = sub i64 %160, %161
  %163 = trunc i64 %162 to i32
  %164 = sitofp i64 %162 to float
  %165 = fmul float %164, 1.000000e+02
  %166 = fdiv float %165, 4.876800e+04
  %167 = fpext float %166 to double
  %168 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef 48768, i32 noundef %163, double noundef %167)
  %169 = tail call noalias ptr @fopen(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2)
  %170 = tail call i64 @fwrite(ptr noundef %3, i64 noundef %162, i64 noundef 1, ptr noundef %169)
  %171 = tail call i32 @fclose(ptr noundef %169)
  tail call void @free(ptr noundef %3) #8
  ret i32 0
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @sinf(float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #3

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

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

; Function Attrs: nofree nounwind
declare noundef i64 @fwrite(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #6

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 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 #2 = { mustprogress nofree nounwind willreturn memory(write) "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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind allocsize(0) }
attributes #8 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!11}
!11 = distinct !{!11, !12}
!12 = distinct !{!12, !"LVerDomain"}
!13 = distinct !{!13, !9, !14, !15}
!14 = !{!"llvm.loop.isvectorized", i32 1}
!15 = !{!"llvm.loop.unroll.runtime.disable"}
!16 = distinct !{!16, !9, !14}
!17 = distinct !{!17, !9}
!18 = distinct !{!18, !9}
!19 = distinct !{!19, !9}


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