; LLVM IR from ChampSim/ChampSim :: tracer/cvp_converter/cvp2champsim.ll (Z15open_trace_filev)

; 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"

@tracefilename = external dso_local global [1000 x i8], align 16
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external global ptr, align 8
@.str.17 = external hidden unnamed_addr constant [29 x i8], align 1
@stdin = external global ptr, align 8
@.str.18 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [88 x i8], align 1
@__PRETTY_FUNCTION__._Z15open_trace_filev = external hidden unnamed_addr constant [24 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_Z15open_trace_filev() #0 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca [6 x i8], align 1
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca [1017 x i8], align 16
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = call i32 @strcmp(ptr noundef @tracefilename, ptr noundef @.str.16) #6
  %10 = icmp ne i32 %9, 0
  br i1 %10, label %17, label %11

11:                                               ; preds = %0
  %12 = load ptr, ptr @stderr, align 8, !tbaa !5
  %13 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef @.str.17) #7
  %14 = load ptr, ptr @stderr, align 8, !tbaa !5
  %15 = call i32 @fflush(ptr noundef %14)
  %16 = load ptr, ptr @stdin, align 8, !tbaa !5
  store ptr %16, ptr %1, align 8
  br label %107

17:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  %18 = call noalias ptr @fopen(ptr noundef @tracefilename, ptr noundef @.str.18)
  store ptr %18, ptr %2, align 8, !tbaa !5
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  %20 = icmp ne ptr %19, null
  br i1 %20, label %22, label %21

21:                                               ; preds = %17
  call void @perror(ptr noundef @tracefilename)
  call void @exit(i32 noundef 1) #8
  unreachable

22:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 6, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  %23 = getelementptr inbounds [6 x i8], ptr %3, i64 0, i64 0
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  %25 = call i64 @fread(ptr noundef %23, i64 noundef 1, i64 noundef 6, ptr noundef %24)
  %26 = trunc i64 %25 to i32
  store i32 %26, ptr %4, align 4, !tbaa !9
  %27 = load ptr, ptr %2, align 8, !tbaa !5
  %28 = call i32 @fclose(ptr noundef %27)
  %29 = load i32, ptr %4, align 4, !tbaa !9
  %30 = icmp eq i32 %29, 6
  br i1 %30, label %31, label %32

31:                                               ; preds = %22
  br label %34

32:                                               ; preds = %22
  call void @__assert_fail(ptr noundef @.str.19, ptr noundef @.str.20, i32 noundef 245, ptr noundef @__PRETTY_FUNCTION__._Z15open_trace_filev) #8
  unreachable

33:                                               ; No predecessors!
  br label %34

34:                                               ; preds = %33, %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  store i64 1017, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1017, ptr %6) #7
  %35 = getelementptr inbounds [6 x i8], ptr %3, i64 0, i64 0
  %36 = load i8, ptr %35, align 1, !tbaa !13
  %37 = zext i8 %36 to i32
  %38 = icmp eq i32 %37, 253
  br i1 %38, label %39, label %71

39:                                               ; preds = %34
  %40 = getelementptr inbounds [6 x i8], ptr %3, i64 0, i64 1
  %41 = load i8, ptr %40, align 1, !tbaa !13
  %42 = zext i8 %41 to i32
  %43 = icmp eq i32 %42, 55
  br i1 %43, label %44, label %71

44:                                               ; preds = %39
  %45 = getelementptr inbounds [6 x i8], ptr %3, i64 0, i64 2
  %46 = load i8, ptr %45, align 1, !tbaa !13
  %47 = zext i8 %46 to i32
  %48 = icmp eq i32 %47, 122
  br i1 %48, label %49, label %71

49:                                               ; preds = %44
  %50 = getelementptr inbounds [6 x i8], ptr %3, i64 0, i64 3
  %51 = load i8, ptr %50, align 1, !tbaa !13
  %52 = zext i8 %51 to i32
  %53 = icmp eq i32 %52, 88
  br i1 %53, label %54, label %71

54:                                               ; preds = %49
  %55 = getelementptr inbounds [6 x i8], ptr %3, i64 0, i64 4
  %56 = load i8, ptr %55, align 1, !tbaa !13
  %57 = zext i8 %56 to i32
  %58 = icmp eq i32 %57, 90
  br i1 %58, label %59, label %71

59:                                               ; preds = %54
  %60 = getelementptr inbounds [6 x i8], ptr %3, i64 0, i64 5
  %61 = load i8, ptr %60, align 1, !tbaa !13
  %62 = zext i8 %61 to i32
  %63 = icmp eq i32 %62, 0
  br i1 %63, label %64, label %71

64:                                               ; preds = %59
  %65 = load ptr, ptr @stderr, align 8, !tbaa !5
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef @.str.21, ptr noundef @tracefilename) #7
  %67 = load ptr, ptr @stderr, align 8, !tbaa !5
  %68 = call i32 @fflush(ptr noundef %67)
  %69 = getelementptr inbounds [1017 x i8], ptr %6, i64 0, i64 0
  %70 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %69, ptr noundef @.str.22, ptr noundef @.str.23, ptr noundef @tracefilename) #7
  br label %96

71:                                               ; preds = %59, %54, %49, %44, %39, %34
  %72 = getelementptr inbounds [6 x i8], ptr %3, i64 0, i64 0
  %73 = load i8, ptr %72, align 1, !tbaa !13
  %74 = zext i8 %73 to i32
  %75 = icmp eq i32 %74, 31
  br i1 %75, label %76, label %88

76:                                               ; preds = %71
  %77 = getelementptr inbounds [6 x i8], ptr %3, i64 0, i64 1
  %78 = load i8, ptr %77, align 1, !tbaa !13
  %79 = zext i8 %78 to i32
  %80 = icmp eq i32 %79, 139
  br i1 %80, label %81, label %88

81:                                               ; preds = %76
  %82 = load ptr, ptr @stderr, align 8, !tbaa !5
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef @.str.24, ptr noundef @tracefilename) #7
  %84 = load ptr, ptr @stderr, align 8, !tbaa !5
  %85 = call i32 @fflush(ptr noundef %84)
  %86 = getelementptr inbounds [1017 x i8], ptr %6, i64 0, i64 0
  %87 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %86, ptr noundef @.str.22, ptr noundef @.str.25, ptr noundef @tracefilename) #7
  br label %95

88:                                               ; preds = %76, %71
  %89 = load ptr, ptr @stderr, align 8, !tbaa !5
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef @.str.26, ptr noundef @tracefilename) #7
  %91 = load ptr, ptr @stderr, align 8, !tbaa !5
  %92 = call i32 @fflush(ptr noundef %91)
  %93 = getelementptr inbounds [1017 x i8], ptr %6, i64 0, i64 0
  %94 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %93, ptr noundef @.str.27, ptr noundef @.str.28, ptr noundef @tracefilename) #7
  br label %95

95:                                               ; preds = %88, %81
  br label %96

96:                                               ; preds = %95, %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %97 = getelementptr inbounds [1017 x i8], ptr %6, i64 0, i64 0
  %98 = call noalias ptr @popen(ptr noundef %97, ptr noundef @.str.18)
  store ptr %98, ptr %7, align 8, !tbaa !5
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = icmp ne ptr %99, null
  br i1 %100, label %101, label %103

101:                                              ; preds = %96
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %102, ptr %1, align 8
  store i32 1, ptr %8, align 4
  br label %106

103:                                              ; preds = %96
  %104 = getelementptr inbounds [1017 x i8], ptr %6, i64 0, i64 0
  call void @perror(ptr noundef %104)
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %105, ptr %1, align 8
  store i32 1, ptr %8, align 4
  br label %106

106:                                              ; preds = %103, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 1017, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 6, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  br label %107

107:                                              ; preds = %106, %11
  %108 = load ptr, ptr %1, align 8
  ret ptr %108
}

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

declare i32 @fflush(ptr noundef) #3

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #3

declare void @perror(ptr noundef) #3

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5

declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #3

declare i32 @fclose(ptr noundef) #3

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

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #2

declare noalias ptr @popen(ptr noundef, ptr noundef) #3

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

attributes #0 = { mustprogress 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 = { 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 #2 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { nounwind willreturn memory(read) }
attributes #7 = { nounwind }
attributes #8 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!7, !7, 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"

@tracefilename = external dso_local global [1000 x i8], align 16
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.17 = external hidden unnamed_addr constant [29 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.18 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [88 x i8], align 1
@__PRETTY_FUNCTION__._Z15open_trace_filev = external hidden unnamed_addr constant [24 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef ptr @_Z15open_trace_filev() local_unnamed_addr #0 {
  %1 = alloca [6 x i8], align 4
  %2 = alloca [1017 x i8], align 16
  %3 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @tracefilename, ptr noundef nonnull dereferenceable(1) @.str.16) #5
  %.not = icmp eq i32 %3, 0
  br i1 %.not, label %4, label %10

4:                                                ; preds = %0
  %5 = load ptr, ptr @stderr, align 8, !tbaa !5
  %6 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.17) #6
  %7 = load ptr, ptr @stderr, align 8, !tbaa !5
  %8 = tail call i32 @fflush(ptr noundef %7)
  %9 = load ptr, ptr @stdin, align 8, !tbaa !5
  br label %54

10:                                               ; preds = %0
  %11 = tail call noalias ptr @fopen(ptr noundef nonnull @tracefilename, ptr noundef nonnull @.str.18)
  %.not30 = icmp eq ptr %11, null
  br i1 %.not30, label %12, label %13

12:                                               ; preds = %10
  tail call void @perror(ptr noundef nonnull @tracefilename) #7
  tail call void @exit(i32 noundef 1) #8
  unreachable

13:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %1) #9
  %14 = call i64 @fread(ptr noundef nonnull %1, i64 noundef 1, i64 noundef 6, ptr noundef nonnull %11)
  %15 = tail call i32 @fclose(ptr noundef nonnull %11)
  %16 = and i64 %14, 4294967295
  %17 = icmp eq i64 %16, 6
  br i1 %17, label %19, label %18

18:                                               ; preds = %13
  tail call void @__assert_fail(ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.20, i32 noundef 245, ptr noundef nonnull @__PRETTY_FUNCTION__._Z15open_trace_filev) #8
  unreachable

19:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 1017, ptr nonnull %2) #9
  %20 = load <4 x i8>, ptr %1, align 4
  %.fr = freeze <4 x i8> %20
  %21 = getelementptr inbounds i8, ptr %1, i64 4
  %22 = load i8, ptr %21, align 4
  %.fr34 = freeze i8 %22
  %23 = icmp eq i8 %.fr34, 90
  %24 = getelementptr inbounds i8, ptr %1, i64 5
  %25 = load i8, ptr %24, align 1
  %26 = icmp eq i8 %25, 0
  %.fr.scalar = bitcast <4 x i8> %.fr to i32
  %27 = icmp eq i32 %.fr.scalar, 1484404733
  %op.rdx = and i1 %27, %23
  %op.rdx32 = select i1 %op.rdx, i1 %26, i1 false
  br i1 %op.rdx32, label %28, label %34

28:                                               ; preds = %19
  %29 = load ptr, ptr @stderr, align 8, !tbaa !5
  %30 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.21, ptr noundef nonnull @tracefilename) #6
  %31 = load ptr, ptr @stderr, align 8, !tbaa !5
  %32 = tail call i32 @fflush(ptr noundef %31)
  %33 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str.22, ptr noundef nonnull @.str.23, ptr noundef nonnull @tracefilename) #9
  br label %50

34:                                               ; preds = %19
  %35 = extractelement <4 x i8> %.fr, i64 0
  %36 = icmp eq i8 %35, 31
  %37 = extractelement <4 x i8> %.fr, i64 1
  %38 = icmp eq i8 %37, -117
  %or.cond23 = and i1 %36, %38
  %39 = load ptr, ptr @stderr, align 8, !tbaa !5
  br i1 %or.cond23, label %40, label %45

40:                                               ; preds = %34
  %41 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str.24, ptr noundef nonnull @tracefilename) #6
  %42 = load ptr, ptr @stderr, align 8, !tbaa !5
  %43 = tail call i32 @fflush(ptr noundef %42)
  %44 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str.22, ptr noundef nonnull @.str.25, ptr noundef nonnull @tracefilename) #9
  br label %50

45:                                               ; preds = %34
  %46 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str.26, ptr noundef nonnull @tracefilename) #6
  %47 = load ptr, ptr @stderr, align 8, !tbaa !5
  %48 = tail call i32 @fflush(ptr noundef %47)
  %49 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str.27, ptr noundef nonnull @.str.28, ptr noundef nonnull @tracefilename) #9
  br label %50

50:                                               ; preds = %40, %45, %28
  %51 = call noalias ptr @popen(ptr noundef nonnull %2, ptr noundef nonnull @.str.18)
  %.not31 = icmp eq ptr %51, null
  br i1 %.not31, label %52, label %53

52:                                               ; preds = %50
  call void @perror(ptr noundef nonnull %2) #7
  br label %53

53:                                               ; preds = %50, %52
  call void @llvm.lifetime.end.p0(i64 1017, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %1) #9
  br label %54

54:                                               ; preds = %53, %4
  %.1 = phi ptr [ %51, %53 ], [ %9, %4 ]
  ret ptr %.1
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #2

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare void @perror(ptr nocapture noundef readonly) local_unnamed_addr #2

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

; Function Attrs: nofree nounwind
declare noundef i64 @fread(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #2

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

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @popen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

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

attributes #0 = { mustprogress 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 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 #2 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 willreturn memory(read) }
attributes #6 = { cold nounwind }
attributes #7 = { cold }
attributes #8 = { noreturn nounwind }
attributes #9 = { 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++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GlobalDCEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass