; LLVM IR from Water-Melon/Melon :: t (string)

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

@__const.main.text = external hidden unnamed_addr constant { ptr, i64, i8, i8, i8, i8 }, align 8
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [62 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [15 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [44 x i8], align 1

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

13:                                               ; preds = %0
  br label %15

14:                                               ; preds = %0
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 8, ptr noundef @__PRETTY_FUNCTION__.main) #7
  unreachable

15:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %16, ptr %6, align 8, !tbaa !5
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.mln_string_t, ptr %17, i32 0, i32 2
  %19 = load i32, ptr %18, align 8
  %20 = lshr i32 %19, 2
  %21 = zext i32 %20 to i64
  %22 = add i64 %21, 1
  %23 = trunc i64 %22 to i32
  %24 = load i32, ptr %18, align 8
  %25 = and i32 %23, 1073741823
  %26 = shl i32 %25, 2
  %27 = and i32 %24, 3
  %28 = or i32 %27, %26
  store i32 %28, ptr %18, align 8
  %29 = zext i32 %25 to i64
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %30, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %31, ptr %4, align 8, !tbaa !5
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = icmp eq ptr %31, %32
  br i1 %33, label %34, label %35

34:                                               ; preds = %15
  br label %36

35:                                               ; preds = %15
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 10, ptr noundef @__PRETTY_FUNCTION__.main) #7
  unreachable

36:                                               ; preds = %34
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = call i32 @mln_string_strcmp(ptr noundef %37, ptr noundef %2)
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %41, label %40

40:                                               ; preds = %36
  br label %42

41:                                               ; preds = %36
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.2, i32 noundef 12, ptr noundef @__PRETTY_FUNCTION__.main) #7
  unreachable

42:                                               ; preds = %40
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = call ptr @mln_string_slice(ptr noundef %43, ptr noundef @.str.5)
  store ptr %44, ptr %3, align 8, !tbaa !5
  %45 = icmp ne ptr %44, null
  br i1 %45, label %46, label %47

46:                                               ; preds = %42
  br label %48

47:                                               ; preds = %42
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.2, i32 noundef 14, ptr noundef @__PRETTY_FUNCTION__.main) #7
  unreachable

48:                                               ; preds = %46
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.mln_string_t, ptr %49, i64 0
  %51 = getelementptr inbounds %struct.mln_string_t, ptr %50, i32 0, i32 1
  %52 = load i64, ptr %51, align 8, !tbaa !9
  %53 = icmp ugt i64 %52, 0
  br i1 %53, label %54, label %55

54:                                               ; preds = %48
  br label %56

55:                                               ; preds = %48
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.2, i32 noundef 16, ptr noundef @__PRETTY_FUNCTION__.main) #7
  unreachable

56:                                               ; preds = %54
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.mln_string_t, ptr %57, i64 0
  %59 = call i32 @mln_string_const_strcmp(ptr noundef %58, ptr noundef @.str.8)
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %62, label %61

61:                                               ; preds = %56
  br label %63

62:                                               ; preds = %56
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.2, i32 noundef 17, ptr noundef @__PRETTY_FUNCTION__.main) #7
  unreachable

63:                                               ; preds = %61
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.mln_string_t, ptr %64, i64 1
  %66 = getelementptr inbounds %struct.mln_string_t, ptr %65, i32 0, i32 1
  %67 = load i64, ptr %66, align 8, !tbaa !9
  %68 = icmp ugt i64 %67, 0
  br i1 %68, label %69, label %70

69:                                               ; preds = %63
  br label %71

70:                                               ; preds = %63
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.2, i32 noundef 18, ptr noundef @__PRETTY_FUNCTION__.main) #7
  unreachable

71:                                               ; preds = %69
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.mln_string_t, ptr %72, i64 1
  %74 = call i32 @mln_string_const_strcmp(ptr noundef %73, ptr noundef @.str.11)
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %77, label %76

76:                                               ; preds = %71
  br label %78

77:                                               ; preds = %71
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.2, i32 noundef 19, ptr noundef @__PRETTY_FUNCTION__.main) #7
  unreachable

78:                                               ; preds = %76
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  call void @mln_string_slice_free(ptr noundef %79)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %80, ptr %8, align 8, !tbaa !5
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = icmp ne ptr %81, null
  br i1 %82, label %83, label %141

83:                                               ; preds = %78
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.mln_string_t, ptr %84, i32 0, i32 2
  %86 = load i32, ptr %85, align 8
  %87 = lshr i32 %86, 2
  %88 = zext i32 %87 to i64
  %89 = add i64 %88, -1
  %90 = trunc i64 %89 to i32
  %91 = load i32, ptr %85, align 8
  %92 = and i32 %90, 1073741823
  %93 = shl i32 %92, 2
  %94 = and i32 %91, 3
  %95 = or i32 %94, %93
  store i32 %95, ptr %85, align 8
  %96 = zext i32 %92 to i64
  %97 = icmp ule i64 %88, 1
  br i1 %97, label %98, label %140

98:                                               ; preds = %83
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.mln_string_t, ptr %99, i32 0, i32 2
  %101 = load i32, ptr %100, align 8
  %102 = and i32 %101, 1
  %103 = zext i32 %102 to i64
  %104 = icmp ne i64 %103, 0
  br i1 %104, label %127, label %105

105:                                              ; preds = %98
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.mln_string_t, ptr %106, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8, !tbaa !12
  %109 = icmp ne ptr %108, null
  br i1 %109, label %110, label %127

110:                                              ; preds = %105
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.mln_string_t, ptr %111, i32 0, i32 2
  %113 = load i32, ptr %112, align 8
  %114 = lshr i32 %113, 1
  %115 = and i32 %114, 1
  %116 = zext i32 %115 to i64
  %117 = icmp ne i64 %116, 0
  br i1 %117, label %118, label %122

118:                                              ; preds = %110
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.mln_string_t, ptr %119, i32 0, i32 0
  %121 = load ptr, ptr %120, align 8, !tbaa !12
  call void @mln_alloc_free(ptr noundef %121)
  br label %126

122:                                              ; preds = %110
  %123 = load ptr, ptr %8, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.mln_string_t, ptr %123, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8, !tbaa !12
  call void @free(ptr noundef %125) #6
  br label %126

126:                                              ; preds = %122, %118
  br label %127

127:                                              ; preds = %126, %105, %98
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.mln_string_t, ptr %128, i32 0, i32 2
  %130 = load i32, ptr %129, align 8
  %131 = lshr i32 %130, 1
  %132 = and i32 %131, 1
  %133 = zext i32 %132 to i64
  %134 = icmp ne i64 %133, 0
  br i1 %134, label %135, label %137

135:                                              ; preds = %127
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  call void @mln_alloc_free(ptr noundef %136)
  br label %139

137:                                              ; preds = %127
  %138 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %138) #6
  br label %139

139:                                              ; preds = %137, %135
  br label %140

140:                                              ; preds = %139, %83
  br label %141

141:                                              ; preds = %140, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %142, ptr %9, align 8, !tbaa !5
  %143 = load ptr, ptr %9, align 8, !tbaa !5
  %144 = icmp ne ptr %143, null
  br i1 %144, label %145, label %203

145:                                              ; preds = %141
  %146 = load ptr, ptr %9, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.mln_string_t, ptr %146, i32 0, i32 2
  %148 = load i32, ptr %147, align 8
  %149 = lshr i32 %148, 2
  %150 = zext i32 %149 to i64
  %151 = add i64 %150, -1
  %152 = trunc i64 %151 to i32
  %153 = load i32, ptr %147, align 8
  %154 = and i32 %152, 1073741823
  %155 = shl i32 %154, 2
  %156 = and i32 %153, 3
  %157 = or i32 %156, %155
  store i32 %157, ptr %147, align 8
  %158 = zext i32 %154 to i64
  %159 = icmp ule i64 %150, 1
  br i1 %159, label %160, label %202

160:                                              ; preds = %145
  %161 = load ptr, ptr %9, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.mln_string_t, ptr %161, i32 0, i32 2
  %163 = load i32, ptr %162, align 8
  %164 = and i32 %163, 1
  %165 = zext i32 %164 to i64
  %166 = icmp ne i64 %165, 0
  br i1 %166, label %189, label %167

167:                                              ; preds = %160
  %168 = load ptr, ptr %9, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.mln_string_t, ptr %168, i32 0, i32 0
  %170 = load ptr, ptr %169, align 8, !tbaa !12
  %171 = icmp ne ptr %170, null
  br i1 %171, label %172, label %189

172:                                              ; preds = %167
  %173 = load ptr, ptr %9, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.mln_string_t, ptr %173, i32 0, i32 2
  %175 = load i32, ptr %174, align 8
  %176 = lshr i32 %175, 1
  %177 = and i32 %176, 1
  %178 = zext i32 %177 to i64
  %179 = icmp ne i64 %178, 0
  br i1 %179, label %180, label %184

180:                                              ; preds = %172
  %181 = load ptr, ptr %9, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.mln_string_t, ptr %181, i32 0, i32 0
  %183 = load ptr, ptr %182, align 8, !tbaa !12
  call void @mln_alloc_free(ptr noundef %183)
  br label %188

184:                                              ; preds = %172
  %185 = load ptr, ptr %9, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.mln_string_t, ptr %185, i32 0, i32 0
  %187 = load ptr, ptr %186, align 8, !tbaa !12
  call void @free(ptr noundef %187) #6
  br label %188

188:                                              ; preds = %184, %180
  br label %189

189:                                              ; preds = %188, %167, %160
  %190 = load ptr, ptr %9, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.mln_string_t, ptr %190, i32 0, i32 2
  %192 = load i32, ptr %191, align 8
  %193 = lshr i32 %192, 1
  %194 = and i32 %193, 1
  %195 = zext i32 %194 to i64
  %196 = icmp ne i64 %195, 0
  br i1 %196, label %197, label %199

197:                                              ; preds = %189
  %198 = load ptr, ptr %9, align 8, !tbaa !5
  call void @mln_alloc_free(ptr noundef %198)
  br label %201

199:                                              ; preds = %189
  %200 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %200) #6
  br label %201

201:                                              ; preds = %199, %197
  br label %202

202:                                              ; preds = %201, %145
  br label %203

203:                                              ; preds = %202, %141
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #6
  ret i32 0
}

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

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

declare ptr @mln_string_dup(ptr noundef) #3

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

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

declare i32 @mln_string_strcmp(ptr noundef, ptr noundef) #3

declare ptr @mln_string_slice(ptr noundef, ptr noundef) #3

declare i32 @mln_string_const_strcmp(ptr noundef, ptr noundef) #3

declare void @mln_string_slice_free(ptr noundef) #3

declare void @mln_alloc_free(ptr noundef) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #5

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 "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 = { 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, !11, i64 8}
!10 = !{!"", !6, i64 0, !11, i64 8, !11, i64 16, !11, i64 16, !11, i64 16}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !6, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.mln_string_t = type { ptr, i64, i32 }

@__const.main.text = external hidden unnamed_addr constant { ptr, i64, i8, i8, i8, i8 }, align 8
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [62 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [15 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [44 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca %struct.mln_string_t, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) @__const.main.text, i64 24, i1 false)
  %2 = call ptr @mln_string_dup(ptr noundef nonnull %1) #6
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %3, label %4

3:                                                ; preds = %0
  call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 8, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #7
  unreachable

4:                                                ; preds = %0
  %5 = getelementptr inbounds i8, ptr %2, i64 16
  %6 = load i32, ptr %5, align 8
  %7 = and i32 %6, -4
  %8 = add i32 %7, 4
  %9 = and i32 %6, 3
  %10 = or disjoint i32 %8, %9
  store i32 %10, ptr %5, align 8
  %11 = call i32 @mln_string_strcmp(ptr noundef nonnull %2, ptr noundef nonnull %1) #6
  %.not38 = icmp eq i32 %11, 0
  br i1 %.not38, label %13, label %12

12:                                               ; preds = %4
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.2, i32 noundef 12, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #7
  unreachable

13:                                               ; preds = %4
  %14 = call ptr @mln_string_slice(ptr noundef nonnull %2, ptr noundef nonnull @.str.5) #6
  %.not39 = icmp eq ptr %14, null
  br i1 %.not39, label %15, label %16

15:                                               ; preds = %13
  call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.2, i32 noundef 14, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #7
  unreachable

16:                                               ; preds = %13
  %17 = getelementptr inbounds i8, ptr %14, i64 8
  %18 = load i64, ptr %17, align 8, !tbaa !5
  %.not40 = icmp eq i64 %18, 0
  br i1 %.not40, label %19, label %20

19:                                               ; preds = %16
  call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.2, i32 noundef 16, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #7
  unreachable

20:                                               ; preds = %16
  %21 = call i32 @mln_string_const_strcmp(ptr noundef nonnull %14, ptr noundef nonnull @.str.8) #6
  %.not41 = icmp eq i32 %21, 0
  br i1 %.not41, label %23, label %22

22:                                               ; preds = %20
  call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.2, i32 noundef 17, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #7
  unreachable

23:                                               ; preds = %20
  %24 = getelementptr inbounds i8, ptr %14, i64 32
  %25 = load i64, ptr %24, align 8, !tbaa !5
  %.not42 = icmp eq i64 %25, 0
  br i1 %.not42, label %26, label %27

26:                                               ; preds = %23
  call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.2, i32 noundef 18, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #7
  unreachable

27:                                               ; preds = %23
  %28 = getelementptr inbounds i8, ptr %14, i64 24
  %29 = call i32 @mln_string_const_strcmp(ptr noundef nonnull %28, ptr noundef nonnull @.str.11) #6
  %.not43 = icmp eq i32 %29, 0
  br i1 %.not43, label %31, label %30

30:                                               ; preds = %27
  call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.2, i32 noundef 19, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #7
  unreachable

31:                                               ; preds = %27
  call void @mln_string_slice_free(ptr noundef nonnull %14) #6
  %32 = load i32, ptr %5, align 8
  %33 = and i32 %32, -4
  %34 = add i32 %33, -4
  %35 = and i32 %32, 3
  %36 = or disjoint i32 %34, %35
  store i32 %36, ptr %5, align 8
  %37 = icmp ult i32 %32, 8
  br i1 %37, label %38, label %51

38:                                               ; preds = %31
  %39 = and i32 %32, 1
  %.not44 = icmp eq i32 %39, 0
  br i1 %.not44, label %40, label %46

40:                                               ; preds = %38
  %41 = load ptr, ptr %2, align 8, !tbaa !11
  %.not45 = icmp eq ptr %41, null
  br i1 %.not45, label %46, label %42

42:                                               ; preds = %40
  %43 = and i32 %32, 2
  %.not46 = icmp eq i32 %43, 0
  br i1 %.not46, label %45, label %44

44:                                               ; preds = %42
  call void @mln_alloc_free(ptr noundef nonnull %41) #6
  br label %46

45:                                               ; preds = %42
  call void @free(ptr noundef nonnull %41) #6
  br label %46

46:                                               ; preds = %44, %45, %40, %38
  %47 = load i32, ptr %5, align 8
  %48 = and i32 %47, 2
  %.not47 = icmp eq i32 %48, 0
  br i1 %.not47, label %50, label %49

49:                                               ; preds = %46
  call void @mln_alloc_free(ptr noundef nonnull %2) #6
  br label %thread-pre-split

50:                                               ; preds = %46
  call void @free(ptr noundef nonnull %2) #6
  br label %thread-pre-split

thread-pre-split:                                 ; preds = %50, %49
  %.pr = load i32, ptr %5, align 8
  br label %51

51:                                               ; preds = %thread-pre-split, %31
  %52 = phi i32 [ %.pr, %thread-pre-split ], [ %36, %31 ]
  %53 = and i32 %52, -4
  %54 = add i32 %53, -4
  %55 = and i32 %52, 3
  %56 = or disjoint i32 %54, %55
  store i32 %56, ptr %5, align 8
  %57 = icmp ult i32 %52, 8
  br i1 %57, label %58, label %71

58:                                               ; preds = %51
  %59 = and i32 %52, 1
  %.not48 = icmp eq i32 %59, 0
  br i1 %.not48, label %60, label %66

60:                                               ; preds = %58
  %61 = load ptr, ptr %2, align 8, !tbaa !11
  %.not49 = icmp eq ptr %61, null
  br i1 %.not49, label %66, label %62

62:                                               ; preds = %60
  %63 = and i32 %52, 2
  %.not50 = icmp eq i32 %63, 0
  br i1 %.not50, label %65, label %64

64:                                               ; preds = %62
  call void @mln_alloc_free(ptr noundef nonnull %61) #6
  br label %66

65:                                               ; preds = %62
  call void @free(ptr noundef nonnull %61) #6
  br label %66

66:                                               ; preds = %64, %65, %60, %58
  %67 = load i32, ptr %5, align 8
  %68 = and i32 %67, 2
  %.not51 = icmp eq i32 %68, 0
  br i1 %.not51, label %70, label %69

69:                                               ; preds = %66
  call void @mln_alloc_free(ptr noundef nonnull %2) #6
  br label %71

70:                                               ; preds = %66
  call void @free(ptr noundef nonnull %2) #6
  br label %71

71:                                               ; preds = %51, %70, %69
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #6
  ret i32 0
}

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

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

declare ptr @mln_string_dup(ptr 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

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

declare i32 @mln_string_strcmp(ptr noundef, ptr noundef) local_unnamed_addr #3

declare ptr @mln_string_slice(ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @mln_string_const_strcmp(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @mln_string_slice_free(ptr noundef) local_unnamed_addr #3

declare void @mln_alloc_free(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #5

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { 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, !10, i64 8}
!6 = !{!"", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 16, !10, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass