; LLVM IR from openssl/openssl :: crypto/err (err_save)

; 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.err_state_st = type { [16 x i32], [16 x i32], [16 x i64], [16 x ptr], [16 x i64], [16 x i32], [16 x ptr], [16 x i32], [16 x ptr], i32, i32 }

; 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 void @err_clear(ptr noundef, i64 noundef, i32 noundef) #1

declare ptr @ossl_err_get_state_int() #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; 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 void @OSSL_ERR_STATE_restore(ptr noundef %0) #4 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %9 = load ptr, ptr %2, align 8, !tbaa !5
  %10 = icmp eq ptr %9, null
  br i1 %10, label %19, label %11

11:                                               ; preds = %1
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.err_state_st, ptr %12, i32 0, i32 10
  %14 = load i32, ptr %13, align 4, !tbaa !9
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.err_state_st, ptr %15, i32 0, i32 9
  %17 = load i32, ptr %16, align 8, !tbaa !12
  %18 = icmp eq i32 %14, %17
  br i1 %18, label %19, label %20

19:                                               ; preds = %11, %1
  store i32 1, ptr %5, align 4
  br label %142

20:                                               ; preds = %11
  %21 = call ptr @ossl_err_get_state_int()
  store ptr %21, ptr %4, align 8, !tbaa !5
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %25

24:                                               ; preds = %20
  store i32 1, ptr %5, align 4
  br label %142

25:                                               ; preds = %20
  %26 = load ptr, ptr %2, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.err_state_st, ptr %26, i32 0, i32 10
  %28 = load i32, ptr %27, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  store i64 %29, ptr %3, align 8, !tbaa !13
  br label %30

30:                                               ; preds = %140, %138, %25
  %31 = load i64, ptr %3, align 8, !tbaa !13
  %32 = load ptr, ptr %2, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.err_state_st, ptr %32, i32 0, i32 9
  %34 = load i32, ptr %33, align 8, !tbaa !12
  %35 = sext i32 %34 to i64
  %36 = icmp ne i64 %31, %35
  br i1 %36, label %37, label %141

37:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %38 = load i64, ptr %3, align 8, !tbaa !13
  %39 = add i64 %38, 1
  %40 = urem i64 %39, 16
  store i64 %40, ptr %3, align 8, !tbaa !13
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.err_state_st, ptr %41, i32 0, i32 0
  %43 = load i64, ptr %3, align 8, !tbaa !13
  %44 = getelementptr inbounds [16 x i32], ptr %42, i64 0, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !15
  %46 = and i32 %45, 2
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %49

48:                                               ; preds = %37
  store i32 3, ptr %5, align 4
  br label %138, !llvm.loop !16

49:                                               ; preds = %37
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  call void @err_get_slot(ptr noundef %50)
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.err_state_st, ptr %51, i32 0, i32 9
  %53 = load i32, ptr %52, align 8, !tbaa !12
  %54 = sext i32 %53 to i64
  store i64 %54, ptr %6, align 8, !tbaa !13
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = load i64, ptr %6, align 8, !tbaa !13
  call void @err_clear(ptr noundef %55, i64 noundef %56, i32 noundef 0)
  %57 = load ptr, ptr %2, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.err_state_st, ptr %57, i32 0, i32 0
  %59 = load i64, ptr %3, align 8, !tbaa !13
  %60 = getelementptr inbounds [16 x i32], ptr %58, i64 0, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !15
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.err_state_st, ptr %62, i32 0, i32 0
  %64 = load i64, ptr %6, align 8, !tbaa !13
  %65 = getelementptr inbounds [16 x i32], ptr %63, i64 0, i64 %64
  store i32 %61, ptr %65, align 4, !tbaa !15
  %66 = load ptr, ptr %2, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.err_state_st, ptr %66, i32 0, i32 2
  %68 = load i64, ptr %3, align 8, !tbaa !13
  %69 = getelementptr inbounds [16 x i64], ptr %67, i64 0, i64 %68
  %70 = load i64, ptr %69, align 8, !tbaa !13
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.err_state_st, ptr %71, i32 0, i32 2
  %73 = load i64, ptr %6, align 8, !tbaa !13
  %74 = getelementptr inbounds [16 x i64], ptr %72, i64 0, i64 %73
  store i64 %70, ptr %74, align 8, !tbaa !13
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = load i64, ptr %6, align 8, !tbaa !13
  %77 = load ptr, ptr %2, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.err_state_st, ptr %77, i32 0, i32 6
  %79 = load i64, ptr %3, align 8, !tbaa !13
  %80 = getelementptr inbounds [16 x ptr], ptr %78, i64 0, i64 %79
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  %82 = load ptr, ptr %2, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.err_state_st, ptr %82, i32 0, i32 7
  %84 = load i64, ptr %3, align 8, !tbaa !13
  %85 = getelementptr inbounds [16 x i32], ptr %83, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !15
  %87 = load ptr, ptr %2, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.err_state_st, ptr %87, i32 0, i32 8
  %89 = load i64, ptr %3, align 8, !tbaa !13
  %90 = getelementptr inbounds [16 x ptr], ptr %88, i64 0, i64 %89
  %91 = load ptr, ptr %90, align 8, !tbaa !5
  call void @err_set_debug(ptr noundef %75, i64 noundef %76, ptr noundef %81, i32 noundef %86, ptr noundef %91)
  %92 = load ptr, ptr %2, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.err_state_st, ptr %92, i32 0, i32 3
  %94 = load i64, ptr %3, align 8, !tbaa !13
  %95 = getelementptr inbounds [16 x ptr], ptr %93, i64 0, i64 %94
  %96 = load ptr, ptr %95, align 8, !tbaa !5
  %97 = icmp ne ptr %96, null
  br i1 %97, label %98, label %134

98:                                               ; preds = %49
  %99 = load ptr, ptr %2, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.err_state_st, ptr %99, i32 0, i32 4
  %101 = load i64, ptr %3, align 8, !tbaa !13
  %102 = getelementptr inbounds [16 x i64], ptr %100, i64 0, i64 %101
  %103 = load i64, ptr %102, align 8, !tbaa !13
  %104 = icmp ne i64 %103, 0
  br i1 %104, label %105, label %134

105:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %106 = load ptr, ptr %2, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.err_state_st, ptr %106, i32 0, i32 4
  %108 = load i64, ptr %3, align 8, !tbaa !13
  %109 = getelementptr inbounds [16 x i64], ptr %107, i64 0, i64 %108
  %110 = load i64, ptr %109, align 8, !tbaa !13
  store i64 %110, ptr %8, align 8, !tbaa !13
  %111 = load i64, ptr %8, align 8, !tbaa !13
  %112 = call ptr @CRYPTO_malloc(i64 noundef %111, ptr noundef null, i32 noundef 0)
  store ptr %112, ptr %7, align 8, !tbaa !5
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = icmp ne ptr %113, null
  br i1 %114, label %115, label %133

115:                                              ; preds = %105
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %117 = load ptr, ptr %2, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.err_state_st, ptr %117, i32 0, i32 3
  %119 = load i64, ptr %3, align 8, !tbaa !13
  %120 = getelementptr inbounds [16 x ptr], ptr %118, i64 0, i64 %119
  %121 = load ptr, ptr %120, align 8, !tbaa !5
  %122 = load i64, ptr %8, align 8, !tbaa !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %116, ptr align 1 %121, i64 %122, i1 false)
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = load i64, ptr %6, align 8, !tbaa !13
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = load i64, ptr %8, align 8, !tbaa !13
  %127 = load ptr, ptr %2, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.err_state_st, ptr %127, i32 0, i32 5
  %129 = load i64, ptr %3, align 8, !tbaa !13
  %130 = getelementptr inbounds [16 x i32], ptr %128, i64 0, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !15
  %132 = or i32 %131, 1
  call void @err_set_data(ptr noundef %123, i64 noundef %124, ptr noundef %125, i64 noundef %126, i32 noundef %132)
  br label %133

133:                                              ; preds = %115, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %137

134:                                              ; preds = %98, %49
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = load i64, ptr %6, align 8, !tbaa !13
  call void @err_clear_data(ptr noundef %135, i64 noundef %136, i32 noundef 0)
  br label %137

137:                                              ; preds = %134, %133
  store i32 0, ptr %5, align 4
  br label %138

138:                                              ; preds = %137, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %139 = load i32, ptr %5, align 4
  switch i32 %139, label %145 [
    i32 0, label %140
    i32 3, label %30
  ]

140:                                              ; preds = %138
  br label %30, !llvm.loop !16

141:                                              ; preds = %30
  store i32 0, ptr %5, align 4
  br label %142

142:                                              ; preds = %141, %24, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  %143 = load i32, ptr %5, align 4
  switch i32 %143, label %145 [
    i32 0, label %144
    i32 1, label %144
  ]

144:                                              ; preds = %142, %142
  ret void

145:                                              ; preds = %142, %138
  unreachable
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @err_get_slot(ptr noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @err_set_debug(ptr noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef) #1

declare ptr @CRYPTO_malloc(i64 noundef, ptr noundef, i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @err_set_data(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i32 noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @err_clear_data(ptr noundef, i64 noundef, i32 noundef) #1

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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 900}
!10 = !{!"err_state_st", !7, i64 0, !7, i64 64, !7, i64 128, !7, i64 256, !7, i64 384, !7, i64 512, !7, i64 576, !7, i64 704, !7, i64 768, !11, i64 896, !11, i64 900}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 896}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!11, !11, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"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"

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @err_clear(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #0

declare ptr @ossl_err_get_state_int() local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: nounwind uwtable
define dso_local void @OSSL_ERR_STATE_restore(ptr noundef readonly %0) local_unnamed_addr #3 {
  %2 = icmp eq ptr %0, null
  br i1 %2, label %.loopexit, label %3

3:                                                ; preds = %1
  %4 = getelementptr inbounds i8, ptr %0, i64 900
  %5 = load i32, ptr %4, align 4, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 896
  %7 = load i32, ptr %6, align 8, !tbaa !10
  %8 = icmp eq i32 %5, %7
  br i1 %8, label %.loopexit, label %9

9:                                                ; preds = %3
  %10 = tail call ptr @ossl_err_get_state_int() #4
  %11 = icmp eq ptr %10, null
  br i1 %11, label %.loopexit, label %12

12:                                               ; preds = %9
  %13 = load i32, ptr %4, align 4, !tbaa !5
  %14 = load i32, ptr %6, align 8, !tbaa !10
  %.not57 = icmp eq i32 %13, %14
  br i1 %.not57, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %12
  %15 = zext i32 %13 to i64
  %16 = getelementptr inbounds i8, ptr %10, i64 896
  %17 = getelementptr inbounds i8, ptr %0, i64 128
  %18 = getelementptr inbounds i8, ptr %10, i64 128
  %19 = getelementptr inbounds i8, ptr %0, i64 576
  %20 = getelementptr inbounds i8, ptr %0, i64 704
  %21 = getelementptr inbounds i8, ptr %0, i64 768
  %22 = getelementptr inbounds i8, ptr %0, i64 256
  %23 = getelementptr inbounds i8, ptr %0, i64 384
  %24 = getelementptr inbounds i8, ptr %0, i64 512
  br label %25

25:                                               ; preds = %.lr.ph, %58
  %.058 = phi i64 [ %15, %.lr.ph ], [ %27, %58 ]
  %26 = add nuw nsw i64 %.058, 1
  %27 = and i64 %26, 15
  %28 = getelementptr inbounds [16 x i32], ptr %0, i64 0, i64 %27
  %29 = load i32, ptr %28, align 4, !tbaa !11
  %30 = and i32 %29, 2
  %.not53 = icmp eq i32 %30, 0
  br i1 %.not53, label %31, label %58, !llvm.loop !12

31:                                               ; preds = %25
  tail call void @err_get_slot(ptr noundef nonnull %10)
  %32 = load i32, ptr %16, align 8, !tbaa !10
  %33 = sext i32 %32 to i64
  tail call void @err_clear(ptr noundef nonnull %10, i64 noundef %33, i32 noundef 0)
  %34 = load i32, ptr %28, align 4, !tbaa !11
  %35 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 %33
  store i32 %34, ptr %35, align 4, !tbaa !11
  %36 = getelementptr inbounds [16 x i64], ptr %17, i64 0, i64 %27
  %37 = load i64, ptr %36, align 8, !tbaa !14
  %38 = getelementptr inbounds [16 x i64], ptr %18, i64 0, i64 %33
  store i64 %37, ptr %38, align 8, !tbaa !14
  %39 = getelementptr inbounds [16 x ptr], ptr %19, i64 0, i64 %27
  %40 = load ptr, ptr %39, align 8, !tbaa !16
  %41 = getelementptr inbounds [16 x i32], ptr %20, i64 0, i64 %27
  %42 = load i32, ptr %41, align 4, !tbaa !11
  %43 = getelementptr inbounds [16 x ptr], ptr %21, i64 0, i64 %27
  %44 = load ptr, ptr %43, align 8, !tbaa !16
  tail call void @err_set_debug(ptr noundef nonnull %10, i64 noundef %33, ptr noundef %40, i32 noundef %42, ptr noundef %44)
  %45 = getelementptr inbounds [16 x ptr], ptr %22, i64 0, i64 %27
  %46 = load ptr, ptr %45, align 8, !tbaa !16
  %.not54 = icmp eq ptr %46, null
  br i1 %.not54, label %57, label %47

47:                                               ; preds = %31
  %48 = getelementptr inbounds [16 x i64], ptr %23, i64 0, i64 %27
  %49 = load i64, ptr %48, align 8, !tbaa !14
  %.not55 = icmp eq i64 %49, 0
  br i1 %.not55, label %57, label %50

50:                                               ; preds = %47
  %51 = tail call ptr @CRYPTO_malloc(i64 noundef %49, ptr noundef null, i32 noundef 0) #4
  %.not56 = icmp eq ptr %51, null
  br i1 %.not56, label %58, label %52

52:                                               ; preds = %50
  %53 = load ptr, ptr %45, align 8, !tbaa !16
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %51, ptr align 1 %53, i64 %49, i1 false)
  %54 = getelementptr inbounds [16 x i32], ptr %24, i64 0, i64 %27
  %55 = load i32, ptr %54, align 4, !tbaa !11
  %56 = or i32 %55, 1
  tail call void @err_set_data(ptr noundef nonnull %10, i64 noundef %33, ptr noundef nonnull %51, i64 noundef %49, i32 noundef %56)
  br label %58

57:                                               ; preds = %47, %31
  tail call void @err_clear_data(ptr noundef nonnull %10, i64 noundef %33, i32 noundef 0)
  br label %58

58:                                               ; preds = %57, %52, %50, %25
  %59 = load i32, ptr %6, align 8, !tbaa !10
  %60 = sext i32 %59 to i64
  %.not = icmp eq i64 %27, %60
  br i1 %.not, label %.loopexit, label %25

.loopexit:                                        ; preds = %58, %12, %9, %1, %3
  ret void
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @err_get_slot(ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @err_set_debug(ptr noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

declare ptr @CRYPTO_malloc(i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @err_set_data(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @err_clear_data(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #0

attributes #0 = { 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 #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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, !9, i64 900}
!6 = !{!"err_state_st", !7, i64 0, !7, i64 64, !7, i64 128, !7, i64 256, !7, i64 384, !7, i64 512, !7, i64 576, !7, i64 704, !7, i64 768, !9, i64 896, !9, i64 900}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"int", !7, i64 0}
!10 = !{!6, !9, i64 896}
!11 = !{!9, !9, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"any pointer", !7, i64 0}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass