; LLVM IR from kmilo17pet/QuarkTS-cpp :: src/input.ll (ZN3qOS5input7watcher3addERNS0_7channelE)

; 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.qOS::listIterator" = type { ptr, ptr, ptr, ptr }
%"class.qOS::input::watcher" = type { %"class.qOS::node", ptr, %"class.qOS::list", %"class.qOS::list", %"class.qOS::timer", i64, ptr, ptr }
%"class.qOS::node" = type { ptr, ptr, ptr, ptr }
%"class.qOS::list" = type { %"class.qOS::node", ptr, ptr, i64 }
%"class.qOS::timer" = type { ptr, i64, i64 }
%"class.qOS::input::channel" = type { %"class.qOS::node", i32, i8, ptr, ptr, i64, i64, i64 }
%"class.qOS::input::analogChannel" = type { %"class.qOS::input::channel", i32, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i64 }

@_ZN3qOS5clock7getTickE = external global ptr, align 8

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(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
declare void @_ZN3qOS4list5beginEv(ptr dead_on_unwind writable sret(%"class.qOS::listIterator") align 8, ptr noundef nonnull align 8 dereferenceable(56)) #2

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZNK3qOS12listIterator8untilEndEv(ptr noundef nonnull align 8 dereferenceable(32)) #2

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN3qOS12listIteratorppEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3qOS12listIteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN3qOS5input7watcher3addERNS0_7channelE(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(80) %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca ptr, align 8
  %7 = alloca %"class.qOS::listIterator", align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %10 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #5
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = load ptr, ptr %11, align 8, !tbaa !9
  %13 = getelementptr inbounds ptr, ptr %12, i64 6
  %14 = load ptr, ptr %13, align 8
  %15 = call noundef i32 %14(ptr noundef nonnull align 8 dereferenceable(80) %11) #5
  %16 = icmp eq i32 0, %15
  br i1 %16, label %17, label %33

17:                                               ; preds = %2
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %"class.qOS::input::watcher", ptr %10, i32 0, i32 6
  %20 = load ptr, ptr %19, align 8, !tbaa !11
  %21 = load ptr, ptr %18, align 8, !tbaa !9
  %22 = getelementptr inbounds ptr, ptr %21, i64 11
  %23 = load ptr, ptr %22, align 8
  %24 = call noundef zeroext i1 %23(ptr noundef nonnull align 8 dereferenceable(80) %18, ptr noundef %20) #5
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  %27 = getelementptr inbounds ptr, ptr %26, i64 5
  %28 = load ptr, ptr %27, align 8
  call void %28(ptr noundef nonnull align 8 dereferenceable(80) %25) #5
  %29 = getelementptr inbounds %"class.qOS::input::watcher", ptr %10, i32 0, i32 2
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = call noundef zeroext i1 @_ZN3qOS4list6insertEPvNS_12listPositionE(ptr noundef nonnull align 8 dereferenceable(56) %29, ptr noundef %30, i32 noundef -2) #5
  %32 = zext i1 %31 to i8
  store i8 %32, ptr %5, align 1, !tbaa !17
  br label %78

33:                                               ; preds = %2
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %"class.qOS::input::watcher", ptr %10, i32 0, i32 7
  %36 = load ptr, ptr %35, align 8, !tbaa !19
  %37 = load ptr, ptr %34, align 8, !tbaa !9
  %38 = getelementptr inbounds ptr, ptr %37, i64 12
  %39 = load ptr, ptr %38, align 8
  %40 = call noundef zeroext i1 %39(ptr noundef nonnull align 8 dereferenceable(80) %34, ptr noundef %36) #5
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  %43 = getelementptr inbounds ptr, ptr %42, i64 5
  %44 = load ptr, ptr %43, align 8
  call void %44(ptr noundef nonnull align 8 dereferenceable(80) %41) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %45, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #5
  %46 = getelementptr inbounds %"class.qOS::input::watcher", ptr %10, i32 0, i32 3
  call void @_ZN3qOS4list5beginEv(ptr dead_on_unwind writable sret(%"class.qOS::listIterator") align 8 %7, ptr noundef nonnull align 8 dereferenceable(56) %46) #5
  br label %47

47:                                               ; preds = %70, %33
  %48 = call noundef zeroext i1 @_ZNK3qOS12listIterator8untilEndEv(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  br i1 %48, label %50, label %49

49:                                               ; preds = %47
  store i32 2, ptr %8, align 4
  br label %72

50:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %51 = call noundef ptr @_ZN3qOS12listIterator3getIPNS_5input13analogChannelEEET_v(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  store ptr %51, ptr %9, align 8, !tbaa !5
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %"class.qOS::input::channel", ptr %52, i32 0, i32 2
  %54 = load i8, ptr %53, align 4, !tbaa !20
  %55 = zext i8 %54 to i32
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = getelementptr inbounds %"class.qOS::input::channel", ptr %56, i32 0, i32 2
  %58 = load i8, ptr %57, align 4, !tbaa !20
  %59 = zext i8 %58 to i32
  %60 = icmp eq i32 %55, %59
  br i1 %60, label %61, label %66

61:                                               ; preds = %50
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = getelementptr inbounds %"class.qOS::input::analogChannel", ptr %62, i32 0, i32 1
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds %"class.qOS::input::analogChannel", ptr %64, i32 0, i32 2
  store ptr %63, ptr %65, align 8, !tbaa !23
  store i32 2, ptr %8, align 4
  br label %67

66:                                               ; preds = %50
  store i32 0, ptr %8, align 4
  br label %67

67:                                               ; preds = %66, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  %68 = load i32, ptr %8, align 4
  switch i32 %68, label %72 [
    i32 0, label %69
  ]

69:                                               ; preds = %67
  br label %70

70:                                               ; preds = %69
  %71 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN3qOS12listIteratorppEi(ptr noundef nonnull align 8 dereferenceable(32) %7, i32 noundef 0) #5
  br label %47, !llvm.loop !26

72:                                               ; preds = %67, %49
  call void @_ZN3qOS12listIteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #5
  br label %73

73:                                               ; preds = %72
  %74 = getelementptr inbounds %"class.qOS::input::watcher", ptr %10, i32 0, i32 3
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = call noundef zeroext i1 @_ZN3qOS4list6insertEPvNS_12listPositionE(ptr noundef nonnull align 8 dereferenceable(56) %74, ptr noundef %75, i32 noundef -2) #5
  %77 = zext i1 %76 to i8
  store i8 %77, ptr %5, align 1, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %78

78:                                               ; preds = %73, %17
  %79 = load ptr, ptr @_ZN3qOS5clock7getTickE, align 8, !tbaa !5
  %80 = invoke noundef i64 %79()
          to label %81 unwind label %86

81:                                               ; preds = %78
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %"class.qOS::input::channel", ptr %82, i32 0, i32 5
  store i64 %80, ptr %83, align 8, !tbaa !28
  %84 = load i8, ptr %5, align 1, !tbaa !17, !range !29, !noundef !30
  %85 = trunc i8 %84 to i1
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
  ret i1 %85

86:                                               ; preds = %78
  %87 = landingpad { ptr, i32 }
          catch ptr null
  %88 = extractvalue { ptr, i32 } %87, 0
  call void @__clang_call_terminate(ptr %88) #6
  unreachable
}

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZN3qOS4list6insertEPvNS_12listPositionE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, i32 noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3qOS12listIterator3getIPNS_5input13analogChannelEEET_v(ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noinline noreturn nounwind uwtable "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 = { 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 #4 = { inlinehint 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 #5 = { nounwind }
attributes #6 = { 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !6, i64 184}
!12 = !{!"_ZTSN3qOS5input7watcherE", !13, i64 0, !6, i64 32, !14, i64 40, !14, i64 96, !16, i64 152, !15, i64 176, !6, i64 184, !6, i64 192}
!13 = !{!"_ZTSN3qOS4nodeE", !6, i64 8, !6, i64 16, !6, i64 24}
!14 = !{!"_ZTSN3qOS4listE", !13, i64 0, !6, i64 32, !6, i64 40, !15, i64 48}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSN3qOS5timerE", !15, i64 8, !15, i64 16}
!17 = !{!18, !18, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!12, !6, i64 192}
!20 = !{!21, !7, i64 36}
!21 = !{!"_ZTSN3qOS5input7channelE", !13, i64 0, !22, i64 32, !7, i64 36, !6, i64 40, !6, i64 48, !15, i64 56, !15, i64 64, !15, i64 72}
!22 = !{!"_ZTSN3qOS5input5eventE", !7, i64 0}
!23 = !{!24, !6, i64 88}
!24 = !{!"_ZTSN3qOS5input13analogChannelE", !21, i64 0, !25, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !25, i64 112, !25, i64 116, !25, i64 120, !25, i64 124, !25, i64 128, !25, i64 132, !25, i64 136, !15, i64 144}
!25 = !{!"int", !7, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!21, !15, i64 56}
!29 = !{i8 0, i8 2}
!30 = !{}


; 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.qOS::listIterator" = type { ptr, ptr, ptr, ptr }

@_ZN3qOS5clock7getTickE = external local_unnamed_addr global ptr, align 8

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(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
declare void @_ZN3qOS4list5beginEv(ptr dead_on_unwind writable sret(%"class.qOS::listIterator") align 8, ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #2

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZNK3qOS12listIterator8untilEndEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN3qOS12listIteratorppEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3qOS12listIteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN3qOS5input7watcher3addERNS0_7channelE(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(80) %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.qOS::listIterator", align 8
  %4 = load ptr, ptr %1, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %4, i64 48
  %6 = load ptr, ptr %5, align 8
  %7 = tail call noundef i32 %6(ptr noundef nonnull align 8 dereferenceable(80) %1) #5
  %8 = icmp eq i32 %7, 0
  %9 = load ptr, ptr %1, align 8, !tbaa !5
  br i1 %8, label %10, label %21

10:                                               ; preds = %2
  %11 = getelementptr inbounds i8, ptr %0, i64 184
  %12 = load ptr, ptr %11, align 8, !tbaa !8
  %13 = getelementptr inbounds i8, ptr %9, i64 88
  %14 = load ptr, ptr %13, align 8
  %15 = tail call noundef zeroext i1 %14(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef %12) #5
  %16 = load ptr, ptr %1, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %16, i64 40
  %18 = load ptr, ptr %17, align 8
  tail call void %18(ptr noundef nonnull align 8 dereferenceable(80) %1) #5
  %19 = getelementptr inbounds i8, ptr %0, i64 40
  %20 = tail call noundef zeroext i1 @_ZN3qOS4list6insertEPvNS_12listPositionE(ptr noundef nonnull align 8 dereferenceable(56) %19, ptr noundef nonnull %1, i32 noundef -2) #5
  br label %44

21:                                               ; preds = %2
  %22 = getelementptr inbounds i8, ptr %0, i64 192
  %23 = load ptr, ptr %22, align 8, !tbaa !16
  %24 = getelementptr inbounds i8, ptr %9, i64 96
  %25 = load ptr, ptr %24, align 8
  %26 = tail call noundef zeroext i1 %25(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef %23) #5
  %27 = load ptr, ptr %1, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i64 40
  %29 = load ptr, ptr %28, align 8
  tail call void %29(ptr noundef nonnull align 8 dereferenceable(80) %1) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #5
  %30 = getelementptr inbounds i8, ptr %0, i64 96
  call void @_ZN3qOS4list5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.qOS::listIterator") align 8 %3, ptr noundef nonnull align 8 dereferenceable(56) %30) #5
  %31 = call noundef zeroext i1 @_ZNK3qOS12listIterator8untilEndEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  br i1 %31, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %21
  %32 = getelementptr inbounds i8, ptr %1, i64 36
  br label %33

33:                                               ; preds = %.lr.ph, %.critedge
  %34 = call noundef ptr @_ZN3qOS12listIterator3getIPNS_5input13analogChannelEEET_v(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  %35 = load i8, ptr %32, align 4, !tbaa !17
  %36 = getelementptr inbounds i8, ptr %34, i64 36
  %37 = load i8, ptr %36, align 4, !tbaa !17
  %.not = icmp eq i8 %35, %37
  br i1 %.not, label %38, label %.critedge

38:                                               ; preds = %33
  %39 = getelementptr inbounds i8, ptr %34, i64 80
  %40 = getelementptr inbounds i8, ptr %1, i64 88
  store ptr %39, ptr %40, align 8, !tbaa !20
  br label %.loopexit

.critedge:                                        ; preds = %33
  %41 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN3qOS12listIteratorppEi(ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef 0) #5
  %42 = call noundef zeroext i1 @_ZNK3qOS12listIterator8untilEndEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  br i1 %42, label %33, label %.loopexit, !llvm.loop !23

.loopexit:                                        ; preds = %.critedge, %21, %38
  call void @_ZN3qOS12listIteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  %43 = call noundef zeroext i1 @_ZN3qOS4list6insertEPvNS_12listPositionE(ptr noundef nonnull align 8 dereferenceable(56) %30, ptr noundef nonnull %1, i32 noundef -2) #5
  br label %44

44:                                               ; preds = %.loopexit, %10
  %.0.in = phi i1 [ %20, %10 ], [ %43, %.loopexit ]
  %45 = load ptr, ptr @_ZN3qOS5clock7getTickE, align 8, !tbaa !25
  %46 = invoke noundef i64 %45()
          to label %47 unwind label %49

47:                                               ; preds = %44
  %48 = getelementptr inbounds i8, ptr %1, i64 56
  store i64 %46, ptr %48, align 8, !tbaa !26
  ret i1 %.0.in

49:                                               ; preds = %44
  %50 = landingpad { ptr, i32 }
          catch ptr null
  %51 = extractvalue { ptr, i32 } %50, 0
  call void @__clang_call_terminate(ptr %51) #6
  unreachable
}

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZN3qOS4list6insertEPvNS_12listPositionE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3qOS12listIterator3getIPNS_5input13analogChannelEEET_v(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noinline noreturn nounwind uwtable "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 = { 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 #4 = { inlinehint 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 #5 = { nounwind }
attributes #6 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !11, i64 184}
!9 = !{!"_ZTSN3qOS5input7watcherE", !10, i64 0, !11, i64 32, !13, i64 40, !13, i64 96, !15, i64 152, !14, i64 176, !11, i64 184, !11, i64 192}
!10 = !{!"_ZTSN3qOS4nodeE", !11, i64 8, !11, i64 16, !11, i64 24}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"_ZTSN3qOS4listE", !10, i64 0, !11, i64 32, !11, i64 40, !14, i64 48}
!14 = !{!"long", !12, i64 0}
!15 = !{!"_ZTSN3qOS5timerE", !14, i64 8, !14, i64 16}
!16 = !{!9, !11, i64 192}
!17 = !{!18, !12, i64 36}
!18 = !{!"_ZTSN3qOS5input7channelE", !10, i64 0, !19, i64 32, !12, i64 36, !11, i64 40, !11, i64 48, !14, i64 56, !14, i64 64, !14, i64 72}
!19 = !{!"_ZTSN3qOS5input5eventE", !12, i64 0}
!20 = !{!21, !11, i64 88}
!21 = !{!"_ZTSN3qOS5input13analogChannelE", !18, i64 0, !22, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !22, i64 112, !22, i64 116, !22, i64 120, !22, i64 124, !22, i64 128, !22, i64 132, !22, i64 136, !14, i64 144}
!22 = !{!"int", !12, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!11, !11, i64 0}
!26 = !{!18, !14, i64 56}


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