; LLVM IR from Eclipse-SDV-Hackathon-Chapter-Two/challenge-threadx-and-beyond :: shared/lib/jsmn/src/test (tests)

; 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.jsmn_parser = type { i32, i32, i32 }
%struct.jsmntok = type { i32, i32, i32, i32 }

@.str.23 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [6 x i8], align 1

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @tokeq(ptr noundef, ptr noundef, i64 noundef, ...) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @test_array_nomem() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %struct.jsmn_parser, align 4
  %5 = alloca [10 x %struct.jsmntok], align 16
  %6 = alloca [10 x %struct.jsmntok], align 16
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 160, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 160, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store ptr @.str.57, ptr %7, align 8, !tbaa !5
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %9

9:                                                ; preds = %51, %0
  %10 = load i32, ptr %2, align 4, !tbaa !9
  %11 = icmp slt i32 %10, 6
  br i1 %11, label %12, label %54

12:                                               ; preds = %9
  call void @jsmn_init(ptr noundef %4)
  %13 = getelementptr inbounds [10 x %struct.jsmntok], ptr %5, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %13, i8 0, i64 160, i1 false)
  %14 = getelementptr inbounds [10 x %struct.jsmntok], ptr %6, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %14, i8 0, i64 160, i1 false)
  %15 = load ptr, ptr %7, align 8, !tbaa !5
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  %17 = call i64 @strlen(ptr noundef %16) #6
  %18 = getelementptr inbounds [10 x %struct.jsmntok], ptr %5, i64 0, i64 0
  %19 = load i32, ptr %2, align 4, !tbaa !9
  %20 = call i32 @jsmn_parse(ptr noundef %4, ptr noundef %15, i64 noundef %17, ptr noundef %18, i32 noundef %19)
  store i32 %20, ptr %3, align 4, !tbaa !9
  br label %21

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

24:                                               ; preds = %21
  store i32 159, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %55

25:                                               ; preds = %21
  br label %26

26:                                               ; preds = %25
  br label %27

27:                                               ; preds = %26
  %28 = getelementptr inbounds [10 x %struct.jsmntok], ptr %6, i64 0, i64 0
  %29 = getelementptr inbounds [10 x %struct.jsmntok], ptr %5, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %28, ptr align 16 %29, i64 160, i1 false)
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = call i64 @strlen(ptr noundef %31) #6
  %33 = getelementptr inbounds [10 x %struct.jsmntok], ptr %6, i64 0, i64 0
  %34 = call i32 @jsmn_parse(ptr noundef %4, ptr noundef %30, i64 noundef %32, ptr noundef %33, i32 noundef 10)
  store i32 %34, ptr %3, align 4, !tbaa !9
  br label %35

35:                                               ; preds = %27
  %36 = load i32, ptr %3, align 4, !tbaa !9
  %37 = icmp sge i32 %36, 0
  br i1 %37, label %39, label %38

38:                                               ; preds = %35
  store i32 164, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %55

39:                                               ; preds = %35
  br label %40

40:                                               ; preds = %39
  br label %41

41:                                               ; preds = %40
  br label %42

42:                                               ; preds = %41
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds [10 x %struct.jsmntok], ptr %6, i64 0, i64 0
  %45 = call i32 (ptr, ptr, i64, ...) @tokeq(ptr noundef %43, ptr noundef %44, i64 noundef 4, i32 noundef 2, i32 noundef -1, i32 noundef -1, i32 noundef 3, i32 noundef 4, ptr noundef @.str.58, i32 noundef 4, ptr noundef @.str.23, i32 noundef 2, i32 noundef -1, i32 noundef -1, i32 noundef 2, i32 noundef 4, ptr noundef @.str.59, i32 noundef 3, ptr noundef @.str.60, i32 noundef 0)
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %48, label %47

47:                                               ; preds = %42
  store i32 167, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %55

48:                                               ; preds = %42
  br label %49

49:                                               ; preds = %48
  br label %50

50:                                               ; preds = %49
  br label %51

51:                                               ; preds = %50
  %52 = load i32, ptr %2, align 4, !tbaa !9
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %2, align 4, !tbaa !9
  br label %9, !llvm.loop !11

54:                                               ; preds = %9
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %55

55:                                               ; preds = %54, %47, %38, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %56 = load i32, ptr %1, align 4
  ret i32 %56
}

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

; 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) #4

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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

%struct.jsmn_parser = type { i32, i32, i32 }
%struct.jsmntok = type { i32, i32, i32, i32 }

@.str.23 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @jsmn_parse(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @tokeq(ptr noundef, ptr noundef, i64 noundef, ...) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 168) i32 @test_array_nomem() local_unnamed_addr #0 {
  %1 = alloca %struct.jsmn_parser, align 4
  %2 = alloca [10 x %struct.jsmntok], align 16
  %3 = alloca [10 x %struct.jsmntok], align 16
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %3) #5
  call void @jsmn_init(ptr noundef nonnull %1)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(160) %2, i8 0, i64 160, i1 false)
  %4 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str.57) #6
  %5 = call i32 @jsmn_parse(ptr noundef nonnull %1, ptr noundef nonnull @.str.57, i64 noundef %4, ptr noundef nonnull %2, i32 noundef 0)
  %6 = icmp eq i32 %5, -1
  br i1 %6, label %47, label %52

7:                                                ; preds = %50
  call void @jsmn_init(ptr noundef nonnull %1)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(160) %2, i8 0, i64 160, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(160) %3, i8 0, i64 160, i1 false)
  %8 = call i32 @jsmn_parse(ptr noundef nonnull %1, ptr noundef nonnull @.str.57, i64 noundef %4, ptr noundef nonnull %2, i32 noundef 1)
  %9 = icmp eq i32 %8, -1
  br i1 %9, label %10, label %52

10:                                               ; preds = %7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(160) %3, ptr noundef nonnull align 16 dereferenceable(160) %2, i64 160, i1 false)
  %11 = call i32 @jsmn_parse(ptr noundef nonnull %1, ptr noundef nonnull @.str.57, i64 noundef %4, ptr noundef nonnull %3, i32 noundef 10)
  %12 = icmp sgt i32 %11, -1
  br i1 %12, label %13, label %52

13:                                               ; preds = %10
  %14 = call i32 (ptr, ptr, i64, ...) @tokeq(ptr noundef nonnull @.str.57, ptr noundef nonnull %3, i64 noundef 4, i32 noundef 2, i32 noundef -1, i32 noundef -1, i32 noundef 3, i32 noundef 4, ptr noundef nonnull @.str.58, i32 noundef 4, ptr noundef nonnull @.str.23, i32 noundef 2, i32 noundef -1, i32 noundef -1, i32 noundef 2, i32 noundef 4, ptr noundef nonnull @.str.59, i32 noundef 3, ptr noundef nonnull @.str.60, i32 noundef 0)
  %.not.1 = icmp eq i32 %14, 0
  br i1 %.not.1, label %52, label %15

15:                                               ; preds = %13
  call void @jsmn_init(ptr noundef nonnull %1)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(160) %2, i8 0, i64 160, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(160) %3, i8 0, i64 160, i1 false)
  %16 = call i32 @jsmn_parse(ptr noundef nonnull %1, ptr noundef nonnull @.str.57, i64 noundef %4, ptr noundef nonnull %2, i32 noundef 2)
  %17 = icmp eq i32 %16, -1
  br i1 %17, label %18, label %52

18:                                               ; preds = %15
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(160) %3, ptr noundef nonnull align 16 dereferenceable(160) %2, i64 160, i1 false)
  %19 = call i32 @jsmn_parse(ptr noundef nonnull %1, ptr noundef nonnull @.str.57, i64 noundef %4, ptr noundef nonnull %3, i32 noundef 10)
  %20 = icmp sgt i32 %19, -1
  br i1 %20, label %21, label %52

21:                                               ; preds = %18
  %22 = call i32 (ptr, ptr, i64, ...) @tokeq(ptr noundef nonnull @.str.57, ptr noundef nonnull %3, i64 noundef 4, i32 noundef 2, i32 noundef -1, i32 noundef -1, i32 noundef 3, i32 noundef 4, ptr noundef nonnull @.str.58, i32 noundef 4, ptr noundef nonnull @.str.23, i32 noundef 2, i32 noundef -1, i32 noundef -1, i32 noundef 2, i32 noundef 4, ptr noundef nonnull @.str.59, i32 noundef 3, ptr noundef nonnull @.str.60, i32 noundef 0)
  %.not.2 = icmp eq i32 %22, 0
  br i1 %.not.2, label %52, label %23

23:                                               ; preds = %21
  call void @jsmn_init(ptr noundef nonnull %1)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(160) %2, i8 0, i64 160, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(160) %3, i8 0, i64 160, i1 false)
  %24 = call i32 @jsmn_parse(ptr noundef nonnull %1, ptr noundef nonnull @.str.57, i64 noundef %4, ptr noundef nonnull %2, i32 noundef 3)
  %25 = icmp eq i32 %24, -1
  br i1 %25, label %26, label %52

26:                                               ; preds = %23
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(160) %3, ptr noundef nonnull align 16 dereferenceable(160) %2, i64 160, i1 false)
  %27 = call i32 @jsmn_parse(ptr noundef nonnull %1, ptr noundef nonnull @.str.57, i64 noundef %4, ptr noundef nonnull %3, i32 noundef 10)
  %28 = icmp sgt i32 %27, -1
  br i1 %28, label %29, label %52

29:                                               ; preds = %26
  %30 = call i32 (ptr, ptr, i64, ...) @tokeq(ptr noundef nonnull @.str.57, ptr noundef nonnull %3, i64 noundef 4, i32 noundef 2, i32 noundef -1, i32 noundef -1, i32 noundef 3, i32 noundef 4, ptr noundef nonnull @.str.58, i32 noundef 4, ptr noundef nonnull @.str.23, i32 noundef 2, i32 noundef -1, i32 noundef -1, i32 noundef 2, i32 noundef 4, ptr noundef nonnull @.str.59, i32 noundef 3, ptr noundef nonnull @.str.60, i32 noundef 0)
  %.not.3 = icmp eq i32 %30, 0
  br i1 %.not.3, label %52, label %31

31:                                               ; preds = %29
  call void @jsmn_init(ptr noundef nonnull %1)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(160) %2, i8 0, i64 160, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(160) %3, i8 0, i64 160, i1 false)
  %32 = call i32 @jsmn_parse(ptr noundef nonnull %1, ptr noundef nonnull @.str.57, i64 noundef %4, ptr noundef nonnull %2, i32 noundef 4)
  %33 = icmp eq i32 %32, -1
  br i1 %33, label %34, label %52

34:                                               ; preds = %31
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(160) %3, ptr noundef nonnull align 16 dereferenceable(160) %2, i64 160, i1 false)
  %35 = call i32 @jsmn_parse(ptr noundef nonnull %1, ptr noundef nonnull @.str.57, i64 noundef %4, ptr noundef nonnull %3, i32 noundef 10)
  %36 = icmp sgt i32 %35, -1
  br i1 %36, label %37, label %52

37:                                               ; preds = %34
  %38 = call i32 (ptr, ptr, i64, ...) @tokeq(ptr noundef nonnull @.str.57, ptr noundef nonnull %3, i64 noundef 4, i32 noundef 2, i32 noundef -1, i32 noundef -1, i32 noundef 3, i32 noundef 4, ptr noundef nonnull @.str.58, i32 noundef 4, ptr noundef nonnull @.str.23, i32 noundef 2, i32 noundef -1, i32 noundef -1, i32 noundef 2, i32 noundef 4, ptr noundef nonnull @.str.59, i32 noundef 3, ptr noundef nonnull @.str.60, i32 noundef 0)
  %.not.4 = icmp eq i32 %38, 0
  br i1 %.not.4, label %52, label %39

39:                                               ; preds = %37
  call void @jsmn_init(ptr noundef nonnull %1)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(160) %2, i8 0, i64 160, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(160) %3, i8 0, i64 160, i1 false)
  %40 = call i32 @jsmn_parse(ptr noundef nonnull %1, ptr noundef nonnull @.str.57, i64 noundef %4, ptr noundef nonnull %2, i32 noundef 5)
  %41 = icmp eq i32 %40, -1
  br i1 %41, label %42, label %52

42:                                               ; preds = %39
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(160) %3, ptr noundef nonnull align 16 dereferenceable(160) %2, i64 160, i1 false)
  %43 = call i32 @jsmn_parse(ptr noundef nonnull %1, ptr noundef nonnull @.str.57, i64 noundef %4, ptr noundef nonnull %3, i32 noundef 10)
  %44 = icmp sgt i32 %43, -1
  br i1 %44, label %45, label %52

45:                                               ; preds = %42
  %46 = call i32 (ptr, ptr, i64, ...) @tokeq(ptr noundef nonnull @.str.57, ptr noundef nonnull %3, i64 noundef 4, i32 noundef 2, i32 noundef -1, i32 noundef -1, i32 noundef 3, i32 noundef 4, ptr noundef nonnull @.str.58, i32 noundef 4, ptr noundef nonnull @.str.23, i32 noundef 2, i32 noundef -1, i32 noundef -1, i32 noundef 2, i32 noundef 4, ptr noundef nonnull @.str.59, i32 noundef 3, ptr noundef nonnull @.str.60, i32 noundef 0)
  %.not.5 = icmp eq i32 %46, 0
  %spec.select = select i1 %.not.5, i32 167, i32 0
  br label %52

47:                                               ; preds = %0
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(160) %3, ptr noundef nonnull align 16 dereferenceable(160) %2, i64 160, i1 false)
  %48 = call i32 @jsmn_parse(ptr noundef nonnull %1, ptr noundef nonnull @.str.57, i64 noundef %4, ptr noundef nonnull %3, i32 noundef 10)
  %49 = icmp sgt i32 %48, -1
  br i1 %49, label %50, label %52

50:                                               ; preds = %47
  %51 = call i32 (ptr, ptr, i64, ...) @tokeq(ptr noundef nonnull @.str.57, ptr noundef nonnull %3, i64 noundef 4, i32 noundef 2, i32 noundef -1, i32 noundef -1, i32 noundef 3, i32 noundef 4, ptr noundef nonnull @.str.58, i32 noundef 4, ptr noundef nonnull @.str.23, i32 noundef 2, i32 noundef -1, i32 noundef -1, i32 noundef 2, i32 noundef 4, ptr noundef nonnull @.str.59, i32 noundef 3, ptr noundef nonnull @.str.60, i32 noundef 0)
  %.not = icmp eq i32 %51, 0
  br i1 %.not, label %52, label %7

52:                                               ; preds = %45, %42, %39, %37, %34, %31, %29, %26, %23, %21, %18, %15, %13, %10, %7, %50, %47, %0
  %.0 = phi i32 [ 159, %0 ], [ 164, %47 ], [ 167, %50 ], [ 159, %7 ], [ 164, %10 ], [ 167, %13 ], [ 159, %15 ], [ 164, %18 ], [ 167, %21 ], [ 159, %23 ], [ 164, %26 ], [ 167, %29 ], [ 159, %31 ], [ 164, %34 ], [ 167, %37 ], [ 159, %39 ], [ 164, %42 ], [ %spec.select, %45 ]
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %1) #5
  ret i32 %.0
}

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

; 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) #4

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass