; LLVM IR from caryll/otfcc :: lib/table (OS_2)

; 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.table_OS_2 = type { i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, [10 x i8], i32, i32, i32, i32, [4 x i8], i16, i16, i16, i16, i16, i16, i16, i16, i32, i32, i16, i16, i16, i16, i16, i16, i16 }

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @otfcc_buildOS_2(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %8 = load ptr, ptr %4, align 8, !tbaa !5
  %9 = icmp ne ptr %8, null
  br i1 %9, label %11, label %10

10:                                               ; preds = %2
  store ptr null, ptr %3, align 8
  br label %187

11:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %12 = call ptr (...) @bufnew()
  store ptr %12, ptr %6, align 8, !tbaa !5
  %13 = load ptr, ptr %6, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.table_OS_2, ptr %14, i32 0, i32 0
  %16 = load i16, ptr %15, align 4, !tbaa !9
  call void @bufwrite16b(ptr noundef %13, i16 noundef zeroext %16)
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.table_OS_2, ptr %18, i32 0, i32 1
  %20 = load i16, ptr %19, align 2, !tbaa !13
  call void @bufwrite16b(ptr noundef %17, i16 noundef zeroext %20)
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.table_OS_2, ptr %22, i32 0, i32 2
  %24 = load i16, ptr %23, align 4, !tbaa !14
  call void @bufwrite16b(ptr noundef %21, i16 noundef zeroext %24)
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.table_OS_2, ptr %26, i32 0, i32 3
  %28 = load i16, ptr %27, align 2, !tbaa !15
  call void @bufwrite16b(ptr noundef %25, i16 noundef zeroext %28)
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.table_OS_2, ptr %30, i32 0, i32 4
  %32 = load i16, ptr %31, align 4, !tbaa !16
  call void @bufwrite16b(ptr noundef %29, i16 noundef zeroext %32)
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.table_OS_2, ptr %34, i32 0, i32 5
  %36 = load i16, ptr %35, align 2, !tbaa !17
  call void @bufwrite16b(ptr noundef %33, i16 noundef zeroext %36)
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.table_OS_2, ptr %38, i32 0, i32 6
  %40 = load i16, ptr %39, align 4, !tbaa !18
  call void @bufwrite16b(ptr noundef %37, i16 noundef zeroext %40)
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.table_OS_2, ptr %42, i32 0, i32 7
  %44 = load i16, ptr %43, align 2, !tbaa !19
  call void @bufwrite16b(ptr noundef %41, i16 noundef zeroext %44)
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.table_OS_2, ptr %46, i32 0, i32 8
  %48 = load i16, ptr %47, align 4, !tbaa !20
  call void @bufwrite16b(ptr noundef %45, i16 noundef zeroext %48)
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.table_OS_2, ptr %50, i32 0, i32 9
  %52 = load i16, ptr %51, align 2, !tbaa !21
  call void @bufwrite16b(ptr noundef %49, i16 noundef zeroext %52)
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.table_OS_2, ptr %54, i32 0, i32 10
  %56 = load i16, ptr %55, align 4, !tbaa !22
  call void @bufwrite16b(ptr noundef %53, i16 noundef zeroext %56)
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.table_OS_2, ptr %58, i32 0, i32 11
  %60 = load i16, ptr %59, align 2, !tbaa !23
  call void @bufwrite16b(ptr noundef %57, i16 noundef zeroext %60)
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.table_OS_2, ptr %62, i32 0, i32 12
  %64 = load i16, ptr %63, align 4, !tbaa !24
  call void @bufwrite16b(ptr noundef %61, i16 noundef zeroext %64)
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.table_OS_2, ptr %66, i32 0, i32 13
  %68 = load i16, ptr %67, align 2, !tbaa !25
  call void @bufwrite16b(ptr noundef %65, i16 noundef zeroext %68)
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.table_OS_2, ptr %70, i32 0, i32 14
  %72 = load i16, ptr %71, align 4, !tbaa !26
  call void @bufwrite16b(ptr noundef %69, i16 noundef zeroext %72)
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.table_OS_2, ptr %74, i32 0, i32 15
  %76 = load i16, ptr %75, align 2, !tbaa !27
  call void @bufwrite16b(ptr noundef %73, i16 noundef zeroext %76)
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.table_OS_2, ptr %78, i32 0, i32 16
  %80 = getelementptr inbounds [10 x i8], ptr %79, i64 0, i64 0
  call void @bufwrite_bytes(ptr noundef %77, i64 noundef 10, ptr noundef %80)
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.table_OS_2, ptr %82, i32 0, i32 17
  %84 = load i32, ptr %83, align 4, !tbaa !28
  call void @bufwrite32b(ptr noundef %81, i32 noundef %84)
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.table_OS_2, ptr %86, i32 0, i32 18
  %88 = load i32, ptr %87, align 4, !tbaa !29
  call void @bufwrite32b(ptr noundef %85, i32 noundef %88)
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.table_OS_2, ptr %90, i32 0, i32 19
  %92 = load i32, ptr %91, align 4, !tbaa !30
  call void @bufwrite32b(ptr noundef %89, i32 noundef %92)
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.table_OS_2, ptr %94, i32 0, i32 20
  %96 = load i32, ptr %95, align 4, !tbaa !31
  call void @bufwrite32b(ptr noundef %93, i32 noundef %96)
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.table_OS_2, ptr %98, i32 0, i32 21
  %100 = getelementptr inbounds [4 x i8], ptr %99, i64 0, i64 0
  call void @bufwrite_bytes(ptr noundef %97, i64 noundef 4, ptr noundef %100)
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.table_OS_2, ptr %102, i32 0, i32 22
  %104 = load i16, ptr %103, align 4, !tbaa !32
  call void @bufwrite16b(ptr noundef %101, i16 noundef zeroext %104)
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.table_OS_2, ptr %106, i32 0, i32 23
  %108 = load i16, ptr %107, align 2, !tbaa !33
  call void @bufwrite16b(ptr noundef %105, i16 noundef zeroext %108)
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.table_OS_2, ptr %110, i32 0, i32 24
  %112 = load i16, ptr %111, align 4, !tbaa !34
  call void @bufwrite16b(ptr noundef %109, i16 noundef zeroext %112)
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.table_OS_2, ptr %114, i32 0, i32 25
  %116 = load i16, ptr %115, align 2, !tbaa !35
  call void @bufwrite16b(ptr noundef %113, i16 noundef zeroext %116)
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.table_OS_2, ptr %118, i32 0, i32 26
  %120 = load i16, ptr %119, align 4, !tbaa !36
  call void @bufwrite16b(ptr noundef %117, i16 noundef zeroext %120)
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.table_OS_2, ptr %122, i32 0, i32 27
  %124 = load i16, ptr %123, align 2, !tbaa !37
  call void @bufwrite16b(ptr noundef %121, i16 noundef zeroext %124)
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.table_OS_2, ptr %126, i32 0, i32 28
  %128 = load i16, ptr %127, align 4, !tbaa !38
  call void @bufwrite16b(ptr noundef %125, i16 noundef zeroext %128)
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.table_OS_2, ptr %130, i32 0, i32 29
  %132 = load i16, ptr %131, align 2, !tbaa !39
  call void @bufwrite16b(ptr noundef %129, i16 noundef zeroext %132)
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.table_OS_2, ptr %134, i32 0, i32 30
  %136 = load i32, ptr %135, align 4, !tbaa !40
  call void @bufwrite32b(ptr noundef %133, i32 noundef %136)
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.table_OS_2, ptr %138, i32 0, i32 31
  %140 = load i32, ptr %139, align 4, !tbaa !41
  call void @bufwrite32b(ptr noundef %137, i32 noundef %140)
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.table_OS_2, ptr %141, i32 0, i32 0
  %143 = load i16, ptr %142, align 4, !tbaa !9
  %144 = zext i16 %143 to i32
  %145 = icmp slt i32 %144, 2
  br i1 %145, label %146, label %148

146:                                              ; preds = %11
  %147 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %147, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %186

148:                                              ; preds = %11
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.table_OS_2, ptr %150, i32 0, i32 32
  %152 = load i16, ptr %151, align 4, !tbaa !42
  call void @bufwrite16b(ptr noundef %149, i16 noundef zeroext %152)
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.table_OS_2, ptr %154, i32 0, i32 33
  %156 = load i16, ptr %155, align 2, !tbaa !43
  call void @bufwrite16b(ptr noundef %153, i16 noundef zeroext %156)
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  %158 = load ptr, ptr %4, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.table_OS_2, ptr %158, i32 0, i32 34
  %160 = load i16, ptr %159, align 4, !tbaa !44
  call void @bufwrite16b(ptr noundef %157, i16 noundef zeroext %160)
  %161 = load ptr, ptr %6, align 8, !tbaa !5
  %162 = load ptr, ptr %4, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.table_OS_2, ptr %162, i32 0, i32 35
  %164 = load i16, ptr %163, align 2, !tbaa !45
  call void @bufwrite16b(ptr noundef %161, i16 noundef zeroext %164)
  %165 = load ptr, ptr %6, align 8, !tbaa !5
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.table_OS_2, ptr %166, i32 0, i32 36
  %168 = load i16, ptr %167, align 4, !tbaa !46
  call void @bufwrite16b(ptr noundef %165, i16 noundef zeroext %168)
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.table_OS_2, ptr %169, i32 0, i32 0
  %171 = load i16, ptr %170, align 4, !tbaa !9
  %172 = zext i16 %171 to i32
  %173 = icmp slt i32 %172, 5
  br i1 %173, label %174, label %176

174:                                              ; preds = %148
  %175 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %175, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %186

176:                                              ; preds = %148
  %177 = load ptr, ptr %6, align 8, !tbaa !5
  %178 = load ptr, ptr %4, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.table_OS_2, ptr %178, i32 0, i32 37
  %180 = load i16, ptr %179, align 2, !tbaa !47
  call void @bufwrite16b(ptr noundef %177, i16 noundef zeroext %180)
  %181 = load ptr, ptr %6, align 8, !tbaa !5
  %182 = load ptr, ptr %4, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.table_OS_2, ptr %182, i32 0, i32 38
  %184 = load i16, ptr %183, align 4, !tbaa !48
  call void @bufwrite16b(ptr noundef %181, i16 noundef zeroext %184)
  %185 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %185, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %186

186:                                              ; preds = %176, %174, %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  br label %187

187:                                              ; preds = %186, %10
  %188 = load ptr, ptr %3, align 8
  ret ptr %188
}

declare ptr @bufnew(...) #2

declare void @bufwrite16b(ptr noundef, i16 noundef zeroext) #2

declare void @bufwrite_bytes(ptr noundef, i64 noundef, ptr noundef) #2

declare void @bufwrite32b(ptr noundef, i32 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { "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 }

!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 0}
!10 = !{!"", !11, i64 0, !11, i64 2, !11, i64 4, !11, i64 6, !11, i64 8, !11, i64 10, !11, i64 12, !11, i64 14, !11, i64 16, !11, i64 18, !11, i64 20, !11, i64 22, !11, i64 24, !11, i64 26, !11, i64 28, !11, i64 30, !7, i64 32, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !7, i64 60, !11, i64 64, !11, i64 66, !11, i64 68, !11, i64 70, !11, i64 72, !11, i64 74, !11, i64 76, !11, i64 78, !12, i64 80, !12, i64 84, !11, i64 88, !11, i64 90, !11, i64 92, !11, i64 94, !11, i64 96, !11, i64 98, !11, i64 100}
!11 = !{!"short", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!10, !11, i64 2}
!14 = !{!10, !11, i64 4}
!15 = !{!10, !11, i64 6}
!16 = !{!10, !11, i64 8}
!17 = !{!10, !11, i64 10}
!18 = !{!10, !11, i64 12}
!19 = !{!10, !11, i64 14}
!20 = !{!10, !11, i64 16}
!21 = !{!10, !11, i64 18}
!22 = !{!10, !11, i64 20}
!23 = !{!10, !11, i64 22}
!24 = !{!10, !11, i64 24}
!25 = !{!10, !11, i64 26}
!26 = !{!10, !11, i64 28}
!27 = !{!10, !11, i64 30}
!28 = !{!10, !12, i64 44}
!29 = !{!10, !12, i64 48}
!30 = !{!10, !12, i64 52}
!31 = !{!10, !12, i64 56}
!32 = !{!10, !11, i64 64}
!33 = !{!10, !11, i64 66}
!34 = !{!10, !11, i64 68}
!35 = !{!10, !11, i64 70}
!36 = !{!10, !11, i64 72}
!37 = !{!10, !11, i64 74}
!38 = !{!10, !11, i64 76}
!39 = !{!10, !11, i64 78}
!40 = !{!10, !12, i64 80}
!41 = !{!10, !12, i64 84}
!42 = !{!10, !11, i64 88}
!43 = !{!10, !11, i64 90}
!44 = !{!10, !11, i64 92}
!45 = !{!10, !11, i64 94}
!46 = !{!10, !11, i64 96}
!47 = !{!10, !11, i64 98}
!48 = !{!10, !11, i64 100}


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

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @otfcc_buildOS_2(ptr noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %86, label %3

3:                                                ; preds = %2
  %4 = tail call ptr (...) @bufnew() #2
  %5 = load i16, ptr %0, align 4, !tbaa !5
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %5) #2
  %6 = getelementptr inbounds i8, ptr %0, i64 2
  %7 = load i16, ptr %6, align 2, !tbaa !11
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %7) #2
  %8 = getelementptr inbounds i8, ptr %0, i64 4
  %9 = load i16, ptr %8, align 4, !tbaa !12
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %9) #2
  %10 = getelementptr inbounds i8, ptr %0, i64 6
  %11 = load i16, ptr %10, align 2, !tbaa !13
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %11) #2
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  %13 = load i16, ptr %12, align 4, !tbaa !14
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %13) #2
  %14 = getelementptr inbounds i8, ptr %0, i64 10
  %15 = load i16, ptr %14, align 2, !tbaa !15
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %15) #2
  %16 = getelementptr inbounds i8, ptr %0, i64 12
  %17 = load i16, ptr %16, align 4, !tbaa !16
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %17) #2
  %18 = getelementptr inbounds i8, ptr %0, i64 14
  %19 = load i16, ptr %18, align 2, !tbaa !17
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %19) #2
  %20 = getelementptr inbounds i8, ptr %0, i64 16
  %21 = load i16, ptr %20, align 4, !tbaa !18
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %21) #2
  %22 = getelementptr inbounds i8, ptr %0, i64 18
  %23 = load i16, ptr %22, align 2, !tbaa !19
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %23) #2
  %24 = getelementptr inbounds i8, ptr %0, i64 20
  %25 = load i16, ptr %24, align 4, !tbaa !20
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %25) #2
  %26 = getelementptr inbounds i8, ptr %0, i64 22
  %27 = load i16, ptr %26, align 2, !tbaa !21
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %27) #2
  %28 = getelementptr inbounds i8, ptr %0, i64 24
  %29 = load i16, ptr %28, align 4, !tbaa !22
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %29) #2
  %30 = getelementptr inbounds i8, ptr %0, i64 26
  %31 = load i16, ptr %30, align 2, !tbaa !23
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %31) #2
  %32 = getelementptr inbounds i8, ptr %0, i64 28
  %33 = load i16, ptr %32, align 4, !tbaa !24
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %33) #2
  %34 = getelementptr inbounds i8, ptr %0, i64 30
  %35 = load i16, ptr %34, align 2, !tbaa !25
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %35) #2
  %36 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @bufwrite_bytes(ptr noundef %4, i64 noundef 10, ptr noundef nonnull %36) #2
  %37 = getelementptr inbounds i8, ptr %0, i64 44
  %38 = load i32, ptr %37, align 4, !tbaa !26
  tail call void @bufwrite32b(ptr noundef %4, i32 noundef %38) #2
  %39 = getelementptr inbounds i8, ptr %0, i64 48
  %40 = load i32, ptr %39, align 4, !tbaa !27
  tail call void @bufwrite32b(ptr noundef %4, i32 noundef %40) #2
  %41 = getelementptr inbounds i8, ptr %0, i64 52
  %42 = load i32, ptr %41, align 4, !tbaa !28
  tail call void @bufwrite32b(ptr noundef %4, i32 noundef %42) #2
  %43 = getelementptr inbounds i8, ptr %0, i64 56
  %44 = load i32, ptr %43, align 4, !tbaa !29
  tail call void @bufwrite32b(ptr noundef %4, i32 noundef %44) #2
  %45 = getelementptr inbounds i8, ptr %0, i64 60
  tail call void @bufwrite_bytes(ptr noundef %4, i64 noundef 4, ptr noundef nonnull %45) #2
  %46 = getelementptr inbounds i8, ptr %0, i64 64
  %47 = load i16, ptr %46, align 4, !tbaa !30
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %47) #2
  %48 = getelementptr inbounds i8, ptr %0, i64 66
  %49 = load i16, ptr %48, align 2, !tbaa !31
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %49) #2
  %50 = getelementptr inbounds i8, ptr %0, i64 68
  %51 = load i16, ptr %50, align 4, !tbaa !32
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %51) #2
  %52 = getelementptr inbounds i8, ptr %0, i64 70
  %53 = load i16, ptr %52, align 2, !tbaa !33
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %53) #2
  %54 = getelementptr inbounds i8, ptr %0, i64 72
  %55 = load i16, ptr %54, align 4, !tbaa !34
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %55) #2
  %56 = getelementptr inbounds i8, ptr %0, i64 74
  %57 = load i16, ptr %56, align 2, !tbaa !35
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %57) #2
  %58 = getelementptr inbounds i8, ptr %0, i64 76
  %59 = load i16, ptr %58, align 4, !tbaa !36
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %59) #2
  %60 = getelementptr inbounds i8, ptr %0, i64 78
  %61 = load i16, ptr %60, align 2, !tbaa !37
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %61) #2
  %62 = getelementptr inbounds i8, ptr %0, i64 80
  %63 = load i32, ptr %62, align 4, !tbaa !38
  tail call void @bufwrite32b(ptr noundef %4, i32 noundef %63) #2
  %64 = getelementptr inbounds i8, ptr %0, i64 84
  %65 = load i32, ptr %64, align 4, !tbaa !39
  tail call void @bufwrite32b(ptr noundef %4, i32 noundef %65) #2
  %66 = load i16, ptr %0, align 4, !tbaa !5
  %67 = icmp ult i16 %66, 2
  br i1 %67, label %86, label %68

68:                                               ; preds = %3
  %69 = getelementptr inbounds i8, ptr %0, i64 88
  %70 = load i16, ptr %69, align 4, !tbaa !40
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %70) #2
  %71 = getelementptr inbounds i8, ptr %0, i64 90
  %72 = load i16, ptr %71, align 2, !tbaa !41
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %72) #2
  %73 = getelementptr inbounds i8, ptr %0, i64 92
  %74 = load i16, ptr %73, align 4, !tbaa !42
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %74) #2
  %75 = getelementptr inbounds i8, ptr %0, i64 94
  %76 = load i16, ptr %75, align 2, !tbaa !43
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %76) #2
  %77 = getelementptr inbounds i8, ptr %0, i64 96
  %78 = load i16, ptr %77, align 4, !tbaa !44
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %78) #2
  %79 = load i16, ptr %0, align 4, !tbaa !5
  %80 = icmp ult i16 %79, 5
  br i1 %80, label %86, label %81

81:                                               ; preds = %68
  %82 = getelementptr inbounds i8, ptr %0, i64 98
  %83 = load i16, ptr %82, align 2, !tbaa !45
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %83) #2
  %84 = getelementptr inbounds i8, ptr %0, i64 100
  %85 = load i16, ptr %84, align 4, !tbaa !46
  tail call void @bufwrite16b(ptr noundef %4, i16 noundef zeroext %85) #2
  br label %86

86:                                               ; preds = %81, %3, %68, %2
  %.1 = phi ptr [ null, %2 ], [ %4, %68 ], [ %4, %3 ], [ %4, %81 ]
  ret ptr %.1
}

declare ptr @bufnew(...) local_unnamed_addr #1

declare void @bufwrite16b(ptr noundef, i16 noundef zeroext) local_unnamed_addr #1

declare void @bufwrite_bytes(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare void @bufwrite32b(ptr noundef, i32 noundef) local_unnamed_addr #1

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }

!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, !7, i64 0}
!6 = !{!"", !7, i64 0, !7, i64 2, !7, i64 4, !7, i64 6, !7, i64 8, !7, i64 10, !7, i64 12, !7, i64 14, !7, i64 16, !7, i64 18, !7, i64 20, !7, i64 22, !7, i64 24, !7, i64 26, !7, i64 28, !7, i64 30, !8, i64 32, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !8, i64 60, !7, i64 64, !7, i64 66, !7, i64 68, !7, i64 70, !7, i64 72, !7, i64 74, !7, i64 76, !7, i64 78, !10, i64 80, !10, i64 84, !7, i64 88, !7, i64 90, !7, i64 92, !7, i64 94, !7, i64 96, !7, i64 98, !7, i64 100}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 2}
!12 = !{!6, !7, i64 4}
!13 = !{!6, !7, i64 6}
!14 = !{!6, !7, i64 8}
!15 = !{!6, !7, i64 10}
!16 = !{!6, !7, i64 12}
!17 = !{!6, !7, i64 14}
!18 = !{!6, !7, i64 16}
!19 = !{!6, !7, i64 18}
!20 = !{!6, !7, i64 20}
!21 = !{!6, !7, i64 22}
!22 = !{!6, !7, i64 24}
!23 = !{!6, !7, i64 26}
!24 = !{!6, !7, i64 28}
!25 = !{!6, !7, i64 30}
!26 = !{!6, !10, i64 44}
!27 = !{!6, !10, i64 48}
!28 = !{!6, !10, i64 52}
!29 = !{!6, !10, i64 56}
!30 = !{!6, !7, i64 64}
!31 = !{!6, !7, i64 66}
!32 = !{!6, !7, i64 68}
!33 = !{!6, !7, i64 70}
!34 = !{!6, !7, i64 72}
!35 = !{!6, !7, i64 74}
!36 = !{!6, !7, i64 76}
!37 = !{!6, !7, i64 78}
!38 = !{!6, !10, i64 80}
!39 = !{!6, !10, i64 84}
!40 = !{!6, !7, i64 88}
!41 = !{!6, !7, i64 90}
!42 = !{!6, !7, i64 92}
!43 = !{!6, !7, i64 94}
!44 = !{!6, !7, i64 96}
!45 = !{!6, !7, i64 98}
!46 = !{!6, !7, i64 100}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass