; LLVM IR from golems/ach :: cpp (cpptest)

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

%"class.ach::CerrChannel" = type { %"class.ach::LogChannel" }
%"class.ach::LogChannel" = type { %"class.ach::Channel" }
%"class.ach::Channel" = type { ptr, %struct.ach_channel }
%struct.ach_channel = type { %union.anon }
%union.anon = type { [16 x i64] }

@opt_chan_name = external dso_local global ptr, align 8
@opt_pub = external dso_local global i32, align 4
@opt_sub = external dso_local global i32, align 4
@fin = external dso_local global ptr, align 8
@fout = external dso_local global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [60 x i8], align 1
@stderr = external global ptr, align 8
@stdin = external global ptr, align 8
@stdout = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@optarg = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [262 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z7publishPN3ach7ChannelE(ptr 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z9subscribePN3ach7ChannelE(ptr noundef) #0

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #4 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.ach::CerrChannel", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  %11 = load ptr, ptr @stdin, align 8, !tbaa !9
  store ptr %11, ptr @fin, align 8, !tbaa !9
  %12 = load ptr, ptr @stdout, align 8, !tbaa !9
  store ptr %12, ptr @fout, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  br label %13

13:                                               ; preds = %28, %2
  %14 = load i32, ptr %4, align 4, !tbaa !5
  %15 = load ptr, ptr %5, align 8, !tbaa !9
  %16 = call i32 @getopt(i32 noundef %14, ptr noundef %15, ptr noundef @.str.3) #8
  store i32 %16, ptr %6, align 4, !tbaa !5
  %17 = icmp ne i32 %16, -1
  br i1 %17, label %18, label %29

18:                                               ; preds = %13
  %19 = load i32, ptr %6, align 4, !tbaa !5
  switch i32 %19, label %28 [
    i32 112, label %20
    i32 115, label %22
    i32 86, label %24
    i32 104, label %26
    i32 72, label %26
    i32 63, label %26
  ]

20:                                               ; preds = %18
  store i32 1, ptr @opt_pub, align 4, !tbaa !5
  %21 = load ptr, ptr @optarg, align 8, !tbaa !9
  store ptr %21, ptr @opt_chan_name, align 8, !tbaa !9
  br label %28

22:                                               ; preds = %18
  store i32 1, ptr @opt_sub, align 4, !tbaa !5
  %23 = load ptr, ptr @optarg, align 8, !tbaa !9
  store ptr %23, ptr @opt_chan_name, align 8, !tbaa !9
  br label %28

24:                                               ; preds = %18
  %25 = call i32 @puts(ptr noundef @.str.4)
  call void @exit(i32 noundef 0) #9
  unreachable

26:                                               ; preds = %18, %18, %18
  %27 = call i32 @puts(ptr noundef @.str.5)
  call void @exit(i32 noundef 0) #9
  unreachable

28:                                               ; preds = %22, %20, %18
  br label %13, !llvm.loop !11

29:                                               ; preds = %13
  %30 = load ptr, ptr @opt_chan_name, align 8, !tbaa !9
  %31 = icmp ne ptr %30, null
  br i1 %31, label %35, label %32

32:                                               ; preds = %29
  %33 = load ptr, ptr @stderr, align 8, !tbaa !9
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef @.str.6) #8
  call void @exit(i32 noundef 1) #9
  unreachable

35:                                               ; preds = %29
  %36 = load i32, ptr @opt_pub, align 4, !tbaa !5
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %44, label %38

38:                                               ; preds = %35
  %39 = load i32, ptr @opt_sub, align 4, !tbaa !5
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %44, label %41

41:                                               ; preds = %38
  %42 = load ptr, ptr @stderr, align 8, !tbaa !9
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef @.str.7) #8
  call void @exit(i32 noundef 1) #9
  unreachable

44:                                               ; preds = %38, %35
  %45 = load i32, ptr @opt_pub, align 4, !tbaa !5
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %47, label %53

47:                                               ; preds = %44
  %48 = load i32, ptr @opt_sub, align 4, !tbaa !5
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %53

50:                                               ; preds = %47
  %51 = load ptr, ptr @stderr, align 8, !tbaa !9
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef @.str.8) #8
  call void @exit(i32 noundef 1) #9
  unreachable

53:                                               ; preds = %47, %44
  call void @llvm.lifetime.start.p0(i64 136, ptr %7) #8
  call void @_ZN3ach11CerrChannelC2Ev(ptr noundef nonnull align 8 dereferenceable(136) %7)
  %54 = load ptr, ptr @opt_chan_name, align 8, !tbaa !9
  %55 = invoke noundef i32 @_ZN3ach7Channel4openEPKcP8ach_attrii(ptr noundef nonnull align 8 dereferenceable(136) %7, ptr noundef %54, ptr noundef null, i32 noundef 1, i32 noundef 0)
          to label %56 unwind label %62

56:                                               ; preds = %53
  %57 = load i32, ptr @opt_sub, align 4, !tbaa !5
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %66

59:                                               ; preds = %56
  %60 = invoke noundef i32 @_Z9subscribePN3ach7ChannelE(ptr noundef %7)
          to label %61 unwind label %62

61:                                               ; preds = %59
  store i32 %60, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %74

62:                                               ; preds = %69, %59, %53
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %8, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %9, align 4
  call void @_ZN3ach7ChannelD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %7) #8
  call void @llvm.lifetime.end.p0(i64 136, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %76

66:                                               ; preds = %56
  %67 = load i32, ptr @opt_pub, align 4, !tbaa !5
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %69, label %72

69:                                               ; preds = %66
  %70 = invoke noundef i32 @_Z7publishPN3ach7ChannelE(ptr noundef %7)
          to label %71 unwind label %62

71:                                               ; preds = %69
  store i32 %70, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %74

72:                                               ; preds = %66
  br label %73

73:                                               ; preds = %72
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 180, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

74:                                               ; preds = %71, %61
  call void @_ZN3ach7ChannelD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %7) #8
  call void @llvm.lifetime.end.p0(i64 136, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  %75 = load i32, ptr %3, align 4
  ret i32 %75

76:                                               ; preds = %62
  %77 = load ptr, ptr %8, align 8
  %78 = load i32, ptr %9, align 4
  %79 = insertvalue { ptr, i32 } poison, ptr %77, 0
  %80 = insertvalue { ptr, i32 } %79, i32 %78, 1
  resume { ptr, i32 } %80
}

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #3

declare i32 @puts(ptr noundef) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3ach11CerrChannelC2Ev(ptr noundef nonnull align 8 dereferenceable(136)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3ach7Channel4openEPKcP8ach_attrii(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef, ptr noundef, i32 noundef, i32 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3ach7ChannelD2Ev(ptr noundef nonnull align 8 dereferenceable(136)) unnamed_addr #7 align 2

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { mustprogress norecurse 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 #5 = { "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 = { inlinehint 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !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"

%"class.ach::CerrChannel" = type { %"class.ach::LogChannel" }
%"class.ach::LogChannel" = type { %"class.ach::Channel" }
%"class.ach::Channel" = type { ptr, %struct.ach_channel }
%struct.ach_channel = type { %union.anon }
%union.anon = type { [16 x i64] }

@opt_chan_name = external dso_local local_unnamed_addr global ptr, align 8
@opt_pub = external dso_local local_unnamed_addr global i32, align 4
@opt_sub = external dso_local local_unnamed_addr global i32, align 4
@fin = external dso_local local_unnamed_addr global ptr, align 8
@fout = external dso_local local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [60 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@stdin = external local_unnamed_addr global ptr, align 8
@stdout = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [262 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z7publishPN3ach7ChannelE(ptr 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) 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) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z9subscribePN3ach7ChannelE(ptr noundef) local_unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.ach::CerrChannel", align 8
  %4 = load ptr, ptr @stdin, align 8, !tbaa !5
  store ptr %4, ptr @fin, align 8, !tbaa !5
  br label %.sink.split12

.sink.split12:                                    ; preds = %2, %.sink.split
  %optarg.sink = phi ptr [ @optarg, %.sink.split ], [ @stdout, %2 ]
  %opt_chan_name.sink = phi ptr [ @opt_chan_name, %.sink.split ], [ @fout, %2 ]
  %5 = load ptr, ptr %optarg.sink, align 8, !tbaa !5
  store ptr %5, ptr %opt_chan_name.sink, align 8, !tbaa !5
  br label %6

6:                                                ; preds = %.sink.split12, %6
  %7 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.3) #8
  switch i32 %7, label %6 [
    i32 -1, label %12
    i32 112, label %.sink.split.loopexit
    i32 115, label %.sink.split
    i32 86, label %8
    i32 104, label %10
    i32 72, label %10
    i32 63, label %10
  ], !llvm.loop !9

8:                                                ; preds = %6
  %9 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.4)
  tail call void @exit(i32 noundef 0) #9
  unreachable

10:                                               ; preds = %6, %6, %6
  %11 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.5)
  tail call void @exit(i32 noundef 0) #9
  unreachable

.sink.split.loopexit:                             ; preds = %6
  br label %.sink.split

.sink.split:                                      ; preds = %6, %.sink.split.loopexit
  %opt_sub.sink = phi ptr [ @opt_pub, %.sink.split.loopexit ], [ @opt_sub, %6 ]
  store i32 1, ptr %opt_sub.sink, align 4, !tbaa !11
  br label %.sink.split12, !llvm.loop !9

12:                                               ; preds = %6
  %13 = load ptr, ptr @opt_chan_name, align 8, !tbaa !5
  %.not9 = icmp eq ptr %13, null
  br i1 %.not9, label %14, label %17

14:                                               ; preds = %12
  %15 = load ptr, ptr @stderr, align 8, !tbaa !5
  %16 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str.6) #10
  tail call void @exit(i32 noundef 1) #9
  unreachable

17:                                               ; preds = %12
  %18 = load i32, ptr @opt_pub, align 4, !tbaa !11
  %19 = icmp ne i32 %18, 0
  %20 = load i32, ptr @opt_sub, align 4
  %21 = icmp ne i32 %20, 0
  %or.cond = select i1 %19, i1 true, i1 %21
  br i1 %or.cond, label %25, label %22

22:                                               ; preds = %17
  %23 = load ptr, ptr @stderr, align 8, !tbaa !5
  %24 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str.7) #10
  tail call void @exit(i32 noundef 1) #9
  unreachable

25:                                               ; preds = %17
  %or.cond3 = select i1 %19, i1 %21, i1 false
  br i1 %or.cond3, label %26, label %29

26:                                               ; preds = %25
  %27 = load ptr, ptr @stderr, align 8, !tbaa !5
  %28 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str.8) #10
  tail call void @exit(i32 noundef 1) #9
  unreachable

29:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 136, ptr nonnull %3) #8
  call void @_ZN3ach11CerrChannelC2Ev(ptr noundef nonnull align 8 dereferenceable(136) %3)
  %30 = load ptr, ptr @opt_chan_name, align 8, !tbaa !5
  %31 = invoke noundef i32 @_ZN3ach7Channel4openEPKcP8ach_attrii(ptr noundef nonnull align 8 dereferenceable(136) %3, ptr noundef %30, ptr noundef null, i32 noundef 1, i32 noundef 0)
          to label %32 unwind label %36

32:                                               ; preds = %29
  %33 = load i32, ptr @opt_sub, align 4, !tbaa !11
  %.not10 = icmp eq i32 %33, 0
  br i1 %.not10, label %38, label %34

34:                                               ; preds = %32
  %35 = invoke noundef i32 @_Z9subscribePN3ach7ChannelE(ptr noundef nonnull %3)
          to label %43 unwind label %36

36:                                               ; preds = %40, %34, %29
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3ach7ChannelD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %3) #8
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %3) #8
  resume { ptr, i32 } %37

38:                                               ; preds = %32
  %39 = load i32, ptr @opt_pub, align 4, !tbaa !11
  %.not11 = icmp eq i32 %39, 0
  br i1 %.not11, label %42, label %40

40:                                               ; preds = %38
  %41 = invoke noundef i32 @_Z7publishPN3ach7ChannelE(ptr noundef nonnull %3)
          to label %43 unwind label %36

42:                                               ; preds = %38
  call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i32 noundef 180, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #9
  unreachable

43:                                               ; preds = %40, %34
  %.0 = phi i32 [ %35, %34 ], [ %41, %40 ]
  call void @_ZN3ach7ChannelD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %3) #8
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %3) #8
  ret i32 %.0
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3ach11CerrChannelC2Ev(ptr noundef nonnull align 8 dereferenceable(136)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3ach7Channel4openEPKcP8ach_attrii(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3ach7ChannelD2Ev(ptr noundef nonnull align 8 dereferenceable(136)) unnamed_addr #7 align 2

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { mustprogress norecurse 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 #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 = { inlinehint 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { cold 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass