; LLVM IR from theck01/offbrand_lib :: src/classes (obstring)

; 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.obstring_struct = type { ptr, ptr, i32 }

@.str.1 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@__PRETTY_FUNCTION__.obstring_split = external hidden unnamed_addr constant [57 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @obstring_new(ptr noundef) #0

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #3

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @obstring_copy_substring(ptr noundef, i64 noundef, i32 noundef) #0

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

14:                                               ; preds = %2
  br label %16

15:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 121, ptr noundef @__PRETTY_FUNCTION__.obstring_split) #6
  unreachable

16:                                               ; preds = %14
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %20

19:                                               ; preds = %16
  br label %21

20:                                               ; preds = %16
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 122, ptr noundef @__PRETTY_FUNCTION__.obstring_split) #6
  unreachable

21:                                               ; preds = %19
  %22 = call ptr @obvector_new(i32 noundef 1)
  store ptr %22, ptr %5, align 8, !tbaa !5
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.obstring_struct, ptr %24, i32 0, i32 2
  %26 = load i32, ptr %25, align 8, !tbaa !9
  %27 = call ptr @obstring_copy_substring(ptr noundef %23, i64 noundef 0, i32 noundef %26)
  store ptr %27, ptr %6, align 8, !tbaa !5
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = call i64 @strlen(ptr noundef %28) #7
  %30 = trunc i64 %29 to i32
  store i32 %30, ptr %10, align 4, !tbaa !12
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.obstring_struct, ptr %31, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !13
  store ptr %33, ptr %8, align 8, !tbaa !5
  br label %34

34:                                               ; preds = %69, %21
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.obstring_struct, ptr %36, i32 0, i32 1
  %38 = load ptr, ptr %37, align 8, !tbaa !13
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.obstring_struct, ptr %39, i32 0, i32 2
  %41 = load i32, ptr %40, align 8, !tbaa !9
  %42 = load i32, ptr %10, align 4, !tbaa !12
  %43 = sub i32 %41, %42
  %44 = zext i32 %43 to i64
  %45 = getelementptr inbounds i8, ptr %38, i64 %44
  %46 = icmp ule ptr %35, %45
  br i1 %46, label %47, label %70

47:                                               ; preds = %34
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = load i32, ptr %10, align 4, !tbaa !12
  %51 = zext i32 %50 to i64
  %52 = call i32 @strncmp(ptr noundef %48, ptr noundef %49, i64 noundef %51) #7
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %54, label %66

54:                                               ; preds = %47
  store i32 0, ptr %9, align 4, !tbaa !12
  br label %55

55:                                               ; preds = %62, %54
  %56 = load i32, ptr %9, align 4, !tbaa !12
  %57 = load i32, ptr %10, align 4, !tbaa !12
  %58 = icmp ult i32 %56, %57
  br i1 %58, label %59, label %65

59:                                               ; preds = %55
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %60, i32 1
  store ptr %61, ptr %8, align 8, !tbaa !5
  store i8 0, ptr %60, align 1, !tbaa !14
  br label %62

62:                                               ; preds = %59
  %63 = load i32, ptr %9, align 4, !tbaa !12
  %64 = add i32 %63, 1
  store i32 %64, ptr %9, align 4, !tbaa !12
  br label %55, !llvm.loop !15

65:                                               ; preds = %55
  br label %69

66:                                               ; preds = %47
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %67, i32 1
  store ptr %68, ptr %8, align 8, !tbaa !5
  br label %69

69:                                               ; preds = %66, %65
  br label %34, !llvm.loop !17

70:                                               ; preds = %34
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.obstring_struct, ptr %71, i32 0, i32 1
  %73 = load ptr, ptr %72, align 8, !tbaa !13
  store ptr %73, ptr %8, align 8, !tbaa !5
  store i32 0, ptr %11, align 4, !tbaa !12
  br label %74

74:                                               ; preds = %122, %70
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.obstring_struct, ptr %76, i32 0, i32 1
  %78 = load ptr, ptr %77, align 8, !tbaa !13
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.obstring_struct, ptr %79, i32 0, i32 2
  %81 = load i32, ptr %80, align 8, !tbaa !9
  %82 = zext i32 %81 to i64
  %83 = getelementptr inbounds i8, ptr %78, i64 %82
  %84 = icmp ult ptr %75, %83
  br i1 %84, label %85, label %123

85:                                               ; preds = %74
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = call ptr @obstring_new(ptr noundef %86)
  store ptr %87, ptr %7, align 8, !tbaa !5
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.obstring_struct, ptr %88, i32 0, i32 2
  %90 = load i32, ptr %89, align 8, !tbaa !9
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = zext i32 %90 to i64
  %93 = getelementptr inbounds i8, ptr %91, i64 %92
  store ptr %93, ptr %8, align 8, !tbaa !5
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  %96 = load i32, ptr %11, align 4, !tbaa !12
  %97 = add i32 %96, 1
  store i32 %97, ptr %11, align 4, !tbaa !12
  %98 = zext i32 %96 to i64
  call void @obvector_store_at_index(ptr noundef %94, ptr noundef %95, i64 noundef %98)
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = call ptr @ob_release(ptr noundef %99)
  br label %101

101:                                              ; preds = %119, %85
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = load i8, ptr %102, align 1, !tbaa !14
  %104 = sext i8 %103 to i32
  %105 = icmp eq i32 %104, 0
  br i1 %105, label %106, label %117

106:                                              ; preds = %101
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.obstring_struct, ptr %108, i32 0, i32 1
  %110 = load ptr, ptr %109, align 8, !tbaa !13
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.obstring_struct, ptr %111, i32 0, i32 2
  %113 = load i32, ptr %112, align 8, !tbaa !9
  %114 = zext i32 %113 to i64
  %115 = getelementptr inbounds i8, ptr %110, i64 %114
  %116 = icmp ult ptr %107, %115
  br label %117

117:                                              ; preds = %106, %101
  %118 = phi i1 [ false, %101 ], [ %116, %106 ]
  br i1 %118, label %119, label %122

119:                                              ; preds = %117
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = getelementptr inbounds i8, ptr %120, i32 1
  store ptr %121, ptr %8, align 8, !tbaa !5
  br label %101, !llvm.loop !18

122:                                              ; preds = %117
  br label %74, !llvm.loop !19

123:                                              ; preds = %74
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = call ptr @ob_release(ptr noundef %124)
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret ptr %126
}

declare ptr @obvector_new(i32 noundef) #4

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #3

declare void @obvector_store_at_index(ptr noundef, ptr noundef, i64 noundef) #4

declare ptr @ob_release(ptr noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn 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 = { nounwind willreturn memory(read) "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 = { nounwind }
attributes #6 = { noreturn nounwind }
attributes #7 = { nounwind willreturn memory(read) }

!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 16}
!10 = !{!"obstring_struct", !6, i64 0, !6, i64 8, !11, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !6, i64 8}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}


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

@.str.1 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@__PRETTY_FUNCTION__.obstring_split = external hidden unnamed_addr constant [57 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @obstring_new(ptr noundef) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @obstring_copy_substring(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #0

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

3:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 121, ptr noundef nonnull @__PRETTY_FUNCTION__.obstring_split) #5
  unreachable

4:                                                ; preds = %2
  %.not39 = icmp eq ptr %1, null
  br i1 %.not39, label %5, label %.lr.ph47

5:                                                ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 122, ptr noundef nonnull @__PRETTY_FUNCTION__.obstring_split) #5
  unreachable

.lr.ph47:                                         ; preds = %4
  %6 = tail call ptr @obvector_new(i32 noundef 1) #6
  %7 = getelementptr inbounds i8, ptr %0, i64 16
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = tail call ptr @obstring_copy_substring(ptr noundef nonnull %0, i64 noundef 0, i32 noundef %8)
  %10 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %1) #7
  %.fr = freeze i64 %10
  %11 = trunc i64 %.fr to i32
  %12 = getelementptr inbounds i8, ptr %9, i64 8
  %13 = load ptr, ptr %12, align 8, !tbaa !11
  %14 = getelementptr inbounds i8, ptr %9, i64 16
  %15 = and i64 %.fr, 4294967295
  %.not56 = icmp eq i32 %11, 0
  br i1 %.not56, label %.lr.ph47.split, label %.lr.ph47.split.us.preheader

.lr.ph47.split.us.preheader:                      ; preds = %.lr.ph47
  %16 = and i64 %.fr, 4294967295
  %17 = add i64 %.fr, 4294967295
  %18 = and i64 %17, 4294967295
  %19 = add nuw nsw i64 %18, 1
  br label %.lr.ph47.split.us

.lr.ph47.split.us:                                ; preds = %.lr.ph47.split.us.preheader, %..loopexit_crit_edge.us
  %20 = phi ptr [ %25, %..loopexit_crit_edge.us ], [ %13, %.lr.ph47.split.us.preheader ]
  %.03546.us = phi ptr [ %.2.us, %..loopexit_crit_edge.us ], [ %13, %.lr.ph47.split.us.preheader ]
  %21 = tail call i32 @strncmp(ptr noundef %.03546.us, ptr noundef nonnull %1, i64 noundef %15) #7
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %.preheader41.us.preheader, label %23

.preheader41.us.preheader:                        ; preds = %.lr.ph47.split.us
  tail call void @llvm.memset.p0.i64(ptr align 1 %.03546.us, i8 0, i64 %16, i1 false), !tbaa !12
  %scevgep = getelementptr i8, ptr %.03546.us, i64 %19
  %.pre = load ptr, ptr %12, align 8, !tbaa !11
  br label %..loopexit_crit_edge.us

23:                                               ; preds = %.lr.ph47.split.us
  %24 = getelementptr inbounds i8, ptr %.03546.us, i64 1
  br label %..loopexit_crit_edge.us

..loopexit_crit_edge.us:                          ; preds = %.preheader41.us.preheader, %23
  %25 = phi ptr [ %20, %23 ], [ %.pre, %.preheader41.us.preheader ]
  %.2.us = phi ptr [ %24, %23 ], [ %scevgep, %.preheader41.us.preheader ]
  %26 = load i32, ptr %14, align 8, !tbaa !5
  %27 = sub i32 %26, %11
  %28 = zext i32 %27 to i64
  %29 = getelementptr inbounds i8, ptr %25, i64 %28
  %.not40.us = icmp ugt ptr %.2.us, %29
  br i1 %.not40.us, label %.preheader, label %.lr.ph47.split.us, !llvm.loop !13

.lr.ph47.split:                                   ; preds = %.lr.ph47
  %30 = load i32, ptr %14, align 8, !tbaa !5
  br label %.preheader

.preheader:                                       ; preds = %..loopexit_crit_edge.us, %.lr.ph47.split
  %31 = phi i32 [ %30, %.lr.ph47.split ], [ %26, %..loopexit_crit_edge.us ]
  %.lcssa42 = phi ptr [ %13, %.lr.ph47.split ], [ %25, %..loopexit_crit_edge.us ]
  %.not63 = icmp eq i32 %31, 0
  br i1 %.not63, label %._crit_edge, label %.lr.ph54

.lr.ph54:                                         ; preds = %.preheader, %.critedge
  %.053 = phi i32 [ %37, %.critedge ], [ 0, %.preheader ]
  %.352 = phi ptr [ %.4.lcssa, %.critedge ], [ %.lcssa42, %.preheader ]
  %32 = tail call ptr @obstring_new(ptr noundef %.352)
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  %34 = load i32, ptr %33, align 8, !tbaa !5
  %35 = zext i32 %34 to i64
  %36 = getelementptr inbounds i8, ptr %.352, i64 %35
  %37 = add i32 %.053, 1
  %38 = zext i32 %.053 to i64
  tail call void @obvector_store_at_index(ptr noundef %6, ptr noundef %32, i64 noundef %38) #6
  %39 = tail call ptr @ob_release(ptr noundef %32) #6
  %40 = load i8, ptr %36, align 1, !tbaa !12
  %41 = icmp eq i8 %40, 0
  %.pre60 = load ptr, ptr %12, align 8, !tbaa !11
  %.pre61 = load i32, ptr %14, align 8, !tbaa !5
  %42 = zext i32 %.pre61 to i64
  br i1 %41, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %.lr.ph54
  %43 = getelementptr inbounds i8, ptr %.pre60, i64 %42
  br label %44

44:                                               ; preds = %.lr.ph, %46
  %.449 = phi ptr [ %36, %.lr.ph ], [ %47, %46 ]
  %45 = icmp ult ptr %.449, %43
  br i1 %45, label %46, label %.critedge

46:                                               ; preds = %44
  %47 = getelementptr inbounds i8, ptr %.449, i64 1
  %48 = load i8, ptr %47, align 1, !tbaa !12
  %49 = icmp eq i8 %48, 0
  br i1 %49, label %44, label %.critedge, !llvm.loop !15

.critedge:                                        ; preds = %44, %46, %.lr.ph54
  %.4.lcssa = phi ptr [ %36, %.lr.ph54 ], [ %47, %46 ], [ %.449, %44 ]
  %50 = getelementptr inbounds i8, ptr %.pre60, i64 %42
  %51 = icmp ult ptr %.4.lcssa, %50
  br i1 %51, label %.lr.ph54, label %._crit_edge, !llvm.loop !16

._crit_edge:                                      ; preds = %.critedge, %.preheader
  %52 = tail call ptr @ob_release(ptr noundef nonnull %9) #6
  ret ptr %6
}

declare ptr @obvector_new(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strncmp(ptr nocapture noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #2

declare void @obvector_store_at_index(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

declare ptr @ob_release(ptr noundef) local_unnamed_addr #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 = { noreturn 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 #2 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { "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 nounwind willreturn memory(argmem: write) }
attributes #5 = { noreturn nounwind }
attributes #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }

!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, !10, i64 16}
!6 = !{!"obstring_struct", !7, i64 0, !7, i64 8, !10, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 8}
!12 = !{!8, !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass