; 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 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [59 x i8], align 1
@__PRETTY_FUNCTION__.test3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @test3() #0 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #5
  store ptr @.str, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  store ptr null, 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
  %6 = load ptr, ptr %1, align 8, !tbaa !5
  %7 = call ptr @sc_str_create(ptr noundef %6)
  store ptr %7, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %8

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

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

16:                                               ; preds = %12
  br label %18

17:                                               ; preds = %12
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 279, ptr noundef @__PRETTY_FUNCTION__.test3) #7
  unreachable

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

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

24:                                               ; preds = %21
  br label %26

25:                                               ; preds = %21
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.4, i32 noundef 283, ptr noundef @__PRETTY_FUNCTION__.test3) #7
  unreachable

26:                                               ; preds = %24
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = load ptr, ptr %1, align 8, !tbaa !5
  %29 = call i32 @strcmp(ptr noundef %27, ptr noundef %28) #6
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %32

31:                                               ; preds = %26
  br label %33

32:                                               ; preds = %26
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.4, i32 noundef 284, ptr noundef @__PRETTY_FUNCTION__.test3) #7
  unreachable

33:                                               ; preds = %31
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = call i64 @sc_str_len(ptr noundef %34)
  %36 = load ptr, ptr %1, align 8, !tbaa !5
  %37 = call i64 @strlen(ptr noundef %36) #6
  %38 = icmp eq i64 %35, %37
  br i1 %38, label %39, label %40

39:                                               ; preds = %33
  br label %41

40:                                               ; preds = %33
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.4, i32 noundef 285, ptr noundef @__PRETTY_FUNCTION__.test3) #7
  unreachable

41:                                               ; preds = %39
  store i32 0, ptr %5, align 4, !tbaa !9
  store ptr null, ptr %2, align 8, !tbaa !5
  br label %42

42:                                               ; preds = %52, %41
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = call ptr @sc_str_token_begin(ptr noundef %43, ptr noundef %2, ptr noundef @.str.1)
  store ptr %44, ptr %3, align 8, !tbaa !5
  %45 = icmp ne ptr %44, null
  br i1 %45, label %46, label %55

46:                                               ; preds = %42
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = call i32 @strcmp(ptr noundef %47, ptr noundef @.str.2) #6
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %51

50:                                               ; preds = %46
  br label %52

51:                                               ; preds = %46
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 290, ptr noundef @__PRETTY_FUNCTION__.test3) #7
  unreachable

52:                                               ; preds = %50
  %53 = load i32, ptr %5, align 4, !tbaa !9
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %5, align 4, !tbaa !9
  br label %42, !llvm.loop !13

55:                                               ; preds = %42
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sc_str_token_end(ptr noundef %56, ptr noundef %2)
  %57 = load i32, ptr %5, align 4, !tbaa !9
  %58 = icmp eq i32 %57, 4
  br i1 %58, label %59, label %60

59:                                               ; preds = %55
  br label %61

60:                                               ; preds = %55
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.4, i32 noundef 295, ptr noundef @__PRETTY_FUNCTION__.test3) #7
  unreachable

61:                                               ; preds = %59
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = load ptr, ptr %1, align 8, !tbaa !5
  %64 = call i32 @strcmp(ptr noundef %62, ptr noundef %63) #6
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %66, label %67

66:                                               ; preds = %61
  br label %68

67:                                               ; preds = %61
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.4, i32 noundef 296, ptr noundef @__PRETTY_FUNCTION__.test3) #7
  unreachable

68:                                               ; preds = %66
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = call i64 @sc_str_len(ptr noundef %69)
  %71 = load ptr, ptr %1, align 8, !tbaa !5
  %72 = call i64 @strlen(ptr noundef %71) #6
  %73 = icmp eq i64 %70, %72
  br i1 %73, label %74, label %75

74:                                               ; preds = %68
  br label %76

75:                                               ; preds = %68
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.4, i32 noundef 297, ptr noundef @__PRETTY_FUNCTION__.test3) #7
  unreachable

76:                                               ; preds = %74
  store i32 0, ptr %5, align 4, !tbaa !9
  store ptr null, ptr %2, align 8, !tbaa !5
  br label %77

77:                                               ; preds = %93, %76
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = call ptr @sc_str_token_begin(ptr noundef %78, ptr noundef %2, ptr noundef @.str.1)
  store ptr %79, ptr %3, align 8, !tbaa !5
  %80 = icmp ne ptr %79, null
  br i1 %80, label %81, label %94

81:                                               ; preds = %77
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = call i32 @strcmp(ptr noundef %82, ptr noundef @.str.2) #6
  %84 = icmp eq i32 %83, 0
  br i1 %84, label %85, label %86

85:                                               ; preds = %81
  br label %87

86:                                               ; preds = %81
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 302, ptr noundef @__PRETTY_FUNCTION__.test3) #7
  unreachable

87:                                               ; preds = %85
  %88 = load i32, ptr %5, align 4, !tbaa !9
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %5, align 4, !tbaa !9
  %90 = load i32, ptr %5, align 4, !tbaa !9
  %91 = icmp eq i32 %90, 4
  br i1 %91, label %92, label %93

92:                                               ; preds = %87
  br label %94

93:                                               ; preds = %87
  br label %77, !llvm.loop !14

94:                                               ; preds = %92, %77
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sc_str_token_end(ptr noundef %95, ptr noundef %2)
  %96 = load i32, ptr %5, align 4, !tbaa !9
  %97 = icmp eq i32 %96, 4
  br i1 %97, label %98, label %99

98:                                               ; preds = %94
  br label %100

99:                                               ; preds = %94
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.4, i32 noundef 310, ptr noundef @__PRETTY_FUNCTION__.test3) #7
  unreachable

100:                                              ; preds = %98
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = load ptr, ptr %1, align 8, !tbaa !5
  %103 = call i32 @strcmp(ptr noundef %101, ptr noundef %102) #6
  %104 = icmp eq i32 %103, 0
  br i1 %104, label %105, label %106

105:                                              ; preds = %100
  br label %107

106:                                              ; preds = %100
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.4, i32 noundef 311, ptr noundef @__PRETTY_FUNCTION__.test3) #7
  unreachable

107:                                              ; preds = %105
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = call i64 @sc_str_len(ptr noundef %108)
  %110 = load ptr, ptr %1, align 8, !tbaa !5
  %111 = call i64 @strlen(ptr noundef %110) #6
  %112 = icmp eq i64 %109, %111
  br i1 %112, label %113, label %114

113:                                              ; preds = %107
  br label %115

114:                                              ; preds = %107
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.4, i32 noundef 312, ptr noundef @__PRETTY_FUNCTION__.test3) #7
  unreachable

115:                                              ; preds = %113
  store ptr null, ptr %2, align 8, !tbaa !5
  br label %116

116:                                              ; preds = %120, %115
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = call ptr @sc_str_token_begin(ptr noundef %117, ptr noundef %2, ptr noundef @.str.8)
  store ptr %118, ptr %3, align 8, !tbaa !5
  %119 = icmp ne ptr %118, null
  br i1 %119, label %120, label %121

120:                                              ; preds = %116
  br label %116, !llvm.loop !15

121:                                              ; preds = %116
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sc_str_token_end(ptr noundef %122, ptr noundef %2)
  call void @sc_str_destroy(ptr noundef %4)
  %123 = call ptr @sc_str_create(ptr noundef null)
  store ptr %123, ptr %4, align 8, !tbaa !5
  store ptr null, ptr %2, align 8, !tbaa !5
  br label %124

124:                                              ; preds = %134, %121
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = call ptr @sc_str_token_begin(ptr noundef %125, ptr noundef %2, ptr noundef @.str.9)
  store ptr %126, ptr %3, align 8, !tbaa !5
  %127 = icmp ne ptr %126, null
  br i1 %127, label %128, label %135

128:                                              ; preds = %124
  %129 = load ptr, ptr %3, align 8, !tbaa !5
  %130 = call i32 @strcmp(ptr noundef %129, ptr noundef @.str.2) #6
  %131 = icmp eq i32 %130, 0
  br i1 %131, label %132, label %133

132:                                              ; preds = %128
  br label %134

133:                                              ; preds = %128
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 323, ptr noundef @__PRETTY_FUNCTION__.test3) #7
  unreachable

134:                                              ; preds = %132
  br label %124, !llvm.loop !16

135:                                              ; preds = %124
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sc_str_token_end(ptr noundef %136, ptr noundef %2)
  call void @sc_str_destroy(ptr noundef %4)
  %137 = call ptr @sc_str_create(ptr noundef @.str.10)
  store ptr %137, ptr %4, align 8, !tbaa !5
  store ptr null, ptr %2, align 8, !tbaa !5
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sc_str_token_end(ptr noundef %138, ptr noundef %2)
  call void @sc_str_destroy(ptr noundef %4)
  %139 = call ptr @sc_str_create(ptr noundef @.str.10)
  store ptr %139, ptr %4, align 8, !tbaa !5
  store ptr null, ptr %2, align 8, !tbaa !5
  br label %140

140:                                              ; preds = %135
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = call ptr @sc_str_token_begin(ptr noundef %141, ptr noundef %2, ptr noundef @.str.11)
  store ptr %142, ptr %3, align 8, !tbaa !5
  %143 = icmp ne ptr %142, null
  br i1 %143, label %144, label %151

144:                                              ; preds = %140
  %145 = load ptr, ptr %3, align 8, !tbaa !5
  %146 = call i32 @strcmp(ptr noundef %145, ptr noundef @.str.12) #6
  %147 = icmp eq i32 %146, 0
  br i1 %147, label %148, label %149

148:                                              ; preds = %144
  br label %150

149:                                              ; preds = %144
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.4, i32 noundef 336, ptr noundef @__PRETTY_FUNCTION__.test3) #7
  unreachable

150:                                              ; preds = %148
  br label %151

151:                                              ; preds = %150, %140
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sc_str_token_end(ptr noundef %152, ptr noundef %2)
  call void @sc_str_destroy(ptr noundef %4)
  %153 = call ptr @sc_str_create(ptr noundef @.str.10)
  store ptr %153, ptr %4, align 8, !tbaa !5
  store ptr null, ptr %2, align 8, !tbaa !5
  br label %154

154:                                              ; preds = %151
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = call ptr @sc_str_token_begin(ptr noundef %155, ptr noundef %2, ptr noundef @.str.11)
  store ptr %156, ptr %3, align 8, !tbaa !5
  %157 = icmp ne ptr %156, null
  br i1 %157, label %158, label %165

158:                                              ; preds = %154
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %160 = call i32 @strcmp(ptr noundef %159, ptr noundef @.str.12) #6
  %161 = icmp eq i32 %160, 0
  br i1 %161, label %162, label %163

162:                                              ; preds = %158
  br label %164

163:                                              ; preds = %158
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.4, i32 noundef 345, ptr noundef @__PRETTY_FUNCTION__.test3) #7
  unreachable

164:                                              ; preds = %162
  br label %165

165:                                              ; preds = %164, %154
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sc_str_token_end(ptr noundef %166, ptr noundef %2)
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sc_str_token_end(ptr noundef %167, ptr noundef %2)
  call void @sc_str_destroy(ptr noundef %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #5
  ret void
}

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

declare ptr @sc_str_create(ptr noundef) #2

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

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

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

declare i64 @sc_str_len(ptr noundef) #2

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

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

declare void @sc_str_destroy(ptr noundef) #2

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

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 = { 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 = { 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 #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }
attributes #7 = { 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}
!16 = distinct !{!16, !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 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [59 x i8], align 1
@__PRETTY_FUNCTION__.test3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @test3() local_unnamed_addr #0 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #5
  store ptr null, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %3 = tail call ptr @sc_str_create(ptr noundef nonnull @.str) #5
  store ptr %3, ptr %2, align 8, !tbaa !5
  %4 = call ptr @sc_str_token_begin(ptr noundef %3, ptr noundef nonnull %1, ptr noundef nonnull @.str.1) #5
  %.not38 = icmp eq ptr %4, null
  br i1 %.not38, label %._crit_edge.thread, label %.lr.ph

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

8:                                                ; preds = %.lr.ph
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 279, ptr noundef nonnull @__PRETTY_FUNCTION__.test3) #7
  unreachable

9:                                                ; preds = %.lr.ph
  %10 = add nuw nsw i32 %.039, 1
  %11 = call ptr @sc_str_token_begin(ptr noundef %3, ptr noundef nonnull %1, ptr noundef nonnull @.str.1) #5
  %.not = icmp eq ptr %11, null
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

._crit_edge:                                      ; preds = %9
  %12 = icmp eq i32 %10, 4
  br i1 %12, label %13, 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 283, ptr noundef nonnull @__PRETTY_FUNCTION__.test3) #7
  unreachable

13:                                               ; preds = %._crit_edge
  %14 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str) #6
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %17, label %16

16:                                               ; preds = %13
  call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.4, i32 noundef 284, ptr noundef nonnull @__PRETTY_FUNCTION__.test3) #7
  unreachable

17:                                               ; preds = %13
  %18 = call i64 @sc_str_len(ptr noundef %3) #5
  %19 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str) #6
  %20 = icmp eq i64 %18, %19
  br i1 %20, label %22, label %21

21:                                               ; preds = %17
  call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4, i32 noundef 285, ptr noundef nonnull @__PRETTY_FUNCTION__.test3) #7
  unreachable

22:                                               ; preds = %17
  store ptr null, ptr %1, align 8, !tbaa !5
  %23 = call ptr @sc_str_token_begin(ptr noundef %3, ptr noundef nonnull %1, ptr noundef nonnull @.str.1) #5
  %.not2740 = icmp eq ptr %23, null
  br i1 %.not2740, label %._crit_edge44.thread, label %.lr.ph43

._crit_edge44.thread:                             ; preds = %22
  call void @sc_str_token_end(ptr noundef %3, ptr noundef nonnull %1) #5
  br label %32

.lr.ph43:                                         ; preds = %22, %28
  %24 = phi ptr [ %30, %28 ], [ %23, %22 ]
  %.141 = phi i32 [ %29, %28 ], [ 0, %22 ]
  %25 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %24, ptr noundef nonnull dereferenceable(1) @.str.2) #6
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %28, label %27

27:                                               ; preds = %.lr.ph43
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 290, ptr noundef nonnull @__PRETTY_FUNCTION__.test3) #7
  unreachable

28:                                               ; preds = %.lr.ph43
  %29 = add nuw nsw i32 %.141, 1
  %30 = call ptr @sc_str_token_begin(ptr noundef %3, ptr noundef nonnull %1, ptr noundef nonnull @.str.1) #5
  %.not27 = icmp eq ptr %30, null
  br i1 %.not27, label %._crit_edge44, label %.lr.ph43, !llvm.loop !11

._crit_edge44:                                    ; preds = %28
  call void @sc_str_token_end(ptr noundef %3, ptr noundef nonnull %1) #5
  %31 = icmp eq i32 %29, 4
  br i1 %31, label %33, label %32

32:                                               ; preds = %._crit_edge44.thread, %._crit_edge44
  call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.4, i32 noundef 295, ptr noundef nonnull @__PRETTY_FUNCTION__.test3) #7
  unreachable

33:                                               ; preds = %._crit_edge44
  %34 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str) #6
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %37, label %36

36:                                               ; preds = %33
  call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.4, i32 noundef 296, ptr noundef nonnull @__PRETTY_FUNCTION__.test3) #7
  unreachable

37:                                               ; preds = %33
  %38 = call i64 @sc_str_len(ptr noundef %3) #5
  %39 = icmp eq i64 %38, %18
  br i1 %39, label %41, label %40

40:                                               ; preds = %37
  call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4, i32 noundef 297, ptr noundef nonnull @__PRETTY_FUNCTION__.test3) #7
  unreachable

41:                                               ; preds = %37
  store ptr null, ptr %1, align 8, !tbaa !5
  %42 = call ptr @sc_str_token_begin(ptr noundef %3, ptr noundef nonnull %1, ptr noundef nonnull @.str.1) #5
  %.not28 = icmp eq ptr %42, null
  br i1 %.not28, label %62, label %43

43:                                               ; preds = %41
  %44 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %42, ptr noundef nonnull dereferenceable(1) @.str.2) #6
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %47, label %46

46:                                               ; preds = %59, %54, %49, %43
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 302, ptr noundef nonnull @__PRETTY_FUNCTION__.test3) #7
  unreachable

47:                                               ; preds = %43
  %48 = call ptr @sc_str_token_begin(ptr noundef %3, ptr noundef nonnull %1, ptr noundef nonnull @.str.1) #5
  %.not28.1 = icmp eq ptr %48, null
  br i1 %.not28.1, label %62, label %49

49:                                               ; preds = %47
  %50 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %48, ptr noundef nonnull dereferenceable(1) @.str.2) #6
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %52, label %46

52:                                               ; preds = %49
  %53 = call ptr @sc_str_token_begin(ptr noundef %3, ptr noundef nonnull %1, ptr noundef nonnull @.str.1) #5
  %.not28.2 = icmp eq ptr %53, null
  br i1 %.not28.2, label %62, label %54

54:                                               ; preds = %52
  %55 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %53, ptr noundef nonnull dereferenceable(1) @.str.2) #6
  %56 = icmp eq i32 %55, 0
  br i1 %56, label %57, label %46

57:                                               ; preds = %54
  %58 = call ptr @sc_str_token_begin(ptr noundef %3, ptr noundef nonnull %1, ptr noundef nonnull @.str.1) #5
  %.not28.3 = icmp eq ptr %58, null
  br i1 %.not28.3, label %62, label %59

59:                                               ; preds = %57
  %60 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %58, ptr noundef nonnull dereferenceable(1) @.str.2) #6
  %61 = icmp eq i32 %60, 0
  br i1 %61, label %63, label %46

62:                                               ; preds = %41, %47, %52, %57
  call void @sc_str_token_end(ptr noundef %3, ptr noundef nonnull %1) #5
  call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.4, i32 noundef 310, ptr noundef nonnull @__PRETTY_FUNCTION__.test3) #7
  unreachable

63:                                               ; preds = %59
  call void @sc_str_token_end(ptr noundef %3, ptr noundef nonnull %1) #5
  %64 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str) #6
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %67, label %66

66:                                               ; preds = %63
  call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.4, i32 noundef 311, ptr noundef nonnull @__PRETTY_FUNCTION__.test3) #7
  unreachable

67:                                               ; preds = %63
  %68 = call i64 @sc_str_len(ptr noundef %3) #5
  %69 = icmp eq i64 %68, %18
  br i1 %69, label %71, label %70

70:                                               ; preds = %67
  call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4, i32 noundef 312, ptr noundef nonnull @__PRETTY_FUNCTION__.test3) #7
  unreachable

71:                                               ; preds = %67
  store ptr null, ptr %1, align 8, !tbaa !5
  br label %72

72:                                               ; preds = %72, %71
  %73 = call ptr @sc_str_token_begin(ptr noundef %3, ptr noundef nonnull %1, ptr noundef nonnull @.str.8) #5
  %.not29 = icmp eq ptr %73, null
  br i1 %.not29, label %74, label %72, !llvm.loop !12

74:                                               ; preds = %72
  call void @sc_str_token_end(ptr noundef %3, ptr noundef nonnull %1) #5
  call void @sc_str_destroy(ptr noundef nonnull %2) #5
  %75 = call ptr @sc_str_create(ptr noundef null) #5
  store ptr %75, ptr %2, align 8, !tbaa !5
  store ptr null, ptr %1, align 8, !tbaa !5
  br label %76

76:                                               ; preds = %79, %74
  %77 = load ptr, ptr %2, align 8, !tbaa !5
  %78 = call ptr @sc_str_token_begin(ptr noundef %77, ptr noundef nonnull %1, ptr noundef nonnull @.str.9) #5
  %.not30 = icmp eq ptr %78, null
  br i1 %.not30, label %83, label %79

79:                                               ; preds = %76
  %80 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %78, ptr noundef nonnull dereferenceable(1) @.str.2) #6
  %81 = icmp eq i32 %80, 0
  br i1 %81, label %76, label %82, !llvm.loop !13

82:                                               ; preds = %79
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 323, ptr noundef nonnull @__PRETTY_FUNCTION__.test3) #7
  unreachable

83:                                               ; preds = %76
  %84 = load ptr, ptr %2, align 8, !tbaa !5
  call void @sc_str_token_end(ptr noundef %84, ptr noundef nonnull %1) #5
  call void @sc_str_destroy(ptr noundef nonnull %2) #5
  %85 = call ptr @sc_str_create(ptr noundef nonnull @.str.10) #5
  store ptr %85, ptr %2, align 8, !tbaa !5
  store ptr null, ptr %1, align 8, !tbaa !5
  call void @sc_str_token_end(ptr noundef %85, ptr noundef nonnull %1) #5
  call void @sc_str_destroy(ptr noundef nonnull %2) #5
  %86 = call ptr @sc_str_create(ptr noundef nonnull @.str.10) #5
  store ptr %86, ptr %2, align 8, !tbaa !5
  store ptr null, ptr %1, align 8, !tbaa !5
  %87 = call ptr @sc_str_token_begin(ptr noundef %86, ptr noundef nonnull %1, ptr noundef nonnull @.str.11) #5
  %.not31 = icmp eq ptr %87, null
  br i1 %.not31, label %92, label %88

88:                                               ; preds = %83
  %89 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %87, ptr noundef nonnull dereferenceable(1) @.str.12) #6
  %90 = icmp eq i32 %89, 0
  br i1 %90, label %92, label %91

91:                                               ; preds = %88
  call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.4, i32 noundef 336, ptr noundef nonnull @__PRETTY_FUNCTION__.test3) #7
  unreachable

92:                                               ; preds = %88, %83
  %93 = load ptr, ptr %2, align 8, !tbaa !5
  call void @sc_str_token_end(ptr noundef %93, ptr noundef nonnull %1) #5
  call void @sc_str_destroy(ptr noundef nonnull %2) #5
  %94 = call ptr @sc_str_create(ptr noundef nonnull @.str.10) #5
  store ptr %94, ptr %2, align 8, !tbaa !5
  store ptr null, ptr %1, align 8, !tbaa !5
  %95 = call ptr @sc_str_token_begin(ptr noundef %94, ptr noundef nonnull %1, ptr noundef nonnull @.str.11) #5
  %.not32 = icmp eq ptr %95, null
  br i1 %.not32, label %100, label %96

96:                                               ; preds = %92
  %97 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %95, ptr noundef nonnull dereferenceable(1) @.str.12) #6
  %98 = icmp eq i32 %97, 0
  br i1 %98, label %100, label %99

99:                                               ; preds = %96
  call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.4, i32 noundef 345, ptr noundef nonnull @__PRETTY_FUNCTION__.test3) #7
  unreachable

100:                                              ; preds = %96, %92
  %101 = load ptr, ptr %2, align 8, !tbaa !5
  call void @sc_str_token_end(ptr noundef %101, ptr noundef nonnull %1) #5
  %102 = load ptr, ptr %2, align 8, !tbaa !5
  call void @sc_str_token_end(ptr noundef %102, ptr noundef nonnull %1) #5
  call void @sc_str_destroy(ptr noundef nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  ret void
}

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

declare ptr @sc_str_create(ptr noundef) local_unnamed_addr #2

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

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

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

declare i64 @sc_str_len(ptr noundef) local_unnamed_addr #2

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

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

declare void @sc_str_destroy(ptr noundef) local_unnamed_addr #2

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

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 = { "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 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }
attributes #7 = { 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}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}


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