; LLVM IR from NervanaSystems/ngraph :: src/runtime/gpu (gpu_cuda_kernel_builder)

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

%"class.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] }

@.str.26 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.198 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.218 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.219 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.224 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.225 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.226 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.227 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.228 = external hidden unnamed_addr constant [28 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERNS_10CodeWriterES8_RKT_(ptr noundef nonnull align 8 dereferenceable(416), ptr noundef nonnull align 8 dereferenceable(32)) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA33_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416), ptr noundef nonnull align 1 dereferenceable(33)) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA3_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416), ptr noundef nonnull align 1 dereferenceable(3)) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsImEERNS_10CodeWriterES2_RKT_(ptr noundef nonnull align 8 dereferenceable(416), ptr noundef nonnull align 8 dereferenceable(8)) #2

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

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

declare void @_ZN6ngraph7runtime3gpu13GPUKernelArgs19get_input_signatureB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(480)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA14_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416), ptr noundef nonnull align 1 dereferenceable(14)) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA18_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416), ptr noundef nonnull align 1 dereferenceable(18)) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA41_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416), ptr noundef nonnull align 1 dereferenceable(41)) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA26_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416), ptr noundef nonnull align 1 dereferenceable(26)) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA28_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416), ptr noundef nonnull align 1 dereferenceable(28)) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA27_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416), ptr noundef nonnull align 1 dereferenceable(27)) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA55_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416), ptr noundef nonnull align 1 dereferenceable(55)) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ngraph7runtime3gpu17CudaKernelBuilder14get_reshape_opERNS_10CodeWriterERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS1_13GPUKernelArgsERKSt5arrayISA_Lm2EEm(ptr noundef nonnull align 8 dereferenceable(416) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(480) %2, ptr noundef nonnull align 8 dereferenceable(64) %3, i64 noundef %4) #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i64 %4, ptr %10, align 8, !tbaa !9
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA33_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %15, ptr noundef nonnull align 1 dereferenceable(33) @.str.26)
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERNS_10CodeWriterES8_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %16, ptr noundef nonnull align 8 dereferenceable(32) %17)
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #4
  %19 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN6ngraph7runtime3gpu13GPUKernelArgs19get_input_signatureB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr noundef nonnull align 8 dereferenceable(480) %19)
  %20 = invoke noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERNS_10CodeWriterES8_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %18, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %21 unwind label %51

21:                                               ; preds = %5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #4
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN6ngraph10CodeWriter11block_beginEv(ptr noundef nonnull align 8 dereferenceable(416) %22)
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA55_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %23, ptr noundef nonnull align 1 dereferenceable(55) @.str.218)
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA14_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %25, ptr noundef nonnull align 1 dereferenceable(14) @.str.219)
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN6ngraph10CodeWriter11block_beginEv(ptr noundef nonnull align 8 dereferenceable(416) %27)
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA27_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %28, ptr noundef nonnull align 1 dereferenceable(27) @.str.198)
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA26_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %30, ptr noundef nonnull align 1 dereferenceable(26) @.str.224)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %32

32:                                               ; preds = %48, %21
  %33 = load i64, ptr %14, align 8, !tbaa !9
  %34 = load i64, ptr %10, align 8, !tbaa !9
  %35 = sub i64 %34, 1
  %36 = icmp ult i64 %33, %35
  br i1 %36, label %37, label %55

37:                                               ; preds = %32
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA41_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %38, ptr noundef nonnull align 1 dereferenceable(41) @.str.225)
  %40 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsImEERNS_10CodeWriterES2_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %39, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %41 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA18_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %40, ptr noundef nonnull align 1 dereferenceable(18) @.str.226)
  %42 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsImEERNS_10CodeWriterES2_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %41, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %43 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA3_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %42, ptr noundef nonnull align 1 dereferenceable(3) @.str.71)
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA27_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %44, ptr noundef nonnull align 1 dereferenceable(27) @.str.227)
  %46 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsImEERNS_10CodeWriterES2_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %45, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %47 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA3_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %46, ptr noundef nonnull align 1 dereferenceable(3) @.str.71)
  br label %48

48:                                               ; preds = %37
  %49 = load i64, ptr %14, align 8, !tbaa !9
  %50 = add i64 %49, 1
  store i64 %50, ptr %14, align 8, !tbaa !9
  br label %32, !llvm.loop !11

51:                                               ; preds = %5
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %12, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #4
  br label %66

55:                                               ; preds = %32
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA41_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %56, ptr noundef nonnull align 1 dereferenceable(41) @.str.225)
  %58 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsImEERNS_10CodeWriterES2_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %57, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %59 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA18_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %58, ptr noundef nonnull align 1 dereferenceable(18) @.str.226)
  %60 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsImEERNS_10CodeWriterES2_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %59, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %61 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA3_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %60, ptr noundef nonnull align 1 dereferenceable(3) @.str.71)
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA28_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %62, ptr noundef nonnull align 1 dereferenceable(28) @.str.228)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN6ngraph10CodeWriter9block_endEv(ptr noundef nonnull align 8 dereferenceable(416) %64)
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN6ngraph10CodeWriter9block_endEv(ptr noundef nonnull align 8 dereferenceable(416) %65)
  ret void

66:                                               ; preds = %51
  %67 = load ptr, ptr %12, align 8
  %68 = load i32, ptr %13, align 4
  %69 = insertvalue { ptr, i32 } poison, ptr %67, 0
  %70 = insertvalue { ptr, i32 } %69, i32 %68, 1
  resume { ptr, i32 } %70
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.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] }

@.str.26 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.198 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.218 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.219 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.224 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.225 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.226 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.227 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.228 = external hidden unnamed_addr constant [28 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERNS_10CodeWriterES8_RKT_(ptr noundef nonnull align 8 dereferenceable(416), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA33_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416), ptr noundef nonnull align 1 dereferenceable(33)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA3_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416), ptr noundef nonnull align 1 dereferenceable(3)) local_unnamed_addr #2

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

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

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

declare void @_ZN6ngraph7runtime3gpu13GPUKernelArgs19get_input_signatureB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(480)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA14_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416), ptr noundef nonnull align 1 dereferenceable(14)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA18_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416), ptr noundef nonnull align 1 dereferenceable(18)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA41_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416), ptr noundef nonnull align 1 dereferenceable(41)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA26_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416), ptr noundef nonnull align 1 dereferenceable(26)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA28_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416), ptr noundef nonnull align 1 dereferenceable(28)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA27_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416), ptr noundef nonnull align 1 dereferenceable(27)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA55_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416), ptr noundef nonnull align 1 dereferenceable(55)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ngraph7runtime3gpu17CudaKernelBuilder14get_reshape_opERNS_10CodeWriterERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS1_13GPUKernelArgsERKSt5arrayISA_Lm2EEm(ptr noundef nonnull align 8 dereferenceable(416) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(480) %2, ptr nocapture noundef nonnull readnone align 8 dereferenceable(64) %3, i64 noundef %4) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca i64, align 8
  %8 = tail call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA33_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %0, ptr noundef nonnull align 1 dereferenceable(33) @.str.26)
  %9 = tail call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERNS_10CodeWriterES8_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %8, ptr noundef nonnull align 8 dereferenceable(32) %1)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #4
  call void @_ZN6ngraph7runtime3gpu13GPUKernelArgs19get_input_signatureB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull align 8 dereferenceable(480) %2)
  %10 = invoke noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERNS_10CodeWriterES8_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %9, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %11 unwind label %28

11:                                               ; preds = %5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  call void @_ZN6ngraph10CodeWriter11block_beginEv(ptr noundef nonnull align 8 dereferenceable(416) %0)
  %12 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA55_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %0, ptr noundef nonnull align 1 dereferenceable(55) @.str.218)
  %13 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA14_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %0, ptr noundef nonnull align 1 dereferenceable(14) @.str.219)
  call void @_ZN6ngraph10CodeWriter11block_beginEv(ptr noundef nonnull align 8 dereferenceable(416) %0)
  %14 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA27_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %0, ptr noundef nonnull align 1 dereferenceable(27) @.str.198)
  %15 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA26_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %0, ptr noundef nonnull align 1 dereferenceable(26) @.str.224)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %16 = add i64 %4, -1
  store i64 0, ptr %7, align 8, !tbaa !5
  %.not = icmp eq i64 %16, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %11, %.lr.ph
  %17 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA41_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %0, ptr noundef nonnull align 1 dereferenceable(41) @.str.225)
  %18 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsImEERNS_10CodeWriterES2_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %17, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %19 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA18_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %18, ptr noundef nonnull align 1 dereferenceable(18) @.str.226)
  %20 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsImEERNS_10CodeWriterES2_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %19, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %21 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA3_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %20, ptr noundef nonnull align 1 dereferenceable(3) @.str.71)
  %22 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA27_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %0, ptr noundef nonnull align 1 dereferenceable(27) @.str.227)
  %23 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsImEERNS_10CodeWriterES2_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %22, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %24 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA3_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %23, ptr noundef nonnull align 1 dereferenceable(3) @.str.71)
  %25 = load i64, ptr %7, align 8, !tbaa !5
  %26 = add i64 %25, 1
  store i64 %26, ptr %7, align 8, !tbaa !5
  %27 = icmp ult i64 %26, %16
  br i1 %27, label %.lr.ph, label %._crit_edge, !llvm.loop !9

28:                                               ; preds = %5
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  resume { ptr, i32 } %29

._crit_edge:                                      ; preds = %.lr.ph, %11
  %30 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA41_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %0, ptr noundef nonnull align 1 dereferenceable(41) @.str.225)
  %31 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsImEERNS_10CodeWriterES2_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %30, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %32 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA18_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %31, ptr noundef nonnull align 1 dereferenceable(18) @.str.226)
  %33 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsImEERNS_10CodeWriterES2_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %32, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %34 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA3_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %33, ptr noundef nonnull align 1 dereferenceable(3) @.str.71)
  %35 = call noundef nonnull align 8 dereferenceable(416) ptr @_ZN6ngraphlsIA28_cEERNS_10CodeWriterES3_RKT_(ptr noundef nonnull align 8 dereferenceable(416) %0, ptr noundef nonnull align 1 dereferenceable(28) @.str.228)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @_ZN6ngraph10CodeWriter9block_endEv(ptr noundef nonnull align 8 dereferenceable(416) %0)
  call void @_ZN6ngraph10CodeWriter9block_endEv(ptr noundef nonnull align 8 dereferenceable(416) %0)
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass