; LLVM IR from Gottox/sqsh-tools :: examples (list_xattrs_ll)

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

@.str = external hidden unnamed_addr constant [30 x i8], align 1
@sqsh_mapper_impl_mmap = external constant ptr, align 8
@.str.1 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 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 i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %struct.SqshConfig, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !5
  %18 = load i32, ptr %4, align 4, !tbaa !5
  %19 = icmp ne i32 %18, 3
  br i1 %19, label %20, label %25

20:                                               ; preds = %2
  %21 = load ptr, ptr %5, align 8, !tbaa !9
  %22 = getelementptr inbounds ptr, ptr %21, i64 0
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %23)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %107

25:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 184, ptr %8) #4
  call void @llvm.memset.p0.i64(ptr align 8 %8, i8 0, i64 184, i1 false)
  %26 = getelementptr inbounds %struct.SqshConfig, ptr %8, i32 0, i32 0
  %27 = getelementptr inbounds %struct.SqshConfig, ptr %8, i32 0, i32 1
  %28 = getelementptr inbounds %struct.SqshConfig, ptr %8, i32 0, i32 2
  %29 = load ptr, ptr @sqsh_mapper_impl_mmap, align 8, !tbaa !9
  store ptr %29, ptr %28, align 8, !tbaa !11
  %30 = getelementptr inbounds %struct.SqshConfig, ptr %8, i32 0, i32 3
  %31 = getelementptr inbounds %struct.SqshConfig, ptr %8, i32 0, i32 4
  %32 = getelementptr inbounds %struct.SqshConfig, ptr %8, i32 0, i32 5
  %33 = getelementptr inbounds %struct.SqshConfig, ptr %8, i32 0, i32 6
  %34 = getelementptr inbounds %struct.SqshConfig, ptr %8, i32 0, i32 7
  %35 = getelementptr inbounds %struct.SqshConfig, ptr %8, i32 0, i32 8
  %36 = getelementptr inbounds %struct.SqshConfig, ptr %8, i32 0, i32 9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %37 = load ptr, ptr %5, align 8, !tbaa !9
  %38 = getelementptr inbounds ptr, ptr %37, i64 1
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  %40 = call ptr @sqsh_archive_open(ptr noundef %39, ptr noundef %8, ptr noundef %6)
  store ptr %40, ptr %9, align 8, !tbaa !9
  %41 = load i32, ptr %6, align 4, !tbaa !5
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %43, label %45

43:                                               ; preds = %25
  %44 = load i32, ptr %6, align 4, !tbaa !5
  call void @sqsh_perror(i32 noundef %44, ptr noundef @.str.1)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %106

45:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %46 = load ptr, ptr %9, align 8, !tbaa !9
  %47 = load ptr, ptr %5, align 8, !tbaa !9
  %48 = getelementptr inbounds ptr, ptr %47, i64 2
  %49 = load ptr, ptr %48, align 8, !tbaa !9
  %50 = call ptr @sqsh_open(ptr noundef %46, ptr noundef %49, ptr noundef %6)
  store ptr %50, ptr %10, align 8, !tbaa !9
  %51 = load i32, ptr %6, align 4, !tbaa !5
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %55

53:                                               ; preds = %45
  %54 = load i32, ptr %6, align 4, !tbaa !5
  call void @sqsh_perror(i32 noundef %54, ptr noundef @.str.2)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %105

55:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %56 = load ptr, ptr %10, align 8, !tbaa !9
  %57 = call ptr @sqsh_xattr_iterator_new(ptr noundef %56, ptr noundef %6)
  store ptr %57, ptr %11, align 8, !tbaa !9
  %58 = load i32, ptr %6, align 4, !tbaa !5
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %60, label %62

60:                                               ; preds = %55
  %61 = load i32, ptr %6, align 4, !tbaa !5
  call void @sqsh_perror(i32 noundef %61, ptr noundef @.str.3)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %104

62:                                               ; preds = %55
  br label %63

63:                                               ; preds = %66, %62
  %64 = load ptr, ptr %11, align 8, !tbaa !9
  %65 = call zeroext i1 @sqsh_xattr_iterator_next(ptr noundef %64, ptr noundef %6)
  br i1 %65, label %66, label %92

66:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %67 = load ptr, ptr %11, align 8, !tbaa !9
  %68 = call ptr @sqsh_xattr_iterator_prefix(ptr noundef %67)
  store ptr %68, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %69 = load ptr, ptr %11, align 8, !tbaa !9
  %70 = call zeroext i16 @sqsh_xattr_iterator_prefix_size(ptr noundef %69)
  %71 = zext i16 %70 to i64
  store i64 %71, ptr %13, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %72 = load ptr, ptr %11, align 8, !tbaa !9
  %73 = call ptr @sqsh_xattr_iterator_name(ptr noundef %72)
  store ptr %73, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %74 = load ptr, ptr %11, align 8, !tbaa !9
  %75 = call zeroext i16 @sqsh_xattr_iterator_name_size(ptr noundef %74)
  %76 = zext i16 %75 to i64
  store i64 %76, ptr %15, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %77 = load ptr, ptr %11, align 8, !tbaa !9
  %78 = call ptr @sqsh_xattr_iterator_value(ptr noundef %77)
  store ptr %78, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %79 = load ptr, ptr %11, align 8, !tbaa !9
  %80 = call i32 @sqsh_xattr_iterator_value_size2(ptr noundef %79)
  %81 = zext i32 %80 to i64
  store i64 %81, ptr %17, align 8, !tbaa !14
  %82 = load i64, ptr %13, align 8, !tbaa !14
  %83 = trunc i64 %82 to i32
  %84 = load ptr, ptr %12, align 8, !tbaa !9
  %85 = load i64, ptr %15, align 8, !tbaa !14
  %86 = trunc i64 %85 to i32
  %87 = load ptr, ptr %14, align 8, !tbaa !9
  %88 = load i64, ptr %17, align 8, !tbaa !14
  %89 = trunc i64 %88 to i32
  %90 = load ptr, ptr %16, align 8, !tbaa !9
  %91 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %83, ptr noundef %84, i32 noundef %86, ptr noundef %87, i32 noundef %89, ptr noundef %90)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %63, !llvm.loop !15

92:                                               ; preds = %63
  %93 = load i32, ptr %6, align 4, !tbaa !5
  %94 = icmp slt i32 %93, 0
  br i1 %94, label %95, label %97

95:                                               ; preds = %92
  %96 = load i32, ptr %6, align 4, !tbaa !5
  call void @sqsh_perror(i32 noundef %96, ptr noundef @.str.5)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %104

97:                                               ; preds = %92
  %98 = load ptr, ptr %11, align 8, !tbaa !9
  %99 = call i32 @sqsh_xattr_iterator_free(ptr noundef %98)
  %100 = load ptr, ptr %10, align 8, !tbaa !9
  %101 = call i32 @sqsh_close(ptr noundef %100)
  %102 = load ptr, ptr %9, align 8, !tbaa !9
  %103 = call i32 @sqsh_archive_close(ptr noundef %102)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %104

104:                                              ; preds = %97, %95, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %105

105:                                              ; preds = %104, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %106

106:                                              ; preds = %105, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 184, ptr %8) #4
  br label %107

107:                                              ; preds = %106, %20
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %108 = load i32, ptr %3, align 4
  ret i32 %108
}

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

declare ptr @sqsh_archive_open(ptr noundef, ptr noundef, ptr noundef) #2

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

declare ptr @sqsh_open(ptr noundef, ptr noundef, ptr noundef) #2

declare ptr @sqsh_xattr_iterator_new(ptr noundef, ptr noundef) #2

declare zeroext i1 @sqsh_xattr_iterator_next(ptr noundef, ptr noundef) #2

declare ptr @sqsh_xattr_iterator_prefix(ptr noundef) #2

declare zeroext i16 @sqsh_xattr_iterator_prefix_size(ptr noundef) #2

declare ptr @sqsh_xattr_iterator_name(ptr noundef) #2

declare zeroext i16 @sqsh_xattr_iterator_name_size(ptr noundef) #2

declare ptr @sqsh_xattr_iterator_value(ptr noundef) #2

declare i32 @sqsh_xattr_iterator_value_size2(ptr noundef) #2

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

declare i32 @sqsh_xattr_iterator_free(ptr noundef) #2

declare i32 @sqsh_close(ptr noundef) #2

declare i32 @sqsh_archive_close(ptr noundef) #2

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 = { "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: write) }
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, !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 = !{!12, !10, i64 16}
!12 = !{!"SqshConfig", !13, i64 0, !13, i64 8, !10, i64 16, !6, i64 24, !6, i64 28, !6, i64 32, !13, i64 40, !6, i64 48, !6, i64 52, !7, i64 56}
!13 = !{!"long", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"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"

%struct.SqshConfig = type { i64, i64, ptr, i32, i32, i32, i64, i32, i32, [128 x i8] }

@.str = external hidden unnamed_addr constant [30 x i8], align 1
@sqsh_mapper_impl_mmap = external local_unnamed_addr constant ptr, align 8
@.str.1 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  %4 = alloca %struct.SqshConfig, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  %.not = icmp eq i32 %0, 3
  br i1 %.not, label %8, label %5

5:                                                ; preds = %2
  %6 = load ptr, ptr %1, align 8, !tbaa !9
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef %6)
  br label %45

8:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 184, ptr nonnull %4) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(184) %4, i8 0, i64 184, i1 false)
  %9 = getelementptr inbounds i8, ptr %4, i64 16
  %10 = load ptr, ptr @sqsh_mapper_impl_mmap, align 8, !tbaa !9
  store ptr %10, ptr %9, align 8, !tbaa !11
  %11 = getelementptr inbounds i8, ptr %1, i64 8
  %12 = load ptr, ptr %11, align 8, !tbaa !9
  %13 = call ptr @sqsh_archive_open(ptr noundef %12, ptr noundef nonnull %4, ptr noundef nonnull %3) #5
  %14 = load i32, ptr %3, align 4, !tbaa !5
  %.not26 = icmp eq i32 %14, 0
  br i1 %.not26, label %16, label %15

15:                                               ; preds = %8
  call void @sqsh_perror(i32 noundef %14, ptr noundef nonnull @.str.1) #5
  br label %44

16:                                               ; preds = %8
  %17 = getelementptr inbounds i8, ptr %1, i64 16
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = call ptr @sqsh_open(ptr noundef %13, ptr noundef %18, ptr noundef nonnull %3) #5
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %.not27 = icmp eq i32 %20, 0
  br i1 %.not27, label %22, label %21

21:                                               ; preds = %16
  call void @sqsh_perror(i32 noundef %20, ptr noundef nonnull @.str.2) #5
  br label %44

22:                                               ; preds = %16
  %23 = call ptr @sqsh_xattr_iterator_new(ptr noundef %19, ptr noundef nonnull %3) #5
  %24 = load i32, ptr %3, align 4, !tbaa !5
  %.not28 = icmp eq i32 %24, 0
  br i1 %.not28, label %.preheader, label %26

.preheader:                                       ; preds = %22
  %25 = call zeroext i1 @sqsh_xattr_iterator_next(ptr noundef %23, ptr noundef nonnull %3) #5
  br i1 %25, label %.lr.ph, label %._crit_edge

26:                                               ; preds = %22
  call void @sqsh_perror(i32 noundef %24, ptr noundef nonnull @.str.3) #5
  br label %44

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %27 = call ptr @sqsh_xattr_iterator_prefix(ptr noundef %23) #5
  %28 = call zeroext i16 @sqsh_xattr_iterator_prefix_size(ptr noundef %23) #5
  %29 = call ptr @sqsh_xattr_iterator_name(ptr noundef %23) #5
  %30 = call zeroext i16 @sqsh_xattr_iterator_name_size(ptr noundef %23) #5
  %31 = call ptr @sqsh_xattr_iterator_value(ptr noundef %23) #5
  %32 = call i32 @sqsh_xattr_iterator_value_size2(ptr noundef %23) #5
  %33 = zext i16 %28 to i32
  %34 = zext i16 %30 to i32
  %35 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %33, ptr noundef %27, i32 noundef %34, ptr noundef %29, i32 noundef %32, ptr noundef %31)
  %36 = call zeroext i1 @sqsh_xattr_iterator_next(ptr noundef %23, ptr noundef nonnull %3) #5
  br i1 %36, label %.lr.ph, label %._crit_edge, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph, %.preheader
  %37 = load i32, ptr %3, align 4, !tbaa !5
  %38 = icmp slt i32 %37, 0
  br i1 %38, label %39, label %40

39:                                               ; preds = %._crit_edge
  call void @sqsh_perror(i32 noundef %37, ptr noundef nonnull @.str.5) #5
  br label %44

40:                                               ; preds = %._crit_edge
  %41 = call i32 @sqsh_xattr_iterator_free(ptr noundef %23) #5
  %42 = call i32 @sqsh_close(ptr noundef %19) #5
  %43 = call i32 @sqsh_archive_close(ptr noundef %13) #5
  br label %44

44:                                               ; preds = %21, %40, %39, %26, %15
  %.2 = phi i32 [ 1, %15 ], [ 1, %21 ], [ 1, %26 ], [ 1, %39 ], [ 0, %40 ]
  call void @llvm.lifetime.end.p0(i64 184, ptr nonnull %4) #5
  br label %45

45:                                               ; preds = %44, %5
  %.3 = phi i32 [ 1, %5 ], [ %.2, %44 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  ret i32 %.3
}

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

declare ptr @sqsh_archive_open(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

declare ptr @sqsh_open(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare ptr @sqsh_xattr_iterator_new(ptr noundef, ptr noundef) local_unnamed_addr #4

declare zeroext i1 @sqsh_xattr_iterator_next(ptr noundef, ptr noundef) local_unnamed_addr #4

declare ptr @sqsh_xattr_iterator_prefix(ptr noundef) local_unnamed_addr #4

declare zeroext i16 @sqsh_xattr_iterator_prefix_size(ptr noundef) local_unnamed_addr #4

declare ptr @sqsh_xattr_iterator_name(ptr noundef) local_unnamed_addr #4

declare zeroext i16 @sqsh_xattr_iterator_name_size(ptr noundef) local_unnamed_addr #4

declare ptr @sqsh_xattr_iterator_value(ptr noundef) local_unnamed_addr #4

declare i32 @sqsh_xattr_iterator_value_size2(ptr noundef) local_unnamed_addr #4

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

declare i32 @sqsh_xattr_iterator_free(ptr noundef) local_unnamed_addr #4

declare i32 @sqsh_close(ptr noundef) local_unnamed_addr #4

declare i32 @sqsh_archive_close(ptr noundef) local_unnamed_addr #4

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 = !{!"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 = !{!12, !10, i64 16}
!12 = !{!"SqshConfig", !13, i64 0, !13, i64 8, !10, i64 16, !6, i64 24, !6, i64 28, !6, i64 32, !13, i64 40, !6, i64 48, !6, i64 52, !7, i64 56}
!13 = !{!"long", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


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