; LLVM IR from CMU-SAFARI/prim-benchmarks :: HST-S/baselines/gpu (main)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.Params = type { i32, i32, i32, i32, i32, i32, float, i32, i32 }
%struct.CUDASetup = type { %struct.cudaDeviceProp }
%struct.cudaDeviceProp = type { [256 x i8], %struct.CUuuid_st, [8 x i8], i32, i64, i64, i32, i32, i64, i32, [3 x i32], [3 x i32], i32, i64, i32, i32, i64, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, [2 x i32], [2 x i32], [3 x i32], [2 x i32], [3 x i32], [3 x i32], i32, [2 x i32], [3 x i32], [2 x i32], i32, [2 x i32], [3 x i32], [2 x i32], [3 x i32], i32, [2 x i32], i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i64 }
%struct.CUuuid_st = type { [16 x i8] }
%struct.Timer = type { %"class.std::map", %"class.std::map", %"class.std::map.0" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, CUevent_st *>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, CUevent_st *>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, CUevent_st *>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, CUevent_st *>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.0" = type { %"class.std::_Rb_tree.1" }
%"class.std::_Rb_tree.1" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, float>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, float>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, float>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, float>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"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.std::allocator.5" = type { i8 }
%"class.std::thread" = type { %"class.std::thread::id" }
%"class.std::thread::id" = type { i64 }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }

@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@stderr = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [140 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [23 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10read_inputPjRK6Params(ptr noundef, ptr noundef nonnull align 4 dereferenceable(36)) #0

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

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

declare i32 @printf(ptr noundef, ...) #2

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #4 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %struct.Params, align 4
  %7 = alloca %struct.CUDASetup, align 8
  %8 = alloca %struct.Timer, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator.5", align 1
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::allocator.5", align 1
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::allocator.5", align 1
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::allocator.5", align 1
  %26 = alloca i32, align 4
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::allocator.5", align 1
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::allocator.5", align 1
  %31 = alloca %"class.std::__cxx11::basic_string", align 8
  %32 = alloca %"class.std::allocator.5", align 1
  %33 = alloca %"class.std::__cxx11::basic_string", align 8
  %34 = alloca %"class.std::allocator.5", align 1
  %35 = alloca %"class.std::__cxx11::basic_string", align 8
  %36 = alloca %"class.std::allocator.5", align 1
  %37 = alloca i32, align 4
  %38 = alloca %"class.std::__cxx11::basic_string", align 8
  %39 = alloca %"class.std::allocator.5", align 1
  %40 = alloca %"class.std::thread", align 8
  %41 = alloca %"class.std::__cxx11::basic_string", align 8
  %42 = alloca %"class.std::allocator.5", align 1
  %43 = alloca %"class.std::__cxx11::basic_string", align 8
  %44 = alloca %"class.std::allocator.5", align 1
  %45 = alloca %"class.std::__cxx11::basic_string", align 8
  %46 = alloca %"class.std::allocator.5", align 1
  %47 = alloca i32, align 4
  %48 = alloca %"class.std::__cxx11::basic_string", align 8
  %49 = alloca %"class.std::allocator.5", align 1
  %50 = alloca %"class.std::__cxx11::basic_string", align 8
  %51 = alloca %"class.std::allocator.5", align 1
  %52 = alloca %"class.std::__cxx11::basic_string", align 8
  %53 = alloca %"class.std::allocator.5", align 1
  %54 = alloca %"class.std::__cxx11::basic_string", align 8
  %55 = alloca %"class.std::allocator.5", align 1
  %56 = alloca %"class.std::__cxx11::basic_string", align 8
  %57 = alloca %"class.std::allocator.5", align 1
  %58 = alloca %"class.std::__cxx11::basic_string", align 8
  %59 = alloca %"class.std::allocator.5", align 1
  %60 = alloca %"class.std::__cxx11::basic_string", align 8
  %61 = alloca %"class.std::allocator.5", align 1
  %62 = alloca %"class.std::__cxx11::basic_string", align 8
  %63 = alloca %"class.std::allocator.5", align 1
  %64 = alloca %"class.std::__cxx11::basic_string", align 8
  %65 = alloca %"class.std::allocator.5", align 1
  %66 = alloca %"class.std::__cxx11::basic_string", align 8
  %67 = alloca %"class.std::allocator.5", align 1
  %68 = alloca %"class.std::__cxx11::basic_string", align 8
  %69 = alloca %"class.std::allocator.5", align 1
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 36, ptr %6) #11
  %70 = load i32, ptr %4, align 4, !tbaa !5
  %71 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN6ParamsC2EiPPc(ptr noundef nonnull align 4 dereferenceable(36) %6, i32 noundef %70, ptr noundef %71)
  call void @llvm.lifetime.start.p0(i64 728, ptr %7) #11
  %72 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 0
  %73 = load i32, ptr %72, align 4, !tbaa !11
  call void @_ZN9CUDASetupC2Ei(ptr noundef nonnull align 8 dereferenceable(728) %7, i32 noundef %73)
  call void @llvm.lifetime.start.p0(i64 144, ptr %8) #11
  call void @_ZN5TimerC2Ev(ptr noundef nonnull align 8 dereferenceable(144) %8) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %74 unwind label %115

74:                                               ; preds = %2
  invoke void @_ZN5Timer5startENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef %10)
          to label %75 unwind label %119

75:                                               ; preds = %74
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #11
  %76 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 7
  %77 = load i32, ptr %76, align 4, !tbaa !14
  %78 = sub nsw i32 %77, 1
  %79 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 1
  %80 = load i32, ptr %79, align 4, !tbaa !15
  %81 = sdiv i32 %78, %80
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #11
  %83 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 7
  %84 = load i32, ptr %83, align 4, !tbaa !14
  %85 = sext i32 %84 to i64
  %86 = mul i64 %85, 4
  %87 = call noalias ptr @malloc(i64 noundef %86) #12
  store ptr %87, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #11
  %88 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 8
  %89 = load i32, ptr %88, align 4, !tbaa !16
  %90 = sext i32 %89 to i64
  %91 = mul i64 %90, 4
  %92 = call noalias ptr @malloc(i64 noundef %91) #12
  store ptr %92, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #11
  %93 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 8
  %94 = load i32, ptr %93, align 4, !tbaa !16
  %95 = sext i32 %94 to i64
  %96 = mul i64 %95, 4
  %97 = call noalias ptr @malloc(i64 noundef %96) #12
  store ptr %97, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #11
  %98 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 7
  %99 = load i32, ptr %98, align 4, !tbaa !14
  %100 = sext i32 %99 to i64
  %101 = mul i64 %100, 4
  %102 = invoke i32 @cudaMalloc(ptr noundef %18, i64 noundef %101)
          to label %103 unwind label %124

103:                                              ; preds = %75
  store i32 %102, ptr %9, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #11
  %104 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 8
  %105 = load i32, ptr %104, align 4, !tbaa !16
  %106 = sext i32 %105 to i64
  %107 = mul i64 %106, 4
  %108 = invoke i32 @cudaMalloc(ptr noundef %19, i64 noundef %107)
          to label %109 unwind label %128

109:                                              ; preds = %103
  store i32 %108, ptr %9, align 4, !tbaa !17
  %110 = load ptr, ptr %15, align 8, !tbaa !9
  %111 = icmp eq ptr %110, null
  br i1 %111, label %112, label %132

112:                                              ; preds = %109
  %113 = load ptr, ptr @stderr, align 8, !tbaa !9
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %113, ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 188) #11
  call void @exit(i32 noundef -1) #13
  unreachable

115:                                              ; preds = %2
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %12, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %13, align 4
  br label %123

119:                                              ; preds = %74
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %12, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #11
  br label %123

123:                                              ; preds = %119, %115
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #11
  br label %652

124:                                              ; preds = %75
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %12, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %13, align 4
  br label %651

128:                                              ; preds = %153, %147, %103
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %12, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %13, align 4
  br label %650

132:                                              ; preds = %109
  %133 = load ptr, ptr %16, align 8, !tbaa !9
  %134 = icmp eq ptr %133, null
  br i1 %134, label %135, label %138

135:                                              ; preds = %132
  %136 = load ptr, ptr @stderr, align 8, !tbaa !9
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 188) #11
  call void @exit(i32 noundef -1) #13
  unreachable

138:                                              ; preds = %132
  %139 = load ptr, ptr %17, align 8, !tbaa !9
  %140 = icmp eq ptr %139, null
  br i1 %140, label %141, label %144

141:                                              ; preds = %138
  %142 = load ptr, ptr @stderr, align 8, !tbaa !9
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 188) #11
  call void @exit(i32 noundef -1) #13
  unreachable

144:                                              ; preds = %138
  %145 = load i32, ptr %9, align 4, !tbaa !17
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %147, label %153

147:                                              ; preds = %144
  %148 = load ptr, ptr @stderr, align 8, !tbaa !9
  %149 = load i32, ptr %9, align 4, !tbaa !17
  %150 = invoke ptr @cudaGetErrorString(i32 noundef %149)
          to label %151 unwind label %128

151:                                              ; preds = %147
  %152 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %148, ptr noundef @.str.6, ptr noundef %150, ptr noundef @.str.5, i32 noundef 190) #11
  call void @exit(i32 noundef -1) #13
  unreachable

153:                                              ; preds = %144
  %154 = invoke i32 @cudaDeviceSynchronize()
          to label %155 unwind label %128

155:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %156 unwind label %205

156:                                              ; preds = %155
  invoke void @_ZN5Timer4stopENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef %20)
          to label %157 unwind label %209

157:                                              ; preds = %156
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %158 unwind label %214

158:                                              ; preds = %157
  invoke void @_ZN5Timer5printENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef %22, i32 noundef 1)
          to label %159 unwind label %218

159:                                              ; preds = %158
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %160 unwind label %223

160:                                              ; preds = %159
  invoke void @_ZN5Timer5startENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef %24)
          to label %161 unwind label %227

161:                                              ; preds = %160
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #11
  %162 = invoke noundef i32 @_ZN9CUDASetup15max_gpu_threadsEv(ptr noundef nonnull align 8 dereferenceable(728) %7)
          to label %163 unwind label %232

163:                                              ; preds = %161
  store i32 %162, ptr %26, align 4, !tbaa !5
  %164 = load ptr, ptr %15, align 8, !tbaa !9
  invoke void @_Z10read_inputPjRK6Params(ptr noundef %164, ptr noundef nonnull align 4 dereferenceable(36) %6)
          to label %165 unwind label %232

165:                                              ; preds = %163
  %166 = load ptr, ptr %16, align 8, !tbaa !9
  %167 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 8
  %168 = load i32, ptr %167, align 4, !tbaa !16
  %169 = sext i32 %168 to i64
  %170 = mul i64 %169, 4
  call void @llvm.memset.p0.i64(ptr align 4 %166, i8 0, i64 %170, i1 false)
  %171 = invoke i32 @cudaDeviceSynchronize()
          to label %172 unwind label %232

172:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %173 unwind label %236

173:                                              ; preds = %172
  invoke void @_ZN5Timer4stopENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef %27)
          to label %174 unwind label %240

174:                                              ; preds = %173
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %175 unwind label %245

175:                                              ; preds = %174
  invoke void @_ZN5Timer5printENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef %29, i32 noundef 1)
          to label %176 unwind label %249

176:                                              ; preds = %175
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef @.str.8, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %177 unwind label %254

177:                                              ; preds = %176
  invoke void @_ZN5Timer5startENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef %31)
          to label %178 unwind label %258

178:                                              ; preds = %177
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #11
  %179 = load ptr, ptr %18, align 8, !tbaa !9
  %180 = load ptr, ptr %15, align 8, !tbaa !9
  %181 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 7
  %182 = load i32, ptr %181, align 4, !tbaa !14
  %183 = sext i32 %182 to i64
  %184 = mul i64 %183, 4
  %185 = invoke i32 @cudaMemcpy(ptr noundef %179, ptr noundef %180, i64 noundef %184, i32 noundef 1)
          to label %186 unwind label %232

186:                                              ; preds = %178
  store i32 %185, ptr %9, align 4, !tbaa !17
  %187 = load ptr, ptr %19, align 8, !tbaa !9
  %188 = load ptr, ptr %16, align 8, !tbaa !9
  %189 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 8
  %190 = load i32, ptr %189, align 4, !tbaa !16
  %191 = sext i32 %190 to i64
  %192 = mul i64 %191, 4
  %193 = invoke i32 @cudaMemcpy(ptr noundef %187, ptr noundef %188, i64 noundef %192, i32 noundef 1)
          to label %194 unwind label %232

194:                                              ; preds = %186
  store i32 %193, ptr %9, align 4, !tbaa !17
  %195 = invoke i32 @cudaDeviceSynchronize()
          to label %196 unwind label %232

196:                                              ; preds = %194
  %197 = load i32, ptr %9, align 4, !tbaa !17
  %198 = icmp ne i32 %197, 0
  br i1 %198, label %199, label %263

199:                                              ; preds = %196
  %200 = load ptr, ptr @stderr, align 8, !tbaa !9
  %201 = load i32, ptr %9, align 4, !tbaa !17
  %202 = invoke ptr @cudaGetErrorString(i32 noundef %201)
          to label %203 unwind label %232

203:                                              ; preds = %199
  %204 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %200, ptr noundef @.str.6, ptr noundef %202, ptr noundef @.str.5, i32 noundef 216) #11
  call void @exit(i32 noundef -1) #13
  unreachable

205:                                              ; preds = %155
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %12, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %13, align 4
  br label %213

209:                                              ; preds = %156
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %12, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #11
  br label %213

213:                                              ; preds = %209, %205
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #11
  br label %650

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

218:                                              ; preds = %158
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %12, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #11
  br label %222

222:                                              ; preds = %218, %214
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #11
  br label %650

223:                                              ; preds = %159
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %12, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %13, align 4
  br label %231

227:                                              ; preds = %160
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %12, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #11
  br label %231

231:                                              ; preds = %227, %223
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #11
  br label %650

232:                                              ; preds = %573, %555, %522, %516, %510, %501, %473, %449, %438, %199, %194, %186, %178, %165, %163, %161
  %233 = landingpad { ptr, i32 }
          cleanup
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %12, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %13, align 4
  br label %649

236:                                              ; preds = %172
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %12, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %13, align 4
  br label %244

240:                                              ; preds = %173
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %12, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #11
  br label %244

244:                                              ; preds = %240, %236
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #11
  br label %649

245:                                              ; preds = %174
  %246 = landingpad { ptr, i32 }
          cleanup
  %247 = extractvalue { ptr, i32 } %246, 0
  store ptr %247, ptr %12, align 8
  %248 = extractvalue { ptr, i32 } %246, 1
  store i32 %248, ptr %13, align 4
  br label %253

249:                                              ; preds = %175
  %250 = landingpad { ptr, i32 }
          cleanup
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %12, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #11
  br label %253

253:                                              ; preds = %249, %245
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #11
  br label %649

254:                                              ; preds = %176
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %12, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %13, align 4
  br label %262

258:                                              ; preds = %177
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %12, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #11
  br label %262

262:                                              ; preds = %258, %254
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #11
  br label %649

263:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef @.str.8, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %264 unwind label %277

264:                                              ; preds = %263
  invoke void @_ZN5Timer4stopENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef %33)
          to label %265 unwind label %281

265:                                              ; preds = %264
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef @.str.8, ptr noundef nonnull align 1 dereferenceable(1) %36)
          to label %266 unwind label %286

266:                                              ; preds = %265
  invoke void @_ZN5Timer5printENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef %35, i32 noundef 1)
          to label %267 unwind label %290

267:                                              ; preds = %266
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #11
  store i32 0, ptr %37, align 4, !tbaa !5
  br label %268

268:                                              ; preds = %426, %267
  %269 = load i32, ptr %37, align 4, !tbaa !5
  %270 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 4
  %271 = load i32, ptr %270, align 4, !tbaa !19
  %272 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 5
  %273 = load i32, ptr %272, align 4, !tbaa !20
  %274 = add nsw i32 %271, %273
  %275 = icmp slt i32 %269, %274
  br i1 %275, label %295, label %276

276:                                              ; preds = %268
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #11
  br label %432

277:                                              ; preds = %263
  %278 = landingpad { ptr, i32 }
          cleanup
  %279 = extractvalue { ptr, i32 } %278, 0
  store ptr %279, ptr %12, align 8
  %280 = extractvalue { ptr, i32 } %278, 1
  store i32 %280, ptr %13, align 4
  br label %285

281:                                              ; preds = %264
  %282 = landingpad { ptr, i32 }
          cleanup
  %283 = extractvalue { ptr, i32 } %282, 0
  store ptr %283, ptr %12, align 8
  %284 = extractvalue { ptr, i32 } %282, 1
  store i32 %284, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #11
  br label %285

285:                                              ; preds = %281, %277
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #11
  br label %649

286:                                              ; preds = %265
  %287 = landingpad { ptr, i32 }
          cleanup
  %288 = extractvalue { ptr, i32 } %287, 0
  store ptr %288, ptr %12, align 8
  %289 = extractvalue { ptr, i32 } %287, 1
  store i32 %289, ptr %13, align 4
  br label %294

290:                                              ; preds = %266
  %291 = landingpad { ptr, i32 }
          cleanup
  %292 = extractvalue { ptr, i32 } %291, 0
  store ptr %292, ptr %12, align 8
  %293 = extractvalue { ptr, i32 } %291, 1
  store i32 %293, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #11
  br label %294

294:                                              ; preds = %290, %286
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #11
  br label %649

295:                                              ; preds = %268
  %296 = load ptr, ptr %16, align 8, !tbaa !9
  %297 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 8
  %298 = load i32, ptr %297, align 4, !tbaa !16
  %299 = sext i32 %298 to i64
  %300 = mul i64 %299, 4
  call void @llvm.memset.p0.i64(ptr align 4 %296, i8 0, i64 %300, i1 false)
  %301 = load ptr, ptr %19, align 8, !tbaa !9
  %302 = load ptr, ptr %16, align 8, !tbaa !9
  %303 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 8
  %304 = load i32, ptr %303, align 4, !tbaa !16
  %305 = sext i32 %304 to i64
  %306 = mul i64 %305, 4
  %307 = invoke i32 @cudaMemcpy(ptr noundef %301, ptr noundef %302, i64 noundef %306, i32 noundef 1)
          to label %308 unwind label %319

308:                                              ; preds = %295
  store i32 %307, ptr %9, align 4, !tbaa !17
  %309 = invoke i32 @cudaDeviceSynchronize()
          to label %310 unwind label %319

310:                                              ; preds = %308
  %311 = load i32, ptr %9, align 4, !tbaa !17
  %312 = icmp ne i32 %311, 0
  br i1 %312, label %313, label %323

313:                                              ; preds = %310
  %314 = load ptr, ptr @stderr, align 8, !tbaa !9
  %315 = load i32, ptr %9, align 4, !tbaa !17
  %316 = invoke ptr @cudaGetErrorString(i32 noundef %315)
          to label %317 unwind label %319

317:                                              ; preds = %313
  %318 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %314, ptr noundef @.str.6, ptr noundef %316, ptr noundef @.str.5, i32 noundef 236) #11
  call void @exit(i32 noundef -1) #13
  unreachable

319:                                              ; preds = %384, %361, %313, %308, %295
  %320 = landingpad { ptr, i32 }
          cleanup
  %321 = extractvalue { ptr, i32 } %320, 0
  store ptr %321, ptr %12, align 8
  %322 = extractvalue { ptr, i32 } %320, 1
  store i32 %322, ptr %13, align 4
  br label %431

323:                                              ; preds = %310
  %324 = load i32, ptr %37, align 4, !tbaa !5
  %325 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 4
  %326 = load i32, ptr %325, align 4, !tbaa !19
  %327 = icmp sge i32 %324, %326
  br i1 %327, label %328, label %340

328:                                              ; preds = %323
  call void @llvm.lifetime.start.p0(i64 1, ptr %39) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %39)
          to label %329 unwind label %331

329:                                              ; preds = %328
  invoke void @_ZN5Timer5startENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef %38)
          to label %330 unwind label %335

330:                                              ; preds = %329
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #11
  br label %340

331:                                              ; preds = %328
  %332 = landingpad { ptr, i32 }
          cleanup
  %333 = extractvalue { ptr, i32 } %332, 0
  store ptr %333, ptr %12, align 8
  %334 = extractvalue { ptr, i32 } %332, 1
  store i32 %334, ptr %13, align 4
  br label %339

335:                                              ; preds = %329
  %336 = landingpad { ptr, i32 }
          cleanup
  %337 = extractvalue { ptr, i32 } %336, 0
  store ptr %337, ptr %12, align 8
  %338 = extractvalue { ptr, i32 } %336, 1
  store i32 %338, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #11
  br label %339

339:                                              ; preds = %335, %331
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #11
  br label %431

340:                                              ; preds = %330, %323
  %341 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 7
  %342 = load i32, ptr %341, align 4, !tbaa !14
  %343 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 1
  %344 = load i32, ptr %343, align 4, !tbaa !15
  %345 = sdiv i32 %342, %344
  %346 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 2
  store i32 %345, ptr %346, align 4, !tbaa !21
  %347 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 2
  %348 = load i32, ptr %347, align 4, !tbaa !21
  %349 = icmp sgt i32 %348, 0
  br i1 %349, label %350, label %391

350:                                              ; preds = %340
  %351 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 1
  %352 = load i32, ptr %351, align 4, !tbaa !15
  %353 = load i32, ptr %26, align 4, !tbaa !5
  %354 = icmp sle i32 %352, %353
  br i1 %354, label %355, label %356

355:                                              ; preds = %350
  br label %356

356:                                              ; preds = %355, %350
  %357 = phi i1 [ false, %350 ], [ true, %355 ]
  br i1 %357, label %358, label %359

358:                                              ; preds = %356
  br label %361

359:                                              ; preds = %356
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.5, i32 noundef 248, ptr noundef @__PRETTY_FUNCTION__.main) #13
  unreachable

360:                                              ; No predecessors!
  br label %361

361:                                              ; preds = %360, %358
  %362 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 2
  %363 = load i32, ptr %362, align 4, !tbaa !21
  %364 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 1
  %365 = load i32, ptr %364, align 4, !tbaa !15
  %366 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 7
  %367 = load i32, ptr %366, align 4, !tbaa !14
  %368 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 8
  %369 = load i32, ptr %368, align 4, !tbaa !16
  %370 = load i32, ptr %14, align 4, !tbaa !5
  %371 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 6
  %372 = load float, ptr %371, align 4, !tbaa !22
  %373 = load ptr, ptr %18, align 8, !tbaa !9
  %374 = load ptr, ptr %19, align 8, !tbaa !9
  %375 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 8
  %376 = load i32, ptr %375, align 4, !tbaa !16
  %377 = sext i32 %376 to i64
  %378 = mul i64 %377, 4
  %379 = trunc i64 %378 to i32
  %380 = invoke noundef i32 @_Z21call_Histogram_kerneliiiiifPjS_i(i32 noundef %363, i32 noundef %365, i32 noundef %367, i32 noundef %369, i32 noundef %370, float noundef %372, ptr noundef %373, ptr noundef %374, i32 noundef %379)
          to label %381 unwind label %319

381:                                              ; preds = %361
  store i32 %380, ptr %9, align 4, !tbaa !17
  %382 = load i32, ptr %9, align 4, !tbaa !17
  %383 = icmp ne i32 %382, 0
  br i1 %383, label %384, label %390

384:                                              ; preds = %381
  %385 = load ptr, ptr @stderr, align 8, !tbaa !9
  %386 = load i32, ptr %9, align 4, !tbaa !17
  %387 = invoke ptr @cudaGetErrorString(i32 noundef %386)
          to label %388 unwind label %319

388:                                              ; preds = %384
  %389 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %385, ptr noundef @.str.6, ptr noundef %387, ptr noundef @.str.5, i32 noundef 255) #11
  call void @exit(i32 noundef -1) #13
  unreachable

390:                                              ; preds = %381
  br label %391

391:                                              ; preds = %390, %340
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #11
  %392 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 7
  %393 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 8
  %394 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 3
  %395 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 1
  %396 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 6
  invoke void @_ZNSt6threadC2IRFvPSt6atomicIjEPjiiiiifEJRS3_RS4_RiS9_S9_S9_S9_RfEvEEOT_DpOT0_(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull @_Z15run_cpu_threadsPSt6atomicIjEPjiiiiif, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(4) %392, ptr noundef nonnull align 4 dereferenceable(4) %393, ptr noundef nonnull align 4 dereferenceable(4) %394, ptr noundef nonnull align 4 dereferenceable(4) %395, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %396)
          to label %397 unwind label %408

397:                                              ; preds = %391
  %398 = invoke i32 @cudaDeviceSynchronize()
          to label %399 unwind label %412

399:                                              ; preds = %397
  invoke void @_ZNSt6thread4joinEv(ptr noundef nonnull align 8 dereferenceable(8) %40)
          to label %400 unwind label %412

400:                                              ; preds = %399
  %401 = load i32, ptr %37, align 4, !tbaa !5
  %402 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 4
  %403 = load i32, ptr %402, align 4, !tbaa !19
  %404 = icmp sge i32 %401, %403
  br i1 %404, label %405, label %425

405:                                              ; preds = %400
  call void @llvm.lifetime.start.p0(i64 1, ptr %42) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %41, ptr noundef @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %42)
          to label %406 unwind label %416

406:                                              ; preds = %405
  invoke void @_ZN5Timer4stopENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef %41)
          to label %407 unwind label %420

407:                                              ; preds = %406
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %42) #11
  br label %425

408:                                              ; preds = %391
  %409 = landingpad { ptr, i32 }
          cleanup
  %410 = extractvalue { ptr, i32 } %409, 0
  store ptr %410, ptr %12, align 8
  %411 = extractvalue { ptr, i32 } %409, 1
  store i32 %411, ptr %13, align 4
  br label %430

412:                                              ; preds = %399, %397
  %413 = landingpad { ptr, i32 }
          cleanup
  %414 = extractvalue { ptr, i32 } %413, 0
  store ptr %414, ptr %12, align 8
  %415 = extractvalue { ptr, i32 } %413, 1
  store i32 %415, ptr %13, align 4
  br label %429

416:                                              ; preds = %405
  %417 = landingpad { ptr, i32 }
          cleanup
  %418 = extractvalue { ptr, i32 } %417, 0
  store ptr %418, ptr %12, align 8
  %419 = extractvalue { ptr, i32 } %417, 1
  store i32 %419, ptr %13, align 4
  br label %424

420:                                              ; preds = %406
  %421 = landingpad { ptr, i32 }
          cleanup
  %422 = extractvalue { ptr, i32 } %421, 0
  store ptr %422, ptr %12, align 8
  %423 = extractvalue { ptr, i32 } %421, 1
  store i32 %423, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #11
  br label %424

424:                                              ; preds = %420, %416
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %42) #11
  br label %429

425:                                              ; preds = %407, %400
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %40) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #11
  br label %426

426:                                              ; preds = %425
  %427 = load i32, ptr %37, align 4, !tbaa !5
  %428 = add nsw i32 %427, 1
  store i32 %428, ptr %37, align 4, !tbaa !5
  br label %268, !llvm.loop !23

429:                                              ; preds = %424, %412
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %40) #11
  br label %430

430:                                              ; preds = %429, %408
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #11
  br label %431

431:                                              ; preds = %430, %339, %319
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #11
  br label %649

432:                                              ; preds = %276
  call void @llvm.lifetime.start.p0(i64 1, ptr %44) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %44)
          to label %433 unwind label %455

433:                                              ; preds = %432
  %434 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 5
  %435 = load i32, ptr %434, align 4, !tbaa !20
  invoke void @_ZN5Timer5printENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef %43, i32 noundef %435)
          to label %436 unwind label %459

436:                                              ; preds = %433
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %46) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %46) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %45, ptr noundef @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %46)
          to label %437 unwind label %464

437:                                              ; preds = %436
  invoke void @_ZN5Timer5startENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef %45)
          to label %438 unwind label %468

438:                                              ; preds = %437
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %45) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %46) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %46) #11
  %439 = load ptr, ptr %17, align 8, !tbaa !9
  %440 = load ptr, ptr %19, align 8, !tbaa !9
  %441 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 8
  %442 = load i32, ptr %441, align 4, !tbaa !16
  %443 = sext i32 %442 to i64
  %444 = mul i64 %443, 4
  %445 = invoke i32 @cudaMemcpy(ptr noundef %439, ptr noundef %440, i64 noundef %444, i32 noundef 2)
          to label %446 unwind label %232

446:                                              ; preds = %438
  store i32 %445, ptr %9, align 4, !tbaa !17
  %447 = load i32, ptr %9, align 4, !tbaa !17
  %448 = icmp ne i32 %447, 0
  br i1 %448, label %449, label %473

449:                                              ; preds = %446
  %450 = load ptr, ptr @stderr, align 8, !tbaa !9
  %451 = load i32, ptr %9, align 4, !tbaa !17
  %452 = invoke ptr @cudaGetErrorString(i32 noundef %451)
          to label %453 unwind label %232

453:                                              ; preds = %449
  %454 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %450, ptr noundef @.str.6, ptr noundef %452, ptr noundef @.str.5, i32 noundef 278) #11
  call void @exit(i32 noundef -1) #13
  unreachable

455:                                              ; preds = %432
  %456 = landingpad { ptr, i32 }
          cleanup
  %457 = extractvalue { ptr, i32 } %456, 0
  store ptr %457, ptr %12, align 8
  %458 = extractvalue { ptr, i32 } %456, 1
  store i32 %458, ptr %13, align 4
  br label %463

459:                                              ; preds = %433
  %460 = landingpad { ptr, i32 }
          cleanup
  %461 = extractvalue { ptr, i32 } %460, 0
  store ptr %461, ptr %12, align 8
  %462 = extractvalue { ptr, i32 } %460, 1
  store i32 %462, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #11
  br label %463

463:                                              ; preds = %459, %455
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #11
  br label %649

464:                                              ; preds = %436
  %465 = landingpad { ptr, i32 }
          cleanup
  %466 = extractvalue { ptr, i32 } %465, 0
  store ptr %466, ptr %12, align 8
  %467 = extractvalue { ptr, i32 } %465, 1
  store i32 %467, ptr %13, align 4
  br label %472

468:                                              ; preds = %437
  %469 = landingpad { ptr, i32 }
          cleanup
  %470 = extractvalue { ptr, i32 } %469, 0
  store ptr %470, ptr %12, align 8
  %471 = extractvalue { ptr, i32 } %469, 1
  store i32 %471, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %45) #11
  br label %472

472:                                              ; preds = %468, %464
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %46) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %46) #11
  br label %649

473:                                              ; preds = %446
  %474 = invoke i32 @cudaDeviceSynchronize()
          to label %475 unwind label %232

475:                                              ; preds = %473
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #11
  store i32 0, ptr %47, align 4, !tbaa !5
  br label %476

476:                                              ; preds = %494, %475
  %477 = load i32, ptr %47, align 4, !tbaa !5
  %478 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 8
  %479 = load i32, ptr %478, align 4, !tbaa !16
  %480 = icmp ult i32 %477, %479
  br i1 %480, label %482, label %481

481:                                              ; preds = %476
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #11
  br label %497

482:                                              ; preds = %476
  %483 = load ptr, ptr %16, align 8, !tbaa !9
  %484 = load i32, ptr %47, align 4, !tbaa !5
  %485 = zext i32 %484 to i64
  %486 = getelementptr inbounds %"struct.std::atomic", ptr %483, i64 %485
  %487 = call noundef i32 @_ZNKSt13__atomic_baseIjEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %486) #11
  %488 = load ptr, ptr %17, align 8, !tbaa !9
  %489 = load i32, ptr %47, align 4, !tbaa !5
  %490 = zext i32 %489 to i64
  %491 = getelementptr inbounds i32, ptr %488, i64 %490
  %492 = load i32, ptr %491, align 4, !tbaa !5
  %493 = add i32 %492, %487
  store i32 %493, ptr %491, align 4, !tbaa !5
  br label %494

494:                                              ; preds = %482
  %495 = load i32, ptr %47, align 4, !tbaa !5
  %496 = add i32 %495, 1
  store i32 %496, ptr %47, align 4, !tbaa !5
  br label %476, !llvm.loop !25

497:                                              ; preds = %481
  call void @llvm.lifetime.start.p0(i64 1, ptr %49) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %49) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %48, ptr noundef @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %49)
          to label %498 unwind label %528

498:                                              ; preds = %497
  invoke void @_ZN5Timer4stopENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef %48)
          to label %499 unwind label %532

499:                                              ; preds = %498
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %48) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %49) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %49) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %51) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %51) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %50, ptr noundef @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %51)
          to label %500 unwind label %537

500:                                              ; preds = %499
  invoke void @_ZN5Timer5printENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef %50, i32 noundef 1)
          to label %501 unwind label %541

501:                                              ; preds = %500
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %50) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %51) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %51) #11
  %502 = load ptr, ptr %17, align 8, !tbaa !9
  %503 = load ptr, ptr %15, align 8, !tbaa !9
  %504 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 7
  %505 = load i32, ptr %504, align 4, !tbaa !14
  %506 = getelementptr inbounds %struct.Params, ptr %6, i32 0, i32 8
  %507 = load i32, ptr %506, align 4, !tbaa !16
  invoke void @_Z6verifyPjS_ii(ptr noundef %502, ptr noundef %503, i32 noundef %505, i32 noundef %507)
          to label %508 unwind label %232

508:                                              ; preds = %501
  call void @llvm.lifetime.start.p0(i64 1, ptr %53) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %53) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %52, ptr noundef @.str.13, ptr noundef nonnull align 1 dereferenceable(1) %53)
          to label %509 unwind label %546

509:                                              ; preds = %508
  invoke void @_ZN5Timer5startENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef %52)
          to label %510 unwind label %550

510:                                              ; preds = %509
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %52) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %53) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %53) #11
  %511 = load ptr, ptr %15, align 8, !tbaa !9
  call void @free(ptr noundef %511) #11
  %512 = load ptr, ptr %16, align 8, !tbaa !9
  call void @free(ptr noundef %512) #11
  %513 = load ptr, ptr %17, align 8, !tbaa !9
  call void @free(ptr noundef %513) #11
  %514 = load ptr, ptr %18, align 8, !tbaa !9
  %515 = invoke i32 @cudaFree(ptr noundef %514)
          to label %516 unwind label %232

516:                                              ; preds = %510
  store i32 %515, ptr %9, align 4, !tbaa !17
  %517 = load ptr, ptr %19, align 8, !tbaa !9
  %518 = invoke i32 @cudaFree(ptr noundef %517)
          to label %519 unwind label %232

519:                                              ; preds = %516
  store i32 %518, ptr %9, align 4, !tbaa !17
  %520 = load i32, ptr %9, align 4, !tbaa !17
  %521 = icmp ne i32 %520, 0
  br i1 %521, label %522, label %555

522:                                              ; preds = %519
  %523 = load ptr, ptr @stderr, align 8, !tbaa !9
  %524 = load i32, ptr %9, align 4, !tbaa !17
  %525 = invoke ptr @cudaGetErrorString(i32 noundef %524)
          to label %526 unwind label %232

526:                                              ; preds = %522
  %527 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %523, ptr noundef @.str.6, ptr noundef %525, ptr noundef @.str.5, i32 noundef 307) #11
  call void @exit(i32 noundef -1) #13
  unreachable

528:                                              ; preds = %497
  %529 = landingpad { ptr, i32 }
          cleanup
  %530 = extractvalue { ptr, i32 } %529, 0
  store ptr %530, ptr %12, align 8
  %531 = extractvalue { ptr, i32 } %529, 1
  store i32 %531, ptr %13, align 4
  br label %536

532:                                              ; preds = %498
  %533 = landingpad { ptr, i32 }
          cleanup
  %534 = extractvalue { ptr, i32 } %533, 0
  store ptr %534, ptr %12, align 8
  %535 = extractvalue { ptr, i32 } %533, 1
  store i32 %535, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %48) #11
  br label %536

536:                                              ; preds = %532, %528
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %49) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %49) #11
  br label %649

537:                                              ; preds = %499
  %538 = landingpad { ptr, i32 }
          cleanup
  %539 = extractvalue { ptr, i32 } %538, 0
  store ptr %539, ptr %12, align 8
  %540 = extractvalue { ptr, i32 } %538, 1
  store i32 %540, ptr %13, align 4
  br label %545

541:                                              ; preds = %500
  %542 = landingpad { ptr, i32 }
          cleanup
  %543 = extractvalue { ptr, i32 } %542, 0
  store ptr %543, ptr %12, align 8
  %544 = extractvalue { ptr, i32 } %542, 1
  store i32 %544, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %50) #11
  br label %545

545:                                              ; preds = %541, %537
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %51) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %51) #11
  br label %649

546:                                              ; preds = %508
  %547 = landingpad { ptr, i32 }
          cleanup
  %548 = extractvalue { ptr, i32 } %547, 0
  store ptr %548, ptr %12, align 8
  %549 = extractvalue { ptr, i32 } %547, 1
  store i32 %549, ptr %13, align 4
  br label %554

550:                                              ; preds = %509
  %551 = landingpad { ptr, i32 }
          cleanup
  %552 = extractvalue { ptr, i32 } %551, 0
  store ptr %552, ptr %12, align 8
  %553 = extractvalue { ptr, i32 } %551, 1
  store i32 %553, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %52) #11
  br label %554

554:                                              ; preds = %550, %546
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %53) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %53) #11
  br label %649

555:                                              ; preds = %519
  %556 = invoke i32 @cudaDeviceSynchronize()
          to label %557 unwind label %232

557:                                              ; preds = %555
  call void @llvm.lifetime.start.p0(i64 1, ptr %55) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %54, ptr noundef @.str.13, ptr noundef nonnull align 1 dereferenceable(1) %55)
          to label %558 unwind label %577

558:                                              ; preds = %557
  invoke void @_ZN5Timer4stopENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef %54)
          to label %559 unwind label %581

559:                                              ; preds = %558
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %54) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %55) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %57) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %57) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %56, ptr noundef @.str.13, ptr noundef nonnull align 1 dereferenceable(1) %57)
          to label %560 unwind label %586

560:                                              ; preds = %559
  invoke void @_ZN5Timer5printENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef %56, i32 noundef 1)
          to label %561 unwind label %590

561:                                              ; preds = %560
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %56) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %57) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %57) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %59) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %59) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %58, ptr noundef @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %59)
          to label %562 unwind label %595

562:                                              ; preds = %561
  invoke void @_ZN5Timer7releaseENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef %58)
          to label %563 unwind label %599

563:                                              ; preds = %562
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %58) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %59) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %59) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %61) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %61) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %60, ptr noundef @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %61)
          to label %564 unwind label %604

564:                                              ; preds = %563
  invoke void @_ZN5Timer7releaseENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef %60)
          to label %565 unwind label %608

565:                                              ; preds = %564
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %60) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %61) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %61) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %63) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %63) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %62, ptr noundef @.str.8, ptr noundef nonnull align 1 dereferenceable(1) %63)
          to label %566 unwind label %613

566:                                              ; preds = %565
  invoke void @_ZN5Timer7releaseENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef %62)
          to label %567 unwind label %617

567:                                              ; preds = %566
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %62) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %63) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %63) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %65) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %65) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %64, ptr noundef @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %65)
          to label %568 unwind label %622

568:                                              ; preds = %567
  invoke void @_ZN5Timer7releaseENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef %64)
          to label %569 unwind label %626

569:                                              ; preds = %568
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %64) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %65) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %65) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %67) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %67) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %66, ptr noundef @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %67)
          to label %570 unwind label %631

570:                                              ; preds = %569
  invoke void @_ZN5Timer7releaseENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef %66)
          to label %571 unwind label %635

571:                                              ; preds = %570
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %66) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %67) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %67) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %69) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %69) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %68, ptr noundef @.str.13, ptr noundef nonnull align 1 dereferenceable(1) %69)
          to label %572 unwind label %640

572:                                              ; preds = %571
  invoke void @_ZN5Timer7releaseENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef %68)
          to label %573 unwind label %644

573:                                              ; preds = %572
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %68) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %69) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %69) #11
  %574 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.14)
          to label %575 unwind label %232

575:                                              ; preds = %573
  store i32 0, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #11
  call void @_ZN5TimerD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %8) #11
  call void @llvm.lifetime.end.p0(i64 144, ptr %8) #11
  call void @llvm.lifetime.end.p0(i64 728, ptr %7) #11
  call void @llvm.lifetime.end.p0(i64 36, ptr %6) #11
  %576 = load i32, ptr %3, align 4
  ret i32 %576

577:                                              ; preds = %557
  %578 = landingpad { ptr, i32 }
          cleanup
  %579 = extractvalue { ptr, i32 } %578, 0
  store ptr %579, ptr %12, align 8
  %580 = extractvalue { ptr, i32 } %578, 1
  store i32 %580, ptr %13, align 4
  br label %585

581:                                              ; preds = %558
  %582 = landingpad { ptr, i32 }
          cleanup
  %583 = extractvalue { ptr, i32 } %582, 0
  store ptr %583, ptr %12, align 8
  %584 = extractvalue { ptr, i32 } %582, 1
  store i32 %584, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %54) #11
  br label %585

585:                                              ; preds = %581, %577
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %55) #11
  br label %649

586:                                              ; preds = %559
  %587 = landingpad { ptr, i32 }
          cleanup
  %588 = extractvalue { ptr, i32 } %587, 0
  store ptr %588, ptr %12, align 8
  %589 = extractvalue { ptr, i32 } %587, 1
  store i32 %589, ptr %13, align 4
  br label %594

590:                                              ; preds = %560
  %591 = landingpad { ptr, i32 }
          cleanup
  %592 = extractvalue { ptr, i32 } %591, 0
  store ptr %592, ptr %12, align 8
  %593 = extractvalue { ptr, i32 } %591, 1
  store i32 %593, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %56) #11
  br label %594

594:                                              ; preds = %590, %586
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %57) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %57) #11
  br label %649

595:                                              ; preds = %561
  %596 = landingpad { ptr, i32 }
          cleanup
  %597 = extractvalue { ptr, i32 } %596, 0
  store ptr %597, ptr %12, align 8
  %598 = extractvalue { ptr, i32 } %596, 1
  store i32 %598, ptr %13, align 4
  br label %603

599:                                              ; preds = %562
  %600 = landingpad { ptr, i32 }
          cleanup
  %601 = extractvalue { ptr, i32 } %600, 0
  store ptr %601, ptr %12, align 8
  %602 = extractvalue { ptr, i32 } %600, 1
  store i32 %602, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %58) #11
  br label %603

603:                                              ; preds = %599, %595
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %59) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %59) #11
  br label %649

604:                                              ; preds = %563
  %605 = landingpad { ptr, i32 }
          cleanup
  %606 = extractvalue { ptr, i32 } %605, 0
  store ptr %606, ptr %12, align 8
  %607 = extractvalue { ptr, i32 } %605, 1
  store i32 %607, ptr %13, align 4
  br label %612

608:                                              ; preds = %564
  %609 = landingpad { ptr, i32 }
          cleanup
  %610 = extractvalue { ptr, i32 } %609, 0
  store ptr %610, ptr %12, align 8
  %611 = extractvalue { ptr, i32 } %609, 1
  store i32 %611, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %60) #11
  br label %612

612:                                              ; preds = %608, %604
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %61) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %61) #11
  br label %649

613:                                              ; preds = %565
  %614 = landingpad { ptr, i32 }
          cleanup
  %615 = extractvalue { ptr, i32 } %614, 0
  store ptr %615, ptr %12, align 8
  %616 = extractvalue { ptr, i32 } %614, 1
  store i32 %616, ptr %13, align 4
  br label %621

617:                                              ; preds = %566
  %618 = landingpad { ptr, i32 }
          cleanup
  %619 = extractvalue { ptr, i32 } %618, 0
  store ptr %619, ptr %12, align 8
  %620 = extractvalue { ptr, i32 } %618, 1
  store i32 %620, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %62) #11
  br label %621

621:                                              ; preds = %617, %613
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %63) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %63) #11
  br label %649

622:                                              ; preds = %567
  %623 = landingpad { ptr, i32 }
          cleanup
  %624 = extractvalue { ptr, i32 } %623, 0
  store ptr %624, ptr %12, align 8
  %625 = extractvalue { ptr, i32 } %623, 1
  store i32 %625, ptr %13, align 4
  br label %630

626:                                              ; preds = %568
  %627 = landingpad { ptr, i32 }
          cleanup
  %628 = extractvalue { ptr, i32 } %627, 0
  store ptr %628, ptr %12, align 8
  %629 = extractvalue { ptr, i32 } %627, 1
  store i32 %629, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %64) #11
  br label %630

630:                                              ; preds = %626, %622
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %65) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %65) #11
  br label %649

631:                                              ; preds = %569
  %632 = landingpad { ptr, i32 }
          cleanup
  %633 = extractvalue { ptr, i32 } %632, 0
  store ptr %633, ptr %12, align 8
  %634 = extractvalue { ptr, i32 } %632, 1
  store i32 %634, ptr %13, align 4
  br label %639

635:                                              ; preds = %570
  %636 = landingpad { ptr, i32 }
          cleanup
  %637 = extractvalue { ptr, i32 } %636, 0
  store ptr %637, ptr %12, align 8
  %638 = extractvalue { ptr, i32 } %636, 1
  store i32 %638, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %66) #11
  br label %639

639:                                              ; preds = %635, %631
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %67) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %67) #11
  br label %649

640:                                              ; preds = %571
  %641 = landingpad { ptr, i32 }
          cleanup
  %642 = extractvalue { ptr, i32 } %641, 0
  store ptr %642, ptr %12, align 8
  %643 = extractvalue { ptr, i32 } %641, 1
  store i32 %643, ptr %13, align 4
  br label %648

644:                                              ; preds = %572
  %645 = landingpad { ptr, i32 }
          cleanup
  %646 = extractvalue { ptr, i32 } %645, 0
  store ptr %646, ptr %12, align 8
  %647 = extractvalue { ptr, i32 } %645, 1
  store i32 %647, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %68) #11
  br label %648

648:                                              ; preds = %644, %640
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %69) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %69) #11
  br label %649

649:                                              ; preds = %648, %639, %630, %621, %612, %603, %594, %585, %554, %545, %536, %472, %463, %431, %294, %285, %262, %253, %244, %232
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #11
  br label %650

650:                                              ; preds = %649, %231, %222, %213, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #11
  br label %651

651:                                              ; preds = %650, %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #11
  br label %652

652:                                              ; preds = %651, %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #11
  call void @_ZN5TimerD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %8) #11
  call void @llvm.lifetime.end.p0(i64 144, ptr %8) #11
  call void @llvm.lifetime.end.p0(i64 728, ptr %7) #11
  call void @llvm.lifetime.end.p0(i64 36, ptr %6) #11
  br label %653

653:                                              ; preds = %652
  %654 = load ptr, ptr %12, align 8
  %655 = load i32, ptr %13, align 4
  %656 = insertvalue { ptr, i32 } poison, ptr %654, 0
  %657 = insertvalue { ptr, i32 } %656, i32 %655, 1
  resume { ptr, i32 } %657
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ParamsC2EiPPc(ptr noundef nonnull align 4 dereferenceable(36), i32 noundef, ptr noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9CUDASetupC2Ei(ptr noundef nonnull align 8 dereferenceable(728), i32 noundef) unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #7

declare i32 @cudaMalloc(ptr noundef, i64 noundef) #2

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

declare ptr @cudaGetErrorString(i32 noundef) #2

declare i32 @cudaDeviceSynchronize() #2

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #9

declare i32 @cudaMemcpy(ptr noundef, ptr noundef, i64 noundef, i32 noundef) #2

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

declare noundef i32 @_Z21call_Histogram_kerneliiiiifPjS_i(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, ptr noundef, ptr noundef, i32 noundef) #2

declare void @_Z15run_cpu_threadsPSt6atomicIjEPjiiiiif(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef) #2

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

declare void @_ZNSt6thread4joinEv(ptr noundef nonnull align 8 dereferenceable(8)) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNKSt13__atomic_baseIjEcvjEv(ptr noundef nonnull align 4 dereferenceable(4)) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z6verifyPjS_ii(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #10

; Function Attrs: nounwind
declare void @free(ptr noundef) #8

declare i32 @cudaFree(ptr noundef) #2

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { 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 #7 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind "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 #9 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #10 = { 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 #11 = { nounwind }
attributes #12 = { nounwind allocsize(0) }
attributes #13 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTS6Params", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !13, i64 24, !6, i64 28, !6, i64 32}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !6, i64 28}
!15 = !{!12, !6, i64 4}
!16 = !{!12, !6, i64 32}
!17 = !{!18, !18, i64 0}
!18 = !{!"_ZTS9cudaError", !7, i64 0}
!19 = !{!12, !6, i64 16}
!20 = !{!12, !6, i64 20}
!21 = !{!12, !6, i64 8}
!22 = !{!12, !13, i64 24}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}


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

%struct.Params = type { i32, i32, i32, i32, i32, i32, float, i32, i32 }
%struct.CUDASetup = type { %struct.cudaDeviceProp }
%struct.cudaDeviceProp = type { [256 x i8], %struct.CUuuid_st, [8 x i8], i32, i64, i64, i32, i32, i64, i32, [3 x i32], [3 x i32], i32, i64, i32, i32, i64, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, [2 x i32], [2 x i32], [3 x i32], [2 x i32], [3 x i32], [3 x i32], i32, [2 x i32], [3 x i32], [2 x i32], i32, [2 x i32], [3 x i32], [2 x i32], [3 x i32], i32, [2 x i32], i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i64 }
%struct.CUuuid_st = type { [16 x i8] }
%struct.Timer = type { %"class.std::map", %"class.std::map", %"class.std::map.0" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, CUevent_st *>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, CUevent_st *>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, CUevent_st *>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, CUevent_st *>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.0" = type { %"class.std::_Rb_tree.1" }
%"class.std::_Rb_tree.1" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, float>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, float>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, float>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, float>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"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.std::allocator.5" = type { i8 }
%"class.std::thread" = type { %"class.std::thread::id" }
%"class.std::thread::id" = type { i64 }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }

@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [140 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [23 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10read_inputPjRK6Params(ptr noundef, ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #0

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %3 = alloca %struct.Params, align 4
  %4 = alloca %struct.CUDASetup, align 8
  %5 = alloca %struct.Timer, align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator.5", align 1
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator.5", align 1
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator.5", align 1
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::allocator.5", align 1
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::allocator.5", align 1
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::allocator.5", align 1
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::allocator.5", align 1
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca %"class.std::allocator.5", align 1
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::allocator.5", align 1
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::allocator.5", align 1
  %31 = alloca %"class.std::thread", align 8
  %32 = alloca %"class.std::__cxx11::basic_string", align 8
  %33 = alloca %"class.std::allocator.5", align 1
  %34 = alloca %"class.std::__cxx11::basic_string", align 8
  %35 = alloca %"class.std::allocator.5", align 1
  %36 = alloca %"class.std::__cxx11::basic_string", align 8
  %37 = alloca %"class.std::allocator.5", align 1
  %38 = alloca %"class.std::__cxx11::basic_string", align 8
  %39 = alloca %"class.std::allocator.5", align 1
  %40 = alloca %"class.std::__cxx11::basic_string", align 8
  %41 = alloca %"class.std::allocator.5", align 1
  %42 = alloca %"class.std::__cxx11::basic_string", align 8
  %43 = alloca %"class.std::allocator.5", align 1
  %44 = alloca %"class.std::__cxx11::basic_string", align 8
  %45 = alloca %"class.std::allocator.5", align 1
  %46 = alloca %"class.std::__cxx11::basic_string", align 8
  %47 = alloca %"class.std::allocator.5", align 1
  %48 = alloca %"class.std::__cxx11::basic_string", align 8
  %49 = alloca %"class.std::allocator.5", align 1
  %50 = alloca %"class.std::__cxx11::basic_string", align 8
  %51 = alloca %"class.std::allocator.5", align 1
  %52 = alloca %"class.std::__cxx11::basic_string", align 8
  %53 = alloca %"class.std::allocator.5", align 1
  %54 = alloca %"class.std::__cxx11::basic_string", align 8
  %55 = alloca %"class.std::allocator.5", align 1
  %56 = alloca %"class.std::__cxx11::basic_string", align 8
  %57 = alloca %"class.std::allocator.5", align 1
  %58 = alloca %"class.std::__cxx11::basic_string", align 8
  %59 = alloca %"class.std::allocator.5", align 1
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %3) #12
  call void @_ZN6ParamsC2EiPPc(ptr noundef nonnull align 4 dereferenceable(36) %3, i32 noundef %0, ptr noundef %1)
  call void @llvm.lifetime.start.p0(i64 728, ptr nonnull %4) #12
  %60 = load i32, ptr %3, align 4, !tbaa !5
  call void @_ZN9CUDASetupC2Ei(ptr noundef nonnull align 8 dereferenceable(728) %4, i32 noundef %60)
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %5) #12
  call void @_ZN5TimerC2Ev(ptr noundef nonnull align 8 dereferenceable(144) %5) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %61 unwind label %91

61:                                               ; preds = %2
  invoke void @_ZN5Timer5startENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %5, ptr noundef nonnull %6)
          to label %62 unwind label %93

62:                                               ; preds = %61
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #12
  %63 = getelementptr inbounds i8, ptr %3, i64 28
  %64 = load i32, ptr %63, align 4, !tbaa !11
  %65 = add nsw i32 %64, -1
  %66 = getelementptr inbounds i8, ptr %3, i64 4
  %67 = load i32, ptr %66, align 4, !tbaa !12
  %68 = sdiv i32 %65, %67
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %8, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #12
  %70 = sext i32 %64 to i64
  %71 = shl nsw i64 %70, 2
  %72 = call noalias ptr @malloc(i64 noundef %71) #13
  store ptr %72, ptr %9, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #12
  %73 = getelementptr inbounds i8, ptr %3, i64 32
  %74 = load i32, ptr %73, align 4, !tbaa !16
  %75 = sext i32 %74 to i64
  %76 = shl nsw i64 %75, 2
  %77 = call noalias ptr @malloc(i64 noundef %76) #13
  store ptr %77, ptr %10, align 8, !tbaa !14
  %78 = call noalias ptr @malloc(i64 noundef %76) #13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #12
  %79 = invoke i32 @cudaMalloc(ptr noundef nonnull %11, i64 noundef %71)
          to label %80 unwind label %96

80:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #12
  %81 = load i32, ptr %73, align 4, !tbaa !16
  %82 = sext i32 %81 to i64
  %83 = shl nsw i64 %82, 2
  %84 = invoke i32 @cudaMalloc(ptr noundef nonnull %12, i64 noundef %83)
          to label %85 unwind label %98

85:                                               ; preds = %80
  %86 = load ptr, ptr %9, align 8, !tbaa !14
  %87 = icmp eq ptr %86, null
  br i1 %87, label %88, label %100

88:                                               ; preds = %85
  %89 = load ptr, ptr @stderr, align 8, !tbaa !14
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef 188) #14
  call void @exit(i32 noundef -1) #15
  unreachable

91:                                               ; preds = %2
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %95

93:                                               ; preds = %61
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #12
  br label %95

95:                                               ; preds = %93, %91
  %.pn = phi { ptr, i32 } [ %94, %93 ], [ %92, %91 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #12
  br label %432

96:                                               ; preds = %62
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %431

98:                                               ; preds = %117, %112, %80
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %430

100:                                              ; preds = %85
  %101 = load ptr, ptr %10, align 8, !tbaa !14
  %102 = icmp eq ptr %101, null
  br i1 %102, label %103, label %106

103:                                              ; preds = %100
  %104 = load ptr, ptr @stderr, align 8, !tbaa !14
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef 188) #14
  call void @exit(i32 noundef -1) #15
  unreachable

106:                                              ; preds = %100
  %107 = icmp eq ptr %78, null
  br i1 %107, label %108, label %111

108:                                              ; preds = %106
  %109 = load ptr, ptr @stderr, align 8, !tbaa !14
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef 188) #14
  call void @exit(i32 noundef -1) #15
  unreachable

111:                                              ; preds = %106
  %.not = icmp eq i32 %84, 0
  br i1 %.not, label %117, label %112

112:                                              ; preds = %111
  %113 = load ptr, ptr @stderr, align 8, !tbaa !14
  %114 = invoke ptr @cudaGetErrorString(i32 noundef %84)
          to label %115 unwind label %98

115:                                              ; preds = %112
  %116 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %113, ptr noundef nonnull @.str.6, ptr noundef %114, ptr noundef nonnull @.str.5, i32 noundef 190) #14
  call void @exit(i32 noundef -1) #15
  unreachable

117:                                              ; preds = %111
  %118 = invoke i32 @cudaDeviceSynchronize()
          to label %119 unwind label %98

119:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %120 unwind label %162

120:                                              ; preds = %119
  invoke void @_ZN5Timer4stopENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %5, ptr noundef nonnull %13)
          to label %121 unwind label %164

121:                                              ; preds = %120
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %122 unwind label %167

122:                                              ; preds = %121
  invoke void @_ZN5Timer5printENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj(ptr noundef nonnull align 8 dereferenceable(144) %5, ptr noundef nonnull %15, i32 noundef 1)
          to label %123 unwind label %169

123:                                              ; preds = %122
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %124 unwind label %172

124:                                              ; preds = %123
  invoke void @_ZN5Timer5startENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %5, ptr noundef nonnull %17)
          to label %125 unwind label %174

125:                                              ; preds = %124
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #12
  %126 = call noundef i32 @_ZN9CUDASetup15max_gpu_threadsEv(ptr noundef nonnull align 8 dereferenceable(728) %4)
  %127 = load ptr, ptr %9, align 8, !tbaa !14
  invoke void @_Z10read_inputPjRK6Params(ptr noundef %127, ptr noundef nonnull align 4 dereferenceable(36) %3)
          to label %128 unwind label %177

128:                                              ; preds = %125
  %129 = load ptr, ptr %10, align 8, !tbaa !14
  %130 = load i32, ptr %73, align 4, !tbaa !16
  %131 = sext i32 %130 to i64
  %132 = shl nsw i64 %131, 2
  call void @llvm.memset.p0.i64(ptr align 4 %129, i8 0, i64 %132, i1 false)
  %133 = invoke i32 @cudaDeviceSynchronize()
          to label %134 unwind label %177

134:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %20) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %135 unwind label %179

135:                                              ; preds = %134
  invoke void @_ZN5Timer4stopENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %5, ptr noundef nonnull %19)
          to label %136 unwind label %181

136:                                              ; preds = %135
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %22) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %137 unwind label %184

137:                                              ; preds = %136
  invoke void @_ZN5Timer5printENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj(ptr noundef nonnull align 8 dereferenceable(144) %5, ptr noundef nonnull %21, i32 noundef 1)
          to label %138 unwind label %186

138:                                              ; preds = %137
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull @.str.8, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %139 unwind label %189

139:                                              ; preds = %138
  invoke void @_ZN5Timer5startENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %5, ptr noundef nonnull %23)
          to label %140 unwind label %191

140:                                              ; preds = %139
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #12
  %141 = load ptr, ptr %11, align 8, !tbaa !14
  %142 = load ptr, ptr %9, align 8, !tbaa !14
  %143 = load i32, ptr %63, align 4, !tbaa !11
  %144 = sext i32 %143 to i64
  %145 = shl nsw i64 %144, 2
  %146 = invoke i32 @cudaMemcpy(ptr noundef %141, ptr noundef %142, i64 noundef %145, i32 noundef 1)
          to label %147 unwind label %177

147:                                              ; preds = %140
  %148 = load ptr, ptr %12, align 8, !tbaa !14
  %149 = load ptr, ptr %10, align 8, !tbaa !14
  %150 = load i32, ptr %73, align 4, !tbaa !16
  %151 = sext i32 %150 to i64
  %152 = shl nsw i64 %151, 2
  %153 = invoke i32 @cudaMemcpy(ptr noundef %148, ptr noundef %149, i64 noundef %152, i32 noundef 1)
          to label %154 unwind label %177

154:                                              ; preds = %147
  %155 = invoke i32 @cudaDeviceSynchronize()
          to label %156 unwind label %177

156:                                              ; preds = %154
  %.not85 = icmp eq i32 %153, 0
  br i1 %.not85, label %194, label %157

157:                                              ; preds = %156
  %158 = load ptr, ptr @stderr, align 8, !tbaa !14
  %159 = invoke ptr @cudaGetErrorString(i32 noundef %153)
          to label %160 unwind label %177

160:                                              ; preds = %157
  %161 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %158, ptr noundef nonnull @.str.6, ptr noundef %159, ptr noundef nonnull @.str.5, i32 noundef 216) #14
  call void @exit(i32 noundef -1) #15
  unreachable

162:                                              ; preds = %119
  %163 = landingpad { ptr, i32 }
          cleanup
  br label %166

164:                                              ; preds = %120
  %165 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #12
  br label %166

166:                                              ; preds = %164, %162
  %.pn73 = phi { ptr, i32 } [ %165, %164 ], [ %163, %162 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #12
  br label %430

167:                                              ; preds = %121
  %168 = landingpad { ptr, i32 }
          cleanup
  br label %171

169:                                              ; preds = %122
  %170 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #12
  br label %171

171:                                              ; preds = %169, %167
  %.pn75 = phi { ptr, i32 } [ %170, %169 ], [ %168, %167 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #12
  br label %430

172:                                              ; preds = %123
  %173 = landingpad { ptr, i32 }
          cleanup
  br label %176

174:                                              ; preds = %124
  %175 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #12
  br label %176

176:                                              ; preds = %174, %172
  %.pn77 = phi { ptr, i32 } [ %175, %174 ], [ %173, %172 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #12
  br label %430

177:                                              ; preds = %370, %350, %346, %341, %335, %320, %305, %298, %157, %154, %147, %140, %128, %125
  %178 = landingpad { ptr, i32 }
          cleanup
  br label %430

179:                                              ; preds = %134
  %180 = landingpad { ptr, i32 }
          cleanup
  br label %183

181:                                              ; preds = %135
  %182 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #12
  br label %183

183:                                              ; preds = %181, %179
  %.pn79 = phi { ptr, i32 } [ %182, %181 ], [ %180, %179 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #12
  br label %430

184:                                              ; preds = %136
  %185 = landingpad { ptr, i32 }
          cleanup
  br label %188

186:                                              ; preds = %137
  %187 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #12
  br label %188

188:                                              ; preds = %186, %184
  %.pn81 = phi { ptr, i32 } [ %187, %186 ], [ %185, %184 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #12
  br label %430

189:                                              ; preds = %138
  %190 = landingpad { ptr, i32 }
          cleanup
  br label %193

191:                                              ; preds = %139
  %192 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #12
  br label %193

193:                                              ; preds = %191, %189
  %.pn83 = phi { ptr, i32 } [ %192, %191 ], [ %190, %189 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #12
  br label %430

194:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %26) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull @.str.8, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %195 unwind label %208

195:                                              ; preds = %194
  invoke void @_ZN5Timer4stopENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %5, ptr noundef nonnull %25)
          to label %196 unwind label %210

196:                                              ; preds = %195
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %26) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %28) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull @.str.8, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %197 unwind label %213

197:                                              ; preds = %196
  invoke void @_ZN5Timer5printENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj(ptr noundef nonnull align 8 dereferenceable(144) %5, ptr noundef nonnull %27, i32 noundef 1)
          to label %198 unwind label %215

198:                                              ; preds = %197
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %28) #12
  %199 = getelementptr inbounds i8, ptr %3, i64 16
  %200 = getelementptr inbounds i8, ptr %3, i64 20
  %201 = load i32, ptr %199, align 4, !tbaa !17
  %202 = load i32, ptr %200, align 4, !tbaa !18
  %203 = add nsw i32 %202, %201
  %204 = icmp sgt i32 %203, 0
  br i1 %204, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %198
  %205 = getelementptr inbounds i8, ptr %3, i64 8
  %206 = getelementptr inbounds i8, ptr %3, i64 24
  %207 = getelementptr inbounds i8, ptr %3, i64 12
  br label %218

._crit_edge:                                      ; preds = %286, %198
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %35) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %35)
          to label %294 unwind label %310

208:                                              ; preds = %194
  %209 = landingpad { ptr, i32 }
          cleanup
  br label %212

210:                                              ; preds = %195
  %211 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #12
  br label %212

212:                                              ; preds = %210, %208
  %.pn86 = phi { ptr, i32 } [ %211, %210 ], [ %209, %208 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %26) #12
  br label %430

213:                                              ; preds = %196
  %214 = landingpad { ptr, i32 }
          cleanup
  br label %217

215:                                              ; preds = %197
  %216 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #12
  br label %217

217:                                              ; preds = %215, %213
  %.pn88 = phi { ptr, i32 } [ %216, %215 ], [ %214, %213 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %28) #12
  br label %430

218:                                              ; preds = %.lr.ph, %286
  %.030157 = phi i32 [ 0, %.lr.ph ], [ %287, %286 ]
  %219 = load ptr, ptr %10, align 8, !tbaa !14
  %220 = load i32, ptr %73, align 4, !tbaa !16
  %221 = sext i32 %220 to i64
  %222 = shl nsw i64 %221, 2
  call void @llvm.memset.p0.i64(ptr align 4 %219, i8 0, i64 %222, i1 false)
  %223 = load ptr, ptr %12, align 8, !tbaa !14
  %224 = load ptr, ptr %10, align 8, !tbaa !14
  %225 = load i32, ptr %73, align 4, !tbaa !16
  %226 = sext i32 %225 to i64
  %227 = shl nsw i64 %226, 2
  %228 = invoke i32 @cudaMemcpy(ptr noundef %223, ptr noundef %224, i64 noundef %227, i32 noundef 1)
          to label %229 unwind label %.loopexit

229:                                              ; preds = %218
  %230 = invoke i32 @cudaDeviceSynchronize()
          to label %231 unwind label %.loopexit

231:                                              ; preds = %229
  %.not118 = icmp eq i32 %228, 0
  br i1 %.not118, label %237, label %232

232:                                              ; preds = %231
  %233 = load ptr, ptr @stderr, align 8, !tbaa !14
  %234 = invoke ptr @cudaGetErrorString(i32 noundef %228)
          to label %235 unwind label %.loopexit.split-lp

235:                                              ; preds = %232
  %236 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %233, ptr noundef nonnull @.str.6, ptr noundef %234, ptr noundef nonnull @.str.5, i32 noundef 236) #14
  call void @exit(i32 noundef -1) #15
  unreachable

.loopexit:                                        ; preds = %218, %229, %254
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %430

.loopexit.split-lp:                               ; preds = %232, %263
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %430

237:                                              ; preds = %231
  %238 = load i32, ptr %199, align 4, !tbaa !17
  %.not119 = icmp slt i32 %.030157, %238
  br i1 %.not119, label %247, label %239

239:                                              ; preds = %237
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %30) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %240 unwind label %242

240:                                              ; preds = %239
  invoke void @_ZN5Timer5startENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %5, ptr noundef nonnull %29)
          to label %241 unwind label %244

241:                                              ; preds = %240
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %30) #12
  br label %247

242:                                              ; preds = %239
  %243 = landingpad { ptr, i32 }
          cleanup
  br label %246

244:                                              ; preds = %240
  %245 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #12
  br label %246

246:                                              ; preds = %244, %242
  %.pn120 = phi { ptr, i32 } [ %245, %244 ], [ %243, %242 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %30) #12
  br label %430

247:                                              ; preds = %241, %237
  %248 = load i32, ptr %63, align 4, !tbaa !11
  %249 = load i32, ptr %66, align 4, !tbaa !12
  %250 = sdiv i32 %248, %249
  store i32 %250, ptr %205, align 4, !tbaa !19
  %251 = icmp sgt i32 %250, 0
  br i1 %251, label %252, label %268

252:                                              ; preds = %247
  %.not122 = icmp sgt i32 %249, %126
  br i1 %.not122, label %253, label %254

253:                                              ; preds = %252
  call void @__assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.5, i32 noundef 248, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #15
  unreachable

254:                                              ; preds = %252
  %255 = load i32, ptr %73, align 4, !tbaa !16
  %256 = load i32, ptr %8, align 4, !tbaa !13
  %257 = load float, ptr %206, align 4, !tbaa !20
  %258 = load ptr, ptr %11, align 8, !tbaa !14
  %259 = load ptr, ptr %12, align 8, !tbaa !14
  %260 = shl i32 %255, 2
  %261 = invoke noundef i32 @_Z21call_Histogram_kerneliiiiifPjS_i(i32 noundef %250, i32 noundef %249, i32 noundef %248, i32 noundef %255, i32 noundef %256, float noundef %257, ptr noundef %258, ptr noundef %259, i32 noundef %260)
          to label %262 unwind label %.loopexit

262:                                              ; preds = %254
  %.not123 = icmp eq i32 %261, 0
  br i1 %.not123, label %268, label %263

263:                                              ; preds = %262
  %264 = load ptr, ptr @stderr, align 8, !tbaa !14
  %265 = invoke ptr @cudaGetErrorString(i32 noundef %261)
          to label %266 unwind label %.loopexit.split-lp

266:                                              ; preds = %263
  %267 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %264, ptr noundef nonnull @.str.6, ptr noundef %265, ptr noundef nonnull @.str.5, i32 noundef 255) #14
  call void @exit(i32 noundef -1) #15
  unreachable

268:                                              ; preds = %262, %247
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %31) #12
  invoke void @_ZNSt6threadC2IRFvPSt6atomicIjEPjiiiiifEJRS3_RS4_RiS9_S9_S9_S9_RfEvEEOT_DpOT0_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull @_Z15run_cpu_threadsPSt6atomicIjEPjiiiiif, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %63, ptr noundef nonnull align 4 dereferenceable(4) %73, ptr noundef nonnull align 4 dereferenceable(4) %207, ptr noundef nonnull align 4 dereferenceable(4) %66, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %206)
          to label %269 unwind label %277

269:                                              ; preds = %268
  %270 = invoke i32 @cudaDeviceSynchronize()
          to label %271 unwind label %279

271:                                              ; preds = %269
  invoke void @_ZNSt6thread4joinEv(ptr noundef nonnull align 8 dereferenceable(8) %31)
          to label %272 unwind label %279

272:                                              ; preds = %271
  %273 = load i32, ptr %199, align 4, !tbaa !17
  %.not124 = icmp slt i32 %.030157, %273
  br i1 %.not124, label %286, label %274

274:                                              ; preds = %272
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %33) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %33)
          to label %275 unwind label %281

275:                                              ; preds = %274
  invoke void @_ZN5Timer4stopENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %5, ptr noundef nonnull %32)
          to label %276 unwind label %283

276:                                              ; preds = %275
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %33) #12
  br label %286

277:                                              ; preds = %268
  %278 = landingpad { ptr, i32 }
          cleanup
  br label %293

279:                                              ; preds = %271, %269
  %280 = landingpad { ptr, i32 }
          cleanup
  br label %292

281:                                              ; preds = %274
  %282 = landingpad { ptr, i32 }
          cleanup
  br label %285

283:                                              ; preds = %275
  %284 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #12
  br label %285

285:                                              ; preds = %283, %281
  %.pn125 = phi { ptr, i32 } [ %284, %283 ], [ %282, %281 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %33) #12
  br label %292

286:                                              ; preds = %276, %272
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #12
  %287 = add nuw nsw i32 %.030157, 1
  %288 = load i32, ptr %199, align 4, !tbaa !17
  %289 = load i32, ptr %200, align 4, !tbaa !18
  %290 = add nsw i32 %289, %288
  %291 = icmp slt i32 %287, %290
  br i1 %291, label %218, label %._crit_edge, !llvm.loop !21

292:                                              ; preds = %285, %279
  %.pn125.pn = phi { ptr, i32 } [ %.pn125, %285 ], [ %280, %279 ]
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #12
  br label %293

293:                                              ; preds = %292, %277
  %.pn125.pn.pn = phi { ptr, i32 } [ %.pn125.pn, %292 ], [ %278, %277 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #12
  br label %430

294:                                              ; preds = %._crit_edge
  %295 = load i32, ptr %200, align 4, !tbaa !18
  invoke void @_ZN5Timer5printENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj(ptr noundef nonnull align 8 dereferenceable(144) %5, ptr noundef nonnull %34, i32 noundef %295)
          to label %296 unwind label %312

296:                                              ; preds = %294
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %35) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %37) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %37)
          to label %297 unwind label %315

297:                                              ; preds = %296
  invoke void @_ZN5Timer5startENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %5, ptr noundef nonnull %36)
          to label %298 unwind label %317

298:                                              ; preds = %297
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %37) #12
  %299 = load ptr, ptr %12, align 8, !tbaa !14
  %300 = load i32, ptr %73, align 4, !tbaa !16
  %301 = sext i32 %300 to i64
  %302 = shl nsw i64 %301, 2
  %303 = invoke i32 @cudaMemcpy(ptr noundef nonnull %78, ptr noundef %299, i64 noundef %302, i32 noundef 2)
          to label %304 unwind label %177

304:                                              ; preds = %298
  %.not94 = icmp eq i32 %303, 0
  br i1 %.not94, label %320, label %305

305:                                              ; preds = %304
  %306 = load ptr, ptr @stderr, align 8, !tbaa !14
  %307 = invoke ptr @cudaGetErrorString(i32 noundef %303)
          to label %308 unwind label %177

308:                                              ; preds = %305
  %309 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %306, ptr noundef nonnull @.str.6, ptr noundef %307, ptr noundef nonnull @.str.5, i32 noundef 278) #14
  call void @exit(i32 noundef -1) #15
  unreachable

310:                                              ; preds = %._crit_edge
  %311 = landingpad { ptr, i32 }
          cleanup
  br label %314

312:                                              ; preds = %294
  %313 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #12
  br label %314

314:                                              ; preds = %312, %310
  %.pn90 = phi { ptr, i32 } [ %313, %312 ], [ %311, %310 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %35) #12
  br label %430

315:                                              ; preds = %296
  %316 = landingpad { ptr, i32 }
          cleanup
  br label %319

317:                                              ; preds = %297
  %318 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #12
  br label %319

319:                                              ; preds = %317, %315
  %.pn92 = phi { ptr, i32 } [ %318, %317 ], [ %316, %315 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %37) #12
  br label %430

320:                                              ; preds = %304
  %321 = invoke i32 @cudaDeviceSynchronize()
          to label %.preheader unwind label %177

.preheader:                                       ; preds = %320
  %322 = load i32, ptr %73, align 4, !tbaa !16
  %.not161 = icmp eq i32 %322, 0
  br i1 %.not161, label %._crit_edge160, label %.lr.ph159

._crit_edge160:                                   ; preds = %.lr.ph159, %.preheader
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %39) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %39)
          to label %332 unwind label %355

.lr.ph159:                                        ; preds = %.preheader, %.lr.ph159
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph159 ], [ 0, %.preheader ]
  %323 = load ptr, ptr %10, align 8, !tbaa !14
  %324 = getelementptr inbounds %"struct.std::atomic", ptr %323, i64 %indvars.iv
  %325 = call noundef i32 @_ZNKSt13__atomic_baseIjEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %324) #12
  %326 = getelementptr inbounds i32, ptr %78, i64 %indvars.iv
  %327 = load i32, ptr %326, align 4, !tbaa !13
  %328 = add i32 %327, %325
  store i32 %328, ptr %326, align 4, !tbaa !13
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %329 = load i32, ptr %73, align 4, !tbaa !16
  %330 = zext i32 %329 to i64
  %331 = icmp ult i64 %indvars.iv.next, %330
  br i1 %331, label %.lr.ph159, label %._crit_edge160, !llvm.loop !23

332:                                              ; preds = %._crit_edge160
  invoke void @_ZN5Timer4stopENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %5, ptr noundef nonnull %38)
          to label %333 unwind label %357

333:                                              ; preds = %332
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %39) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %41) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %41) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef nonnull @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %41)
          to label %334 unwind label %360

334:                                              ; preds = %333
  invoke void @_ZN5Timer5printENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj(ptr noundef nonnull align 8 dereferenceable(144) %5, ptr noundef nonnull %40, i32 noundef 1)
          to label %335 unwind label %362

335:                                              ; preds = %334
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %41) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %41) #12
  %336 = load ptr, ptr %9, align 8, !tbaa !14
  %337 = load i32, ptr %63, align 4, !tbaa !11
  %338 = load i32, ptr %73, align 4, !tbaa !16
  invoke void @_Z6verifyPjS_ii(ptr noundef nonnull %78, ptr noundef %336, i32 noundef %337, i32 noundef %338)
          to label %339 unwind label %177

339:                                              ; preds = %335
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %43) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %43) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %42, ptr noundef nonnull @.str.13, ptr noundef nonnull align 1 dereferenceable(1) %43)
          to label %340 unwind label %365

340:                                              ; preds = %339
  invoke void @_ZN5Timer5startENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %5, ptr noundef nonnull %42)
          to label %341 unwind label %367

341:                                              ; preds = %340
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %43) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %43) #12
  %342 = load ptr, ptr %9, align 8, !tbaa !14
  call void @free(ptr noundef %342) #12
  %343 = load ptr, ptr %10, align 8, !tbaa !14
  call void @free(ptr noundef %343) #12
  call void @free(ptr noundef %78) #12
  %344 = load ptr, ptr %11, align 8, !tbaa !14
  %345 = invoke i32 @cudaFree(ptr noundef %344)
          to label %346 unwind label %177

346:                                              ; preds = %341
  %347 = load ptr, ptr %12, align 8, !tbaa !14
  %348 = invoke i32 @cudaFree(ptr noundef %347)
          to label %349 unwind label %177

349:                                              ; preds = %346
  %.not101 = icmp eq i32 %348, 0
  br i1 %.not101, label %370, label %350

350:                                              ; preds = %349
  %351 = load ptr, ptr @stderr, align 8, !tbaa !14
  %352 = invoke ptr @cudaGetErrorString(i32 noundef %348)
          to label %353 unwind label %177

353:                                              ; preds = %350
  %354 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %351, ptr noundef nonnull @.str.6, ptr noundef %352, ptr noundef nonnull @.str.5, i32 noundef 307) #14
  call void @exit(i32 noundef -1) #15
  unreachable

355:                                              ; preds = %._crit_edge160
  %356 = landingpad { ptr, i32 }
          cleanup
  br label %359

357:                                              ; preds = %332
  %358 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #12
  br label %359

359:                                              ; preds = %357, %355
  %.pn95 = phi { ptr, i32 } [ %358, %357 ], [ %356, %355 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %39) #12
  br label %430

360:                                              ; preds = %333
  %361 = landingpad { ptr, i32 }
          cleanup
  br label %364

362:                                              ; preds = %334
  %363 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #12
  br label %364

364:                                              ; preds = %362, %360
  %.pn97 = phi { ptr, i32 } [ %363, %362 ], [ %361, %360 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %41) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %41) #12
  br label %430

365:                                              ; preds = %339
  %366 = landingpad { ptr, i32 }
          cleanup
  br label %369

367:                                              ; preds = %340
  %368 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #12
  br label %369

369:                                              ; preds = %367, %365
  %.pn99 = phi { ptr, i32 } [ %368, %367 ], [ %366, %365 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %43) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %43) #12
  br label %430

370:                                              ; preds = %349
  %371 = invoke i32 @cudaDeviceSynchronize()
          to label %372 unwind label %177

372:                                              ; preds = %370
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %45) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %44, ptr noundef nonnull @.str.13, ptr noundef nonnull align 1 dereferenceable(1) %45)
          to label %373 unwind label %390

373:                                              ; preds = %372
  invoke void @_ZN5Timer4stopENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %5, ptr noundef nonnull %44)
          to label %374 unwind label %392

374:                                              ; preds = %373
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %45) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %47) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %47) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %46, ptr noundef nonnull @.str.13, ptr noundef nonnull align 1 dereferenceable(1) %47)
          to label %375 unwind label %395

375:                                              ; preds = %374
  invoke void @_ZN5Timer5printENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj(ptr noundef nonnull align 8 dereferenceable(144) %5, ptr noundef nonnull %46, i32 noundef 1)
          to label %376 unwind label %397

376:                                              ; preds = %375
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %46) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %47) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %47) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %49) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %49) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %48, ptr noundef nonnull @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %49)
          to label %377 unwind label %400

377:                                              ; preds = %376
  invoke void @_ZN5Timer7releaseENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %5, ptr noundef nonnull %48)
          to label %378 unwind label %402

378:                                              ; preds = %377
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %48) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %49) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %49) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %51) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %51) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %50, ptr noundef nonnull @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %51)
          to label %379 unwind label %405

379:                                              ; preds = %378
  invoke void @_ZN5Timer7releaseENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %5, ptr noundef nonnull %50)
          to label %380 unwind label %407

380:                                              ; preds = %379
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %50) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %51) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %51) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %53) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %53) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %52, ptr noundef nonnull @.str.8, ptr noundef nonnull align 1 dereferenceable(1) %53)
          to label %381 unwind label %410

381:                                              ; preds = %380
  invoke void @_ZN5Timer7releaseENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %5, ptr noundef nonnull %52)
          to label %382 unwind label %412

382:                                              ; preds = %381
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %52) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %53) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %53) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %55) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %54, ptr noundef nonnull @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %55)
          to label %383 unwind label %415

383:                                              ; preds = %382
  invoke void @_ZN5Timer7releaseENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %5, ptr noundef nonnull %54)
          to label %384 unwind label %417

384:                                              ; preds = %383
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %54) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %55) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %57) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %57) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %56, ptr noundef nonnull @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %57)
          to label %385 unwind label %420

385:                                              ; preds = %384
  invoke void @_ZN5Timer7releaseENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %5, ptr noundef nonnull %56)
          to label %386 unwind label %422

386:                                              ; preds = %385
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %56) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %57) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %57) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %59) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %59) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %58, ptr noundef nonnull @.str.13, ptr noundef nonnull align 1 dereferenceable(1) %59)
          to label %387 unwind label %425

387:                                              ; preds = %386
  invoke void @_ZN5Timer7releaseENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(144) %5, ptr noundef nonnull %58)
          to label %388 unwind label %427

388:                                              ; preds = %387
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %58) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %59) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %59) #12
  %389 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #12
  call void @_ZN5TimerD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %5) #12
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %5) #12
  call void @llvm.lifetime.end.p0(i64 728, ptr nonnull %4) #12
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %3) #12
  ret i32 0

390:                                              ; preds = %372
  %391 = landingpad { ptr, i32 }
          cleanup
  br label %394

392:                                              ; preds = %373
  %393 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #12
  br label %394

394:                                              ; preds = %392, %390
  %.pn102 = phi { ptr, i32 } [ %393, %392 ], [ %391, %390 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %45) #12
  br label %430

395:                                              ; preds = %374
  %396 = landingpad { ptr, i32 }
          cleanup
  br label %399

397:                                              ; preds = %375
  %398 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %46) #12
  br label %399

399:                                              ; preds = %397, %395
  %.pn104 = phi { ptr, i32 } [ %398, %397 ], [ %396, %395 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %47) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %47) #12
  br label %430

400:                                              ; preds = %376
  %401 = landingpad { ptr, i32 }
          cleanup
  br label %404

402:                                              ; preds = %377
  %403 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %48) #12
  br label %404

404:                                              ; preds = %402, %400
  %.pn106 = phi { ptr, i32 } [ %403, %402 ], [ %401, %400 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %49) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %49) #12
  br label %430

405:                                              ; preds = %378
  %406 = landingpad { ptr, i32 }
          cleanup
  br label %409

407:                                              ; preds = %379
  %408 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %50) #12
  br label %409

409:                                              ; preds = %407, %405
  %.pn108 = phi { ptr, i32 } [ %408, %407 ], [ %406, %405 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %51) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %51) #12
  br label %430

410:                                              ; preds = %380
  %411 = landingpad { ptr, i32 }
          cleanup
  br label %414

412:                                              ; preds = %381
  %413 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %52) #12
  br label %414

414:                                              ; preds = %412, %410
  %.pn110 = phi { ptr, i32 } [ %413, %412 ], [ %411, %410 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %53) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %53) #12
  br label %430

415:                                              ; preds = %382
  %416 = landingpad { ptr, i32 }
          cleanup
  br label %419

417:                                              ; preds = %383
  %418 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %54) #12
  br label %419

419:                                              ; preds = %417, %415
  %.pn112 = phi { ptr, i32 } [ %418, %417 ], [ %416, %415 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %55) #12
  br label %430

420:                                              ; preds = %384
  %421 = landingpad { ptr, i32 }
          cleanup
  br label %424

422:                                              ; preds = %385
  %423 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %56) #12
  br label %424

424:                                              ; preds = %422, %420
  %.pn114 = phi { ptr, i32 } [ %423, %422 ], [ %421, %420 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %57) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %57) #12
  br label %430

425:                                              ; preds = %386
  %426 = landingpad { ptr, i32 }
          cleanup
  br label %429

427:                                              ; preds = %387
  %428 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %58) #12
  br label %429

429:                                              ; preds = %427, %425
  %.pn116 = phi { ptr, i32 } [ %428, %427 ], [ %426, %425 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %59) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %59) #12
  br label %430

430:                                              ; preds = %.loopexit, %.loopexit.split-lp, %177, %183, %188, %193, %212, %217, %314, %319, %359, %364, %369, %394, %399, %404, %409, %414, %419, %424, %429, %293, %246, %176, %171, %166, %98
  %.pn133 = phi { ptr, i32 } [ %99, %98 ], [ %.pn77, %176 ], [ %.pn75, %171 ], [ %.pn73, %166 ], [ %178, %177 ], [ %.pn116, %429 ], [ %.pn114, %424 ], [ %.pn112, %419 ], [ %.pn110, %414 ], [ %.pn108, %409 ], [ %.pn106, %404 ], [ %.pn104, %399 ], [ %.pn102, %394 ], [ %.pn99, %369 ], [ %.pn97, %364 ], [ %.pn95, %359 ], [ %.pn92, %319 ], [ %.pn90, %314 ], [ %.pn88, %217 ], [ %.pn86, %212 ], [ %.pn83, %193 ], [ %.pn81, %188 ], [ %.pn79, %183 ], [ %.pn125.pn.pn, %293 ], [ %.pn120, %246 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #12
  br label %431

431:                                              ; preds = %430, %96
  %.pn133.pn = phi { ptr, i32 } [ %.pn133, %430 ], [ %97, %96 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #12
  br label %432

432:                                              ; preds = %431, %95
  %.pn133.pn.pn = phi { ptr, i32 } [ %.pn133.pn, %431 ], [ %.pn, %95 ]
  call void @_ZN5TimerD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %5) #12
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %5) #12
  call void @llvm.lifetime.end.p0(i64 728, ptr nonnull %4) #12
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %3) #12
  resume { ptr, i32 } %.pn133.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ParamsC2EiPPc(ptr noundef nonnull align 4 dereferenceable(36), i32 noundef, ptr noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9CUDASetupC2Ei(ptr noundef nonnull align 8 dereferenceable(728), i32 noundef) unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #7

declare i32 @cudaMalloc(ptr noundef, i64 noundef) local_unnamed_addr #8

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

declare ptr @cudaGetErrorString(i32 noundef) local_unnamed_addr #8

declare i32 @cudaDeviceSynchronize() local_unnamed_addr #8

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

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #9

declare i32 @cudaMemcpy(ptr noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #8

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

declare noundef i32 @_Z21call_Histogram_kerneliiiiifPjS_i(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #8

declare void @_Z15run_cpu_threadsPSt6atomicIjEPjiiiiif(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef) #8

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

declare void @_ZNSt6thread4joinEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #8

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNKSt13__atomic_baseIjEcvjEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z6verifyPjS_ii(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #10

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #11

declare i32 @cudaFree(ptr noundef) local_unnamed_addr #8

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { 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 #7 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { "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 #9 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #10 = { 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 #11 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #12 = { nounwind }
attributes #13 = { nounwind allocsize(0) }
attributes #14 = { cold nounwind }
attributes #15 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS6Params", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !10, i64 24, !7, i64 28, !7, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!6, !7, i64 28}
!12 = !{!6, !7, i64 4}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!6, !7, i64 32}
!17 = !{!6, !7, i64 16}
!18 = !{!6, !7, i64 20}
!19 = !{!6, !7, i64 8}
!20 = !{!6, !10, i64 24}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}


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