; LLVM IR from NervanaSystems/ngraph :: src/ngraph/op (gather)

; 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.ngraph::Dimension" = type { %"class.ngraph::Interval" }
%"class.ngraph::Interval" = type { i64, i64 }

@_ZTIN6ngraph12ngraph_errorE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.11 = external hidden unnamed_addr constant [44 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

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNK6ngraph4Node23get_input_partial_shapeEm(ptr noundef nonnull align 8 dereferenceable(680), i64 noundef) #1

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @__cxa_free_exception(ptr)

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZNK6ngraph12PartialShape4rankEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

declare noundef i64 @_ZNK6ngraph9Dimension10get_lengthEv(ptr noundef nonnull align 8 dereferenceable(16)) #1

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

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

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_115evaluate_gatherERKSt10shared_ptrIN6ngraph7runtime10HostTensorEES6_S6_m(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK6ngraph2op2v16Gather8evaluateERKSt6vectorISt10shared_ptrINS_7runtime10HostTensorEESaIS7_EESB_(ptr noundef nonnull align 8 dereferenceable(680) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %"class.ngraph::Dimension", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %12 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !9
  %13 = load ptr, ptr %6, align 8, !tbaa !5
  %14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN6ngraph7runtime10HostTensorEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 2) #5
  %15 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph7runtime10HostTensorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  %16 = load ptr, ptr %15, align 8, !tbaa !11
  %17 = getelementptr inbounds ptr, ptr %16, i64 4
  %18 = load ptr, ptr %17, align 8
  %19 = call noundef nonnull align 4 dereferenceable(4) ptr %18(ptr noundef nonnull align 8 dereferenceable(64) %15)
  %20 = call noundef i32 @_ZNK6ngraph7element4TypecvNS0_6Type_tEEv(ptr noundef nonnull align 4 dereferenceable(4) %19)
  switch i32 %20, label %83 [
    i32 7, label %21
    i32 8, label %29
    i32 9, label %37
    i32 10, label %45
    i32 12, label %52
    i32 13, label %60
    i32 14, label %68
    i32 15, label %76
  ]

21:                                               ; preds = %3
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN6ngraph7runtime10HostTensorEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef 2) #5
  %24 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph7runtime10HostTensorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  %25 = call noundef ptr @_ZN6ngraph7runtime10HostTensor12get_data_ptrILNS_7element6Type_tE7EEEPNS_19element_type_traitsIXT_EE10value_typeEv(ptr noundef nonnull align 8 dereferenceable(96) %24)
  %26 = getelementptr inbounds i8, ptr %25, i64 0
  %27 = load i8, ptr %26, align 1, !tbaa !13
  %28 = sext i8 %27 to i64
  store i64 %28, ptr %7, align 8, !tbaa !9
  br label %90

29:                                               ; preds = %3
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN6ngraph7runtime10HostTensorEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef 2) #5
  %32 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph7runtime10HostTensorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %31) #5
  %33 = call noundef ptr @_ZN6ngraph7runtime10HostTensor12get_data_ptrILNS_7element6Type_tE8EEEPNS_19element_type_traitsIXT_EE10value_typeEv(ptr noundef nonnull align 8 dereferenceable(96) %32)
  %34 = getelementptr inbounds i16, ptr %33, i64 0
  %35 = load i16, ptr %34, align 2, !tbaa !14
  %36 = sext i16 %35 to i64
  store i64 %36, ptr %7, align 8, !tbaa !9
  br label %90

37:                                               ; preds = %3
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN6ngraph7runtime10HostTensorEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef 2) #5
  %40 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph7runtime10HostTensorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %39) #5
  %41 = call noundef ptr @_ZN6ngraph7runtime10HostTensor12get_data_ptrILNS_7element6Type_tE9EEEPNS_19element_type_traitsIXT_EE10value_typeEv(ptr noundef nonnull align 8 dereferenceable(96) %40)
  %42 = getelementptr inbounds i32, ptr %41, i64 0
  %43 = load i32, ptr %42, align 4, !tbaa !16
  %44 = sext i32 %43 to i64
  store i64 %44, ptr %7, align 8, !tbaa !9
  br label %90

