; LLVM IR from AdaptiveCpp/AdaptiveCpp :: src/runtime (multi_queue_executor)

; 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.hipsycl::rt::device_id" = type { %"struct.hipsycl::rt::backend_descriptor", i32 }
%"struct.hipsycl::rt::backend_descriptor" = type { i32, i32, i32 }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.6" }
%"struct.std::_Head_base.6" = type { ptr }
%"class.std::unique_ptr.17" = type { %"struct.std::__uniq_ptr_data.18" }
%"struct.std::__uniq_ptr_data.18" = type { %"class.std::__uniq_ptr_impl.19" }
%"class.std::__uniq_ptr_impl.19" = type { %"class.std::tuple.20" }
%"class.std::tuple.20" = type { %"struct.std::_Tuple_impl.21" }
%"struct.std::_Tuple_impl.21" = type { %"struct.std::_Head_base.24" }
%"struct.std::_Head_base.24" = type { ptr }
%"class.hipsycl::rt::moving_statistics" = type { i64, i64, i64, %"class.std::vector.12" }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<hipsycl::rt::moving_statistics::submission, std::allocator<hipsycl::rt::moving_statistics::submission>>::_Vector_impl" }
%"struct.std::_Vector_base<hipsycl::rt::moving_statistics::submission, std::allocator<hipsycl::rt::moving_statistics::submission>>::_Vector_impl" = type { %"struct.std::_Vector_base<hipsycl::rt::moving_statistics::submission, std::allocator<hipsycl::rt::moving_statistics::submission>>::_Vector_impl_data" }
%"struct.std::_Vector_base<hipsycl::rt::moving_statistics::submission, std::allocator<hipsycl::rt::moving_statistics::submission>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.hipsycl::rt::multi_queue_executor" = type <{ %"class.hipsycl::rt::backend_executor", %"class.std::vector", %"class.std::vector.0", i32, [4 x i8] }>
%"class.hipsycl::rt::backend_executor" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<hipsycl::rt::multi_queue_executor::per_device_data, std::allocator<hipsycl::rt::multi_queue_executor::per_device_data>>::_Vector_impl" }
%"struct.std::_Vector_base<hipsycl::rt::multi_queue_executor::per_device_data, std::allocator<hipsycl::rt::multi_queue_executor::per_device_data>>::_Vector_impl" = type { %"struct.std::_Vector_base<hipsycl::rt::multi_queue_executor::per_device_data, std::allocator<hipsycl::rt::multi_queue_executor::per_device_data>>::_Vector_impl_data" }
%"struct.std::_Vector_base<hipsycl::rt::multi_queue_executor::per_device_data, std::allocator<hipsycl::rt::multi_queue_executor::per_device_data>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<hipsycl::rt::inorder_queue *, std::allocator<hipsycl::rt::inorder_queue *>>::_Vector_impl" }
%"struct.std::_Vector_base<hipsycl::rt::inorder_queue *, std::allocator<hipsycl::rt::inorder_queue *>>::_Vector_impl" = type { %"struct.std::_Vector_base<hipsycl::rt::inorder_queue *, std::allocator<hipsycl::rt::inorder_queue *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<hipsycl::rt::inorder_queue *, std::allocator<hipsycl::rt::inorder_queue *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.hipsycl::rt::multi_queue_executor::per_device_data" = type { %"struct.hipsycl::rt::backend_execution_lane_range", %"struct.hipsycl::rt::backend_execution_lane_range", %"class.std::vector.7", %"class.hipsycl::rt::moving_statistics" }
%"struct.hipsycl::rt::backend_execution_lane_range" = type { i64, i64 }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::unique_ptr<hipsycl::rt::inorder_executor>, std::allocator<std::unique_ptr<hipsycl::rt::inorder_executor>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<hipsycl::rt::inorder_executor>, std::allocator<std::unique_ptr<hipsycl::rt::inorder_executor>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<hipsycl::rt::inorder_executor>, std::allocator<std::unique_ptr<hipsycl::rt::inorder_executor>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<hipsycl::rt::inorder_executor>, std::allocator<std::unique_ptr<hipsycl::rt::inorder_executor>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZTVN7hipsycl2rt20multi_queue_executorE = external dso_local unnamed_addr constant { [10 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [30 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7hipsycl2rt20multi_queue_executorC2ERKNS0_7backendESt8functionIFSt10unique_ptrINS0_13inorder_queueESt14default_deleteIS7_EENS0_9device_idEEE(ptr noundef nonnull align 8 dereferenceable(60) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.hipsycl::rt::device_id", align 4
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca %"class.std::unique_ptr", align 8
  %18 = alloca %"class.hipsycl::rt::device_id", align 4
  %19 = alloca ptr, align 8
  %20 = alloca %"class.std::unique_ptr.17", align 8
  %21 = alloca i64, align 8
  %22 = alloca %"class.std::unique_ptr", align 8
  %23 = alloca %"class.hipsycl::rt::device_id", align 4
  %24 = alloca ptr, align 8
  %25 = alloca %"class.std::unique_ptr.17", align 8
  %26 = alloca i64, align 8
  %27 = alloca double, align 8
  %28 = alloca %"class.hipsycl::rt::moving_statistics", align 8
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %35 = load ptr, ptr %4, align 8
  call void @_ZN7hipsycl2rt16backend_executorC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  store ptr getelementptr inbounds inrange(-16, 64) ({ [10 x ptr] }, ptr @_ZTVN7hipsycl2rt20multi_queue_executorE, i32 0, i32 0, i32 2), ptr %35, align 8, !tbaa !9
  %36 = getelementptr inbounds %"class.hipsycl::rt::multi_queue_executor", ptr %35, i32 0, i32 1
  call void @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #7
  %37 = getelementptr inbounds %"class.hipsycl::rt::multi_queue_executor", ptr %35, i32 0, i32 2
  call void @_ZNSt6vectorIPN7hipsycl2rt13inorder_queueESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #7
  %38 = getelementptr inbounds %"class.hipsycl::rt::multi_queue_executor", ptr %35, i32 0, i32 3
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = load ptr, ptr %39, align 8, !tbaa !9
  %41 = getelementptr inbounds ptr, ptr %40, i64 2
  %42 = load ptr, ptr %41, align 8
  %43 = invoke noundef i32 %42(ptr noundef nonnull align 8 dereferenceable(8) %39)
          to label %44 unwind label %64

44:                                               ; preds = %3
  store i32 %43, ptr %38, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = load ptr, ptr %45, align 8, !tbaa !9
  %47 = getelementptr inbounds ptr, ptr %46, i64 3
  %48 = load ptr, ptr %47, align 8
  %49 = invoke noundef ptr %48(ptr noundef nonnull align 8 dereferenceable(8) %45)
          to label %50 unwind label %68

50:                                               ; preds = %44
  %51 = load ptr, ptr %49, align 8, !tbaa !9
  %52 = getelementptr inbounds ptr, ptr %51, i64 0
  %53 = load ptr, ptr %52, align 8
  %54 = invoke noundef i64 %53(ptr noundef nonnull align 8 dereferenceable(8) %49)
          to label %55 unwind label %68

55:                                               ; preds = %50
  store i64 %54, ptr %9, align 8, !tbaa !23
  %56 = getelementptr inbounds %"class.hipsycl::rt::multi_queue_executor", ptr %35, i32 0, i32 1
  %57 = load i64, ptr %9, align 8, !tbaa !23
  invoke void @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 noundef %57)
          to label %58 unwind label %68

58:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  store i64 0, ptr %10, align 8, !tbaa !23
  br label %59

59:                                               ; preds = %261, %58
  %60 = load i64, ptr %10, align 8, !tbaa !23
  %61 = load i64, ptr %9, align 8, !tbaa !23
  %62 = icmp ult i64 %60, %61
  br i1 %62, label %72, label %63

63:                                               ; preds = %59
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %282

64:                                               ; preds = %3
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %7, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %8, align 4
  br label %455

68:                                               ; preds = %295, %293, %291, %289, %284, %282, %55, %50, %44
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %7, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %8, align 4
  br label %454

72:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = load ptr, ptr %73, align 8, !tbaa !9
  %75 = getelementptr inbounds ptr, ptr %74, i64 3
  %76 = load ptr, ptr %75, align 8
  %77 = invoke noundef ptr %76(ptr noundef nonnull align 8 dereferenceable(8) %73)
          to label %78 unwind label %118

78:                                               ; preds = %72
  %79 = load i64, ptr %10, align 8, !tbaa !23
  %80 = load ptr, ptr %77, align 8, !tbaa !9
  %81 = getelementptr inbounds ptr, ptr %80, i64 3
  %82 = load ptr, ptr %81, align 8
  %83 = invoke { i64, i64 } %82(ptr noundef nonnull align 8 dereferenceable(8) %77, i64 noundef %79)
          to label %84 unwind label %118

84:                                               ; preds = %78
  %85 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 0
  %86 = extractvalue { i64, i64 } %83, 0
  store i64 %86, ptr %85, align 4
  %87 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 1
  %88 = extractvalue { i64, i64 } %83, 1
  store i64 %88, ptr %87, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = load ptr, ptr %89, align 8, !tbaa !9
  %91 = getelementptr inbounds ptr, ptr %90, i64 3
  %92 = load ptr, ptr %91, align 8
  %93 = invoke noundef ptr %92(ptr noundef nonnull align 8 dereferenceable(8) %89)
          to label %94 unwind label %122

94:                                               ; preds = %84
  %95 = load i64, ptr %10, align 8, !tbaa !23
  %96 = load ptr, ptr %93, align 8, !tbaa !9
  %97 = getelementptr inbounds ptr, ptr %96, i64 2
  %98 = load ptr, ptr %97, align 8
  %99 = invoke noundef ptr %98(ptr noundef nonnull align 8 dereferenceable(8) %93, i64 noundef %95)
          to label %100 unwind label %122

100:                                              ; preds = %94
  store ptr %99, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %101 = load ptr, ptr %13, align 8, !tbaa !5
  %102 = load ptr, ptr %101, align 8, !tbaa !9
  %103 = getelementptr inbounds ptr, ptr %102, i64 3
  %104 = load ptr, ptr %103, align 8
  %105 = invoke noundef i64 %104(ptr noundef nonnull align 8 dereferenceable(8) %101)
          to label %106 unwind label %126

106:                                              ; preds = %100
  store i64 %105, ptr %14, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %107 = load ptr, ptr %13, align 8, !tbaa !5
  %108 = load ptr, ptr %107, align 8, !tbaa !9
  %109 = getelementptr inbounds ptr, ptr %108, i64 2
  %110 = load ptr, ptr %109, align 8
  %111 = invoke noundef i64 %110(ptr noundef nonnull align 8 dereferenceable(8) %107)
          to label %112 unwind label %130

112:                                              ; preds = %106
  store i64 %111, ptr %15, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  store i64 0, ptr %16, align 8, !tbaa !23
  br label %113

113:                                              ; preds = %149, %112
  %114 = load i64, ptr %16, align 8, !tbaa !23
  %115 = load i64, ptr %14, align 8, !tbaa !23
  %116 = icmp ult i64 %114, %115
  br i1 %116, label %134, label %117

117:                                              ; preds = %113
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %171

118:                                              ; preds = %78, %72
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %7, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %8, align 4
  br label %281

122:                                              ; preds = %94, %84
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %7, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %8, align 4
  br label %280

126:                                              ; preds = %100
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %7, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %8, align 4
  br label %279

130:                                              ; preds = %106
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %7, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %8, align 4
  br label %278

134:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %12, i64 16, i1 false), !tbaa.struct !25
  %135 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 0
  %136 = load i64, ptr %135, align 4
  %137 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 1
  %138 = load i64, ptr %137, align 4
  invoke void @_ZNKSt8functionIFSt10unique_ptrIN7hipsycl2rt13inorder_queueESt14default_deleteIS3_EENS2_9device_idEEEclES7_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %17, ptr noundef nonnull align 8 dereferenceable(32) %2, i64 %136, i64 %138)
          to label %139 unwind label %152

139:                                              ; preds = %134
  %140 = getelementptr inbounds %"class.hipsycl::rt::multi_queue_executor", ptr %35, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %141 = call noundef ptr @_ZNKSt10unique_ptrIN7hipsycl2rt13inorder_queueESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  store ptr %141, ptr %19, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIPN7hipsycl2rt13inorder_queueESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %140, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %142 unwind label %156

142:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  %143 = getelementptr inbounds %"class.hipsycl::rt::multi_queue_executor", ptr %35, i32 0, i32 1
  %144 = load i64, ptr %10, align 8, !tbaa !23
  %145 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %143, i64 noundef %144) #7
  %146 = getelementptr inbounds %"struct.hipsycl::rt::multi_queue_executor::per_device_data", ptr %145, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  invoke void @_ZSt11make_uniqueIN7hipsycl2rt16inorder_executorEJSt10unique_ptrINS1_13inorder_queueESt14default_deleteIS4_EEEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.17") align 8 %20, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %147 unwind label %160

147:                                              ; preds = %142
  invoke void @_ZNSt6vectorISt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS3_EESaIS6_EE9push_backEOS6_(ptr noundef nonnull align 8 dereferenceable(24) %146, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %148 unwind label %164

148:                                              ; preds = %147
  call void @_ZNSt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @_ZNSt10unique_ptrIN7hipsycl2rt13inorder_queueESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %149

149:                                              ; preds = %148
  %150 = load i64, ptr %16, align 8, !tbaa !23
  %151 = add i64 %150, 1
  store i64 %151, ptr %16, align 8, !tbaa !23
  br label %113, !llvm.loop !33

152:                                              ; preds = %134
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %7, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %8, align 4
  br label %170

156:                                              ; preds = %139
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %7, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %169

160:                                              ; preds = %142
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %7, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %8, align 4
  br label %168

164:                                              ; preds = %147
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %7, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %8, align 4
  call void @_ZNSt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  br label %168

168:                                              ; preds = %164, %160
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %169

169:                                              ; preds = %168, %156
  call void @_ZNSt10unique_ptrIN7hipsycl2rt13inorder_queueESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  br label %170

170:                                              ; preds = %169, %152
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %278

171:                                              ; preds = %117
  %172 = getelementptr inbounds %"class.hipsycl::rt::multi_queue_executor", ptr %35, i32 0, i32 1
  %173 = load i64, ptr %10, align 8, !tbaa !23
  %174 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %172, i64 noundef %173) #7
  %175 = getelementptr inbounds %"struct.hipsycl::rt::multi_queue_executor::per_device_data", ptr %174, i32 0, i32 0
  %176 = getelementptr inbounds %"struct.hipsycl::rt::backend_execution_lane_range", ptr %175, i32 0, i32 0
  store i64 0, ptr %176, align 8, !tbaa !35
  %177 = load i64, ptr %14, align 8, !tbaa !23
  %178 = getelementptr inbounds %"class.hipsycl::rt::multi_queue_executor", ptr %35, i32 0, i32 1
  %179 = load i64, ptr %10, align 8, !tbaa !23
  %180 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %178, i64 noundef %179) #7
  %181 = getelementptr inbounds %"struct.hipsycl::rt::multi_queue_executor::per_device_data", ptr %180, i32 0, i32 0
  %182 = getelementptr inbounds %"struct.hipsycl::rt::backend_execution_lane_range", ptr %181, i32 0, i32 1
  store i64 %177, ptr %182, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  store i64 0, ptr %21, align 8, !tbaa !23
  br label %183

183:                                              ; preds = %203, %171
  %184 = load i64, ptr %21, align 8, !tbaa !23
  %185 = load i64, ptr %15, align 8, !tbaa !23
  %186 = icmp ult i64 %184, %185
  br i1 %186, label %188, label %187

187:                                              ; preds = %183
  store i32 8, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %225

188:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %12, i64 16, i1 false), !tbaa.struct !25
  %189 = getelementptr inbounds { i64, i64 }, ptr %23, i32 0, i32 0
  %190 = load i64, ptr %189, align 4
  %191 = getelementptr inbounds { i64, i64 }, ptr %23, i32 0, i32 1
  %192 = load i64, ptr %191, align 4
  invoke void @_ZNKSt8functionIFSt10unique_ptrIN7hipsycl2rt13inorder_queueESt14default_deleteIS3_EENS2_9device_idEEEclES7_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %22, ptr noundef nonnull align 8 dereferenceable(32) %2, i64 %190, i64 %192)
          to label %193 unwind label %206

193:                                              ; preds = %188
  %194 = getelementptr inbounds %"class.hipsycl::rt::multi_queue_executor", ptr %35, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %195 = call noundef ptr @_ZNKSt10unique_ptrIN7hipsycl2rt13inorder_queueESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  store ptr %195, ptr %24, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIPN7hipsycl2rt13inorder_queueESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %194, ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %196 unwind label %210

