; LLVM IR from wkoszek/kmnsim :: src (all)

; 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.cmdlist = type { ptr, ptr }
%struct.cmd = type { i64, [64 x i8], %struct.anon.4 }
%struct.anon.4 = type { ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@cmd_verbose = external dso_local global i32, align 4
@.str.43 = external hidden unnamed_addr constant [16 x i8], align 1
@__PRETTY_FUNCTION__.cmd_parse = external hidden unnamed_addr constant [54 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [13 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @cmdlist_show(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @cmd_parse(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca i32, align 4
  %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
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store ptr null, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store ptr null, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store ptr null, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !9
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = icmp ne ptr %14, null
  br i1 %15, label %16, label %17

16:                                               ; preds = %3
  br label %18

17:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str.43, ptr noundef @.str.2, i32 noundef 685, ptr noundef @__PRETTY_FUNCTION__.cmd_parse) #6
  unreachable

18:                                               ; preds = %16
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = load ptr, ptr %19, align 8, !tbaa !5
  %21 = icmp eq ptr %20, null
  br i1 %21, label %22, label %23

22:                                               ; preds = %18
  br label %24

23:                                               ; preds = %18
  call void @__assert_fail(ptr noundef @.str.44, ptr noundef @.str.2, i32 noundef 686, ptr noundef @__PRETTY_FUNCTION__.cmd_parse) #6
  unreachable

24:                                               ; preds = %22
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %28

27:                                               ; preds = %24
  br label %29

28:                                               ; preds = %24
  call void @__assert_fail(ptr noundef @.str.45, ptr noundef @.str.2, i32 noundef 687, ptr noundef @__PRETTY_FUNCTION__.cmd_parse) #6
  unreachable

29:                                               ; preds = %27
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = icmp ne ptr %30, null
  br i1 %31, label %32, label %33

32:                                               ; preds = %29
  br label %34

33:                                               ; preds = %29
  call void @__assert_fail(ptr noundef @.str.46, ptr noundef @.str.2, i32 noundef 688, ptr noundef @__PRETTY_FUNCTION__.cmd_parse) #6
  unreachable

34:                                               ; preds = %32
  %35 = call noalias ptr @calloc(i64 noundef 16, i64 noundef 1) #7
  store ptr %35, ptr %8, align 8, !tbaa !5
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %39

38:                                               ; preds = %34
  br label %40

39:                                               ; preds = %34
  call void @__assert_fail(ptr noundef @.str.47, ptr noundef @.str.2, i32 noundef 691, ptr noundef @__PRETTY_FUNCTION__.cmd_parse) #6
  unreachable

40:                                               ; preds = %38
  br label %41

41:                                               ; preds = %40
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.cmdlist, ptr %42, i32 0, i32 0
  store ptr null, ptr %43, align 8, !tbaa !11
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.cmdlist, ptr %44, i32 0, i32 0
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.cmdlist, ptr %46, i32 0, i32 1
  store ptr %45, ptr %47, align 8, !tbaa !13
  br label %48

48:                                               ; preds = %41
  br label %49

49:                                               ; preds = %48
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = call noalias ptr @strdup(ptr noundef %50) #5
  store ptr %51, ptr %10, align 8, !tbaa !5
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = icmp ne ptr %52, null
  br i1 %53, label %54, label %55

54:                                               ; preds = %49
  br label %56

55:                                               ; preds = %49
  call void @__assert_fail(ptr noundef @.str.48, ptr noundef @.str.2, i32 noundef 695, ptr noundef @__PRETTY_FUNCTION__.cmd_parse) #6
  unreachable

56:                                               ; preds = %54
  br label %57

57:                                               ; preds = %92, %56
  %58 = call ptr @strsep(ptr noundef %10, ptr noundef @.str.49) #5
  store ptr %58, ptr %11, align 8, !tbaa !5
  %59 = icmp ne ptr %58, null
  br i1 %59, label %60, label %95

60:                                               ; preds = %57
  %61 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 88) #7
  store ptr %61, ptr %9, align 8, !tbaa !5
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = icmp ne ptr %62, null
  br i1 %63, label %64, label %65

64:                                               ; preds = %60
  br label %66

65:                                               ; preds = %60
  call void @__assert_fail(ptr noundef @.str.50, ptr noundef @.str.2, i32 noundef 699, ptr noundef @__PRETTY_FUNCTION__.cmd_parse) #6
  unreachable

66:                                               ; preds = %64
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.cmd, ptr %67, i32 0, i32 1
  %69 = getelementptr inbounds [64 x i8], ptr %68, i64 0, i64 0
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %69, i64 noundef 63, ptr noundef @.str.7, ptr noundef %70) #5
  br label %72

72:                                               ; preds = %66
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.cmd, ptr %73, i32 0, i32 2
  %75 = getelementptr inbounds %struct.anon.4, ptr %74, i32 0, i32 0
  store ptr null, ptr %75, align 8, !tbaa !14
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.cmdlist, ptr %76, i32 0, i32 1
  %78 = load ptr, ptr %77, align 8, !tbaa !13
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.cmd, ptr %79, i32 0, i32 2
  %81 = getelementptr inbounds %struct.anon.4, ptr %80, i32 0, i32 1
  store ptr %78, ptr %81, align 8, !tbaa !18
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.cmdlist, ptr %83, i32 0, i32 1
  %85 = load ptr, ptr %84, align 8, !tbaa !13
  store ptr %82, ptr %85, align 8, !tbaa !5
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.cmd, ptr %86, i32 0, i32 2
  %88 = getelementptr inbounds %struct.anon.4, ptr %87, i32 0, i32 0
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.cmdlist, ptr %89, i32 0, i32 1
  store ptr %88, ptr %90, align 8, !tbaa !13
  br label %91

91:                                               ; preds = %72
  br label %92

92:                                               ; preds = %91
  %93 = load i32, ptr %12, align 4, !tbaa !9
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %12, align 4, !tbaa !9
  br label %57, !llvm.loop !19

95:                                               ; preds = %57
  %96 = load i32, ptr %12, align 4, !tbaa !9
  %97 = icmp sle i32 %96, 0
  br i1 %97, label %98, label %99

98:                                               ; preds = %95
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %109

99:                                               ; preds = %95
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %100, ptr %101, align 8, !tbaa !5
  %102 = load i32, ptr %12, align 4, !tbaa !9
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 %102, ptr %103, align 4, !tbaa !9
  %104 = load i32, ptr @cmd_verbose, align 4, !tbaa !9
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %106, label %108

106:                                              ; preds = %99
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  call void @cmdlist_show(ptr noundef %107)
  br label %108

108:                                              ; preds = %106, %99
  store i32 0, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %109

109:                                              ; preds = %108, %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %110 = load i32, ptr %4, align 4
  ret i32 %110
}

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #3

; Function Attrs: nounwind
declare noalias ptr @strdup(ptr noundef) #4

; Function Attrs: nounwind
declare ptr @strsep(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #4

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

!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, !6, i64 0}
!12 = !{!"cmdlist", !6, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8}
!14 = !{!15, !6, i64 72}
!15 = !{!"cmd", !16, i64 0, !7, i64 8, !17, i64 72}
!16 = !{!"long", !7, i64 0}
!17 = !{!"", !6, i64 0, !6, i64 8}
!18 = !{!15, !6, i64 80}
!19 = distinct !{!19, !20}
!20 = !{!"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"

@.str.2 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@cmd_verbose = external dso_local local_unnamed_addr global i32, align 4
@.str.43 = external hidden unnamed_addr constant [16 x i8], align 1
@__PRETTY_FUNCTION__.cmd_parse = external hidden unnamed_addr constant [54 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [13 x i8], align 1

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @cmd_parse(ptr noundef %0, ptr noundef writeonly %1, ptr noundef readonly %2) local_unnamed_addr #2 {
  %4 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %5, label %6

5:                                                ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.43, ptr noundef nonnull @.str.2, i32 noundef 685, ptr noundef nonnull @__PRETTY_FUNCTION__.cmd_parse) #8
  unreachable

6:                                                ; preds = %3
  %7 = load ptr, ptr %0, align 8, !tbaa !5
  %8 = icmp eq ptr %7, null
  br i1 %8, label %10, label %9

9:                                                ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str.44, ptr noundef nonnull @.str.2, i32 noundef 686, ptr noundef nonnull @__PRETTY_FUNCTION__.cmd_parse) #8
  unreachable

10:                                               ; preds = %6
  %.not33 = icmp eq ptr %1, null
  br i1 %.not33, label %11, label %12

11:                                               ; preds = %10
  tail call void @__assert_fail(ptr noundef nonnull @.str.45, ptr noundef nonnull @.str.2, i32 noundef 687, ptr noundef nonnull @__PRETTY_FUNCTION__.cmd_parse) #8
  unreachable

12:                                               ; preds = %10
  %.not34 = icmp eq ptr %2, null
  br i1 %.not34, label %13, label %14

13:                                               ; preds = %12
  tail call void @__assert_fail(ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.2, i32 noundef 688, ptr noundef nonnull @__PRETTY_FUNCTION__.cmd_parse) #8
  unreachable

14:                                               ; preds = %12
  %15 = tail call noalias dereferenceable_or_null(16) ptr @calloc(i64 noundef 16, i64 noundef 1) #9
  %.not35 = icmp eq ptr %15, null
  br i1 %.not35, label %16, label %17

16:                                               ; preds = %14
  tail call void @__assert_fail(ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.2, i32 noundef 691, ptr noundef nonnull @__PRETTY_FUNCTION__.cmd_parse) #8
  unreachable

17:                                               ; preds = %14
  %18 = getelementptr inbounds i8, ptr %15, i64 8
  store ptr %15, ptr %18, align 8, !tbaa !9
  %19 = tail call noalias ptr @strdup(ptr noundef nonnull %2) #7
  store ptr %19, ptr %4, align 8, !tbaa !5
  %.not36 = icmp eq ptr %19, null
  br i1 %.not36, label %21, label %.preheader

.preheader:                                       ; preds = %17
  %20 = call ptr @strsep(ptr noundef nonnull %4, ptr noundef nonnull @.str.49) #7
  %.not3741 = icmp eq ptr %20, null
  br i1 %.not3741, label %._crit_edge.thread, label %.lr.ph

21:                                               ; preds = %17
  tail call void @__assert_fail(ptr noundef nonnull @.str.48, ptr noundef nonnull @.str.2, i32 noundef 695, ptr noundef nonnull @__PRETTY_FUNCTION__.cmd_parse) #8
  unreachable

.lr.ph:                                           ; preds = %.preheader, %25
  %22 = phi ptr [ %32, %25 ], [ %20, %.preheader ]
  %.042 = phi i32 [ %31, %25 ], [ 0, %.preheader ]
  %23 = call noalias dereferenceable_or_null(88) ptr @calloc(i64 noundef 1, i64 noundef 88) #9
  %.not39 = icmp eq ptr %23, null
  br i1 %.not39, label %24, label %25

24:                                               ; preds = %.lr.ph
  call void @__assert_fail(ptr noundef nonnull @.str.50, ptr noundef nonnull @.str.2, i32 noundef 699, ptr noundef nonnull @__PRETTY_FUNCTION__.cmd_parse) #8
  unreachable

25:                                               ; preds = %.lr.ph
  %26 = getelementptr inbounds i8, ptr %23, i64 8
  %27 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %26, i64 noundef 63, ptr noundef nonnull @.str.7, ptr noundef nonnull %22) #7
  %28 = getelementptr inbounds i8, ptr %23, i64 72
  store ptr null, ptr %28, align 8, !tbaa !11
  %29 = load ptr, ptr %18, align 8, !tbaa !9
  %30 = getelementptr inbounds i8, ptr %23, i64 80
  store ptr %29, ptr %30, align 8, !tbaa !15
  store ptr %23, ptr %29, align 8, !tbaa !5
  store ptr %28, ptr %18, align 8, !tbaa !9
  %31 = add nuw nsw i32 %.042, 1
  %32 = call ptr @strsep(ptr noundef nonnull %4, ptr noundef nonnull @.str.49) #7
  %.not37 = icmp eq ptr %32, null
  br i1 %.not37, label %._crit_edge, label %.lr.ph, !llvm.loop !16

._crit_edge:                                      ; preds = %25
  store ptr %15, ptr %0, align 8, !tbaa !5
  store i32 %31, ptr %1, align 4, !tbaa !18
  %33 = load i32, ptr @cmd_verbose, align 4, !tbaa !18
  %.not38 = icmp eq i32 %33, 0
  br i1 %.not38, label %._crit_edge.thread, label %34

34:                                               ; preds = %._crit_edge
  call void @cmdlist_show(ptr noundef nonnull %15)
  br label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %.preheader, %._crit_edge, %34
  %.026 = phi i32 [ 0, %34 ], [ 0, %._crit_edge ], [ -1, %.preheader ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  ret i32 %.026
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strdup(ptr nocapture noundef readonly) local_unnamed_addr #4

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

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(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 #4 = { mustprogress nofree nounwind willreturn 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 #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 = { nofree 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 #7 = { nounwind }
attributes #8 = { noreturn nounwind }
attributes #9 = { nounwind allocsize(0,1) }

!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, !6, i64 8}
!10 = !{!"cmdlist", !6, i64 0, !6, i64 8}
!11 = !{!12, !6, i64 72}
!12 = !{!"cmd", !13, i64 0, !7, i64 8, !14, i64 72}
!13 = !{!"long", !7, i64 0}
!14 = !{!"", !6, i64 0, !6, i64 8}
!15 = !{!12, !6, i64 80}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !19, i64 0}
!19 = !{!"int", !7, i64 0}


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