45:                                               ; preds = %3
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN6ngraph7runtime10HostTensorEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef 2) #5
  %48 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph7runtime10HostTensorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %47) #5
  %49 = call noundef ptr @_ZN6ngraph7runtime10HostTensor12get_data_ptrILNS_7element6Type_tE10EEEPNS_19element_type_traitsIXT_EE10value_typeEv(ptr noundef nonnull align 8 dereferenceable(96) %48)
  %50 = getelementptr inbounds i64, ptr %49, i64 0
  %51 = load i64, ptr %50, align 8, !tbaa !9
  store i64 %51, ptr %7, align 8, !tbaa !9
  br label %90

52:                                               ; preds = %3
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN6ngraph7runtime10HostTensorEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef 2) #5
  %55 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph7runtime10HostTensorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %54) #5
  %56 = call noundef ptr @_ZN6ngraph7runtime10HostTensor12get_data_ptrILNS_7element6Type_tE12EEEPNS_19element_type_traitsIXT_EE10value_typeEv(ptr noundef nonnull align 8 dereferenceable(96) %55)
  %57 = getelementptr inbounds i8, ptr %56, i64 0
  %58 = load i8, ptr %57, align 1, !tbaa !13
  %59 = zext i8 %58 to i64
  store i64 %59, ptr %7, align 8, !tbaa !9
  br label %90

60:                                               ; preds = %3
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN6ngraph7runtime10HostTensorEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef 2) #5
  %63 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph7runtime10HostTensorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %62) #5
  %64 = call noundef ptr @_ZN6ngraph7runtime10HostTensor12get_data_ptrILNS_7element6Type_tE13EEEPNS_19element_type_traitsIXT_EE10value_typeEv(ptr noundef nonnull align 8 dereferenceable(96) %63)
  %65 = getelementptr inbounds i16, ptr %64, i64 0
  %66 = load i16, ptr %65, align 2, !tbaa !14
  %67 = zext i16 %66 to i64
  store i64 %67, ptr %7, align 8, !tbaa !9
  br label %90

68:                                               ; preds = %3
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN6ngraph7runtime10HostTensorEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef 2) #5
  %71 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph7runtime10HostTensorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %70) #5
  %72 = call noundef ptr @_ZN6ngraph7runtime10HostTensor12get_data_ptrILNS_7element6Type_tE14EEEPNS_19element_type_traitsIXT_EE10value_typeEv(ptr noundef nonnull align 8 dereferenceable(96) %71)
  %73 = getelementptr inbounds i32, ptr %72, i64 0
  %74 = load i32, ptr %73, align 4, !tbaa !16
  %75 = zext i32 %74 to i64
  store i64 %75, ptr %7, align 8, !tbaa !9
  br label %90

76:                                               ; preds = %3
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN6ngraph7runtime10HostTensorEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef 2) #5
  %79 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph7runtime10HostTensorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %78) #5
  %80 = call noundef ptr @_ZN6ngraph7runtime10HostTensor12get_data_ptrILNS_7element6Type_tE15EEEPNS_19element_type_traitsIXT_EE10value_typeEv(ptr noundef nonnull align 8 dereferenceable(96) %79)
  %81 = getelementptr inbounds i64, ptr %80, i64 0
  %82 = load i64, ptr %81, align 8, !tbaa !9
  store i64 %82, ptr %7, align 8, !tbaa !9
  br label %90

83:                                               ; preds = %3
  %84 = call ptr @__cxa_allocate_exception(i64 16) #5
  invoke void @_ZN6ngraph12ngraph_errorC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %84, ptr noundef @.str.11)
          to label %85 unwind label %86

85:                                               ; preds = %83
  call void @__cxa_throw(ptr %84, ptr @_ZTIN6ngraph12ngraph_errorE, ptr @_ZNSt13runtime_errorD2Ev) #6
  unreachable

86:                                               ; preds = %83
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %8, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %9, align 4
  call void @__cxa_free_exception(ptr %84) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %118

90:                                               ; preds = %76, %68, %60, %52, %45, %37, %29, %21
  %91 = load i64, ptr %7, align 8, !tbaa !9
  %92 = icmp slt i64 %91, 0
  br i1 %92, label %93, label %109

93:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  %94 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK6ngraph4Node23get_input_partial_shapeEm(ptr noundef nonnull align 8 dereferenceable(680) %12, i64 noundef 0)
  %95 = call { i64, i64 } @_ZNK6ngraph12PartialShape4rankEv(ptr noundef nonnull align 8 dereferenceable(32) %94)
  %96 = getelementptr inbounds %"class.ngraph::Dimension", ptr %11, i32 0, i32 0
  %97 = getelementptr inbounds { i64, i64 }, ptr %96, i32 0, i32 0
  %98 = extractvalue { i64, i64 } %95, 0
  store i64 %98, ptr %97, align 8
  %99 = getelementptr inbounds { i64, i64 }, ptr %96, i32 0, i32 1
  %100 = extractvalue { i64, i64 } %95, 1
  store i64 %100, ptr %99, align 8
  store ptr %11, ptr %10, align 8, !tbaa !5
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  %102 = call noundef zeroext i1 @_ZNK6ngraph9Dimension9is_staticEv(ptr noundef nonnull align 8 dereferenceable(16) %101)
  br i1 %102, label %103, label %108

103:                                              ; preds = %93
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  %105 = call noundef i64 @_ZNK6ngraph9Dimension10get_lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %104)
  %106 = load i64, ptr %7, align 8, !tbaa !9
  %107 = add nsw i64 %106, %105
  store i64 %107, ptr %7, align 8, !tbaa !9
  br label %108

108:                                              ; preds = %103, %93
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %109

109:                                              ; preds = %108, %90
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN6ngraph7runtime10HostTensorEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %110, i64 noundef 0) #5
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN6ngraph7runtime10HostTensorEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %112, i64 noundef 1) #5
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN6ngraph7runtime10HostTensorEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %114, i64 noundef 0) #5
  %116 = load i64, ptr %7, align 8, !tbaa !9
  %117 = call noundef zeroext i1 @_ZN12_GLOBAL__N_115evaluate_gatherERKSt10shared_ptrIN6ngraph7runtime10HostTensorEES6_S6_m(ptr noundef nonnull align 8 dereferenceable(16) %111, ptr noundef nonnull align 8 dereferenceable(16) %113, ptr noundef nonnull align 8 dereferenceable(16) %115, i64 noundef %116)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  ret i1 %117

118:                                              ; preds = %86
  %119 = load ptr, ptr %8, align 8
  %120 = load i32, ptr %9, align 4
  %121 = insertvalue { ptr, i32 } poison, ptr %119, 0
  %122 = insertvalue { ptr, i32 } %121, i32 %120, 1
  resume { ptr, i32 } %122
}

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

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

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

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

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

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

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

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

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

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

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

!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 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !7, i64 0}


; 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.ngraph::Dimension" = type { %"class.ngraph::Interval" }
%"class.ngraph::Interval" = type { i64, i64 }

@_ZTIN6ngraph12ngraph_errorE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.11 = external hidden unnamed_addr constant [44 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

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNK6ngraph4Node23get_input_partial_shapeEm(ptr noundef nonnull align 8 dereferenceable(680), i64 noundef) local_unnamed_addr #1

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZNK6ngraph12PartialShape4rankEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

declare noundef i64 @_ZNK6ngraph9Dimension10get_lengthEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

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

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

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_115evaluate_gatherERKSt10shared_ptrIN6ngraph7runtime10HostTensorEES6_S6_m(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK6ngraph2op2v16Gather8evaluateERKSt6vectorISt10shared_ptrINS_7runtime10HostTensorEESaIS7_EESB_(ptr noundef nonnull align 8 dereferenceable(680) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.ngraph::Dimension", align 8
  %5 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN6ngraph7runtime10HostTensorEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 2) #5
  %6 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph7runtime10HostTensorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 32
  %9 = load ptr, ptr %8, align 8
  %10 = tail call noundef nonnull align 4 dereferenceable(4) ptr %9(ptr noundef nonnull align 8 dereferenceable(64) %6)
  %11 = tail call noundef i32 @_ZNK6ngraph7element4TypecvNS0_6Type_tEEv(ptr noundef nonnull align 4 dereferenceable(4) %10)
  switch i32 %11, label %58 [
    i32 7, label %12
    i32 8, label %18
    i32 9, label %24
    i32 10, label %30
    i32 12, label %35
    i32 13, label %41
    i32 14, label %47
    i32 15, label %53
  ]

12:                                               ; preds = %3
  %13 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN6ngraph7runtime10HostTensorEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 2) #5
  %14 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph7runtime10HostTensorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  %15 = tail call noundef ptr @_ZN6ngraph7runtime10HostTensor12get_data_ptrILNS_7element6Type_tE7EEEPNS_19element_type_traitsIXT_EE10value_typeEv(ptr noundef nonnull align 8 dereferenceable(96) %14)
  %16 = load i8, ptr %15, align 1, !tbaa !8
  %17 = sext i8 %16 to i64
  br label %63

18:                                               ; preds = %3
  %19 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN6ngraph7runtime10HostTensorEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 2) #5
  %20 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph7runtime10HostTensorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  %21 = tail call noundef ptr @_ZN6ngraph7runtime10HostTensor12get_data_ptrILNS_7element6Type_tE8EEEPNS_19element_type_traitsIXT_EE10value_typeEv(ptr noundef nonnull align 8 dereferenceable(96) %20)
  %22 = load i16, ptr %21, align 2, !tbaa !10
  %23 = sext i16 %22 to i64
  br label %63

24:                                               ; preds = %3
  %25 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN6ngraph7runtime10HostTensorEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 2) #5
  %26 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph7runtime10HostTensorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %25) #5
  %27 = tail call noundef ptr @_ZN6ngraph7runtime10HostTensor12get_data_ptrILNS_7element6Type_tE9EEEPNS_19element_type_traitsIXT_EE10value_typeEv(ptr noundef nonnull align 8 dereferenceable(96) %26)
  %28 = load i32, ptr %27, align 4, !tbaa !12
  %29 = sext i32 %28 to i64
  br label %63

30:                                               ; preds = %3
  %31 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN6ngraph7runtime10HostTensorEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 2) #5
  %32 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph7runtime10HostTensorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %31) #5
  %33 = tail call noundef ptr @_ZN6ngraph7runtime10HostTensor12get_data_ptrILNS_7element6Type_tE10EEEPNS_19element_type_traitsIXT_EE10value_typeEv(ptr noundef nonnull align 8 dereferenceable(96) %32)
  %34 = load i64, ptr %33, align 8, !tbaa !14
  br label %63

35:                                               ; preds = %3
  %36 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN6ngraph7runtime10HostTensorEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 2) #5
  %37 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph7runtime10HostTensorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %36) #5
  %38 = tail call noundef ptr @_ZN6ngraph7runtime10HostTensor12get_data_ptrILNS_7element6Type_tE12EEEPNS_19element_type_traitsIXT_EE10value_typeEv(ptr noundef nonnull align 8 dereferenceable(96) %37)
  %39 = load i8, ptr %38, align 1, !tbaa !8
  %40 = zext i8 %39 to i64
  br label %.thread

41:                                               ; preds = %3
  %42 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN6ngraph7runtime10HostTensorEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 2) #5
  %43 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph7runtime10HostTensorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %42) #5
  %44 = tail call noundef ptr @_ZN6ngraph7runtime10HostTensor12get_data_ptrILNS_7element6Type_tE13EEEPNS_19element_type_traitsIXT_EE10value_typeEv(ptr noundef nonnull align 8 dereferenceable(96) %43)
  %45 = load i16, ptr %44, align 2, !tbaa !10
  %46 = zext i16 %45 to i64
  br label %.thread

47:                                               ; preds = %3
  %48 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN6ngraph7runtime10HostTensorEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 2) #5
  %49 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph7runtime10HostTensorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %48) #5
  %50 = tail call noundef ptr @_ZN6ngraph7runtime10HostTensor12get_data_ptrILNS_7element6Type_tE14EEEPNS_19element_type_traitsIXT_EE10value_typeEv(ptr noundef nonnull align 8 dereferenceable(96) %49)
  %51 = load i32, ptr %50, align 4, !tbaa !12
  %52 = zext i32 %51 to i64
  br label %.thread

53:                                               ; preds = %3
  %54 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN6ngraph7runtime10HostTensorEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 2) #5
  %55 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph7runtime10HostTensorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %54) #5
  %56 = tail call noundef ptr @_ZN6ngraph7runtime10HostTensor12get_data_ptrILNS_7element6Type_tE15EEEPNS_19element_type_traitsIXT_EE10value_typeEv(ptr noundef nonnull align 8 dereferenceable(96) %55)
  %57 = load i64, ptr %56, align 8, !tbaa !14
  br label %63

58:                                               ; preds = %3
  %59 = tail call ptr @__cxa_allocate_exception(i64 16) #5
  invoke void @_ZN6ngraph12ngraph_errorC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %59, ptr noundef nonnull @.str.11)
          to label %60 unwind label %61

60:                                               ; preds = %58
  tail call void @__cxa_throw(ptr nonnull %59, ptr nonnull @_ZTIN6ngraph12ngraph_errorE, ptr nonnull @_ZNSt13runtime_errorD2Ev) #6
  unreachable

61:                                               ; preds = %58
  %62 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_free_exception(ptr %59) #5
  resume { ptr, i32 } %62

63:                                               ; preds = %53, %30, %24, %18, %12
  %.0 = phi i64 [ %57, %53 ], [ %34, %30 ], [ %29, %24 ], [ %23, %18 ], [ %17, %12 ]
  %64 = icmp slt i64 %.0, 0
  br i1 %64, label %65, label %.thread

65:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  %66 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK6ngraph4Node23get_input_partial_shapeEm(ptr noundef nonnull align 8 dereferenceable(680) %0, i64 noundef 0)
  %67 = tail call { i64, i64 } @_ZNK6ngraph12PartialShape4rankEv(ptr noundef nonnull align 8 dereferenceable(32) %66)
  %68 = extractvalue { i64, i64 } %67, 0
  store i64 %68, ptr %4, align 8
  %69 = getelementptr inbounds i8, ptr %4, i64 8
  %70 = extractvalue { i64, i64 } %67, 1
  store i64 %70, ptr %69, align 8
  %71 = call noundef zeroext i1 @_ZNK6ngraph9Dimension9is_staticEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  br i1 %71, label %72, label %75

72:                                               ; preds = %65
  %73 = call noundef i64 @_ZNK6ngraph9Dimension10get_lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %74 = add nsw i64 %73, %.0
  br label %75

75:                                               ; preds = %72, %65
  %.1 = phi i64 [ %74, %72 ], [ %.0, %65 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  br label %.thread

.thread:                                          ; preds = %35, %41, %47, %75, %63
  %.2 = phi i64 [ %.1, %75 ], [ %.0, %63 ], [ %40, %35 ], [ %46, %41 ], [ %52, %47 ]
  %76 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN6ngraph7runtime10HostTensorEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #5
  %77 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN6ngraph7runtime10HostTensorEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 1) #5
  %78 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN6ngraph7runtime10HostTensorEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #5
  %79 = call noundef zeroext i1 @_ZN12_GLOBAL__N_115evaluate_gatherERKSt10shared_ptrIN6ngraph7runtime10HostTensorEES6_S6_m(ptr noundef nonnull align 8 dereferenceable(16) %76, ptr noundef nonnull align 8 dereferenceable(16) %77, ptr noundef nonnull align 8 dereferenceable(16) %78, i64 noundef %.2)
  ret i1 %79
}

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

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

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

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

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

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

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

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

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

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

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

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

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


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