; LLVM IR from adventure-db/adventure :: lib/jsmn (jsmn_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"

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

@.str.27 = external hidden unnamed_addr constant [29 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
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_t], align 16
  %6 = alloca [10 x %struct.jsmntok_t], 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.27, ptr %7, align 8, !tbaa !5
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %9

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

12:                                               ; preds = %9
  call void @jsmn_init(ptr noundef %4)
  %13 = getelementptr inbounds [10 x %struct.jsmntok_t], 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_t], 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_t], 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 309, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %74

25:                                               ; preds = %21
  br label %26

26:                                               ; preds = %25
  br label %27

27:                                               ; preds = %26
  %28 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %6, i64 0, i64 0
  %29 = getelementptr inbounds [10 x %struct.jsmntok_t], 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_t], 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 314, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %74

39:                                               ; preds = %35
  br label %40

40:                                               ; preds = %39
  br label %41

41:                                               ; preds = %40
  br label %42

42:                                               ; preds = %41
  %43 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %6, i64 0, i64 0
  %44 = getelementptr inbounds %struct.jsmntok_t, ptr %43, i32 0, i32 0
  %45 = load i32, ptr %44, align 16, !tbaa !11
  %46 = icmp eq i32 %45, 2
  br i1 %46, label %47, label %52

47:                                               ; preds = %42
  %48 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %6, i64 0, i64 0
  %49 = getelementptr inbounds %struct.jsmntok_t, ptr %48, i32 0, i32 3
  %50 = load i32, ptr %49, align 4, !tbaa !13
  %51 = icmp eq i32 %50, 3
  br i1 %51, label %53, label %52

52:                                               ; preds = %47, %42
  store i32 316, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %74

53:                                               ; preds = %47
  br label %54

54:                                               ; preds = %53
  br label %55

55:                                               ; preds = %54
  br label %56

56:                                               ; preds = %55
  %57 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %6, i64 0, i64 3
  %58 = getelementptr inbounds %struct.jsmntok_t, ptr %57, i32 0, i32 0
  %59 = load i32, ptr %58, align 16, !tbaa !11
  %60 = icmp eq i32 %59, 2
  br i1 %60, label %61, label %66

61:                                               ; preds = %56
  %62 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %6, i64 0, i64 3
  %63 = getelementptr inbounds %struct.jsmntok_t, ptr %62, i32 0, i32 3
  %64 = load i32, ptr %63, align 4, !tbaa !13
  %65 = icmp eq i32 %64, 2
  br i1 %65, label %67, label %66

66:                                               ; preds = %61, %56
  store i32 317, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %74

67:                                               ; preds = %61
  br label %68

68:                                               ; preds = %67
  br label %69

69:                                               ; preds = %68
  br label %70

70:                                               ; preds = %69
  %71 = load i32, ptr %2, align 4, !tbaa !9
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %2, align 4, !tbaa !9
  br label %9, !llvm.loop !14

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

74:                                               ; preds = %73, %66, %52, %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
  %75 = load i32, ptr %1, align 4
  ret i32 %75
}

; 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 = !{!12, !10, i64 0}
!12 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!13 = !{!12, !10, i64 12}
!14 = distinct !{!14, !15}
!15 = !{!"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_t = type { i32, i32, i32, i32 }

@.str.27 = external hidden unnamed_addr constant [29 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
define dso_local range(i32 0, 318) i32 @test_array_nomem() local_unnamed_addr #0 {
  %1 = alloca %struct.jsmn_parser, align 4
  %2 = alloca [10 x %struct.jsmntok_t], align 16
  %3 = alloca [10 x %struct.jsmntok_t], 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
  %4 = getelementptr inbounds i8, ptr %3, i64 12
  %5 = getelementptr inbounds i8, ptr %3, i64 48
  %6 = getelementptr inbounds i8, ptr %3, i64 60
  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)
  %7 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str.27) #6
  %8 = call i32 @jsmn_parse(ptr noundef nonnull %1, ptr noundef nonnull @.str.27, i64 noundef %7, ptr noundef nonnull %2, i32 noundef 0)
  %9 = icmp eq i32 %8, -1
  br i1 %9, label %90, label %103

10:                                               ; preds = %98
  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)
  %11 = call i32 @jsmn_parse(ptr noundef nonnull %1, ptr noundef nonnull @.str.27, i64 noundef %7, ptr noundef nonnull %2, i32 noundef 1)
  %12 = icmp eq i32 %11, -1
  br i1 %12, label %13, label %103

13:                                               ; preds = %10
  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)
  %14 = call i32 @jsmn_parse(ptr noundef nonnull %1, ptr noundef nonnull @.str.27, i64 noundef %7, ptr noundef nonnull %3, i32 noundef 10)
  %15 = icmp sgt i32 %14, -1
  br i1 %15, label %16, label %103

16:                                               ; preds = %13
  %17 = load i32, ptr %3, align 16, !tbaa !5
  %18 = icmp eq i32 %17, 2
  %19 = load i32, ptr %4, align 4
  %20 = icmp eq i32 %19, 3
  %or.cond.1 = select i1 %18, i1 %20, i1 false
  br i1 %or.cond.1, label %21, label %103

21:                                               ; preds = %16
  %22 = load i32, ptr %5, align 16, !tbaa !5
  %23 = icmp eq i32 %22, 2
  %24 = load i32, ptr %6, align 4
  %25 = icmp eq i32 %24, 2
  %or.cond7.1 = select i1 %23, i1 %25, i1 false
  br i1 %or.cond7.1, label %26, label %103

26:                                               ; 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)
  %27 = call i32 @jsmn_parse(ptr noundef nonnull %1, ptr noundef nonnull @.str.27, i64 noundef %7, ptr noundef nonnull %2, i32 noundef 2)
  %28 = icmp eq i32 %27, -1
  br i1 %28, label %29, label %103

29:                                               ; preds = %26
  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)
  %30 = call i32 @jsmn_parse(ptr noundef nonnull %1, ptr noundef nonnull @.str.27, i64 noundef %7, ptr noundef nonnull %3, i32 noundef 10)
  %31 = icmp sgt i32 %30, -1
  br i1 %31, label %32, label %103

32:                                               ; preds = %29
  %33 = load i32, ptr %3, align 16, !tbaa !5
  %34 = icmp eq i32 %33, 2
  %35 = load i32, ptr %4, align 4
  %36 = icmp eq i32 %35, 3
  %or.cond.2 = select i1 %34, i1 %36, i1 false
  br i1 %or.cond.2, label %37, label %103

37:                                               ; preds = %32
  %38 = load i32, ptr %5, align 16, !tbaa !5
  %39 = icmp eq i32 %38, 2
  %40 = load i32, ptr %6, align 4
  %41 = icmp eq i32 %40, 2
  %or.cond7.2 = select i1 %39, i1 %41, i1 false
  br i1 %or.cond7.2, label %42, label %103

42:                                               ; 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)
  %43 = call i32 @jsmn_parse(ptr noundef nonnull %1, ptr noundef nonnull @.str.27, i64 noundef %7, ptr noundef nonnull %2, i32 noundef 3)
  %44 = icmp eq i32 %43, -1
  br i1 %44, label %45, label %103

45:                                               ; preds = %42
  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)
  %46 = call i32 @jsmn_parse(ptr noundef nonnull %1, ptr noundef nonnull @.str.27, i64 noundef %7, ptr noundef nonnull %3, i32 noundef 10)
  %47 = icmp sgt i32 %46, -1
  br i1 %47, label %48, label %103

48:                                               ; preds = %45
  %49 = load i32, ptr %3, align 16, !tbaa !5
  %50 = icmp eq i32 %49, 2
  %51 = load i32, ptr %4, align 4
  %52 = icmp eq i32 %51, 3
  %or.cond.3 = select i1 %50, i1 %52, i1 false
  br i1 %or.cond.3, label %53, label %103

53:                                               ; preds = %48
  %54 = load i32, ptr %5, align 16, !tbaa !5
  %55 = icmp eq i32 %54, 2
  %56 = load i32, ptr %6, align 4
  %57 = icmp eq i32 %56, 2
  %or.cond7.3 = select i1 %55, i1 %57, i1 false
  br i1 %or.cond7.3, label %58, label %103

58:                                               ; preds = %53
  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)
  %59 = call i32 @jsmn_parse(ptr noundef nonnull %1, ptr noundef nonnull @.str.27, i64 noundef %7, ptr noundef nonnull %2, i32 noundef 4)
  %60 = icmp eq i32 %59, -1
  br i1 %60, label %61, label %103

61:                                               ; preds = %58
  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)
  %62 = call i32 @jsmn_parse(ptr noundef nonnull %1, ptr noundef nonnull @.str.27, i64 noundef %7, ptr noundef nonnull %3, i32 noundef 10)
  %63 = icmp sgt i32 %62, -1
  br i1 %63, label %64, label %103

64:                                               ; preds = %61
  %65 = load i32, ptr %3, align 16, !tbaa !5
  %66 = icmp eq i32 %65, 2
  %67 = load i32, ptr %4, align 4
  %68 = icmp eq i32 %67, 3
  %or.cond.4 = select i1 %66, i1 %68, i1 false
  br i1 %or.cond.4, label %69, label %103

69:                                               ; preds = %64
  %70 = load i32, ptr %5, align 16, !tbaa !5
  %71 = icmp eq i32 %70, 2
  %72 = load i32, ptr %6, align 4
  %73 = icmp eq i32 %72, 2
  %or.cond7.4 = select i1 %71, i1 %73, i1 false
  br i1 %or.cond7.4, label %74, label %103

74:                                               ; preds = %69
  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)
  %75 = call i32 @jsmn_parse(ptr noundef nonnull %1, ptr noundef nonnull @.str.27, i64 noundef %7, ptr noundef nonnull %2, i32 noundef 5)
  %76 = icmp eq i32 %75, -1
  br i1 %76, label %77, label %103

77:                                               ; preds = %74
  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)
  %78 = call i32 @jsmn_parse(ptr noundef nonnull %1, ptr noundef nonnull @.str.27, i64 noundef %7, ptr noundef nonnull %3, i32 noundef 10)
  %79 = icmp sgt i32 %78, -1
  br i1 %79, label %80, label %103

80:                                               ; preds = %77
  %81 = load i32, ptr %3, align 16, !tbaa !5
  %82 = icmp eq i32 %81, 2
  %83 = load i32, ptr %4, align 4
  %84 = icmp eq i32 %83, 3
  %or.cond.5 = select i1 %82, i1 %84, i1 false
  br i1 %or.cond.5, label %85, label %103

85:                                               ; preds = %80
  %86 = load i32, ptr %5, align 16, !tbaa !5
  %87 = icmp eq i32 %86, 2
  %88 = load i32, ptr %6, align 4
  %89 = icmp eq i32 %88, 2
  %or.cond7.5 = select i1 %87, i1 %89, i1 false
  %spec.select = select i1 %or.cond7.5, i32 0, i32 317
  br label %103

90:                                               ; 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)
  %91 = call i32 @jsmn_parse(ptr noundef nonnull %1, ptr noundef nonnull @.str.27, i64 noundef %7, ptr noundef nonnull %3, i32 noundef 10)
  %92 = icmp sgt i32 %91, -1
  br i1 %92, label %93, label %103

93:                                               ; preds = %90
  %94 = load i32, ptr %3, align 16, !tbaa !5
  %95 = icmp eq i32 %94, 2
  %96 = load i32, ptr %4, align 4
  %97 = icmp eq i32 %96, 3
  %or.cond = select i1 %95, i1 %97, i1 false
  br i1 %or.cond, label %98, label %103

98:                                               ; preds = %93
  %99 = load i32, ptr %5, align 16, !tbaa !5
  %100 = icmp eq i32 %99, 2
  %101 = load i32, ptr %6, align 4
  %102 = icmp eq i32 %101, 2
  %or.cond7 = select i1 %100, i1 %102, i1 false
  br i1 %or.cond7, label %10, label %103

103:                                              ; preds = %85, %80, %77, %74, %69, %64, %61, %58, %53, %48, %45, %42, %37, %32, %29, %26, %21, %16, %13, %10, %98, %93, %90, %0
  %.0 = phi i32 [ 309, %0 ], [ 314, %90 ], [ 316, %93 ], [ 317, %98 ], [ 309, %10 ], [ 314, %13 ], [ 316, %16 ], [ 317, %21 ], [ 309, %26 ], [ 314, %29 ], [ 316, %32 ], [ 317, %37 ], [ 309, %42 ], [ 314, %45 ], [ 316, %48 ], [ 317, %53 ], [ 309, %58 ], [ 314, %61 ], [ 316, %64 ], [ 317, %69 ], [ 309, %74 ], [ 314, %77 ], [ 316, %80 ], [ %spec.select, %85 ]
  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)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}


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