; LLVM IR from microsoft/Multiverso :: Applications/WordEmbedding/src (wordembedding)

; 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.wordembedding::WordEmbedding" = type { float, i64, ptr, ptr, ptr, ptr, %"class.std::unordered_set", %"class.std::unordered_set", i32, ptr }
%"class.std::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.wordembedding::Option" = type <{ ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, i8, i8, [2 x i8], float, [4 x i8], i64, i32, i32, i32, i32, i32, i32, i64, i64, float, [4 x i8] }>

@.str = external hidden unnamed_addr constant [72 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [103 x i8], align 1
@__PRETTY_FUNCTION__._ZN13wordembedding13WordEmbedding13BPOutputLayerEiiPfS1_S1_ = external hidden unnamed_addr constant [83 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13wordembedding13WordEmbedding13BPOutputLayerEiiPfS1_S1_(ptr noundef nonnull align 8 dereferenceable(176) %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #1 align 2 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca float, align 4
  %14 = alloca i32, align 4
  %15 = alloca float, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  %22 = load ptr, ptr %7, align 8
  %23 = load ptr, ptr %10, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %25, label %31

25:                                               ; preds = %6
  %26 = load ptr, ptr %11, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %31

28:                                               ; preds = %25
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br label %31

31:                                               ; preds = %28, %25, %6
  %32 = phi i1 [ false, %25 ], [ false, %6 ], [ %30, %28 ]
  br i1 %32, label %33, label %34

33:                                               ; preds = %31
  br label %36

34:                                               ; preds = %31
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 77, ptr noundef @__PRETTY_FUNCTION__._ZN13wordembedding13WordEmbedding13BPOutputLayerEiiPfS1_S1_) #5
  unreachable

35:                                               ; No predecessors!
  br label %36

36:                                               ; preds = %35, %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store float 0.000000e+00, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %58, %36
  %38 = load i32, ptr %14, align 4, !tbaa !9
  %39 = getelementptr inbounds %"class.wordembedding::WordEmbedding", ptr %22, i32 0, i32 2
  %40 = load ptr, ptr %39, align 8, !tbaa !13
  %41 = getelementptr inbounds %"struct.wordembedding::Option", ptr %40, i32 0, i32 15
  %42 = load i32, ptr %41, align 8, !tbaa !20
  %43 = icmp slt i32 %38, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %61

45:                                               ; preds = %37
  %46 = load ptr, ptr %11, align 8, !tbaa !5
  %47 = load i32, ptr %14, align 4, !tbaa !9
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds float, ptr %46, i64 %48
  %50 = load float, ptr %49, align 4, !tbaa !11
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = load i32, ptr %14, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds float, ptr %51, i64 %53
  %55 = load float, ptr %54, align 4, !tbaa !11
  %56 = load float, ptr %13, align 4, !tbaa !11
  %57 = call float @llvm.fmuladd.f32(float %50, float %55, float %56)
  store float %57, ptr %13, align 4, !tbaa !11
  br label %58

58:                                               ; preds = %45
  %59 = load i32, ptr %14, align 4, !tbaa !9
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %14, align 4, !tbaa !9
  br label %37, !llvm.loop !23

61:                                               ; preds = %44
  %62 = load float, ptr %13, align 4, !tbaa !11
  %63 = fneg float %62
  %64 = fpext float %63 to double
  %65 = call double @exp(double noundef %64) #6
  %66 = fadd double 1.000000e+00, %65
  %67 = fdiv double 1.000000e+00, %66
  %68 = fptrunc double %67 to float
  store float %68, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store float 0.000000e+00, ptr %15, align 4, !tbaa !11
  %69 = getelementptr inbounds %"class.wordembedding::WordEmbedding", ptr %22, i32 0, i32 2
  %70 = load ptr, ptr %69, align 8, !tbaa !13
  %71 = getelementptr inbounds %"struct.wordembedding::Option", ptr %70, i32 0, i32 5
  %72 = load i8, ptr %71, align 8, !tbaa !25, !range !26, !noundef !27
  %73 = trunc i8 %72 to i1
  br i1 %73, label %74, label %80

74:                                               ; preds = %61
  %75 = load i32, ptr %8, align 4, !tbaa !9
  %76 = sub nsw i32 1, %75
  %77 = sitofp i32 %76 to float
  %78 = load float, ptr %13, align 4, !tbaa !11
  %79 = fsub float %77, %78
  store float %79, ptr %15, align 4, !tbaa !11
  br label %80

80:                                               ; preds = %74, %61
  %81 = getelementptr inbounds %"class.wordembedding::WordEmbedding", ptr %22, i32 0, i32 2
  %82 = load ptr, ptr %81, align 8, !tbaa !13
  %83 = getelementptr inbounds %"struct.wordembedding::Option", ptr %82, i32 0, i32 18
  %84 = load i32, ptr %83, align 4, !tbaa !28
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %86, label %91

86:                                               ; preds = %80
  %87 = load i32, ptr %8, align 4, !tbaa !9
  %88 = sitofp i32 %87 to float
  %89 = load float, ptr %13, align 4, !tbaa !11
  %90 = fsub float %88, %89
  store float %90, ptr %15, align 4, !tbaa !11
  br label %91

91:                                               ; preds = %86, %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %113, %91
  %93 = load i32, ptr %16, align 4, !tbaa !9
  %94 = getelementptr inbounds %"class.wordembedding::WordEmbedding", ptr %22, i32 0, i32 2
  %95 = load ptr, ptr %94, align 8, !tbaa !13
  %96 = getelementptr inbounds %"struct.wordembedding::Option", ptr %95, i32 0, i32 15
  %97 = load i32, ptr %96, align 8, !tbaa !20
  %98 = icmp slt i32 %93, %97
  br i1 %98, label %100, label %99

99:                                               ; preds = %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %116

100:                                              ; preds = %92
  %101 = load float, ptr %15, align 4, !tbaa !11
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  %103 = load i32, ptr %16, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds float, ptr %102, i64 %104
  %106 = load float, ptr %105, align 4, !tbaa !11
  %107 = load ptr, ptr %12, align 8, !tbaa !5
  %108 = load i32, ptr %16, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds float, ptr %107, i64 %109
  %111 = load float, ptr %110, align 4, !tbaa !11
  %112 = call float @llvm.fmuladd.f32(float %101, float %106, float %111)
  store float %112, ptr %110, align 4, !tbaa !11
  br label %113

113:                                              ; preds = %100
  %114 = load i32, ptr %16, align 4, !tbaa !9
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %16, align 4, !tbaa !9
  br label %92, !llvm.loop !29

116:                                              ; preds = %99
  %117 = getelementptr inbounds %"class.wordembedding::WordEmbedding", ptr %22, i32 0, i32 2
  %118 = load ptr, ptr %117, align 8, !tbaa !13
  %119 = getelementptr inbounds %"struct.wordembedding::Option", ptr %118, i32 0, i32 9
  %120 = load i8, ptr %119, align 4, !tbaa !30, !range !26, !noundef !27
  %121 = trunc i8 %120 to i1
  br i1 %121, label %122, label %191

122:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %123 = load i32, ptr %9, align 4, !tbaa !9
  %124 = call noundef ptr @_ZN13wordembedding13WordEmbedding17GetSumGradient2EOEi(ptr noundef nonnull align 8 dereferenceable(176) %22, i32 noundef %123)
  store ptr %124, ptr %17, align 8, !tbaa !5
  %125 = load ptr, ptr %17, align 8, !tbaa !5
  %126 = icmp ne ptr %125, null
  br i1 %126, label %127, label %128

127:                                              ; preds = %122
  br label %130

128:                                              ; preds = %122
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 101, ptr noundef @__PRETTY_FUNCTION__._ZN13wordembedding13WordEmbedding13BPOutputLayerEiiPfS1_S1_) #5
  unreachable

129:                                              ; No predecessors!
  br label %130

130:                                              ; preds = %129, %127
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %131

131:                                              ; preds = %187, %130
  %132 = load i32, ptr %18, align 4, !tbaa !9
  %133 = getelementptr inbounds %"class.wordembedding::WordEmbedding", ptr %22, i32 0, i32 2
  %134 = load ptr, ptr %133, align 8, !tbaa !13
  %135 = getelementptr inbounds %"struct.wordembedding::Option", ptr %134, i32 0, i32 15
  %136 = load i32, ptr %135, align 8, !tbaa !20
  %137 = icmp slt i32 %132, %136
  br i1 %137, label %139, label %138

138:                                              ; preds = %131
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %190

139:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %140 = load float, ptr %15, align 4, !tbaa !11
  %141 = load ptr, ptr %11, align 8, !tbaa !5
  %142 = load i32, ptr %18, align 4, !tbaa !9
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds float, ptr %141, i64 %143
  %145 = load float, ptr %144, align 4, !tbaa !11
  %146 = fmul float %140, %145
  store float %146, ptr %19, align 4, !tbaa !11
  %147 = load float, ptr %19, align 4, !tbaa !11
  %148 = load float, ptr %19, align 4, !tbaa !11
  %149 = load ptr, ptr %17, align 8, !tbaa !5
  %150 = load i32, ptr %18, align 4, !tbaa !9
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds float, ptr %149, i64 %151
  %153 = load float, ptr %152, align 4, !tbaa !11
  %154 = call float @llvm.fmuladd.f32(float %147, float %148, float %153)
  store float %154, ptr %152, align 4, !tbaa !11
  %155 = load ptr, ptr %17, align 8, !tbaa !5
  %156 = load i32, ptr %18, align 4, !tbaa !9
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds float, ptr %155, i64 %157
  %159 = load float, ptr %158, align 4, !tbaa !11
  %160 = fpext float %159 to double
  %161 = fcmp ogt double %160, 1.000000e-10
  br i1 %161, label %162, label %186

162:                                              ; preds = %139
  %163 = load float, ptr %19, align 4, !tbaa !11
  %164 = getelementptr inbounds %"class.wordembedding::WordEmbedding", ptr %22, i32 0, i32 2
  %165 = load ptr, ptr %164, align 8, !tbaa !13
  %166 = getelementptr inbounds %"struct.wordembedding::Option", ptr %165, i32 0, i32 23
  %167 = load float, ptr %166, align 8, !tbaa !31
  %168 = fmul float %163, %167
  %169 = fpext float %168 to double
  %170 = load ptr, ptr %17, align 8, !tbaa !5
  %171 = load i32, ptr %18, align 4, !tbaa !9
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds float, ptr %170, i64 %172
  %174 = load float, ptr %173, align 4, !tbaa !11
  %175 = fpext float %174 to double
  %176 = call double @sqrt(double noundef %175) #6
  %177 = fdiv double %169, %176
  %178 = load ptr, ptr %10, align 8, !tbaa !5
  %179 = load i32, ptr %18, align 4, !tbaa !9
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds float, ptr %178, i64 %180
  %182 = load float, ptr %181, align 4, !tbaa !11
  %183 = fpext float %182 to double
  %184 = fadd double %183, %177
  %185 = fptrunc double %184 to float
  store float %185, ptr %181, align 4, !tbaa !11
  br label %186

186:                                              ; preds = %162, %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %187

187:                                              ; preds = %186
  %188 = load i32, ptr %18, align 4, !tbaa !9
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %18, align 4, !tbaa !9
  br label %131, !llvm.loop !32

190:                                              ; preds = %138
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %221

191:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %192 = load float, ptr %15, align 4, !tbaa !11
  %193 = getelementptr inbounds %"class.wordembedding::WordEmbedding", ptr %22, i32 0, i32 0
  %194 = load float, ptr %193, align 8, !tbaa !33
  %195 = fmul float %192, %194
  store float %195, ptr %20, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %196

196:                                              ; preds = %217, %191
  %197 = load i32, ptr %21, align 4, !tbaa !9
  %198 = getelementptr inbounds %"class.wordembedding::WordEmbedding", ptr %22, i32 0, i32 2
  %199 = load ptr, ptr %198, align 8, !tbaa !13
  %200 = getelementptr inbounds %"struct.wordembedding::Option", ptr %199, i32 0, i32 15
  %201 = load i32, ptr %200, align 8, !tbaa !20
  %202 = icmp slt i32 %197, %201
  br i1 %202, label %204, label %203

203:                                              ; preds = %196
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %220

204:                                              ; preds = %196
  %205 = load float, ptr %20, align 4, !tbaa !11
  %206 = load ptr, ptr %11, align 8, !tbaa !5
  %207 = load i32, ptr %21, align 4, !tbaa !9
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds float, ptr %206, i64 %208
  %210 = load float, ptr %209, align 4, !tbaa !11
  %211 = load ptr, ptr %10, align 8, !tbaa !5
  %212 = load i32, ptr %21, align 4, !tbaa !9
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds float, ptr %211, i64 %213
  %215 = load float, ptr %214, align 4, !tbaa !11
  %216 = call float @llvm.fmuladd.f32(float %205, float %210, float %215)
  store float %216, ptr %214, align 4, !tbaa !11
  br label %217

217:                                              ; preds = %204
  %218 = load i32, ptr %21, align 4, !tbaa !9
  %219 = add nsw i32 %218, 1
  store i32 %219, ptr %21, align 4, !tbaa !9
  br label %196, !llvm.loop !34

220:                                              ; preds = %203
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %221

221:                                              ; preds = %220, %190
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  ret void
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

; Function Attrs: nounwind
declare double @exp(double noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN13wordembedding13WordEmbedding17GetSumGradient2EOEi(ptr noundef nonnull align 8 dereferenceable(176), i32 noundef) #1 align 2

; Function Attrs: nounwind
declare double @sqrt(double noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { noreturn nounwind }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !6, i64 16}
!14 = !{!"_ZTSN13wordembedding13WordEmbeddingE", !12, i64 0, !15, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !16, i64 48, !16, i64 104, !10, i64 160, !6, i64 168}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE", !17, i64 0}
!17 = !{!"_ZTSSt10_HashtableIiiSaIiENSt8__detail9_IdentityESt8equal_toIiESt4hashIiENS1_18_Mod_range_hashingENS1_20_Default_ranged_hashENS1_20_Prime_rehash_policyENS1_17_Hashtable_traitsILb0ELb1ELb1EEEE", !6, i64 0, !15, i64 8, !18, i64 16, !15, i64 24, !19, i64 32, !6, i64 48}
!18 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!19 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !12, i64 0, !15, i64 8}
!20 = !{!21, !10, i64 64}
!21 = !{!"_ZTSN13wordembedding6OptionE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !22, i64 40, !22, i64 41, !22, i64 42, !22, i64 43, !22, i64 44, !22, i64 45, !12, i64 48, !15, i64 56, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !15, i64 88, !15, i64 96, !12, i64 104}
!22 = !{!"bool", !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!21, !22, i64 40}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!21, !10, i64 76}
!29 = distinct !{!29, !24}
!30 = !{!21, !22, i64 44}
!31 = !{!21, !12, i64 104}
!32 = distinct !{!32, !24}
!33 = !{!14, !12, i64 0}
!34 = distinct !{!34, !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"

@.str = external hidden unnamed_addr constant [72 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [103 x i8], align 1
@__PRETTY_FUNCTION__._ZN13wordembedding13WordEmbedding13BPOutputLayerEiiPfS1_S1_ = external hidden unnamed_addr constant [83 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13wordembedding13WordEmbedding13BPOutputLayerEiiPfS1_S1_(ptr noundef nonnull align 8 dereferenceable(176) %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef readonly %4, ptr noundef %5) local_unnamed_addr #0 align 2 {
  %7 = icmp ne ptr %3, null
  %8 = icmp ne ptr %4, null
  %or.cond = and i1 %7, %8
  %9 = icmp ne ptr %5, null
  %or.cond3 = and i1 %or.cond, %9
  br i1 %or.cond3, label %.preheader63, label %.critedge

.preheader63:                                     ; preds = %6
  %10 = getelementptr inbounds i8, ptr %0, i64 16
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %11, i64 64
  %13 = load i32, ptr %12, align 8, !tbaa !17
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader63
  %wide.trip.count = zext nneg i32 %13 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %15 = icmp ult i32 %13, 4
  br i1 %15, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %.lr.ph

.critedge:                                        ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 77, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN13wordembedding13WordEmbedding13BPOutputLayerEiiPfS1_S1_) #5
  unreachable

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa.ph = phi float [ poison, %.lr.ph.preheader ], [ %75, %.lr.ph ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %.05166.unr = phi float [ 0.000000e+00, %.lr.ph.preheader ], [ %75, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %._crit_edge.loopexit.unr-lcssa ]
  %.05166.epil = phi float [ %20, %.lr.ph.epil ], [ %.05166.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %16 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.epil
  %17 = load float, ptr %16, align 4, !tbaa !20
  %18 = getelementptr inbounds float, ptr %3, i64 %indvars.iv.epil
  %19 = load float, ptr %18, align 4, !tbaa !20
  %20 = tail call float @llvm.fmuladd.f32(float %17, float %19, float %.05166.epil)
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !21

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil, %.preheader63
  %.051.lcssa = phi float [ 0.000000e+00, %.preheader63 ], [ %.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %20, %.lr.ph.epil ]
  %21 = fneg float %.051.lcssa
  %22 = fpext float %21 to double
  %23 = tail call double @exp(double noundef %22) #6
  %24 = fadd double %23, 1.000000e+00
  %25 = fdiv double 1.000000e+00, %24
  %26 = fptrunc double %25 to float
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i64 40
  %29 = load i8, ptr %28, align 8, !tbaa !23, !range !24, !noundef !25
  %30 = trunc nuw i8 %29 to i1
  %31 = sub nsw i32 1, %1
  %32 = sitofp i32 %31 to float
  %33 = fsub float %32, %26
  %.054 = select i1 %30, float %33, float 0.000000e+00
  %34 = getelementptr inbounds i8, ptr %27, i64 76
  %35 = load i32, ptr %34, align 4, !tbaa !26
  %.not = icmp eq i32 %35, 0
  %36 = sitofp i32 %1 to float
  %37 = fsub float %36, %26
  %.1 = select i1 %.not, float %.054, float %37
  %38 = getelementptr inbounds i8, ptr %27, i64 64
  %39 = load i32, ptr %38, align 8, !tbaa !17
  %40 = icmp sgt i32 %39, 0
  br i1 %40, label %.lr.ph69.preheader, label %._crit_edge70.thread

.lr.ph69.preheader:                               ; preds = %._crit_edge
  %wide.trip.count82 = zext nneg i32 %39 to i64
  %min.iters.check = icmp ult i32 %39, 8
  br i1 %min.iters.check, label %.lr.ph69.preheader123, label %vector.memcheck

.lr.ph69.preheader123:                            ; preds = %middle.block, %vector.memcheck, %.lr.ph69.preheader
  %indvars.iv79.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph69.preheader ], [ %n.vec, %middle.block ]
  %xtraiter125 = and i64 %wide.trip.count82, 1
  %lcmp.mod126.not = icmp eq i64 %xtraiter125, 0
  br i1 %lcmp.mod126.not, label %.lr.ph69.prol.loopexit, label %.lr.ph69.prol

.lr.ph69.prol:                                    ; preds = %.lr.ph69.preheader123
  %41 = getelementptr inbounds float, ptr %3, i64 %indvars.iv79.ph
  %42 = load float, ptr %41, align 4, !tbaa !20
  %43 = getelementptr inbounds float, ptr %5, i64 %indvars.iv79.ph
  %44 = load float, ptr %43, align 4, !tbaa !20
  %45 = tail call float @llvm.fmuladd.f32(float %.1, float %42, float %44)
  store float %45, ptr %43, align 4, !tbaa !20
  %indvars.iv.next80.prol = or disjoint i64 %indvars.iv79.ph, 1
  br label %.lr.ph69.prol.loopexit

.lr.ph69.prol.loopexit:                           ; preds = %.lr.ph69.prol, %.lr.ph69.preheader123
  %indvars.iv79.unr = phi i64 [ %indvars.iv79.ph, %.lr.ph69.preheader123 ], [ %indvars.iv.next80.prol, %.lr.ph69.prol ]
  %46 = add nsw i64 %wide.trip.count82, -1
  %47 = icmp eq i64 %indvars.iv79.ph, %46
  br i1 %47, label %._crit_edge70, label %.lr.ph69

vector.memcheck:                                  ; preds = %.lr.ph69.preheader
  %48 = shl nuw nsw i64 %wide.trip.count82, 2
  %scevgep = getelementptr i8, ptr %5, i64 %48
  %scevgep94 = getelementptr i8, ptr %3, i64 %48
  %bound0 = icmp ugt ptr %scevgep94, %5
  %bound1 = icmp ugt ptr %scevgep, %3
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph69.preheader123, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count82, 2147483640
  %broadcast.splatinsert = insertelement <4 x float> poison, float %.1, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %49 = getelementptr inbounds float, ptr %3, i64 %index
  %50 = getelementptr inbounds i8, ptr %49, i64 16
  %wide.load = load <4 x float>, ptr %49, align 4, !tbaa !20, !alias.scope !27
  %wide.load95 = load <4 x float>, ptr %50, align 4, !tbaa !20, !alias.scope !27
  %51 = getelementptr inbounds float, ptr %5, i64 %index
  %52 = getelementptr inbounds i8, ptr %51, i64 16
  %wide.load96 = load <4 x float>, ptr %51, align 4, !tbaa !20, !alias.scope !30, !noalias !27
  %wide.load97 = load <4 x float>, ptr %52, align 4, !tbaa !20, !alias.scope !30, !noalias !27
  %53 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %broadcast.splat, <4 x float> %wide.load, <4 x float> %wide.load96)
  %54 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %broadcast.splat, <4 x float> %wide.load95, <4 x float> %wide.load97)
  store <4 x float> %53, ptr %51, align 4, !tbaa !20, !alias.scope !30, !noalias !27
  store <4 x float> %54, ptr %52, align 4, !tbaa !20, !alias.scope !30, !noalias !27
  %index.next = add nuw i64 %index, 8
  %55 = icmp eq i64 %index.next, %n.vec
  br i1 %55, label %middle.block, label %vector.body, !llvm.loop !32

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count82
  br i1 %cmp.n, label %._crit_edge70, label %.lr.ph69.preheader123

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %.05166 = phi float [ 0.000000e+00, %.lr.ph.preheader.new ], [ %75, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %56 = getelementptr inbounds float, ptr %4, i64 %indvars.iv
  %57 = load float, ptr %56, align 4, !tbaa !20
  %58 = getelementptr inbounds float, ptr %3, i64 %indvars.iv
  %59 = load float, ptr %58, align 4, !tbaa !20
  %60 = tail call float @llvm.fmuladd.f32(float %57, float %59, float %.05166)
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %61 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next
  %62 = load float, ptr %61, align 4, !tbaa !20
  %63 = getelementptr inbounds float, ptr %3, i64 %indvars.iv.next
  %64 = load float, ptr %63, align 4, !tbaa !20
  %65 = tail call float @llvm.fmuladd.f32(float %62, float %64, float %60)
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %66 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next.1
  %67 = load float, ptr %66, align 4, !tbaa !20
  %68 = getelementptr inbounds float, ptr %3, i64 %indvars.iv.next.1
  %69 = load float, ptr %68, align 4, !tbaa !20
  %70 = tail call float @llvm.fmuladd.f32(float %67, float %69, float %65)
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %71 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next.2
  %72 = load float, ptr %71, align 4, !tbaa !20
  %73 = getelementptr inbounds float, ptr %3, i64 %indvars.iv.next.2
  %74 = load float, ptr %73, align 4, !tbaa !20
  %75 = tail call float @llvm.fmuladd.f32(float %72, float %74, float %70)
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !36

._crit_edge70:                                    ; preds = %.lr.ph69.prol.loopexit, %.lr.ph69, %middle.block
  %76 = getelementptr inbounds i8, ptr %27, i64 44
  %77 = load i8, ptr %76, align 4, !tbaa !37, !range !24, !noundef !25
  %78 = trunc nuw i8 %77 to i1
  br i1 %78, label %92, label %126

._crit_edge70.thread:                             ; preds = %._crit_edge
  %79 = getelementptr inbounds i8, ptr %27, i64 44
  %80 = load i8, ptr %79, align 4, !tbaa !37, !range !24, !noundef !25
  %81 = trunc nuw i8 %80 to i1
  br i1 %81, label %92, label %.loopexit

.lr.ph69:                                         ; preds = %.lr.ph69.prol.loopexit, %.lr.ph69
  %indvars.iv79 = phi i64 [ %indvars.iv.next80.1, %.lr.ph69 ], [ %indvars.iv79.unr, %.lr.ph69.prol.loopexit ]
  %82 = getelementptr inbounds float, ptr %3, i64 %indvars.iv79
  %83 = load float, ptr %82, align 4, !tbaa !20
  %84 = getelementptr inbounds float, ptr %5, i64 %indvars.iv79
  %85 = load float, ptr %84, align 4, !tbaa !20
  %86 = tail call float @llvm.fmuladd.f32(float %.1, float %83, float %85)
  store float %86, ptr %84, align 4, !tbaa !20
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 1
  %87 = getelementptr inbounds float, ptr %3, i64 %indvars.iv.next80
  %88 = load float, ptr %87, align 4, !tbaa !20
  %89 = getelementptr inbounds float, ptr %5, i64 %indvars.iv.next80
  %90 = load float, ptr %89, align 4, !tbaa !20
  %91 = tail call float @llvm.fmuladd.f32(float %.1, float %88, float %90)
  store float %91, ptr %89, align 4, !tbaa !20
  %indvars.iv.next80.1 = add nuw nsw i64 %indvars.iv79, 2
  %exitcond83.not.1 = icmp eq i64 %indvars.iv.next80.1, %wide.trip.count82
  br i1 %exitcond83.not.1, label %._crit_edge70, label %.lr.ph69, !llvm.loop !38

92:                                               ; preds = %._crit_edge70.thread, %._crit_edge70
  %93 = tail call noundef ptr @_ZN13wordembedding13WordEmbedding17GetSumGradient2EOEi(ptr noundef nonnull align 8 dereferenceable(176) %0, i32 noundef %2)
  %.not61 = icmp eq ptr %93, null
  br i1 %.not61, label %98, label %.preheader

.preheader:                                       ; preds = %92
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = getelementptr inbounds i8, ptr %94, i64 64
  %96 = load i32, ptr %95, align 8, !tbaa !17
  %97 = icmp sgt i32 %96, 0
  br i1 %97, label %.lr.ph76, label %.loopexit

98:                                               ; preds = %92
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 101, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN13wordembedding13WordEmbedding13BPOutputLayerEiiPfS1_S1_) #5
  unreachable

.lr.ph76:                                         ; preds = %.preheader, %120
  %99 = phi ptr [ %121, %120 ], [ %94, %.preheader ]
  %indvars.iv89 = phi i64 [ %indvars.iv.next90, %120 ], [ 0, %.preheader ]
  %100 = getelementptr inbounds float, ptr %4, i64 %indvars.iv89
  %101 = load float, ptr %100, align 4, !tbaa !20
  %102 = fmul float %.1, %101
  %103 = getelementptr inbounds float, ptr %93, i64 %indvars.iv89
  %104 = load float, ptr %103, align 4, !tbaa !20
  %105 = tail call float @llvm.fmuladd.f32(float %102, float %102, float %104)
  store float %105, ptr %103, align 4, !tbaa !20
  %106 = fpext float %105 to double
  %107 = fcmp ogt double %106, 1.000000e-10
  br i1 %107, label %108, label %120

108:                                              ; preds = %.lr.ph76
  %109 = getelementptr inbounds i8, ptr %99, i64 104
  %110 = load float, ptr %109, align 8, !tbaa !39
  %111 = fmul float %102, %110
  %112 = fpext float %111 to double
  %113 = tail call double @sqrt(double noundef %106) #6
  %114 = fdiv double %112, %113
  %115 = getelementptr inbounds float, ptr %3, i64 %indvars.iv89
  %116 = load float, ptr %115, align 4, !tbaa !20
  %117 = fpext float %116 to double
  %118 = fadd double %114, %117
  %119 = fptrunc double %118 to float
  store float %119, ptr %115, align 4, !tbaa !20
  %.pre = load ptr, ptr %10, align 8, !tbaa !5
  br label %120

120:                                              ; preds = %108, %.lr.ph76
  %121 = phi ptr [ %.pre, %108 ], [ %99, %.lr.ph76 ]
  %indvars.iv.next90 = add nuw nsw i64 %indvars.iv89, 1
  %122 = getelementptr inbounds i8, ptr %121, i64 64
  %123 = load i32, ptr %122, align 8, !tbaa !17
  %124 = sext i32 %123 to i64
  %125 = icmp slt i64 %indvars.iv.next90, %124
  br i1 %125, label %.lr.ph76, label %.loopexit, !llvm.loop !40

126:                                              ; preds = %._crit_edge70
  %127 = load float, ptr %0, align 8, !tbaa !41
  %128 = fmul float %.1, %127
  br i1 %40, label %.lr.ph74.preheader, label %.loopexit

.lr.ph74.preheader:                               ; preds = %126
  %wide.trip.count87 = zext nneg i32 %39 to i64
  %min.iters.check106 = icmp ult i32 %39, 8
  br i1 %min.iters.check106, label %.lr.ph74.preheader121, label %vector.memcheck98

vector.memcheck98:                                ; preds = %.lr.ph74.preheader
  %129 = shl nuw nsw i64 %wide.trip.count82, 2
  %scevgep99 = getelementptr i8, ptr %3, i64 %129
  %scevgep100 = getelementptr i8, ptr %4, i64 %129
  %bound0101 = icmp ugt ptr %scevgep100, %3
  %bound1102 = icmp ugt ptr %scevgep99, %4
  %found.conflict103 = and i1 %bound0101, %bound1102
  br i1 %found.conflict103, label %.lr.ph74.preheader121, label %vector.ph107

vector.ph107:                                     ; preds = %vector.memcheck98
  %n.vec109 = and i64 %wide.trip.count82, 2147483640
  %broadcast.splatinsert117 = insertelement <4 x float> poison, float %128, i64 0
  %broadcast.splat118 = shufflevector <4 x float> %broadcast.splatinsert117, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body111

vector.body111:                                   ; preds = %vector.body111, %vector.ph107
  %index112 = phi i64 [ 0, %vector.ph107 ], [ %index.next119, %vector.body111 ]
  %130 = getelementptr inbounds float, ptr %4, i64 %index112
  %131 = getelementptr inbounds i8, ptr %130, i64 16
  %wide.load113 = load <4 x float>, ptr %130, align 4, !tbaa !20, !alias.scope !42
  %wide.load114 = load <4 x float>, ptr %131, align 4, !tbaa !20, !alias.scope !42
  %132 = getelementptr inbounds float, ptr %3, i64 %index112
  %133 = getelementptr inbounds i8, ptr %132, i64 16
  %wide.load115 = load <4 x float>, ptr %132, align 4, !tbaa !20, !alias.scope !45, !noalias !42
  %wide.load116 = load <4 x float>, ptr %133, align 4, !tbaa !20, !alias.scope !45, !noalias !42
  %134 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %broadcast.splat118, <4 x float> %wide.load113, <4 x float> %wide.load115)
  %135 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %broadcast.splat118, <4 x float> %wide.load114, <4 x float> %wide.load116)
  store <4 x float> %134, ptr %132, align 4, !tbaa !20, !alias.scope !45, !noalias !42
  store <4 x float> %135, ptr %133, align 4, !tbaa !20, !alias.scope !45, !noalias !42
  %index.next119 = add nuw i64 %index112, 8
  %136 = icmp eq i64 %index.next119, %n.vec109
  br i1 %136, label %middle.block104, label %vector.body111, !llvm.loop !47

middle.block104:                                  ; preds = %vector.body111
  %cmp.n120 = icmp eq i64 %n.vec109, %wide.trip.count82
  br i1 %cmp.n120, label %.loopexit, label %.lr.ph74.preheader121

.lr.ph74.preheader121:                            ; preds = %middle.block104, %vector.memcheck98, %.lr.ph74.preheader
  %indvars.iv84.ph = phi i64 [ 0, %vector.memcheck98 ], [ 0, %.lr.ph74.preheader ], [ %n.vec109, %middle.block104 ]
  %xtraiter127 = and i64 %wide.trip.count82, 1
  %lcmp.mod128.not = icmp eq i64 %xtraiter127, 0
  br i1 %lcmp.mod128.not, label %.lr.ph74.prol.loopexit, label %.lr.ph74.prol

.lr.ph74.prol:                                    ; preds = %.lr.ph74.preheader121
  %137 = getelementptr inbounds float, ptr %4, i64 %indvars.iv84.ph
  %138 = load float, ptr %137, align 4, !tbaa !20
  %139 = getelementptr inbounds float, ptr %3, i64 %indvars.iv84.ph
  %140 = load float, ptr %139, align 4, !tbaa !20
  %141 = tail call float @llvm.fmuladd.f32(float %128, float %138, float %140)
  store float %141, ptr %139, align 4, !tbaa !20
  %indvars.iv.next85.prol = or disjoint i64 %indvars.iv84.ph, 1
  br label %.lr.ph74.prol.loopexit

.lr.ph74.prol.loopexit:                           ; preds = %.lr.ph74.prol, %.lr.ph74.preheader121
  %indvars.iv84.unr = phi i64 [ %indvars.iv84.ph, %.lr.ph74.preheader121 ], [ %indvars.iv.next85.prol, %.lr.ph74.prol ]
  %142 = add nsw i64 %wide.trip.count82, -1
  %143 = icmp eq i64 %indvars.iv84.ph, %142
  br i1 %143, label %.loopexit, label %.lr.ph74

.lr.ph74:                                         ; preds = %.lr.ph74.prol.loopexit, %.lr.ph74
  %indvars.iv84 = phi i64 [ %indvars.iv.next85.1, %.lr.ph74 ], [ %indvars.iv84.unr, %.lr.ph74.prol.loopexit ]
  %144 = getelementptr inbounds float, ptr %4, i64 %indvars.iv84
  %145 = load float, ptr %144, align 4, !tbaa !20
  %146 = getelementptr inbounds float, ptr %3, i64 %indvars.iv84
  %147 = load float, ptr %146, align 4, !tbaa !20
  %148 = tail call float @llvm.fmuladd.f32(float %128, float %145, float %147)
  store float %148, ptr %146, align 4, !tbaa !20
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %149 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next85
  %150 = load float, ptr %149, align 4, !tbaa !20
  %151 = getelementptr inbounds float, ptr %3, i64 %indvars.iv.next85
  %152 = load float, ptr %151, align 4, !tbaa !20
  %153 = tail call float @llvm.fmuladd.f32(float %128, float %150, float %152)
  store float %153, ptr %151, align 4, !tbaa !20
  %indvars.iv.next85.1 = add nuw nsw i64 %indvars.iv84, 2
  %exitcond88.not.1 = icmp eq i64 %indvars.iv.next85.1, %wide.trip.count87
  br i1 %exitcond88.not.1, label %.loopexit, label %.lr.ph74, !llvm.loop !48

.loopexit:                                        ; preds = %.lr.ph74.prol.loopexit, %.lr.ph74, %120, %middle.block104, %._crit_edge70.thread, %126, %.preheader
  ret void
}

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @exp(double noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x float> @llvm.fmuladd.v4f32(<4 x float>, <4 x float>, <4 x float>) #4

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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { mustprogress nofree nounwind willreturn memory(write) "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { noreturn nounwind }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 16}
!6 = !{!"_ZTSN13wordembedding13WordEmbeddingE", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !12, i64 48, !12, i64 104, !16, i64 160, !11, i64 168}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"_ZTSSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE", !13, i64 0}
!13 = !{!"_ZTSSt10_HashtableIiiSaIiENSt8__detail9_IdentityESt8equal_toIiESt4hashIiENS1_18_Mod_range_hashingENS1_20_Default_ranged_hashENS1_20_Prime_rehash_policyENS1_17_Hashtable_traitsILb0ELb1ELb1EEEE", !11, i64 0, !10, i64 8, !14, i64 16, !10, i64 24, !15, i64 32, !11, i64 48}
!14 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !11, i64 0}
!15 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !7, i64 0, !10, i64 8}
!16 = !{!"int", !8, i64 0}
!17 = !{!18, !16, i64 64}
!18 = !{!"_ZTSN13wordembedding6OptionE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !19, i64 40, !19, i64 41, !19, i64 42, !19, i64 43, !19, i64 44, !19, i64 45, !7, i64 48, !10, i64 56, !16, i64 64, !16, i64 68, !16, i64 72, !16, i64 76, !16, i64 80, !16, i64 84, !10, i64 88, !10, i64 96, !7, i64 104}
!19 = !{!"bool", !8, i64 0}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.unroll.disable"}
!23 = !{!18, !19, i64 40}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!18, !16, i64 76}
!27 = !{!28}
!28 = distinct !{!28, !29}
!29 = distinct !{!29, !"LVerDomain"}
!30 = !{!31}
!31 = distinct !{!31, !29}
!32 = distinct !{!32, !33, !34, !35}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!"llvm.loop.isvectorized", i32 1}
!35 = !{!"llvm.loop.unroll.runtime.disable"}
!36 = distinct !{!36, !33}
!37 = !{!18, !19, i64 44}
!38 = distinct !{!38, !33, !34}
!39 = !{!18, !7, i64 104}
!40 = distinct !{!40, !33}
!41 = !{!6, !7, i64 0}
!42 = !{!43}
!43 = distinct !{!43, !44}
!44 = distinct !{!44, !"LVerDomain"}
!45 = !{!46}
!46 = distinct !{!46, !44}
!47 = distinct !{!47, !33, !34, !35}
!48 = distinct !{!48, !33, !34}


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