196:                                              ; preds = %193
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  %197 = getelementptr inbounds %"class.hipsycl::rt::multi_queue_executor", ptr %35, i32 0, i32 1
  %198 = load i64, ptr %10, align 8, !tbaa !23
  %199 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %197, i64 noundef %198) #7
  %200 = getelementptr inbounds %"struct.hipsycl::rt::multi_queue_executor::per_device_data", ptr %199, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  invoke void @_ZSt11make_uniqueIN7hipsycl2rt16inorder_executorEJSt10unique_ptrINS1_13inorder_queueESt14default_deleteIS4_EEEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.17") align 8 %25, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %201 unwind label %214

201:                                              ; preds = %196
  invoke void @_ZNSt6vectorISt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS3_EESaIS6_EE9push_backEOS6_(ptr noundef nonnull align 8 dereferenceable(24) %200, ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %202 unwind label %218

202:                                              ; preds = %201
  call void @_ZNSt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @_ZNSt10unique_ptrIN7hipsycl2rt13inorder_queueESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %203

203:                                              ; preds = %202
  %204 = load i64, ptr %21, align 8, !tbaa !23
  %205 = add i64 %204, 1
  store i64 %205, ptr %21, align 8, !tbaa !23
  br label %183, !llvm.loop !48

206:                                              ; preds = %188
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %7, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %8, align 4
  br label %224

210:                                              ; preds = %193
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %7, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %223

214:                                              ; preds = %196
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %7, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %8, align 4
  br label %222

218:                                              ; preds = %201
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %7, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %8, align 4
  call void @_ZNSt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  br label %222

222:                                              ; preds = %218, %214
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %223

223:                                              ; preds = %222, %210
  call void @_ZNSt10unique_ptrIN7hipsycl2rt13inorder_queueESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  br label %224

224:                                              ; preds = %223, %206
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %278

225:                                              ; preds = %187
  %226 = load i64, ptr %14, align 8, !tbaa !23
  %227 = getelementptr inbounds %"class.hipsycl::rt::multi_queue_executor", ptr %35, i32 0, i32 1
  %228 = load i64, ptr %10, align 8, !tbaa !23
  %229 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %227, i64 noundef %228) #7
  %230 = getelementptr inbounds %"struct.hipsycl::rt::multi_queue_executor::per_device_data", ptr %229, i32 0, i32 1
  %231 = getelementptr inbounds %"struct.hipsycl::rt::backend_execution_lane_range", ptr %230, i32 0, i32 0
  store i64 %226, ptr %231, align 8, !tbaa !49
  %232 = load i64, ptr %15, align 8, !tbaa !23
  %233 = getelementptr inbounds %"class.hipsycl::rt::multi_queue_executor", ptr %35, i32 0, i32 1
  %234 = load i64, ptr %10, align 8, !tbaa !23
  %235 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %233, i64 noundef %234) #7
  %236 = getelementptr inbounds %"struct.hipsycl::rt::multi_queue_executor::per_device_data", ptr %235, i32 0, i32 1
  %237 = getelementptr inbounds %"struct.hipsycl::rt::backend_execution_lane_range", ptr %236, i32 0, i32 1
  store i64 %232, ptr %237, align 8, !tbaa !50
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %238 = invoke noundef nonnull align 8 dereferenceable(217) ptr @_ZN7hipsycl2rt11application12get_settingsEv()
          to label %239 unwind label %264

239:                                              ; preds = %225
  %240 = invoke noundef i64 @_ZNK7hipsycl2rt8settings3getILNS0_7settingE4EEENS0_13setting_traitIXT_EE4typeEv(ptr noundef nonnull align 8 dereferenceable(217) %238)
          to label %241 unwind label %264

241:                                              ; preds = %239
  store i64 %240, ptr %26, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %242 = invoke noundef nonnull align 8 dereferenceable(217) ptr @_ZN7hipsycl2rt11application12get_settingsEv()
          to label %243 unwind label %268

243:                                              ; preds = %241
  %244 = invoke noundef double @_ZNK7hipsycl2rt8settings3getILNS0_7settingE5EEENS0_13setting_traitIXT_EE4typeEv(ptr noundef nonnull align 8 dereferenceable(217) %242)
          to label %245 unwind label %268

245:                                              ; preds = %243
  store double %244, ptr %27, align 8, !tbaa !51
  call void @llvm.lifetime.start.p0(i64 48, ptr %28) #7
  %246 = load i64, ptr %26, align 8, !tbaa !23
  %247 = getelementptr inbounds %"class.hipsycl::rt::multi_queue_executor", ptr %35, i32 0, i32 1
  %248 = load i64, ptr %10, align 8, !tbaa !23
  %249 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %247, i64 noundef %248) #7
  %250 = getelementptr inbounds %"struct.hipsycl::rt::multi_queue_executor::per_device_data", ptr %249, i32 0, i32 2
  %251 = call noundef i64 @_ZNKSt6vectorISt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS3_EESaIS6_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %250) #7
  %252 = load double, ptr %27, align 8, !tbaa !51
  %253 = fmul double 1.000000e+09, %252
  %254 = fptoui double %253 to i64
  invoke void @_ZN7hipsycl2rt17moving_statisticsC2Emmm(ptr noundef nonnull align 8 dereferenceable(48) %28, i64 noundef %246, i64 noundef %251, i64 noundef %254)
          to label %255 unwind label %272

255:                                              ; preds = %245
  %256 = getelementptr inbounds %"class.hipsycl::rt::multi_queue_executor", ptr %35, i32 0, i32 1
  %257 = load i64, ptr %10, align 8, !tbaa !23
  %258 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %256, i64 noundef %257) #7
  %259 = getelementptr inbounds %"struct.hipsycl::rt::multi_queue_executor::per_device_data", ptr %258, i32 0, i32 3
  %260 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN7hipsycl2rt17moving_statisticsaSEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %259, ptr noundef nonnull align 8 dereferenceable(48) %28) #7
  call void @_ZN7hipsycl2rt17moving_statisticsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %28) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  br label %261

261:                                              ; preds = %255
  %262 = load i64, ptr %10, align 8, !tbaa !23
  %263 = add i64 %262, 1
  store i64 %263, ptr %10, align 8, !tbaa !23
  br label %59, !llvm.loop !53

264:                                              ; preds = %239, %225
  %265 = landingpad { ptr, i32 }
          cleanup
  %266 = extractvalue { ptr, i32 } %265, 0
  store ptr %266, ptr %7, align 8
  %267 = extractvalue { ptr, i32 } %265, 1
  store i32 %267, ptr %8, align 4
  br label %277

268:                                              ; preds = %243, %241
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %7, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %8, align 4
  br label %276

272:                                              ; preds = %245
  %273 = landingpad { ptr, i32 }
          cleanup
  %274 = extractvalue { ptr, i32 } %273, 0
  store ptr %274, ptr %7, align 8
  %275 = extractvalue { ptr, i32 } %273, 1
  store i32 %275, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 48, ptr %28) #7
  br label %276

276:                                              ; preds = %272, %268
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %277

277:                                              ; preds = %276, %264
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %278

278:                                              ; preds = %277, %224, %170, %130
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %279

279:                                              ; preds = %278, %126
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %280

280:                                              ; preds = %279, %122
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %281

281:                                              ; preds = %280, %118
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %454

282:                                              ; preds = %63
  %283 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7hipsycl6common13output_stream3getEv()
          to label %284 unwind label %68

284:                                              ; preds = %282
  %285 = invoke noundef i32 @_ZNK7hipsycl6common13output_stream15get_debug_levelEv(ptr noundef nonnull align 8 dereferenceable(16) %283)
          to label %286 unwind label %68

286:                                              ; preds = %284
  %287 = icmp sgt i32 3, %285
  br i1 %287, label %288, label %289

288:                                              ; preds = %286
  br label %318

289:                                              ; preds = %286
  %290 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7hipsycl6common13output_stream3getEv()
          to label %291 unwind label %68

291:                                              ; preds = %289
  %292 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7hipsycl6common13output_stream10get_streamEv(ptr noundef nonnull align 8 dereferenceable(16) %290)
          to label %293 unwind label %68

293:                                              ; preds = %291
  %294 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %292, ptr noundef @.str)
          to label %295 unwind label %68

295:                                              ; preds = %293
  %296 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %294, ptr noundef @.str.1)
          to label %297 unwind label %68

297:                                              ; preds = %295
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #7
  %298 = load ptr, ptr %5, align 8, !tbaa !5
  %299 = load ptr, ptr %298, align 8, !tbaa !9
  %300 = getelementptr inbounds ptr, ptr %299, i64 6
  %301 = load ptr, ptr %300, align 8
  invoke void %301(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %29, ptr noundef nonnull align 8 dereferenceable(8) %298)
          to label %302 unwind label %309

302:                                              ; preds = %297
  %303 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %296, ptr noundef nonnull align 8 dereferenceable(32) %29)
          to label %304 unwind label %313

304:                                              ; preds = %302
  %305 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %303, ptr noundef @.str.2)
          to label %306 unwind label %313

306:                                              ; preds = %304
  %307 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %305, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %308 unwind label %313

308:                                              ; preds = %306
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #7
  br label %318

309:                                              ; preds = %297
  %310 = landingpad { ptr, i32 }
          cleanup
  %311 = extractvalue { ptr, i32 } %310, 0
  store ptr %311, ptr %7, align 8
  %312 = extractvalue { ptr, i32 } %310, 1
  store i32 %312, ptr %8, align 4
  br label %317

313:                                              ; preds = %306, %304, %302
  %314 = landingpad { ptr, i32 }
          cleanup
  %315 = extractvalue { ptr, i32 } %314, 0
  store ptr %315, ptr %7, align 8
  %316 = extractvalue { ptr, i32 } %314, 1
  store i32 %316, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #7
  br label %317

317:                                              ; preds = %313, %309
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #7
  br label %454

318:                                              ; preds = %308, %288
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  store i64 0, ptr %30, align 8, !tbaa !23
  br label %319

319:                                              ; preds = %449, %318
  %320 = load i64, ptr %30, align 8, !tbaa !23
  %321 = getelementptr inbounds %"class.hipsycl::rt::multi_queue_executor", ptr %35, i32 0, i32 1
  %322 = call noundef i64 @_ZNKSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %321) #7
  %323 = icmp ult i64 %320, %322
  br i1 %323, label %325, label %324

324:                                              ; preds = %319
  store i32 11, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %453

325:                                              ; preds = %319
  %326 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7hipsycl6common13output_stream3getEv()
          to label %327 unwind label %332

327:                                              ; preds = %325
  %328 = invoke noundef i32 @_ZNK7hipsycl6common13output_stream15get_debug_levelEv(ptr noundef nonnull align 8 dereferenceable(16) %326)
          to label %329 unwind label %332

329:                                              ; preds = %327
  %330 = icmp sgt i32 3, %328
  br i1 %330, label %331, label %336

331:                                              ; preds = %329
  br label %352

332:                                              ; preds = %349, %347, %344, %342, %340, %338, %336, %327, %325
  %333 = landingpad { ptr, i32 }
          cleanup
  %334 = extractvalue { ptr, i32 } %333, 0
  store ptr %334, ptr %7, align 8
  %335 = extractvalue { ptr, i32 } %333, 1
  store i32 %335, ptr %8, align 4
  br label %452

336:                                              ; preds = %329
  %337 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7hipsycl6common13output_stream3getEv()
          to label %338 unwind label %332

338:                                              ; preds = %336
  %339 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7hipsycl6common13output_stream10get_streamEv(ptr noundef nonnull align 8 dereferenceable(16) %337)
          to label %340 unwind label %332

340:                                              ; preds = %338
  %341 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %339, ptr noundef @.str)
          to label %342 unwind label %332

342:                                              ; preds = %340
  %343 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %341, ptr noundef @.str.3)
          to label %344 unwind label %332

344:                                              ; preds = %342
  %345 = load i64, ptr %30, align 8, !tbaa !23
  %346 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %343, i64 noundef %345)
          to label %347 unwind label %332

347:                                              ; preds = %344
  %348 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %346, ptr noundef @.str.4)
          to label %349 unwind label %332

349:                                              ; preds = %347
  %350 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %348, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %351 unwind label %332

351:                                              ; preds = %349
  br label %352

352:                                              ; preds = %351, %331
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  store i64 0, ptr %31, align 8, !tbaa !23
  br label %353

353:                                              ; preds = %397, %352
  %354 = load i64, ptr %31, align 8, !tbaa !23
  %355 = getelementptr inbounds %"class.hipsycl::rt::multi_queue_executor", ptr %35, i32 0, i32 1
  %356 = load i64, ptr %30, align 8, !tbaa !23
  %357 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %355, i64 noundef %356) #7
  %358 = getelementptr inbounds %"struct.hipsycl::rt::multi_queue_executor::per_device_data", ptr %357, i32 0, i32 0
  %359 = getelementptr inbounds %"struct.hipsycl::rt::backend_execution_lane_range", ptr %358, i32 0, i32 1
  %360 = load i64, ptr %359, align 8, !tbaa !47
  %361 = icmp ult i64 %354, %360
  br i1 %361, label %363, label %362

362:                                              ; preds = %353
  store i32 14, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %400

363:                                              ; preds = %353
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %364 = load i64, ptr %31, align 8, !tbaa !23
  %365 = getelementptr inbounds %"class.hipsycl::rt::multi_queue_executor", ptr %35, i32 0, i32 1
  %366 = load i64, ptr %30, align 8, !tbaa !23
  %367 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %365, i64 noundef %366) #7
  %368 = getelementptr inbounds %"struct.hipsycl::rt::multi_queue_executor::per_device_data", ptr %367, i32 0, i32 0
  %369 = getelementptr inbounds %"struct.hipsycl::rt::backend_execution_lane_range", ptr %368, i32 0, i32 0
  %370 = load i64, ptr %369, align 8, !tbaa !35
  %371 = add i64 %364, %370
  store i64 %371, ptr %32, align 8, !tbaa !23
  %372 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7hipsycl6common13output_stream3getEv()
          to label %373 unwind label %378

373:                                              ; preds = %363
  %374 = invoke noundef i32 @_ZNK7hipsycl6common13output_stream15get_debug_levelEv(ptr noundef nonnull align 8 dereferenceable(16) %372)
          to label %375 unwind label %378

375:                                              ; preds = %373
  %376 = icmp sgt i32 3, %374
  br i1 %376, label %377, label %382

377:                                              ; preds = %375
  br label %396

378:                                              ; preds = %393, %390, %388, %386, %384, %382, %373, %363
  %379 = landingpad { ptr, i32 }
          cleanup
  %380 = extractvalue { ptr, i32 } %379, 0
  store ptr %380, ptr %7, align 8
  %381 = extractvalue { ptr, i32 } %379, 1
  store i32 %381, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %452

382:                                              ; preds = %375
  %383 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7hipsycl6common13output_stream3getEv()
          to label %384 unwind label %378

384:                                              ; preds = %382
  %385 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7hipsycl6common13output_stream10get_streamEv(ptr noundef nonnull align 8 dereferenceable(16) %383)
          to label %386 unwind label %378

386:                                              ; preds = %384
  %387 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %385, ptr noundef @.str)
          to label %388 unwind label %378

388:                                              ; preds = %386
  %389 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %387, ptr noundef @.str.5)
          to label %390 unwind label %378

390:                                              ; preds = %388
  %391 = load i64, ptr %32, align 8, !tbaa !23
  %392 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %389, i64 noundef %391)
          to label %393 unwind label %378

393:                                              ; preds = %390
  %394 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %392, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %395 unwind label %378

395:                                              ; preds = %393
  br label %396

396:                                              ; preds = %395, %377
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  br label %397

397:                                              ; preds = %396
  %398 = load i64, ptr %31, align 8, !tbaa !23
  %399 = add i64 %398, 1
  store i64 %399, ptr %31, align 8, !tbaa !23
  br label %353, !llvm.loop !54

400:                                              ; preds = %362
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  store i64 0, ptr %33, align 8, !tbaa !23
  br label %401

401:                                              ; preds = %445, %400
  %402 = load i64, ptr %33, align 8, !tbaa !23
  %403 = getelementptr inbounds %"class.hipsycl::rt::multi_queue_executor", ptr %35, i32 0, i32 1
  %404 = load i64, ptr %30, align 8, !tbaa !23
  %405 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %403, i64 noundef %404) #7
  %406 = getelementptr inbounds %"struct.hipsycl::rt::multi_queue_executor::per_device_data", ptr %405, i32 0, i32 1
  %407 = getelementptr inbounds %"struct.hipsycl::rt::backend_execution_lane_range", ptr %406, i32 0, i32 1
  %408 = load i64, ptr %407, align 8, !tbaa !50
  %409 = icmp ult i64 %402, %408
  br i1 %409, label %411, label %410

410:                                              ; preds = %401
  store i32 17, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  br label %448

411:                                              ; preds = %401
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  %412 = load i64, ptr %33, align 8, !tbaa !23
  %413 = getelementptr inbounds %"class.hipsycl::rt::multi_queue_executor", ptr %35, i32 0, i32 1
  %414 = load i64, ptr %30, align 8, !tbaa !23
  %415 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %413, i64 noundef %414) #7
  %416 = getelementptr inbounds %"struct.hipsycl::rt::multi_queue_executor::per_device_data", ptr %415, i32 0, i32 1
  %417 = getelementptr inbounds %"struct.hipsycl::rt::backend_execution_lane_range", ptr %416, i32 0, i32 0
  %418 = load i64, ptr %417, align 8, !tbaa !49
  %419 = add i64 %412, %418
  store i64 %419, ptr %34, align 8, !tbaa !23
  %420 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7hipsycl6common13output_stream3getEv()
          to label %421 unwind label %426

421:                                              ; preds = %411
  %422 = invoke noundef i32 @_ZNK7hipsycl6common13output_stream15get_debug_levelEv(ptr noundef nonnull align 8 dereferenceable(16) %420)
          to label %423 unwind label %426

423:                                              ; preds = %421
  %424 = icmp sgt i32 3, %422
  br i1 %424, label %425, label %430

425:                                              ; preds = %423
  br label %444

426:                                              ; preds = %441, %438, %436, %434, %432, %430, %421, %411
  %427 = landingpad { ptr, i32 }
          cleanup
  %428 = extractvalue { ptr, i32 } %427, 0
  store ptr %428, ptr %7, align 8
  %429 = extractvalue { ptr, i32 } %427, 1
  store i32 %429, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  br label %452

430:                                              ; preds = %423
  %431 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7hipsycl6common13output_stream3getEv()
          to label %432 unwind label %426

432:                                              ; preds = %430
  %433 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7hipsycl6common13output_stream10get_streamEv(ptr noundef nonnull align 8 dereferenceable(16) %431)
          to label %434 unwind label %426

434:                                              ; preds = %432
  %435 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %433, ptr noundef @.str)
          to label %436 unwind label %426

436:                                              ; preds = %434
  %437 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %435, ptr noundef @.str.6)
          to label %438 unwind label %426

438:                                              ; preds = %436
  %439 = load i64, ptr %34, align 8, !tbaa !23
  %440 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %437, i64 noundef %439)
          to label %441 unwind label %426

441:                                              ; preds = %438
  %442 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %440, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %443 unwind label %426

443:                                              ; preds = %441
  br label %444

444:                                              ; preds = %443, %425
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  br label %445

445:                                              ; preds = %444
  %446 = load i64, ptr %33, align 8, !tbaa !23
  %447 = add i64 %446, 1
  store i64 %447, ptr %33, align 8, !tbaa !23
  br label %401, !llvm.loop !55

448:                                              ; preds = %410
  br label %449

449:                                              ; preds = %448
  %450 = load i64, ptr %30, align 8, !tbaa !23
  %451 = add i64 %450, 1
  store i64 %451, ptr %30, align 8, !tbaa !23
  br label %319, !llvm.loop !56

452:                                              ; preds = %426, %378, %332
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %454

453:                                              ; preds = %324
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  ret void

454:                                              ; preds = %452, %317, %281, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %455

455:                                              ; preds = %454, %64
  call void @_ZNSt6vectorIPN7hipsycl2rt13inorder_queueESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #7
  call void @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #7
  call void @_ZN7hipsycl2rt16backend_executorD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  br label %456

456:                                              ; preds = %455
  %457 = load ptr, ptr %7, align 8
  %458 = load i32, ptr %8, align 4
  %459 = insertvalue { ptr, i32 } poison, ptr %457, 0
  %460 = insertvalue { ptr, i32 } %459, i32 %458, 1
  resume { ptr, i32 } %460
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7hipsycl2rt16backend_executorC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFSt10unique_ptrIN7hipsycl2rt13inorder_queueESt14default_deleteIS3_EENS2_9device_idEEEclES7_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(32), i64, i64) #0 align 2

; 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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIPN7hipsycl2rt13inorder_queueESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS3_EESaIS6_EE9push_backEOS6_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN7hipsycl2rt16inorder_executorEJSt10unique_ptrINS1_13inorder_queueESt14default_deleteIS4_EEEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.17") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

declare noundef nonnull align 8 dereferenceable(217) ptr @_ZN7hipsycl2rt11application12get_settingsEv() #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK7hipsycl2rt8settings3getILNS0_7settingE4EEENS0_13setting_traitIXT_EE4typeEv(ptr noundef nonnull align 8 dereferenceable(217)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7hipsycl2rt8settings3getILNS0_7settingE5EEENS0_13setting_traitIXT_EE4typeEv(ptr noundef nonnull align 8 dereferenceable(217)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS3_EESaIS6_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7hipsycl2rt17moving_statisticsC2Emmm(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef, i64 noundef, i64 noundef) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN7hipsycl2rt17moving_statisticsaSEOS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7hipsycl2rt17moving_statisticsD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN7hipsycl6common13output_stream3getEv() #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7hipsycl6common13output_stream15get_debug_levelEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7hipsycl6common13output_stream10get_streamEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7hipsycl2rt16backend_executorD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 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 = { 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 #2 = { 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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { "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 }

!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, !22, i64 56}
!12 = !{!"_ZTSN7hipsycl2rt20multi_queue_executorE", !13, i64 0, !14, i64 8, !18, i64 32, !22, i64 56}
!13 = !{!"_ZTSN7hipsycl2rt16backend_executorE"}
!14 = !{!"_ZTSSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"_ZTSSt6vectorIPN7hipsycl2rt13inorder_queueESaIS3_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIPN7hipsycl2rt13inorder_queueESaIS3_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIPN7hipsycl2rt13inorder_queueESaIS3_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIPN7hipsycl2rt13inorder_queueESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSN7hipsycl2rt10backend_idE", !7, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"long", !7, i64 0}
!25 = !{i64 0, i64 4, !26, i64 4, i64 4, !27, i64 8, i64 4, !29, i64 12, i64 4, !31}
!26 = !{!22, !22, i64 0}
!27 = !{!28, !28, i64 0}
!28 = !{!"_ZTSN7hipsycl2rt17hardware_platformE", !7, i64 0}
!29 = !{!30, !30, i64 0}
!30 = !{!"_ZTSN7hipsycl2rt12api_platformE", !7, i64 0}
!31 = !{!32, !32, i64 0}
!32 = !{!"int", !7, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!36, !24, i64 0}
!36 = !{!"_ZTSN7hipsycl2rt20multi_queue_executor15per_device_dataE", !37, i64 0, !37, i64 16, !38, i64 32, !42, i64 56}
!37 = !{!"_ZTSN7hipsycl2rt28backend_execution_lane_rangeE", !24, i64 0, !24, i64 8}
!38 = !{!"_ZTSSt6vectorISt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS3_EESaIS6_EE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseISt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS3_EESaIS6_EE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS3_EESaIS6_EE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS3_EESaIS6_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!42 = !{!"_ZTSN7hipsycl2rt17moving_statisticsE", !24, i64 0, !24, i64 8, !24, i64 16, !43, i64 24}
!43 = !{!"_ZTSSt6vectorIN7hipsycl2rt17moving_statistics10submissionESaIS3_EE", !44, i64 0}
!44 = !{!"_ZTSSt12_Vector_baseIN7hipsycl2rt17moving_statistics10submissionESaIS3_EE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIN7hipsycl2rt17moving_statistics10submissionESaIS3_EE12_Vector_implE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseIN7hipsycl2rt17moving_statistics10submissionESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!47 = !{!36, !24, i64 8}
!48 = distinct !{!48, !34}
!49 = !{!36, !24, i64 16}
!50 = !{!36, !24, i64 24}
!51 = !{!52, !52, i64 0}
!52 = !{!"double", !7, i64 0}
!53 = distinct !{!53, !34}
!54 = distinct !{!54, !34}
!55 = distinct !{!55, !34}
!56 = distinct !{!56, !34}


; 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.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.6" }
%"struct.std::_Head_base.6" = type { ptr }
%"class.std::unique_ptr.17" = type { %"struct.std::__uniq_ptr_data.18" }
%"struct.std::__uniq_ptr_data.18" = type { %"class.std::__uniq_ptr_impl.19" }
%"class.std::__uniq_ptr_impl.19" = type { %"class.std::tuple.20" }
%"class.std::tuple.20" = type { %"struct.std::_Tuple_impl.21" }
%"struct.std::_Tuple_impl.21" = type { %"struct.std::_Head_base.24" }
%"struct.std::_Head_base.24" = type { ptr }
%"class.hipsycl::rt::moving_statistics" = type { i64, i64, i64, %"class.std::vector.12" }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<hipsycl::rt::moving_statistics::submission, std::allocator<hipsycl::rt::moving_statistics::submission>>::_Vector_impl" }
%"struct.std::_Vector_base<hipsycl::rt::moving_statistics::submission, std::allocator<hipsycl::rt::moving_statistics::submission>>::_Vector_impl" = type { %"struct.std::_Vector_base<hipsycl::rt::moving_statistics::submission, std::allocator<hipsycl::rt::moving_statistics::submission>>::_Vector_impl_data" }
%"struct.std::_Vector_base<hipsycl::rt::moving_statistics::submission, std::allocator<hipsycl::rt::moving_statistics::submission>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@_ZTVN7hipsycl2rt20multi_queue_executorE = external dso_local unnamed_addr constant { [10 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [30 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7hipsycl2rt20multi_queue_executorC2ERKNS0_7backendESt8functionIFSt10unique_ptrINS0_13inorder_queueESt14default_deleteIS7_EENS0_9device_idEEE(ptr noundef nonnull align 8 dereferenceable(60) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::unique_ptr", align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::unique_ptr.17", align 8
  %7 = alloca %"class.std::unique_ptr", align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.std::unique_ptr.17", align 8
  %10 = alloca %"class.hipsycl::rt::moving_statistics", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  tail call void @_ZN7hipsycl2rt16backend_executorC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  store ptr getelementptr inbounds inrange(-16, 64) (i8, ptr @_ZTVN7hipsycl2rt20multi_queue_executorE, i64 16), ptr %0, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  %13 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @_ZNSt6vectorIPN7hipsycl2rt13inorder_queueESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %14 = load ptr, ptr %1, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %14, i64 16
  %16 = load ptr, ptr %15, align 8
  %17 = invoke noundef i32 %16(ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %18 unwind label %30

18:                                               ; preds = %3
  %19 = getelementptr inbounds i8, ptr %0, i64 56
  store i32 %17, ptr %19, align 8, !tbaa !8
  %20 = load ptr, ptr %1, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %20, i64 24
  %22 = load ptr, ptr %21, align 8
  %23 = invoke noundef ptr %22(ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %24 unwind label %32

24:                                               ; preds = %18
  %25 = load ptr, ptr %23, align 8, !tbaa !5
  %26 = load ptr, ptr %25, align 8
  %27 = invoke noundef i64 %26(ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %28 unwind label %32

28:                                               ; preds = %24
  invoke void @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %27)
          to label %.preheader97 unwind label %32

.preheader97:                                     ; preds = %28
  %.not = icmp eq i64 %27, 0
  br i1 %.not, label %._crit_edge105, label %.lr.ph104

._crit_edge105:                                   ; preds = %122, %.preheader97
  %29 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7hipsycl6common13output_stream3getEv()
          to label %137 unwind label %32

30:                                               ; preds = %3
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %247

32:                                               ; preds = %145, %142, %140, %._crit_edge105, %28, %24, %18
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %247

.lr.ph104:                                        ; preds = %.preheader97, %122
  %.072103 = phi i64 [ %132, %122 ], [ 0, %.preheader97 ]
  %34 = load ptr, ptr %1, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 24
  %36 = load ptr, ptr %35, align 8
  %37 = invoke noundef ptr %36(ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %38 unwind label %68

38:                                               ; preds = %.lr.ph104
  %39 = load ptr, ptr %37, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %39, i64 24
  %41 = load ptr, ptr %40, align 8
  %42 = invoke { i64, i64 } %41(ptr noundef nonnull align 8 dereferenceable(8) %37, i64 noundef %.072103)
          to label %43 unwind label %68

43:                                               ; preds = %38
  %44 = extractvalue { i64, i64 } %42, 0
  %45 = extractvalue { i64, i64 } %42, 1
  %46 = load ptr, ptr %1, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %46, i64 24
  %48 = load ptr, ptr %47, align 8
  %49 = invoke noundef ptr %48(ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %50 unwind label %70

50:                                               ; preds = %43
  %51 = load ptr, ptr %49, align 8, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %51, i64 16
  %53 = load ptr, ptr %52, align 8
  %54 = invoke noundef ptr %53(ptr noundef nonnull align 8 dereferenceable(8) %49, i64 noundef %.072103)
          to label %55 unwind label %70

55:                                               ; preds = %50
  %56 = load ptr, ptr %54, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %56, i64 24
  %58 = load ptr, ptr %57, align 8
  %59 = invoke noundef i64 %58(ptr noundef nonnull align 8 dereferenceable(8) %54)
          to label %60 unwind label %72

60:                                               ; preds = %55
  %61 = load ptr, ptr %54, align 8, !tbaa !5
  %62 = getelementptr inbounds i8, ptr %61, i64 16
  %63 = load ptr, ptr %62, align 8
  %64 = invoke noundef i64 %63(ptr noundef nonnull align 8 dereferenceable(8) %54)
          to label %.preheader96 unwind label %74

.preheader96:                                     ; preds = %60
  %.not116 = icmp eq i64 %59, 0
  br i1 %.not116, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %82, %.preheader96
  %65 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.072103) #6
  store i64 0, ptr %65, align 8, !tbaa !22
  %66 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.072103) #6
  %67 = getelementptr inbounds i8, ptr %66, i64 8
  store i64 %59, ptr %67, align 8, !tbaa !35
  %.not117 = icmp eq i64 %64, 0
  br i1 %.not117, label %._crit_edge102, label %.lr.ph101

68:                                               ; preds = %38, %.lr.ph104
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %247

70:                                               ; preds = %50, %43
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %247

72:                                               ; preds = %55
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %247

74:                                               ; preds = %60
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %247

.lr.ph:                                           ; preds = %.preheader96, %82
  %.07398 = phi i64 [ %83, %82 ], [ 0, %.preheader96 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  invoke void @_ZNKSt8functionIFSt10unique_ptrIN7hipsycl2rt13inorder_queueESt14default_deleteIS3_EENS2_9device_idEEEclES7_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %2, i64 %44, i64 %45)
          to label %76 unwind label %84

76:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %77 = call noundef ptr @_ZNKSt10unique_ptrIN7hipsycl2rt13inorder_queueESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  store ptr %77, ptr %5, align 8, !tbaa !36
  invoke void @_ZNSt6vectorIPN7hipsycl2rt13inorder_queueESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %78 unwind label %86

78:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  %79 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.072103) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  invoke void @_ZSt11make_uniqueIN7hipsycl2rt16inorder_executorEJSt10unique_ptrINS1_13inorder_queueESt14default_deleteIS4_EEEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.17") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %80 unwind label %88

80:                                               ; preds = %78
  %81 = getelementptr inbounds i8, ptr %79, i64 32
  invoke void @_ZNSt6vectorISt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS3_EESaIS6_EE9push_backEOS6_(ptr noundef nonnull align 8 dereferenceable(24) %81, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %82 unwind label %90

82:                                               ; preds = %80
  call void @_ZNSt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZNSt10unique_ptrIN7hipsycl2rt13inorder_queueESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  %83 = add nuw i64 %.07398, 1
  %exitcond.not = icmp eq i64 %83, %59
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !37

84:                                               ; preds = %.lr.ph
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %94

86:                                               ; preds = %76
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %93

88:                                               ; preds = %78
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %92

90:                                               ; preds = %80
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br label %92

92:                                               ; preds = %90, %88
  %.pn86 = phi { ptr, i32 } [ %91, %90 ], [ %89, %88 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %93

93:                                               ; preds = %92, %86
  %.pn86.pn = phi { ptr, i32 } [ %.pn86, %92 ], [ %87, %86 ]
  call void @_ZNSt10unique_ptrIN7hipsycl2rt13inorder_queueESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  br label %94

94:                                               ; preds = %93, %84
  %.pn86.pn.pn = phi { ptr, i32 } [ %.pn86.pn, %93 ], [ %85, %84 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %247

._crit_edge102:                                   ; preds = %106, %._crit_edge
  %95 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.072103) #6
  %96 = getelementptr inbounds i8, ptr %95, i64 16
  store i64 %59, ptr %96, align 8, !tbaa !39
  %97 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.072103) #6
  %98 = getelementptr inbounds i8, ptr %97, i64 24
  store i64 %64, ptr %98, align 8, !tbaa !40
  %99 = invoke noundef nonnull align 8 dereferenceable(217) ptr @_ZN7hipsycl2rt11application12get_settingsEv()
          to label %119 unwind label %133

.lr.ph101:                                        ; preds = %._crit_edge, %106
  %.07499 = phi i64 [ %107, %106 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  invoke void @_ZNKSt8functionIFSt10unique_ptrIN7hipsycl2rt13inorder_queueESt14default_deleteIS3_EENS2_9device_idEEEclES7_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %2, i64 %44, i64 %45)
          to label %100 unwind label %108

100:                                              ; preds = %.lr.ph101
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %101 = call noundef ptr @_ZNKSt10unique_ptrIN7hipsycl2rt13inorder_queueESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  store ptr %101, ptr %8, align 8, !tbaa !36
  invoke void @_ZNSt6vectorIPN7hipsycl2rt13inorder_queueESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %102 unwind label %110

102:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  %103 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.072103) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  invoke void @_ZSt11make_uniqueIN7hipsycl2rt16inorder_executorEJSt10unique_ptrINS1_13inorder_queueESt14default_deleteIS4_EEEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.17") align 8 %9, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %104 unwind label %112

104:                                              ; preds = %102
  %105 = getelementptr inbounds i8, ptr %103, i64 32
  invoke void @_ZNSt6vectorISt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS3_EESaIS6_EE9push_backEOS6_(ptr noundef nonnull align 8 dereferenceable(24) %105, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %106 unwind label %114

106:                                              ; preds = %104
  call void @_ZNSt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @_ZNSt10unique_ptrIN7hipsycl2rt13inorder_queueESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  %107 = add nuw i64 %.07499, 1
  %exitcond121.not = icmp eq i64 %107, %64
  br i1 %exitcond121.not, label %._crit_edge102, label %.lr.ph101, !llvm.loop !41

108:                                              ; preds = %.lr.ph101
  %109 = landingpad { ptr, i32 }
          cleanup
  br label %118

110:                                              ; preds = %100
  %111 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %117

112:                                              ; preds = %102
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %116

114:                                              ; preds = %104
  %115 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br label %116

116:                                              ; preds = %114, %112
  %.pn82 = phi { ptr, i32 } [ %115, %114 ], [ %113, %112 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %117

117:                                              ; preds = %116, %110
  %.pn82.pn = phi { ptr, i32 } [ %.pn82, %116 ], [ %111, %110 ]
  call void @_ZNSt10unique_ptrIN7hipsycl2rt13inorder_queueESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br label %118

118:                                              ; preds = %117, %108
  %.pn82.pn.pn = phi { ptr, i32 } [ %.pn82.pn, %117 ], [ %109, %108 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %247

119:                                              ; preds = %._crit_edge102
  %120 = call noundef i64 @_ZNK7hipsycl2rt8settings3getILNS0_7settingE4EEENS0_13setting_traitIXT_EE4typeEv(ptr noundef nonnull align 8 dereferenceable(217) %99)
  %121 = invoke noundef nonnull align 8 dereferenceable(217) ptr @_ZN7hipsycl2rt11application12get_settingsEv()
          to label %122 unwind label %135

122:                                              ; preds = %119
  %123 = call noundef double @_ZNK7hipsycl2rt8settings3getILNS0_7settingE5EEENS0_13setting_traitIXT_EE4typeEv(ptr noundef nonnull align 8 dereferenceable(217) %121)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %10) #6
  %124 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.072103) #6
  %125 = getelementptr inbounds i8, ptr %124, i64 32
  %126 = call noundef i64 @_ZNKSt6vectorISt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS3_EESaIS6_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %125) #6
  %127 = fmul double %123, 1.000000e+09
  %128 = fptoui double %127 to i64
  call void @_ZN7hipsycl2rt17moving_statisticsC2Emmm(ptr noundef nonnull align 8 dereferenceable(48) %10, i64 noundef %120, i64 noundef %126, i64 noundef %128)
  %129 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.072103) #6
  %130 = getelementptr inbounds i8, ptr %129, i64 56
  %131 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN7hipsycl2rt17moving_statisticsaSEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %130, ptr noundef nonnull align 8 dereferenceable(48) %10) #6
  call void @_ZN7hipsycl2rt17moving_statisticsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #6
  %132 = add nuw i64 %.072103, 1
  %exitcond122.not = icmp eq i64 %132, %27
  br i1 %exitcond122.not, label %._crit_edge105, label %.lr.ph104, !llvm.loop !42

133:                                              ; preds = %._crit_edge102
  %134 = landingpad { ptr, i32 }
          cleanup
  br label %247

135:                                              ; preds = %119
  %136 = landingpad { ptr, i32 }
          cleanup
  br label %247

137:                                              ; preds = %._crit_edge105
  %138 = call noundef i32 @_ZNK7hipsycl6common13output_stream15get_debug_levelEv(ptr noundef nonnull align 8 dereferenceable(16) %29)
  %139 = icmp slt i32 %138, 3
  br i1 %139, label %163, label %140

140:                                              ; preds = %137
  %141 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7hipsycl6common13output_stream3getEv()
          to label %142 unwind label %32

142:                                              ; preds = %140
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7hipsycl6common13output_stream10get_streamEv(ptr noundef nonnull align 8 dereferenceable(16) %141)
  %144 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %143, ptr noundef nonnull @.str)
          to label %145 unwind label %32

145:                                              ; preds = %142
  %146 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %144, ptr noundef nonnull @.str.1)
          to label %147 unwind label %32

147:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #6
  %148 = load ptr, ptr %1, align 8, !tbaa !5
  %149 = getelementptr inbounds i8, ptr %148, i64 48
  %150 = load ptr, ptr %149, align 8
  invoke void %150(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %151 unwind label %158

151:                                              ; preds = %147
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %146, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %153 unwind label %160

153:                                              ; preds = %151
  %154 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %152, ptr noundef nonnull @.str.2)
          to label %155 unwind label %160

155:                                              ; preds = %153
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %154, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %157 unwind label %160

157:                                              ; preds = %155
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  br label %163

158:                                              ; preds = %147
  %159 = landingpad { ptr, i32 }
          cleanup
  br label %162

160:                                              ; preds = %155, %153, %151
  %161 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  br label %162

162:                                              ; preds = %160, %158
  %.pn = phi { ptr, i32 } [ %161, %160 ], [ %159, %158 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  br label %247

163:                                              ; preds = %137, %157
  %164 = call noundef i64 @_ZNKSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  %.not118 = icmp eq i64 %164, 0
  br i1 %.not118, label %._crit_edge115, label %.lr.ph114

._crit_edge115:                                   ; preds = %._crit_edge111, %163
  ret void

.lr.ph114:                                        ; preds = %163, %._crit_edge111
  %.071112 = phi i64 [ %217, %._crit_edge111 ], [ 0, %163 ]
  %165 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7hipsycl6common13output_stream3getEv()
          to label %166 unwind label %169

166:                                              ; preds = %.lr.ph114
  %167 = call noundef i32 @_ZNK7hipsycl6common13output_stream15get_debug_levelEv(ptr noundef nonnull align 8 dereferenceable(16) %165)
  %168 = icmp slt i32 %167, 3
  br i1 %168, label %184, label %171

169:                                              ; preds = %182, %180, %178, %176, %173, %171, %.lr.ph114
  %170 = landingpad { ptr, i32 }
          cleanup
  br label %247

171:                                              ; preds = %166
  %172 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7hipsycl6common13output_stream3getEv()
          to label %173 unwind label %169

173:                                              ; preds = %171
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7hipsycl6common13output_stream10get_streamEv(ptr noundef nonnull align 8 dereferenceable(16) %172)
  %175 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %174, ptr noundef nonnull @.str)
          to label %176 unwind label %169

176:                                              ; preds = %173
  %177 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %175, ptr noundef nonnull @.str.3)
          to label %178 unwind label %169

178:                                              ; preds = %176
  %179 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %177, i64 noundef %.071112)
          to label %180 unwind label %169

180:                                              ; preds = %178
  %181 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %179, ptr noundef nonnull @.str.4)
          to label %182 unwind label %169

182:                                              ; preds = %180
  %183 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %181, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %184 unwind label %169

184:                                              ; preds = %182, %166
  %185 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.071112) #6
  %186 = getelementptr inbounds i8, ptr %185, i64 8
  %187 = load i64, ptr %186, align 8, !tbaa !35
  %.not119 = icmp eq i64 %187, 0
  br i1 %.not119, label %.preheader, label %.lr.ph108

.preheader:                                       ; preds = %211, %184
  %188 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.071112) #6
  %189 = getelementptr inbounds i8, ptr %188, i64 24
  %190 = load i64, ptr %189, align 8, !tbaa !40
  %.not120 = icmp eq i64 %190, 0
  br i1 %.not120, label %._crit_edge111, label %.lr.ph110

.lr.ph108:                                        ; preds = %184, %211
  %.070106 = phi i64 [ %212, %211 ], [ 0, %184 ]
  %191 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.071112) #6
  %192 = load i64, ptr %191, align 8, !tbaa !22
  %193 = add i64 %192, %.070106
  %194 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7hipsycl6common13output_stream3getEv()
          to label %195 unwind label %198

195:                                              ; preds = %.lr.ph108
  %196 = call noundef i32 @_ZNK7hipsycl6common13output_stream15get_debug_levelEv(ptr noundef nonnull align 8 dereferenceable(16) %194)
  %197 = icmp slt i32 %196, 3
  br i1 %197, label %211, label %200

198:                                              ; preds = %209, %207, %205, %202, %200, %.lr.ph108
  %199 = landingpad { ptr, i32 }
          cleanup
  br label %247

200:                                              ; preds = %195
  %201 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7hipsycl6common13output_stream3getEv()
          to label %202 unwind label %198

202:                                              ; preds = %200
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7hipsycl6common13output_stream10get_streamEv(ptr noundef nonnull align 8 dereferenceable(16) %201)
  %204 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %203, ptr noundef nonnull @.str)
          to label %205 unwind label %198

205:                                              ; preds = %202
  %206 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %204, ptr noundef nonnull @.str.5)
          to label %207 unwind label %198

207:                                              ; preds = %205
  %208 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %206, i64 noundef %193)
          to label %209 unwind label %198

209:                                              ; preds = %207
  %210 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %208, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %211 unwind label %198

211:                                              ; preds = %209, %195
  %212 = add nuw i64 %.070106, 1
  %213 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.071112) #6
  %214 = getelementptr inbounds i8, ptr %213, i64 8
  %215 = load i64, ptr %214, align 8, !tbaa !35
  %216 = icmp ult i64 %212, %215
  br i1 %216, label %.lr.ph108, label %.preheader, !llvm.loop !43

._crit_edge111:                                   ; preds = %241, %.preheader
  %217 = add nuw i64 %.071112, 1
  %218 = call noundef i64 @_ZNKSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  %219 = icmp ult i64 %217, %218
  br i1 %219, label %.lr.ph114, label %._crit_edge115, !llvm.loop !44

.lr.ph110:                                        ; preds = %.preheader, %241
  %.054109 = phi i64 [ %242, %241 ], [ 0, %.preheader ]
  %220 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.071112) #6
  %221 = getelementptr inbounds i8, ptr %220, i64 16
  %222 = load i64, ptr %221, align 8, !tbaa !39
  %223 = add i64 %222, %.054109
  %224 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7hipsycl6common13output_stream3getEv()
          to label %225 unwind label %228

225:                                              ; preds = %.lr.ph110
  %226 = call noundef i32 @_ZNK7hipsycl6common13output_stream15get_debug_levelEv(ptr noundef nonnull align 8 dereferenceable(16) %224)
  %227 = icmp slt i32 %226, 3
  br i1 %227, label %241, label %230

228:                                              ; preds = %239, %237, %235, %232, %230, %.lr.ph110
  %229 = landingpad { ptr, i32 }
          cleanup
  br label %247

230:                                              ; preds = %225
  %231 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7hipsycl6common13output_stream3getEv()
          to label %232 unwind label %228

232:                                              ; preds = %230
  %233 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7hipsycl6common13output_stream10get_streamEv(ptr noundef nonnull align 8 dereferenceable(16) %231)
  %234 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %233, ptr noundef nonnull @.str)
          to label %235 unwind label %228

235:                                              ; preds = %232
  %236 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %234, ptr noundef nonnull @.str.6)
          to label %237 unwind label %228

237:                                              ; preds = %235
  %238 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %236, i64 noundef %223)
          to label %239 unwind label %228

239:                                              ; preds = %237
  %240 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %238, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %241 unwind label %228

241:                                              ; preds = %239, %225
  %242 = add nuw i64 %.054109, 1
  %243 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.071112) #6
  %244 = getelementptr inbounds i8, ptr %243, i64 24
  %245 = load i64, ptr %244, align 8, !tbaa !40
  %246 = icmp ult i64 %242, %245
  br i1 %246, label %.lr.ph110, label %._crit_edge111, !llvm.loop !45

247:                                              ; preds = %32, %162, %70, %74, %94, %118, %135, %133, %72, %68, %228, %198, %169, %30
  %.pn86.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %31, %30 ], [ %.pn, %162 ], [ %33, %32 ], [ %69, %68 ], [ %71, %70 ], [ %73, %72 ], [ %.pn86.pn.pn, %94 ], [ %.pn82.pn.pn, %118 ], [ %75, %74 ], [ %136, %135 ], [ %134, %133 ], [ %199, %198 ], [ %229, %228 ], [ %170, %169 ]
  call void @_ZNSt6vectorIPN7hipsycl2rt13inorder_queueESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @_ZN7hipsycl2rt16backend_executorD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  resume { ptr, i32 } %.pn86.pn.pn.pn.pn.pn.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7hipsycl2rt16backend_executorC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFSt10unique_ptrIN7hipsycl2rt13inorder_queueESt14default_deleteIS3_EENS2_9device_idEEEclES7_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(32), i64, i64) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIPN7hipsycl2rt13inorder_queueESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS3_EESaIS6_EE9push_backEOS6_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN7hipsycl2rt16inorder_executorEJSt10unique_ptrINS1_13inorder_queueESt14default_deleteIS4_EEEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.17") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

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

declare noundef nonnull align 8 dereferenceable(217) ptr @_ZN7hipsycl2rt11application12get_settingsEv() local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK7hipsycl2rt8settings3getILNS0_7settingE4EEENS0_13setting_traitIXT_EE4typeEv(ptr noundef nonnull align 8 dereferenceable(217)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7hipsycl2rt8settings3getILNS0_7settingE5EEENS0_13setting_traitIXT_EE4typeEv(ptr noundef nonnull align 8 dereferenceable(217)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS3_EESaIS6_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7hipsycl2rt17moving_statisticsC2Emmm(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef, i64 noundef, i64 noundef) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN7hipsycl2rt17moving_statisticsaSEOS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7hipsycl2rt17moving_statisticsD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN7hipsycl6common13output_stream3getEv() local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7hipsycl6common13output_stream15get_debug_levelEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7hipsycl6common13output_stream10get_streamEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7hipsycl2rt16backend_executorD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 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 = { 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 #2 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #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 = { 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, !21, i64 56}
!9 = !{!"_ZTSN7hipsycl2rt20multi_queue_executorE", !10, i64 0, !11, i64 8, !17, i64 32, !21, i64 56}
!10 = !{!"_ZTSN7hipsycl2rt16backend_executorE"}
!11 = !{!"_ZTSSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !16, i64 0}
!16 = !{!"omnipotent char", !7, i64 0}
!17 = !{!"_ZTSSt6vectorIPN7hipsycl2rt13inorder_queueESaIS3_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIPN7hipsycl2rt13inorder_queueESaIS3_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIPN7hipsycl2rt13inorder_queueESaIS3_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIPN7hipsycl2rt13inorder_queueESaIS3_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!21 = !{!"_ZTSN7hipsycl2rt10backend_idE", !16, i64 0}
!22 = !{!23, !25, i64 0}
!23 = !{!"_ZTSN7hipsycl2rt20multi_queue_executor15per_device_dataE", !24, i64 0, !24, i64 16, !26, i64 32, !30, i64 56}
!24 = !{!"_ZTSN7hipsycl2rt28backend_execution_lane_rangeE", !25, i64 0, !25, i64 8}
!25 = !{!"long", !16, i64 0}
!26 = !{!"_ZTSSt6vectorISt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS3_EESaIS6_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseISt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS3_EESaIS6_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS3_EESaIS6_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS3_EESaIS6_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!30 = !{!"_ZTSN7hipsycl2rt17moving_statisticsE", !25, i64 0, !25, i64 8, !25, i64 16, !31, i64 24}
!31 = !{!"_ZTSSt6vectorIN7hipsycl2rt17moving_statistics10submissionESaIS3_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIN7hipsycl2rt17moving_statistics10submissionESaIS3_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN7hipsycl2rt17moving_statistics10submissionESaIS3_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN7hipsycl2rt17moving_statistics10submissionESaIS3_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!35 = !{!23, !25, i64 8}
!36 = !{!15, !15, i64 0}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = !{!23, !25, i64 16}
!40 = !{!23, !25, i64 24}
!41 = distinct !{!41, !38}
!42 = distinct !{!42, !38}
!43 = distinct !{!43, !38}
!44 = distinct !{!44, !38}
!45 = distinct !{!45, !38}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass