; LLVM IR from paintdream/DontStarveLuaJIT :: src/luajit/src (lj_carith)

; 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.lua_State = type { %union.anon }
%union.anon = type { %struct.anon, [320 x i8] }
%struct.anon = type { %struct.GCRef, i8, i8, i8, i8, %struct.MRef, %struct.GCRef, ptr, ptr, %struct.MRef, %struct.MRef, %struct.GCRef, %struct.GCRef, ptr, i32 }
%struct.MRef = type { i32 }
%struct.GCRef = type { i32 }
%union.TValue = type { i64 }
%struct.anon.0 = type { %union.anon.1, i32 }
%union.anon.1 = type { %struct.GCRef }
%struct.GCcdata = type { %struct.GCRef, i8, i8, i16 }
%struct.CType = type { i32, i32, i16, i16, %struct.GCRef }

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden ptr @ctype_cts(ptr noundef) #1

; 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 hidden i64 @lj_carith_check64(ptr noundef %0, i32 noundef %1, ptr noundef %2) #2 {
  %4 = alloca i64, align 8
  %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 ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.lua_State, ptr %16, i32 0, i32 0
  %18 = getelementptr inbounds %struct.anon, ptr %17, i32 0, i32 7
  %19 = load ptr, ptr %18, align 8, !tbaa !11
  %20 = load i32, ptr %6, align 4, !tbaa !9
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds %union.TValue, ptr %19, i64 %21
  %23 = getelementptr inbounds %union.TValue, ptr %22, i64 -1
  store ptr %23, ptr %8, align 8, !tbaa !5
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.lua_State, ptr %25, i32 0, i32 0
  %27 = getelementptr inbounds %struct.anon, ptr %26, i32 0, i32 8
  %28 = load ptr, ptr %27, align 8, !tbaa !11
  %29 = icmp uge ptr %24, %28
  br i1 %29, label %30, label %34

30:                                               ; preds = %3
  br label %31

31:                                               ; preds = %144, %30
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = load i32, ptr %6, align 4, !tbaa !9
  call void @lj_err_argt(ptr noundef %32, i32 noundef %33, i32 noundef 3) #7
  unreachable

34:                                               ; preds = %3
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.anon.0, ptr %35, i32 0, i32 1
  %37 = load i32, ptr %36, align 4, !tbaa !11
  %38 = icmp ule i32 %37, -65537
  %39 = xor i1 %38, true
  %40 = xor i1 %39, true
  %41 = zext i1 %40 to i32
  %42 = sext i32 %41 to i64
  %43 = call i64 @llvm.expect.i64(i64 %42, i64 1)
  %44 = icmp ne i64 %43, 0
  br i1 %44, label %45, label %46

45:                                               ; preds = %34
  br label %147

46:                                               ; preds = %34
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.anon.0, ptr %47, i32 0, i32 1
  %49 = load i32, ptr %48, align 4, !tbaa !11
  %50 = icmp eq i32 %49, -11
  br i1 %50, label %51, label %129

51:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = call ptr @ctype_cts(ptr noundef %52)
  store ptr %53, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.anon.0, ptr %54, i32 0, i32 0
  %56 = getelementptr inbounds %struct.GCRef, ptr %55, i32 0, i32 0
  %57 = load i32, ptr %56, align 8, !tbaa !11
  %58 = zext i32 %57 to i64
  %59 = inttoptr i64 %58 to ptr
  %60 = getelementptr inbounds %struct.GCcdata, ptr %59, i64 1
  store ptr %60, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.anon.0, ptr %61, i32 0, i32 0
  %63 = getelementptr inbounds %struct.GCRef, ptr %62, i32 0, i32 0
  %64 = load i32, ptr %63, align 8, !tbaa !11
  %65 = zext i32 %64 to i64
  %66 = inttoptr i64 %65 to ptr
  %67 = getelementptr inbounds %struct.GCcdata, ptr %66, i32 0, i32 3
  %68 = load i16, ptr %67, align 2, !tbaa !11
  %69 = zext i16 %68 to i32
  store i32 %69, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %70 = load ptr, ptr %9, align 8, !tbaa !5
  %71 = load i32, ptr %11, align 4, !tbaa !9
  %72 = call ptr @ctype_get(ptr noundef %70, i32 noundef %71)
  store ptr %72, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %73 = load ptr, ptr %12, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.CType, ptr %73, i32 0, i32 0
  %75 = load i32, ptr %74, align 4, !tbaa !12
  %76 = and i32 %75, -260046848
  %77 = icmp eq i32 %76, 545259520
  br i1 %77, label %78, label %85

78:                                               ; preds = %51
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = load ptr, ptr %79, align 8, !tbaa !5
  store ptr %80, ptr %10, align 8, !tbaa !5
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.CType, ptr %81, i32 0, i32 0
  %83 = load i32, ptr %82, align 4, !tbaa !12
  %84 = and i32 %83, 65535
  store i32 %84, ptr %11, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %78, %51
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = load i32, ptr %11, align 4, !tbaa !9
  %88 = call ptr @ctype_raw(ptr noundef %86, i32 noundef %87)
  store ptr %88, ptr %12, align 8, !tbaa !5
  %89 = load ptr, ptr %12, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.CType, ptr %89, i32 0, i32 0
  %91 = load i32, ptr %90, align 4, !tbaa !12
  %92 = lshr i32 %91, 28
  %93 = icmp eq i32 %92, 5
  br i1 %93, label %94, label %98

94:                                               ; preds = %85
  %95 = load ptr, ptr %9, align 8, !tbaa !5
  %96 = load ptr, ptr %12, align 8, !tbaa !5
  %97 = call ptr @ctype_child(ptr noundef %95, ptr noundef %96)
  store ptr %97, ptr %12, align 8, !tbaa !5
  br label %98

98:                                               ; preds = %94, %85
  %99 = load ptr, ptr %12, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.CType, ptr %99, i32 0, i32 0
  %101 = load i32, ptr %100, align 4, !tbaa !12
  %102 = and i32 %101, -58720256
  %103 = icmp eq i32 %102, 8388608
  br i1 %103, label %104, label %111

104:                                              ; preds = %98
  %105 = load ptr, ptr %12, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.CType, ptr %105, i32 0, i32 1
  %107 = load i32, ptr %106, align 4, !tbaa !16
  %108 = icmp eq i32 %107, 8
  br i1 %108, label %109, label %111

109:                                              ; preds = %104
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 12, ptr %110, align 4, !tbaa !9
  br label %118

111:                                              ; preds = %104, %98
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = load i32, ptr %112, align 4, !tbaa !9
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %117, label %115

115:                                              ; preds = %111
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 11, ptr %116, align 4, !tbaa !9
  br label %117

117:                                              ; preds = %115, %111
  br label %118

118:                                              ; preds = %117, %109
  %119 = load ptr, ptr %9, align 8, !tbaa !5
  %120 = load ptr, ptr %9, align 8, !tbaa !5
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  %122 = load i32, ptr %121, align 4, !tbaa !9
  %123 = call ptr @ctype_get(ptr noundef %120, i32 noundef %122)
  %124 = load ptr, ptr %12, align 8, !tbaa !5
  %125 = load ptr, ptr %10, align 8, !tbaa !5
  %126 = load i32, ptr %6, align 4, !tbaa !9
  %127 = shl i32 %126, 8
  call void @lj_cconv_ct_ct(ptr noundef %119, ptr noundef %123, ptr noundef %124, ptr noundef %13, ptr noundef %125, i32 noundef %127)
  %128 = load i64, ptr %13, align 8, !tbaa !17
  store i64 %128, ptr %4, align 8
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %154

129:                                              ; preds = %46
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.anon.0, ptr %130, i32 0, i32 1
  %132 = load i32, ptr %131, align 4, !tbaa !11
  %133 = icmp eq i32 %132, -5
  br i1 %133, label %134, label %144

134:                                              ; preds = %129
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.anon.0, ptr %135, i32 0, i32 0
  %137 = getelementptr inbounds %struct.GCRef, ptr %136, i32 0, i32 0
  %138 = load i32, ptr %137, align 8, !tbaa !11
  %139 = zext i32 %138 to i64
  %140 = inttoptr i64 %139 to ptr
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = call i32 @lj_strscan_num(ptr noundef %140, ptr noundef %141)
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %145, label %144

144:                                              ; preds = %134, %129
  br label %31

145:                                              ; preds = %134
  br label %146

146:                                              ; preds = %145
  br label %147

147:                                              ; preds = %146, %45
  br label %148

148:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  %150 = load double, ptr %149, align 8, !tbaa !11
  %151 = call i32 @lj_num2bit(double noundef %150)
  store i32 %151, ptr %15, align 4, !tbaa !9
  %152 = load i32, ptr %15, align 4, !tbaa !9
  %153 = zext i32 %152 to i64
  store i64 %153, ptr %4, align 8
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %154

154:                                              ; preds = %148, %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  %155 = load i64, ptr %4, align 8
  ret i64 %155
}

; Function Attrs: noreturn
declare hidden void @lj_err_argt(ptr noundef, i32 noundef, i32 noundef) #3

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden ptr @ctype_get(ptr noundef, i32 noundef) #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden ptr @ctype_raw(ptr noundef, i32 noundef) #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden ptr @ctype_child(ptr noundef, ptr noundef) #1

declare hidden void @lj_cconv_ct_ct(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #5

declare hidden i32 @lj_strscan_num(ptr noundef, ptr noundef) #5

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @lj_num2bit(double noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline 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 = { 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 = { noreturn "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 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 = { 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 = !{!"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 = !{!13, !10, i64 0}
!13 = !{!"CType", !10, i64 0, !10, i64 4, !14, i64 8, !14, i64 10, !15, i64 12}
!14 = !{!"short", !7, i64 0}
!15 = !{!"GCRef", !10, i64 0}
!16 = !{!13, !10, i64 4}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !7, i64 0}


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

%union.TValue = type { i64 }

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden ptr @ctype_cts(ptr noundef) 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: nounwind uwtable
define hidden i64 @lj_carith_check64(ptr noundef %0, i32 noundef %1, ptr nocapture noundef %2) local_unnamed_addr #2 {
  %4 = alloca i64, align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = sext i32 %1 to i64
  %8 = getelementptr inbounds %union.TValue, ptr %6, i64 %7
  %9 = getelementptr inbounds i8, ptr %8, i64 -8
  %10 = getelementptr inbounds i8, ptr %0, i64 24
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %.not = icmp ult ptr %9, %11
  br i1 %.not, label %13, label %12

12:                                               ; preds = %17, %55, %3
  tail call void @lj_err_argt(ptr noundef nonnull %0, i32 noundef %1, i32 noundef 3) #5
  unreachable

13:                                               ; preds = %3
  %14 = getelementptr inbounds i8, ptr %8, i64 -4
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = icmp ult i32 %15, -65536
  br i1 %16, label %60, label %17, !prof !8

17:                                               ; preds = %13
  %trunc = trunc i32 %15 to i16
  switch i16 %trunc, label %12 [
    i16 -11, label %18
    i16 -5, label %55
  ]

18:                                               ; preds = %17
  %19 = tail call ptr @ctype_cts(ptr noundef nonnull %0)
  %20 = load i32, ptr %9, align 8, !tbaa !5
  %21 = zext i32 %20 to i64
  %22 = inttoptr i64 %21 to ptr
  %23 = getelementptr inbounds i8, ptr %22, i64 8
  %24 = getelementptr inbounds i8, ptr %22, i64 6
  %25 = load i16, ptr %24, align 2, !tbaa !5
  %26 = zext i16 %25 to i32
  %27 = tail call ptr @ctype_get(ptr noundef %19, i32 noundef %26)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %28 = load i32, ptr %27, align 4, !tbaa !9
  %29 = and i32 %28, -260046848
  %30 = icmp eq i32 %29, 545259520
  br i1 %30, label %31, label %34

31:                                               ; preds = %18
  %32 = load ptr, ptr %23, align 8, !tbaa !14
  %33 = and i32 %28, 65535
  br label %34

34:                                               ; preds = %31, %18
  %.039 = phi ptr [ %32, %31 ], [ %23, %18 ]
  %.038 = phi i32 [ %33, %31 ], [ %26, %18 ]
  %35 = tail call ptr @ctype_raw(ptr noundef %19, i32 noundef %.038)
  %36 = load i32, ptr %35, align 4, !tbaa !9
  %.mask = and i32 %36, -268435456
  %37 = icmp eq i32 %.mask, 1342177280
  br i1 %37, label %38, label %40

38:                                               ; preds = %34
  %39 = tail call ptr @ctype_child(ptr noundef %19, ptr noundef nonnull %35)
  %.pre = load i32, ptr %39, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %38, %34
  %41 = phi i32 [ %.pre, %38 ], [ %36, %34 ]
  %.037 = phi ptr [ %39, %38 ], [ %35, %34 ]
  %42 = and i32 %41, -58720256
  %43 = icmp eq i32 %42, 8388608
  br i1 %43, label %44, label %48

44:                                               ; preds = %40
  %45 = getelementptr inbounds i8, ptr %.037, i64 4
  %46 = load i32, ptr %45, align 4, !tbaa !16
  %47 = icmp eq i32 %46, 8
  br i1 %47, label %.sink.split, label %48

48:                                               ; preds = %44, %40
  %49 = load i32, ptr %2, align 4, !tbaa !17
  %.not43 = icmp eq i32 %49, 0
  br i1 %.not43, label %.sink.split, label %50

.sink.split:                                      ; preds = %48, %44
  %.sink = phi i32 [ 12, %44 ], [ 11, %48 ]
  store i32 %.sink, ptr %2, align 4, !tbaa !17
  br label %50

50:                                               ; preds = %.sink.split, %48
  %51 = phi i32 [ %49, %48 ], [ %.sink, %.sink.split ]
  %52 = tail call ptr @ctype_get(ptr noundef %19, i32 noundef %51)
  %53 = shl i32 %1, 8
  call void @lj_cconv_ct_ct(ptr noundef %19, ptr noundef %52, ptr noundef nonnull %.037, ptr noundef nonnull %4, ptr noundef %.039, i32 noundef %53) #6
  %54 = load i64, ptr %4, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %64

55:                                               ; preds = %17
  %56 = load i32, ptr %9, align 8, !tbaa !5
  %57 = zext i32 %56 to i64
  %58 = inttoptr i64 %57 to ptr
  %59 = tail call i32 @lj_strscan_num(ptr noundef %58, ptr noundef nonnull %9) #6
  %.not42 = icmp eq i32 %59, 0
  br i1 %.not42, label %12, label %60

60:                                               ; preds = %13, %55
  %61 = load double, ptr %9, align 8, !tbaa !5
  %62 = tail call i32 @lj_num2bit(double noundef %61)
  %63 = zext i32 %62 to i64
  br label %64

64:                                               ; preds = %60, %50
  %.0 = phi i64 [ %63, %60 ], [ %54, %50 ]
  ret i64 %.0
}

; Function Attrs: noreturn
declare hidden void @lj_err_argt(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden ptr @ctype_get(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden ptr @ctype_raw(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden ptr @ctype_child(ptr noundef, ptr noundef) local_unnamed_addr #1

declare hidden void @lj_cconv_ct_ct(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

declare hidden i32 @lj_strscan_num(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @lj_num2bit(double noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline 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 = { 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 = { noreturn "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 = { noreturn nounwind }
attributes #6 = { 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 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!9 = !{!10, !11, i64 0}
!10 = !{!"CType", !11, i64 0, !11, i64 4, !12, i64 8, !12, i64 10, !13, i64 12}
!11 = !{!"int", !6, i64 0}
!12 = !{!"short", !6, i64 0}
!13 = !{!"GCRef", !11, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !6, i64 0}
!16 = !{!10, !11, i64 4}
!17 = !{!11, !11, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"long", !6, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LowerExpectIntrinsicPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass