; LLVM IR from tezc/sc :: string (str_test)

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

@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [23 x i8], align 1
@__PRETTY_FUNCTION__.test4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [45 x i8], align 1

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

declare ptr @sc_str_create(ptr noundef) #1

declare ptr @sc_str_token_begin(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #2

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

declare void @sc_str_token_end(ptr noundef, ptr noundef) #1

declare void @sc_str_destroy(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 dso_local void @test4() #4 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca [10 x [10 x i8]], align 16
  %5 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #6
  store ptr null, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 100, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !9
  %6 = call ptr @sc_str_create(ptr noundef @.str.14)
  store ptr %6, ptr %3, align 8, !tbaa !5
  br label %7

7:                                                ; preds = %17, %0
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = call ptr @sc_str_token_begin(ptr noundef %8, ptr noundef %1, ptr noundef @.str.1)
  store ptr %9, ptr %2, align 8, !tbaa !5
  %10 = icmp ne ptr %9, null
  br i1 %10, label %11, label %20

11:                                               ; preds = %7
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = call i32 @strcmp(ptr noundef %12, ptr noundef @.str.9) #7
  %14 = icmp eq i32 %13, 0
  br i1 %14, label %15, label %16

15:                                               ; preds = %11
  br label %17

16:                                               ; preds = %11
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.4, i32 noundef 363, ptr noundef @__PRETTY_FUNCTION__.test4) #8
  unreachable

17:                                               ; preds = %15
  %18 = load i32, ptr %5, align 4, !tbaa !9
  %19 = add nsw i32 %18, 1
  store i32 %19, ptr %5, align 4, !tbaa !9
  br label %7, !llvm.loop !11

20:                                               ; preds = %7
  %21 = load i32, ptr %5, align 4, !tbaa !9
  %22 = icmp eq i32 %21, 4
  br i1 %22, label %23, label %24

23:                                               ; preds = %20
  br label %25

24:                                               ; preds = %20
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.4, i32 noundef 366, ptr noundef @__PRETTY_FUNCTION__.test4) #8
  unreachable

25:                                               ; preds = %23
  store ptr null, ptr %1, align 8, !tbaa !5
  store i32 0, ptr %5, align 4, !tbaa !9
  %26 = call zeroext i1 @sc_str_set(ptr noundef %3, ptr noundef @.str.16)
  br label %27

27:                                               ; preds = %31, %25
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = call ptr @sc_str_token_begin(ptr noundef %28, ptr noundef %1, ptr noundef @.str.17)
  store ptr %29, ptr %2, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %40

31:                                               ; preds = %27
  %32 = load i32, ptr %5, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [10 x [10 x i8]], ptr %4, i64 0, i64 %33
  %35 = getelementptr inbounds [10 x i8], ptr %34, i64 0, i64 0
  %36 = load ptr, ptr %2, align 8, !tbaa !5
  %37 = call ptr @strcpy(ptr noundef %35, ptr noundef %36) #6
  %38 = load i32, ptr %5, align 4, !tbaa !9
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %5, align 4, !tbaa !9
  br label %27, !llvm.loop !13

40:                                               ; preds = %27
  %41 = load i32, ptr %5, align 4, !tbaa !9
  %42 = icmp eq i32 %41, 7
  br i1 %42, label %43, label %44

43:                                               ; preds = %40
  br label %45

44:                                               ; preds = %40
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.4, i32 noundef 376, ptr noundef @__PRETTY_FUNCTION__.test4) #8
  unreachable

45:                                               ; preds = %43
  %46 = getelementptr inbounds [10 x [10 x i8]], ptr %4, i64 0, i64 0
  %47 = getelementptr inbounds [10 x i8], ptr %46, i64 0, i64 0
  %48 = call i32 @strcmp(ptr noundef %47, ptr noundef @.str.19) #7
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %51

50:                                               ; preds = %45
  br label %52

51:                                               ; preds = %45
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.4, i32 noundef 377, ptr noundef @__PRETTY_FUNCTION__.test4) #8
  unreachable

52:                                               ; preds = %50
  %53 = getelementptr inbounds [10 x [10 x i8]], ptr %4, i64 0, i64 1
  %54 = getelementptr inbounds [10 x i8], ptr %53, i64 0, i64 0
  %55 = call i32 @strcmp(ptr noundef %54, ptr noundef @.str.21) #7
  %56 = icmp eq i32 %55, 0
  br i1 %56, label %57, label %58

57:                                               ; preds = %52
  br label %59

58:                                               ; preds = %52
  call void @__assert_fail(ptr noundef @.str.22, ptr noundef @.str.4, i32 noundef 378, ptr noundef @__PRETTY_FUNCTION__.test4) #8
  unreachable

59:                                               ; preds = %57
  %60 = getelementptr inbounds [10 x [10 x i8]], ptr %4, i64 0, i64 2
  %61 = getelementptr inbounds [10 x i8], ptr %60, i64 0, i64 0
  %62 = call i32 @strcmp(ptr noundef %61, ptr noundef @.str.23) #7
  %63 = icmp eq i32 %62, 0
  br i1 %63, label %64, label %65

64:                                               ; preds = %59
  br label %66

65:                                               ; preds = %59
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str.4, i32 noundef 379, ptr noundef @__PRETTY_FUNCTION__.test4) #8
  unreachable

66:                                               ; preds = %64
  %67 = getelementptr inbounds [10 x [10 x i8]], ptr %4, i64 0, i64 3
  %68 = getelementptr inbounds [10 x i8], ptr %67, i64 0, i64 0
  %69 = call i32 @strcmp(ptr noundef %68, ptr noundef @.str.25) #7
  %70 = icmp eq i32 %69, 0
  br i1 %70, label %71, label %72

71:                                               ; preds = %66
  br label %73

72:                                               ; preds = %66
  call void @__assert_fail(ptr noundef @.str.26, ptr noundef @.str.4, i32 noundef 380, ptr noundef @__PRETTY_FUNCTION__.test4) #8
  unreachable

73:                                               ; preds = %71
  %74 = getelementptr inbounds [10 x [10 x i8]], ptr %4, i64 0, i64 4
  %75 = getelementptr inbounds [10 x i8], ptr %74, i64 0, i64 0
  %76 = call i32 @strcmp(ptr noundef %75, ptr noundef @.str.9) #7
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %78, label %79

78:                                               ; preds = %73
  br label %80

79:                                               ; preds = %73
  call void @__assert_fail(ptr noundef @.str.27, ptr noundef @.str.4, i32 noundef 381, ptr noundef @__PRETTY_FUNCTION__.test4) #8
  unreachable

80:                                               ; preds = %78
  %81 = getelementptr inbounds [10 x [10 x i8]], ptr %4, i64 0, i64 5
  %82 = getelementptr inbounds [10 x i8], ptr %81, i64 0, i64 0
  %83 = call i32 @strcmp(ptr noundef %82, ptr noundef @.str.28) #7
  %84 = icmp eq i32 %83, 0
  br i1 %84, label %85, label %86

85:                                               ; preds = %80
  br label %87

86:                                               ; preds = %80
  call void @__assert_fail(ptr noundef @.str.29, ptr noundef @.str.4, i32 noundef 382, ptr noundef @__PRETTY_FUNCTION__.test4) #8
  unreachable

87:                                               ; preds = %85
  %88 = getelementptr inbounds [10 x [10 x i8]], ptr %4, i64 0, i64 6
  %89 = getelementptr inbounds [10 x i8], ptr %88, i64 0, i64 0
  %90 = call i32 @strcmp(ptr noundef %89, ptr noundef @.str.30) #7
  %91 = icmp eq i32 %90, 0
  br i1 %91, label %92, label %93

92:                                               ; preds = %87
  br label %94

93:                                               ; preds = %87
  call void @__assert_fail(ptr noundef @.str.31, ptr noundef @.str.4, i32 noundef 383, ptr noundef @__PRETTY_FUNCTION__.test4) #8
  unreachable

94:                                               ; preds = %92
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  call void @sc_str_token_end(ptr noundef %95, ptr noundef %1)
  store ptr null, ptr %1, align 8, !tbaa !5
  store i32 0, ptr %5, align 4, !tbaa !9
  %96 = call zeroext i1 @sc_str_set(ptr noundef %3, ptr noundef @.str.16)
  br label %97

97:                                               ; preds = %113, %94
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  %99 = call ptr @sc_str_token_begin(ptr noundef %98, ptr noundef %1, ptr noundef @.str.17)
  store ptr %99, ptr %2, align 8, !tbaa !5
  %100 = icmp ne ptr %99, null
  br i1 %100, label %101, label %114

101:                                              ; preds = %97
  %102 = load i32, ptr %5, align 4, !tbaa !9
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [10 x [10 x i8]], ptr %4, i64 0, i64 %103
  %105 = getelementptr inbounds [10 x i8], ptr %104, i64 0, i64 0
  %106 = load ptr, ptr %2, align 8, !tbaa !5
  %107 = call ptr @strcpy(ptr noundef %105, ptr noundef %106) #6
  %108 = load i32, ptr %5, align 4, !tbaa !9
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %5, align 4, !tbaa !9
  %110 = load i32, ptr %5, align 4, !tbaa !9
  %111 = icmp eq i32 %110, 3
  br i1 %111, label %112, label %113

112:                                              ; preds = %101
  br label %114

113:                                              ; preds = %101
  br label %97, !llvm.loop !14

114:                                              ; preds = %112, %97
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  call void @sc_str_token_end(ptr noundef %115, ptr noundef %1)
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = call i32 @strcmp(ptr noundef %116, ptr noundef @.str.16) #7
  %118 = icmp eq i32 %117, 0
  br i1 %118, label %119, label %120

119:                                              ; preds = %114
  br label %121

120:                                              ; preds = %114
  call void @__assert_fail(ptr noundef @.str.32, ptr noundef @.str.4, i32 noundef 399, ptr noundef @__PRETTY_FUNCTION__.test4) #8
  unreachable

121:                                              ; preds = %119
  store ptr null, ptr %1, align 8, !tbaa !5
  store i32 0, ptr %5, align 4, !tbaa !9
  %122 = call zeroext i1 @sc_str_set(ptr noundef %3, ptr noundef @.str.16)
  br label %123

123:                                              ; preds = %139, %121
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  %125 = call ptr @sc_str_token_begin(ptr noundef %124, ptr noundef %1, ptr noundef @.str.17)
  store ptr %125, ptr %2, align 8, !tbaa !5
  %126 = icmp ne ptr %125, null
  br i1 %126, label %127, label %140

127:                                              ; preds = %123
  %128 = load i32, ptr %5, align 4, !tbaa !9
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [10 x [10 x i8]], ptr %4, i64 0, i64 %129
  %131 = getelementptr inbounds [10 x i8], ptr %130, i64 0, i64 0
  %132 = load ptr, ptr %2, align 8, !tbaa !5
  %133 = call ptr @strcpy(ptr noundef %131, ptr noundef %132) #6
  %134 = load i32, ptr %5, align 4, !tbaa !9
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %5, align 4, !tbaa !9
  %136 = load i32, ptr %5, align 4, !tbaa !9
  %137 = icmp eq i32 %136, 3
  br i1 %137, label %138, label %139

138:                                              ; preds = %127
  br label %140

139:                                              ; preds = %127
  br label %123, !llvm.loop !15

140:                                              ; preds = %138, %123
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  call void @sc_str_token_end(ptr noundef %141, ptr noundef %1)
  %142 = load ptr, ptr %3, align 8, !tbaa !5
  %143 = call i32 @strcmp(ptr noundef %142, ptr noundef @.str.16) #7
  %144 = icmp eq i32 %143, 0
  br i1 %144, label %145, label %146

145:                                              ; preds = %140
  br label %147

146:                                              ; preds = %140
  call void @__assert_fail(ptr noundef @.str.32, ptr noundef @.str.4, i32 noundef 413, ptr noundef @__PRETTY_FUNCTION__.test4) #8
  unreachable

147:                                              ; preds = %145
  call void @sc_str_destroy(ptr noundef %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 100, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #6
  ret void
}

declare zeroext i1 @sc_str_set(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 #3 = { 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 #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 "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 = { nounwind willreturn memory(read) }
attributes #8 = { noreturn 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


; 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 [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [23 x i8], align 1
@__PRETTY_FUNCTION__.test4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [45 x i8], align 1

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

declare ptr @sc_str_create(ptr noundef) local_unnamed_addr #1

declare ptr @sc_str_token_begin(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

declare void @sc_str_token_end(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @sc_str_destroy(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 dso_local void @test4() local_unnamed_addr #4 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca [10 x [10 x i8]], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  store ptr null, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %3) #6
  %4 = tail call ptr @sc_str_create(ptr noundef nonnull @.str.14) #6
  store ptr %4, ptr %2, align 8, !tbaa !5
  %5 = call ptr @sc_str_token_begin(ptr noundef %4, ptr noundef nonnull %1, ptr noundef nonnull @.str.1) #6
  %.not24 = icmp eq ptr %5, null
  br i1 %.not24, label %._crit_edge.thread, label %.lr.ph

.lr.ph:                                           ; preds = %0, %10
  %6 = phi ptr [ %13, %10 ], [ %5, %0 ]
  %.025 = phi i32 [ %11, %10 ], [ 0, %0 ]
  %7 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.9) #7
  %8 = icmp eq i32 %7, 0
  br i1 %8, label %10, label %9

9:                                                ; preds = %.lr.ph
  call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.4, i32 noundef 363, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #8
  unreachable

10:                                               ; preds = %.lr.ph
  %11 = add nuw nsw i32 %.025, 1
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = call ptr @sc_str_token_begin(ptr noundef %12, ptr noundef nonnull %1, ptr noundef nonnull @.str.1) #6
  %.not = icmp eq ptr %13, null
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

._crit_edge:                                      ; preds = %10
  %14 = icmp eq i32 %11, 4
  br i1 %14, label %15, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %0, %._crit_edge
  call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.4, i32 noundef 366, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #8
  unreachable

15:                                               ; preds = %._crit_edge
  store ptr null, ptr %1, align 8, !tbaa !5
  %16 = call zeroext i1 @sc_str_set(ptr noundef nonnull %2, ptr noundef nonnull @.str.16) #6
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  %18 = call ptr @sc_str_token_begin(ptr noundef %17, ptr noundef nonnull %1, ptr noundef nonnull @.str.17) #6
  %.not2026 = icmp eq ptr %18, null
  br i1 %.not2026, label %._crit_edge30.thread, label %.lr.ph29

.lr.ph29:                                         ; preds = %15, %.lr.ph29
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph29 ], [ 0, %15 ]
  %19 = phi ptr [ %23, %.lr.ph29 ], [ %18, %15 ]
  %20 = getelementptr inbounds [10 x [10 x i8]], ptr %3, i64 0, i64 %indvars.iv
  %21 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %20, ptr noundef nonnull dereferenceable(1) %19) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  %23 = call ptr @sc_str_token_begin(ptr noundef %22, ptr noundef nonnull %1, ptr noundef nonnull @.str.17) #6
  %.not20 = icmp eq ptr %23, null
  br i1 %.not20, label %._crit_edge30, label %.lr.ph29, !llvm.loop !11

._crit_edge30:                                    ; preds = %.lr.ph29
  %24 = icmp eq i64 %indvars.iv.next, 7
  br i1 %24, label %25, label %._crit_edge30.thread

._crit_edge30.thread:                             ; preds = %15, %._crit_edge30
  call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.4, i32 noundef 376, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #8
  unreachable

25:                                               ; preds = %._crit_edge30
  %26 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.19) #7
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %29, label %28

28:                                               ; preds = %25
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.4, i32 noundef 377, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #8
  unreachable

29:                                               ; preds = %25
  %30 = getelementptr inbounds i8, ptr %3, i64 10
  %31 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %30, ptr noundef nonnull dereferenceable(1) @.str.21) #7
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %34, label %33

33:                                               ; preds = %29
  call void @__assert_fail(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.4, i32 noundef 378, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #8
  unreachable

34:                                               ; preds = %29
  %35 = getelementptr inbounds i8, ptr %3, i64 20
  %36 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %35, ptr noundef nonnull dereferenceable(1) @.str.23) #7
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %39, label %38

38:                                               ; preds = %34
  call void @__assert_fail(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.4, i32 noundef 379, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #8
  unreachable

39:                                               ; preds = %34
  %40 = getelementptr inbounds i8, ptr %3, i64 30
  %41 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %40, ptr noundef nonnull dereferenceable(1) @.str.25) #7
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %44, label %43

43:                                               ; preds = %39
  call void @__assert_fail(ptr noundef nonnull @.str.26, ptr noundef nonnull @.str.4, i32 noundef 380, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #8
  unreachable

44:                                               ; preds = %39
  %45 = getelementptr inbounds i8, ptr %3, i64 40
  %46 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %45, ptr noundef nonnull dereferenceable(1) @.str.9) #7
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %49, label %48

48:                                               ; preds = %44
  call void @__assert_fail(ptr noundef nonnull @.str.27, ptr noundef nonnull @.str.4, i32 noundef 381, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #8
  unreachable

49:                                               ; preds = %44
  %50 = getelementptr inbounds i8, ptr %3, i64 50
  %51 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %50, ptr noundef nonnull dereferenceable(1) @.str.28) #7
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %54, label %53

53:                                               ; preds = %49
  call void @__assert_fail(ptr noundef nonnull @.str.29, ptr noundef nonnull @.str.4, i32 noundef 382, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #8
  unreachable

54:                                               ; preds = %49
  %55 = getelementptr inbounds i8, ptr %3, i64 60
  %56 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %55, ptr noundef nonnull dereferenceable(1) @.str.30) #7
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %59, label %58

58:                                               ; preds = %54
  call void @__assert_fail(ptr noundef nonnull @.str.31, ptr noundef nonnull @.str.4, i32 noundef 383, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #8
  unreachable

59:                                               ; preds = %54
  %60 = load ptr, ptr %2, align 8, !tbaa !5
  call void @sc_str_token_end(ptr noundef %60, ptr noundef nonnull %1) #6
  store ptr null, ptr %1, align 8, !tbaa !5
  %61 = call zeroext i1 @sc_str_set(ptr noundef nonnull %2, ptr noundef nonnull @.str.16) #6
  %62 = load ptr, ptr %2, align 8, !tbaa !5
  %63 = call ptr @sc_str_token_begin(ptr noundef %62, ptr noundef nonnull %1, ptr noundef nonnull @.str.17) #6
  %.not21 = icmp eq ptr %63, null
  br i1 %.not21, label %74, label %64

64:                                               ; preds = %59
  %65 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) %63) #6
  %66 = load ptr, ptr %2, align 8, !tbaa !5
  %67 = call ptr @sc_str_token_begin(ptr noundef %66, ptr noundef nonnull %1, ptr noundef nonnull @.str.17) #6
  %.not21.1 = icmp eq ptr %67, null
  br i1 %.not21.1, label %74, label %68

68:                                               ; preds = %64
  %69 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %30, ptr noundef nonnull dereferenceable(1) %67) #6
  %70 = load ptr, ptr %2, align 8, !tbaa !5
  %71 = call ptr @sc_str_token_begin(ptr noundef %70, ptr noundef nonnull %1, ptr noundef nonnull @.str.17) #6
  %.not21.2 = icmp eq ptr %71, null
  br i1 %.not21.2, label %74, label %72

72:                                               ; preds = %68
  %73 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %35, ptr noundef nonnull dereferenceable(1) %71) #6
  br label %74

74:                                               ; preds = %72, %68, %64, %59
  %75 = load ptr, ptr %2, align 8, !tbaa !5
  call void @sc_str_token_end(ptr noundef %75, ptr noundef nonnull %1) #6
  %76 = load ptr, ptr %2, align 8, !tbaa !5
  %77 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %76, ptr noundef nonnull dereferenceable(1) @.str.16) #7
  %78 = icmp eq i32 %77, 0
  br i1 %78, label %80, label %79

79:                                               ; preds = %74
  call void @__assert_fail(ptr noundef nonnull @.str.32, ptr noundef nonnull @.str.4, i32 noundef 399, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #8
  unreachable

80:                                               ; preds = %74
  store ptr null, ptr %1, align 8, !tbaa !5
  %81 = call zeroext i1 @sc_str_set(ptr noundef nonnull %2, ptr noundef nonnull @.str.16) #6
  %82 = load ptr, ptr %2, align 8, !tbaa !5
  %83 = call ptr @sc_str_token_begin(ptr noundef %82, ptr noundef nonnull %1, ptr noundef nonnull @.str.17) #6
  %.not22 = icmp eq ptr %83, null
  br i1 %.not22, label %94, label %84

84:                                               ; preds = %80
  %85 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) %83) #6
  %86 = load ptr, ptr %2, align 8, !tbaa !5
  %87 = call ptr @sc_str_token_begin(ptr noundef %86, ptr noundef nonnull %1, ptr noundef nonnull @.str.17) #6
  %.not22.1 = icmp eq ptr %87, null
  br i1 %.not22.1, label %94, label %88

88:                                               ; preds = %84
  %89 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %30, ptr noundef nonnull dereferenceable(1) %87) #6
  %90 = load ptr, ptr %2, align 8, !tbaa !5
  %91 = call ptr @sc_str_token_begin(ptr noundef %90, ptr noundef nonnull %1, ptr noundef nonnull @.str.17) #6
  %.not22.2 = icmp eq ptr %91, null
  br i1 %.not22.2, label %94, label %92

92:                                               ; preds = %88
  %93 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %35, ptr noundef nonnull dereferenceable(1) %91) #6
  br label %94

94:                                               ; preds = %92, %88, %84, %80
  %95 = load ptr, ptr %2, align 8, !tbaa !5
  call void @sc_str_token_end(ptr noundef %95, ptr noundef nonnull %1) #6
  %96 = load ptr, ptr %2, align 8, !tbaa !5
  %97 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %96, ptr noundef nonnull dereferenceable(1) @.str.16) #7
  %98 = icmp eq i32 %97, 0
  br i1 %98, label %100, label %99

99:                                               ; preds = %94
  call void @__assert_fail(ptr noundef nonnull @.str.32, ptr noundef nonnull @.str.4, i32 noundef 413, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #8
  unreachable

100:                                              ; preds = %94
  call void @sc_str_destroy(ptr noundef nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret void
}

declare zeroext i1 @sc_str_set(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { 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 #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 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 = { nounwind willreturn memory(read) }
attributes #8 = { noreturn 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass