; LLVM IR from thunlp/SE-WRL :: word2vec (word2vec)

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

%struct.vocab_word = type { i64, ptr, ptr, ptr, i8 }

@num_threads = external dso_local global i32, align 4
@vocab_size = external dso_local global i64, align 8
@layer1_size = external dso_local global i64, align 8
@classes = external dso_local global i64, align 8
@alpha = external dso_local global float, align 4
@negative = external dso_local global i32, align 4
@vocab = external dso_local global ptr, align 8
@train_file = external dso_local global [100 x i8], align 16
@save_vocab_file = external dso_local global [100 x i8], align 16
@read_vocab_file = external dso_local global [100 x i8], align 16
@syn0 = external dso_local global ptr, align 8
@start = external dso_local global i64, align 8
@starting_alpha = external dso_local global float, align 4
@.str.12 = external hidden unnamed_addr constant [33 x i8], align 1
@output_file = external dso_local global [100 x i8], align 16
@.str.13 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @InitUnigramTable() #0

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

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

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

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #3

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

; Function Attrs: nounwind uwtable
declare dso_local void @LearnVocabFromTrainFile() #0

declare noalias ptr @fopen(ptr noundef, ptr noundef) #5

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

declare i32 @fclose(ptr noundef) #5

; Function Attrs: nounwind uwtable
declare dso_local void @SaveVocab() #0

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

; Function Attrs: nounwind uwtable
declare dso_local void @ReadVocab() #0

; Function Attrs: nounwind uwtable
declare dso_local void @InitNet() #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @TrainModelThread(ptr noundef) #0

; Function Attrs: nounwind
declare i64 @clock() #4

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

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

; Function Attrs: nounwind uwtable
define dso_local void @TrainModel() #0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %16 = load i32, ptr @num_threads, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = mul i64 %17, 8
  %19 = call noalias ptr @malloc(i64 noundef %18) #8
  store ptr %19, ptr %6, align 8, !tbaa !9
  %20 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, ptr noundef @train_file)
  %21 = load float, ptr @alpha, align 4, !tbaa !11
  store float %21, ptr @starting_alpha, align 4, !tbaa !11
  %22 = load i8, ptr @read_vocab_file, align 16, !tbaa !13
  %23 = sext i8 %22 to i32
  %24 = icmp ne i32 %23, 0
  br i1 %24, label %25, label %26

25:                                               ; preds = %0
  call void @ReadVocab()
  br label %27

26:                                               ; preds = %0
  call void @LearnVocabFromTrainFile()
  br label %27

27:                                               ; preds = %26, %25
  %28 = load i8, ptr @save_vocab_file, align 16, !tbaa !13
  %29 = sext i8 %28 to i32
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %31, label %32

31:                                               ; preds = %27
  call void @SaveVocab()
  br label %32

32:                                               ; preds = %31, %27
  %33 = load i8, ptr @output_file, align 16, !tbaa !13
  %34 = sext i8 %33 to i32
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %37

36:                                               ; preds = %32
  store i32 1, ptr %7, align 4
  br label %395

37:                                               ; preds = %32
  call void @InitNet()
  %38 = load i32, ptr @negative, align 4, !tbaa !5
  %39 = icmp sgt i32 %38, 0
  br i1 %39, label %40, label %41

40:                                               ; preds = %37
  call void @InitUnigramTable()
  br label %41

41:                                               ; preds = %40, %37
  %42 = call i64 @clock() #7
  store i64 %42, ptr @start, align 8, !tbaa !14
  store i64 0, ptr %1, align 8, !tbaa !14
  br label %43

43:                                               ; preds = %55, %41
  %44 = load i64, ptr %1, align 8, !tbaa !14
  %45 = load i32, ptr @num_threads, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = icmp slt i64 %44, %46
  br i1 %47, label %48, label %58

48:                                               ; preds = %43
  %49 = load ptr, ptr %6, align 8, !tbaa !9
  %50 = load i64, ptr %1, align 8, !tbaa !14
  %51 = getelementptr inbounds i64, ptr %49, i64 %50
  %52 = load i64, ptr %1, align 8, !tbaa !14
  %53 = inttoptr i64 %52 to ptr
  %54 = call i32 @pthread_create(ptr noundef %51, ptr noundef null, ptr noundef @TrainModelThread, ptr noundef %53) #7
  br label %55

55:                                               ; preds = %48
  %56 = load i64, ptr %1, align 8, !tbaa !14
  %57 = add nsw i64 %56, 1
  store i64 %57, ptr %1, align 8, !tbaa !14
  br label %43, !llvm.loop !16

58:                                               ; preds = %43
  store i64 0, ptr %1, align 8, !tbaa !14
  br label %59

59:                                               ; preds = %70, %58
  %60 = load i64, ptr %1, align 8, !tbaa !14
  %61 = load i32, ptr @num_threads, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = icmp slt i64 %60, %62
  br i1 %63, label %64, label %73

64:                                               ; preds = %59
  %65 = load ptr, ptr %6, align 8, !tbaa !9
  %66 = load i64, ptr %1, align 8, !tbaa !14
  %67 = getelementptr inbounds i64, ptr %65, i64 %66
  %68 = load i64, ptr %67, align 8, !tbaa !14
  %69 = call i32 @pthread_join(i64 noundef %68, ptr noundef null)
  br label %70

70:                                               ; preds = %64
  %71 = load i64, ptr %1, align 8, !tbaa !14
  %72 = add nsw i64 %71, 1
  store i64 %72, ptr %1, align 8, !tbaa !14
  br label %59, !llvm.loop !18

73:                                               ; preds = %59
  %74 = call noalias ptr @fopen(ptr noundef @output_file, ptr noundef @.str.13)
  store ptr %74, ptr %5, align 8, !tbaa !9
  %75 = load i64, ptr @classes, align 8, !tbaa !19
  %76 = icmp eq i64 %75, 0
  br i1 %76, label %77, label %122

77:                                               ; preds = %73
  %78 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  %79 = load ptr, ptr %5, align 8, !tbaa !9
  %80 = load i64, ptr @vocab_size, align 8, !tbaa !19
  %81 = load i64, ptr @layer1_size, align 8, !tbaa !19
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef @.str.15, i64 noundef %80, i64 noundef %81) #7
  store i64 0, ptr %1, align 8, !tbaa !14
  br label %83

83:                                               ; preds = %117, %77
  %84 = load i64, ptr %1, align 8, !tbaa !14
  %85 = load i64, ptr @vocab_size, align 8, !tbaa !19
  %86 = icmp slt i64 %84, %85
  br i1 %86, label %87, label %120

87:                                               ; preds = %83
  %88 = load ptr, ptr %5, align 8, !tbaa !9
  %89 = load ptr, ptr @vocab, align 8, !tbaa !9
  %90 = load i64, ptr %1, align 8, !tbaa !14
  %91 = getelementptr inbounds %struct.vocab_word, ptr %89, i64 %90
  %92 = getelementptr inbounds %struct.vocab_word, ptr %91, i32 0, i32 2
  %93 = load ptr, ptr %92, align 8, !tbaa !21
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef @.str.16, ptr noundef %93) #7
  store i64 0, ptr %2, align 8, !tbaa !14
  br label %95

95:                                               ; preds = %111, %87
  %96 = load i64, ptr %2, align 8, !tbaa !14
  %97 = load i64, ptr @layer1_size, align 8, !tbaa !19
  %98 = icmp slt i64 %96, %97
  br i1 %98, label %99, label %114

99:                                               ; preds = %95
  %100 = load ptr, ptr %5, align 8, !tbaa !9
  %101 = load ptr, ptr @syn0, align 8, !tbaa !9
  %102 = load i64, ptr %1, align 8, !tbaa !14
  %103 = load i64, ptr @layer1_size, align 8, !tbaa !19
  %104 = mul nsw i64 %102, %103
  %105 = load i64, ptr %2, align 8, !tbaa !14
  %106 = add nsw i64 %104, %105
  %107 = getelementptr inbounds float, ptr %101, i64 %106
  %108 = load float, ptr %107, align 4, !tbaa !11
  %109 = fpext float %108 to double
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef @.str.17, double noundef %109) #7
  br label %111

111:                                              ; preds = %99
  %112 = load i64, ptr %2, align 8, !tbaa !14
  %113 = add nsw i64 %112, 1
  store i64 %113, ptr %2, align 8, !tbaa !14
  br label %95, !llvm.loop !23

114:                                              ; preds = %95
  %115 = load ptr, ptr %5, align 8, !tbaa !9
  %116 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef @.str.18) #7
  br label %117

117:                                              ; preds = %114
  %118 = load i64, ptr %1, align 8, !tbaa !14
  %119 = add nsw i64 %118, 1
  store i64 %119, ptr %1, align 8, !tbaa !14
  br label %83, !llvm.loop !24

120:                                              ; preds = %83
  %121 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
  br label %392

122:                                              ; preds = %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %123 = load i64, ptr @classes, align 8, !tbaa !19
  %124 = trunc i64 %123 to i32
  store i32 %124, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 10, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %125 = load i64, ptr @classes, align 8, !tbaa !19
  %126 = mul i64 %125, 4
  %127 = call noalias ptr @malloc(i64 noundef %126) #8
  store ptr %127, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %128 = load i64, ptr @vocab_size, align 8, !tbaa !19
  %129 = call noalias ptr @calloc(i64 noundef %128, i64 noundef 4) #9
  store ptr %129, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %130 = load i64, ptr @classes, align 8, !tbaa !19
  %131 = load i64, ptr @layer1_size, align 8, !tbaa !19
  %132 = mul nsw i64 %130, %131
  %133 = call noalias ptr @calloc(i64 noundef %132, i64 noundef 4) #9
  store ptr %133, ptr %15, align 8, !tbaa !9
  store i64 0, ptr %1, align 8, !tbaa !14
  br label %134

134:                                              ; preds = %147, %122
  %135 = load i64, ptr %1, align 8, !tbaa !14
  %136 = load i64, ptr @vocab_size, align 8, !tbaa !19
  %137 = icmp slt i64 %135, %136
  br i1 %137, label %138, label %150

138:                                              ; preds = %134
  %139 = load i64, ptr %1, align 8, !tbaa !14
  %140 = load i32, ptr %8, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = srem i64 %139, %141
  %143 = trunc i64 %142 to i32
  %144 = load ptr, ptr %12, align 8, !tbaa !9
  %145 = load i64, ptr %1, align 8, !tbaa !14
  %146 = getelementptr inbounds i32, ptr %144, i64 %145
  store i32 %143, ptr %146, align 4, !tbaa !5
  br label %147

147:                                              ; preds = %138
  %148 = load i64, ptr %1, align 8, !tbaa !14
  %149 = add nsw i64 %148, 1
  store i64 %149, ptr %1, align 8, !tbaa !14
  br label %134, !llvm.loop !25

150:                                              ; preds = %134
  store i64 0, ptr %1, align 8, !tbaa !14
  br label %151

151:                                              ; preds = %365, %150
  %152 = load i64, ptr %1, align 8, !tbaa !14
  %153 = load i32, ptr %9, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = icmp slt i64 %152, %154
  br i1 %155, label %156, label %368

156:                                              ; preds = %151
  store i64 0, ptr %2, align 8, !tbaa !14
  br label %157

157:                                              ; preds = %168, %156
  %158 = load i64, ptr %2, align 8, !tbaa !14
  %159 = load i32, ptr %8, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = load i64, ptr @layer1_size, align 8, !tbaa !19
  %162 = mul nsw i64 %160, %161
  %163 = icmp slt i64 %158, %162
  br i1 %163, label %164, label %171

164:                                              ; preds = %157
  %165 = load ptr, ptr %15, align 8, !tbaa !9
  %166 = load i64, ptr %2, align 8, !tbaa !14
  %167 = getelementptr inbounds float, ptr %165, i64 %166
  store float 0.000000e+00, ptr %167, align 4, !tbaa !11
  br label %168

168:                                              ; preds = %164
  %169 = load i64, ptr %2, align 8, !tbaa !14
  %170 = add nsw i64 %169, 1
  store i64 %170, ptr %2, align 8, !tbaa !14
  br label %157, !llvm.loop !26

171:                                              ; preds = %157
  store i64 0, ptr %2, align 8, !tbaa !14
  br label %172

172:                                              ; preds = %181, %171
  %173 = load i64, ptr %2, align 8, !tbaa !14
  %174 = load i32, ptr %8, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = icmp slt i64 %173, %175
  br i1 %176, label %177, label %184

177:                                              ; preds = %172
  %178 = load ptr, ptr %11, align 8, !tbaa !9
  %179 = load i64, ptr %2, align 8, !tbaa !14
  %180 = getelementptr inbounds i32, ptr %178, i64 %179
  store i32 1, ptr %180, align 4, !tbaa !5
  br label %181

181:                                              ; preds = %177
  %182 = load i64, ptr %2, align 8, !tbaa !14
  %183 = add nsw i64 %182, 1
  store i64 %183, ptr %2, align 8, !tbaa !14
  br label %172, !llvm.loop !27

184:                                              ; preds = %172
  store i64 0, ptr %3, align 8, !tbaa !14
  br label %185

185:                                              ; preds = %229, %184
  %186 = load i64, ptr %3, align 8, !tbaa !14
  %187 = load i64, ptr @vocab_size, align 8, !tbaa !19
  %188 = icmp slt i64 %186, %187
  br i1 %188, label %189, label %232

189:                                              ; preds = %185
  store i64 0, ptr %4, align 8, !tbaa !14
  br label %190

190:                                              ; preds = %216, %189
  %191 = load i64, ptr %4, align 8, !tbaa !14
  %192 = load i64, ptr @layer1_size, align 8, !tbaa !19
  %193 = icmp slt i64 %191, %192
  br i1 %193, label %194, label %219

194:                                              ; preds = %190
  %195 = load ptr, ptr @syn0, align 8, !tbaa !9
  %196 = load i64, ptr %3, align 8, !tbaa !14
  %197 = load i64, ptr @layer1_size, align 8, !tbaa !19
  %198 = mul nsw i64 %196, %197
  %199 = load i64, ptr %4, align 8, !tbaa !14
  %200 = add nsw i64 %198, %199
  %201 = getelementptr inbounds float, ptr %195, i64 %200
  %202 = load float, ptr %201, align 4, !tbaa !11
  %203 = load ptr, ptr %15, align 8, !tbaa !9
  %204 = load i64, ptr @layer1_size, align 8, !tbaa !19
  %205 = load ptr, ptr %12, align 8, !tbaa !9
  %206 = load i64, ptr %3, align 8, !tbaa !14
  %207 = getelementptr inbounds i32, ptr %205, i64 %206
  %208 = load i32, ptr %207, align 4, !tbaa !5
  %209 = sext i32 %208 to i64
  %210 = mul nsw i64 %204, %209
  %211 = load i64, ptr %4, align 8, !tbaa !14
  %212 = add nsw i64 %210, %211
  %213 = getelementptr inbounds float, ptr %203, i64 %212
  %214 = load float, ptr %213, align 4, !tbaa !11
  %215 = fadd float %214, %202
  store float %215, ptr %213, align 4, !tbaa !11
  br label %216

216:                                              ; preds = %194
  %217 = load i64, ptr %4, align 8, !tbaa !14
  %218 = add nsw i64 %217, 1
  store i64 %218, ptr %4, align 8, !tbaa !14
  br label %190, !llvm.loop !28

219:                                              ; preds = %190
  %220 = load ptr, ptr %11, align 8, !tbaa !9
  %221 = load ptr, ptr %12, align 8, !tbaa !9
  %222 = load i64, ptr %3, align 8, !tbaa !14
  %223 = getelementptr inbounds i32, ptr %221, i64 %222
  %224 = load i32, ptr %223, align 4, !tbaa !5
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds i32, ptr %220, i64 %225
  %227 = load i32, ptr %226, align 4, !tbaa !5
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %226, align 4, !tbaa !5
  br label %229

229:                                              ; preds = %219
  %230 = load i64, ptr %3, align 8, !tbaa !14
  %231 = add nsw i64 %230, 1
  store i64 %231, ptr %3, align 8, !tbaa !14
  br label %185, !llvm.loop !29

232:                                              ; preds = %185
  store i64 0, ptr %2, align 8, !tbaa !14
  br label %233

233:                                              ; preds = %303, %232
  %234 = load i64, ptr %2, align 8, !tbaa !14
  %235 = load i32, ptr %8, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = icmp slt i64 %234, %236
  br i1 %237, label %238, label %306

238:                                              ; preds = %233
  store float 0.000000e+00, ptr %13, align 4, !tbaa !11
  store i64 0, ptr %3, align 8, !tbaa !14
  br label %239

239:                                              ; preds = %276, %238
  %240 = load i64, ptr %3, align 8, !tbaa !14
  %241 = load i64, ptr @layer1_size, align 8, !tbaa !19
  %242 = icmp slt i64 %240, %241
  br i1 %242, label %243, label %279

243:                                              ; preds = %239
  %244 = load ptr, ptr %11, align 8, !tbaa !9
  %245 = load i64, ptr %2, align 8, !tbaa !14
  %246 = getelementptr inbounds i32, ptr %244, i64 %245
  %247 = load i32, ptr %246, align 4, !tbaa !5
  %248 = sitofp i32 %247 to float
  %249 = load ptr, ptr %15, align 8, !tbaa !9
  %250 = load i64, ptr @layer1_size, align 8, !tbaa !19
  %251 = load i64, ptr %2, align 8, !tbaa !14
  %252 = mul nsw i64 %250, %251
  %253 = load i64, ptr %3, align 8, !tbaa !14
  %254 = add nsw i64 %252, %253
  %255 = getelementptr inbounds float, ptr %249, i64 %254
  %256 = load float, ptr %255, align 4, !tbaa !11
  %257 = fdiv float %256, %248
  store float %257, ptr %255, align 4, !tbaa !11
  %258 = load ptr, ptr %15, align 8, !tbaa !9
  %259 = load i64, ptr @layer1_size, align 8, !tbaa !19
  %260 = load i64, ptr %2, align 8, !tbaa !14
  %261 = mul nsw i64 %259, %260
  %262 = load i64, ptr %3, align 8, !tbaa !14
  %263 = add nsw i64 %261, %262
  %264 = getelementptr inbounds float, ptr %258, i64 %263
  %265 = load float, ptr %264, align 4, !tbaa !11
  %266 = load ptr, ptr %15, align 8, !tbaa !9
  %267 = load i64, ptr @layer1_size, align 8, !tbaa !19
  %268 = load i64, ptr %2, align 8, !tbaa !14
  %269 = mul nsw i64 %267, %268
  %270 = load i64, ptr %3, align 8, !tbaa !14
  %271 = add nsw i64 %269, %270
  %272 = getelementptr inbounds float, ptr %266, i64 %271
  %273 = load float, ptr %272, align 4, !tbaa !11
  %274 = load float, ptr %13, align 4, !tbaa !11
  %275 = call float @llvm.fmuladd.f32(float %265, float %273, float %274)
  store float %275, ptr %13, align 4, !tbaa !11
  br label %276

276:                                              ; preds = %243
  %277 = load i64, ptr %3, align 8, !tbaa !14
  %278 = add nsw i64 %277, 1
  store i64 %278, ptr %3, align 8, !tbaa !14
  br label %239, !llvm.loop !30

279:                                              ; preds = %239
  %280 = load float, ptr %13, align 4, !tbaa !11
  %281 = fpext float %280 to double
  %282 = call double @sqrt(double noundef %281) #7
  %283 = fptrunc double %282 to float
  store float %283, ptr %13, align 4, !tbaa !11
  store i64 0, ptr %3, align 8, !tbaa !14
  br label %284

284:                                              ; preds = %299, %279
  %285 = load i64, ptr %3, align 8, !tbaa !14
  %286 = load i64, ptr @layer1_size, align 8, !tbaa !19
  %287 = icmp slt i64 %285, %286
  br i1 %287, label %288, label %302

288:                                              ; preds = %284
  %289 = load float, ptr %13, align 4, !tbaa !11
  %290 = load ptr, ptr %15, align 8, !tbaa !9
  %291 = load i64, ptr @layer1_size, align 8, !tbaa !19
  %292 = load i64, ptr %2, align 8, !tbaa !14
  %293 = mul nsw i64 %291, %292
  %294 = load i64, ptr %3, align 8, !tbaa !14
  %295 = add nsw i64 %293, %294
  %296 = getelementptr inbounds float, ptr %290, i64 %295
  %297 = load float, ptr %296, align 4, !tbaa !11
  %298 = fdiv float %297, %289
  store float %298, ptr %296, align 4, !tbaa !11
  br label %299

299:                                              ; preds = %288
  %300 = load i64, ptr %3, align 8, !tbaa !14
  %301 = add nsw i64 %300, 1
  store i64 %301, ptr %3, align 8, !tbaa !14
  br label %284, !llvm.loop !31

302:                                              ; preds = %284
  br label %303

303:                                              ; preds = %302
  %304 = load i64, ptr %2, align 8, !tbaa !14
  %305 = add nsw i64 %304, 1
  store i64 %305, ptr %2, align 8, !tbaa !14
  br label %233, !llvm.loop !32

306:                                              ; preds = %233
  store i64 0, ptr %3, align 8, !tbaa !14
  br label %307

307:                                              ; preds = %361, %306
  %308 = load i64, ptr %3, align 8, !tbaa !14
  %309 = load i64, ptr @vocab_size, align 8, !tbaa !19
  %310 = icmp slt i64 %308, %309
  br i1 %310, label %311, label %364

311:                                              ; preds = %307
  store float -1.000000e+01, ptr %13, align 4, !tbaa !11
  store i32 0, ptr %10, align 4, !tbaa !5
  store i64 0, ptr %4, align 8, !tbaa !14
  br label %312

312:                                              ; preds = %353, %311
  %313 = load i64, ptr %4, align 8, !tbaa !14
  %314 = load i32, ptr %8, align 4, !tbaa !5
  %315 = sext i32 %314 to i64
  %316 = icmp slt i64 %313, %315
  br i1 %316, label %317, label %356

317:                                              ; preds = %312
  store float 0.000000e+00, ptr %14, align 4, !tbaa !11
  store i64 0, ptr %2, align 8, !tbaa !14
  br label %318

318:                                              ; preds = %341, %317
  %319 = load i64, ptr %2, align 8, !tbaa !14
  %320 = load i64, ptr @layer1_size, align 8, !tbaa !19
  %321 = icmp slt i64 %319, %320
  br i1 %321, label %322, label %344

322:                                              ; preds = %318
  %323 = load ptr, ptr %15, align 8, !tbaa !9
  %324 = load i64, ptr @layer1_size, align 8, !tbaa !19
  %325 = load i64, ptr %4, align 8, !tbaa !14
  %326 = mul nsw i64 %324, %325
  %327 = load i64, ptr %2, align 8, !tbaa !14
  %328 = add nsw i64 %326, %327
  %329 = getelementptr inbounds float, ptr %323, i64 %328
  %330 = load float, ptr %329, align 4, !tbaa !11
  %331 = load ptr, ptr @syn0, align 8, !tbaa !9
  %332 = load i64, ptr %3, align 8, !tbaa !14
  %333 = load i64, ptr @layer1_size, align 8, !tbaa !19
  %334 = mul nsw i64 %332, %333
  %335 = load i64, ptr %2, align 8, !tbaa !14
  %336 = add nsw i64 %334, %335
  %337 = getelementptr inbounds float, ptr %331, i64 %336
  %338 = load float, ptr %337, align 4, !tbaa !11
  %339 = load float, ptr %14, align 4, !tbaa !11
  %340 = call float @llvm.fmuladd.f32(float %330, float %338, float %339)
  store float %340, ptr %14, align 4, !tbaa !11
  br label %341

341:                                              ; preds = %322
  %342 = load i64, ptr %2, align 8, !tbaa !14
  %343 = add nsw i64 %342, 1
  store i64 %343, ptr %2, align 8, !tbaa !14
  br label %318, !llvm.loop !33

344:                                              ; preds = %318
  %345 = load float, ptr %14, align 4, !tbaa !11
  %346 = load float, ptr %13, align 4, !tbaa !11
  %347 = fcmp ogt float %345, %346
  br i1 %347, label %348, label %352

348:                                              ; preds = %344
  %349 = load float, ptr %14, align 4, !tbaa !11
  store float %349, ptr %13, align 4, !tbaa !11
  %350 = load i64, ptr %4, align 8, !tbaa !14
  %351 = trunc i64 %350 to i32
  store i32 %351, ptr %10, align 4, !tbaa !5
  br label %352

352:                                              ; preds = %348, %344
  br label %353

353:                                              ; preds = %352
  %354 = load i64, ptr %4, align 8, !tbaa !14
  %355 = add nsw i64 %354, 1
  store i64 %355, ptr %4, align 8, !tbaa !14
  br label %312, !llvm.loop !34

356:                                              ; preds = %312
  %357 = load i32, ptr %10, align 4, !tbaa !5
  %358 = load ptr, ptr %12, align 8, !tbaa !9
  %359 = load i64, ptr %3, align 8, !tbaa !14
  %360 = getelementptr inbounds i32, ptr %358, i64 %359
  store i32 %357, ptr %360, align 4, !tbaa !5
  br label %361

361:                                              ; preds = %356
  %362 = load i64, ptr %3, align 8, !tbaa !14
  %363 = add nsw i64 %362, 1
  store i64 %363, ptr %3, align 8, !tbaa !14
  br label %307, !llvm.loop !35

364:                                              ; preds = %307
  br label %365

365:                                              ; preds = %364
  %366 = load i64, ptr %1, align 8, !tbaa !14
  %367 = add nsw i64 %366, 1
  store i64 %367, ptr %1, align 8, !tbaa !14
  br label %151, !llvm.loop !36

368:                                              ; preds = %151
  store i64 0, ptr %1, align 8, !tbaa !14
  br label %369

369:                                              ; preds = %385, %368
  %370 = load i64, ptr %1, align 8, !tbaa !14
  %371 = load i64, ptr @vocab_size, align 8, !tbaa !19
  %372 = icmp slt i64 %370, %371
  br i1 %372, label %373, label %388

373:                                              ; preds = %369
  %374 = load ptr, ptr %5, align 8, !tbaa !9
  %375 = load ptr, ptr @vocab, align 8, !tbaa !9
  %376 = load i64, ptr %1, align 8, !tbaa !14
  %377 = getelementptr inbounds %struct.vocab_word, ptr %375, i64 %376
  %378 = getelementptr inbounds %struct.vocab_word, ptr %377, i32 0, i32 2
  %379 = load ptr, ptr %378, align 8, !tbaa !21
  %380 = load ptr, ptr %12, align 8, !tbaa !9
  %381 = load i64, ptr %1, align 8, !tbaa !14
  %382 = getelementptr inbounds i32, ptr %380, i64 %381
  %383 = load i32, ptr %382, align 4, !tbaa !5
  %384 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %374, ptr noundef @.str.20, ptr noundef %379, i32 noundef %383) #7
  br label %385

385:                                              ; preds = %373
  %386 = load i64, ptr %1, align 8, !tbaa !14
  %387 = add nsw i64 %386, 1
  store i64 %387, ptr %1, align 8, !tbaa !14
  br label %369, !llvm.loop !37

388:                                              ; preds = %369
  %389 = load ptr, ptr %11, align 8, !tbaa !9
  call void @free(ptr noundef %389) #7
  %390 = load ptr, ptr %15, align 8, !tbaa !9
  call void @free(ptr noundef %390) #7
  %391 = load ptr, ptr %12, align 8, !tbaa !9
  call void @free(ptr noundef %391) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %392

392:                                              ; preds = %388, %120
  %393 = load ptr, ptr %5, align 8, !tbaa !9
  %394 = call i32 @fclose(ptr noundef %393)
  store i32 0, ptr %7, align 4
  br label %395

395:                                              ; preds = %392, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #7
  %396 = load i32, ptr %7, align 4
  switch i32 %396, label %398 [
    i32 0, label %397
    i32 1, label %397
  ]

397:                                              ; preds = %395, %395
  ret void

398:                                              ; preds = %395
  unreachable
}

; Function Attrs: nounwind
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

declare i32 @pthread_join(i64 noundef, ptr noundef) #5

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

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

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


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

%struct.vocab_word = type { i64, ptr, ptr, ptr, i8 }

@num_threads = external dso_local local_unnamed_addr global i32, align 4
@vocab_size = external dso_local local_unnamed_addr global i64, align 8
@layer1_size = external dso_local local_unnamed_addr global i64, align 8
@classes = external dso_local local_unnamed_addr global i64, align 8
@alpha = external dso_local local_unnamed_addr global float, align 4
@negative = external dso_local local_unnamed_addr global i32, align 4
@vocab = external dso_local local_unnamed_addr global ptr, align 8
@train_file = external dso_local global [100 x i8], align 16
@save_vocab_file = external dso_local local_unnamed_addr global [100 x i8], align 16
@read_vocab_file = external dso_local local_unnamed_addr global [100 x i8], align 16
@syn0 = external dso_local local_unnamed_addr global ptr, align 8
@start = external dso_local local_unnamed_addr global i64, align 8
@starting_alpha = external dso_local local_unnamed_addr global float, align 4
@.str.12 = external hidden unnamed_addr constant [33 x i8], align 1
@output_file = external dso_local global [100 x i8], align 16
@.str.13 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @InitUnigramTable() local_unnamed_addr #0

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @LearnVocabFromTrainFile() local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #4

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

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local void @SaveVocab() local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare dso_local void @ReadVocab() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @InitNet() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @TrainModelThread(ptr noundef) #0

; Function Attrs: nounwind
declare i64 @clock() local_unnamed_addr #5

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

; Function Attrs: nounwind uwtable
define dso_local void @TrainModel() local_unnamed_addr #0 {
  %1 = load i32, ptr @num_threads, align 4, !tbaa !5
  %2 = sext i32 %1 to i64
  %3 = shl nsw i64 %2, 3
  %4 = tail call noalias ptr @malloc(i64 noundef %3) #9
  %5 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, ptr noundef nonnull @train_file)
  %6 = load float, ptr @alpha, align 4, !tbaa !9
  store float %6, ptr @starting_alpha, align 4, !tbaa !9
  %7 = load i8, ptr @read_vocab_file, align 16, !tbaa !11
  %.not = icmp eq i8 %7, 0
  br i1 %.not, label %9, label %8

8:                                                ; preds = %0
  tail call void @ReadVocab()
  br label %10

9:                                                ; preds = %0
  tail call void @LearnVocabFromTrainFile()
  br label %10

10:                                               ; preds = %9, %8
  %11 = load i8, ptr @save_vocab_file, align 16, !tbaa !11
  %.not129 = icmp eq i8 %11, 0
  br i1 %.not129, label %13, label %12

12:                                               ; preds = %10
  tail call void @SaveVocab()
  br label %13

13:                                               ; preds = %12, %10
  %14 = load i8, ptr @output_file, align 16, !tbaa !11
  %15 = icmp eq i8 %14, 0
  br i1 %15, label %275, label %16

16:                                               ; preds = %13
  tail call void @InitNet()
  %17 = load i32, ptr @negative, align 4, !tbaa !5
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %19, label %20

19:                                               ; preds = %16
  tail call void @InitUnigramTable()
  br label %20

20:                                               ; preds = %19, %16
  %21 = tail call i64 @clock() #10
  store i64 %21, ptr @start, align 8, !tbaa !12
  %22 = load i32, ptr @num_threads, align 4, !tbaa !5
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.lr.ph, label %._crit_edge

.preheader141:                                    ; preds = %.lr.ph
  %24 = icmp sgt i32 %29, 0
  br i1 %24, label %.lr.ph145, label %._crit_edge

.lr.ph:                                           ; preds = %20, %.lr.ph
  %.0143 = phi i64 [ %28, %.lr.ph ], [ 0, %20 ]
  %25 = getelementptr inbounds i64, ptr %4, i64 %.0143
  %26 = inttoptr i64 %.0143 to ptr
  %27 = tail call i32 @pthread_create(ptr noundef %25, ptr noundef null, ptr noundef nonnull @TrainModelThread, ptr noundef %26) #10
  %28 = add nuw nsw i64 %.0143, 1
  %29 = load i32, ptr @num_threads, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = icmp slt i64 %28, %30
  br i1 %31, label %.lr.ph, label %.preheader141, !llvm.loop !14

.lr.ph145:                                        ; preds = %.preheader141, %.lr.ph145
  %.1144 = phi i64 [ %35, %.lr.ph145 ], [ 0, %.preheader141 ]
  %32 = getelementptr inbounds i64, ptr %4, i64 %.1144
  %33 = load i64, ptr %32, align 8, !tbaa !12
  %34 = tail call i32 @pthread_join(i64 noundef %33, ptr noundef null) #10
  %35 = add nuw nsw i64 %.1144, 1
  %36 = load i32, ptr @num_threads, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = icmp slt i64 %35, %37
  br i1 %38, label %.lr.ph145, label %._crit_edge, !llvm.loop !16

._crit_edge:                                      ; preds = %.lr.ph145, %20, %.preheader141
  %39 = tail call noalias ptr @fopen(ptr noundef nonnull @output_file, ptr noundef nonnull @.str.13)
  %40 = load i64, ptr @classes, align 8, !tbaa !17
  %41 = icmp eq i64 %40, 0
  br i1 %41, label %42, label %71

42:                                               ; preds = %._crit_edge
  %43 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  %44 = load i64, ptr @vocab_size, align 8, !tbaa !17
  %45 = load i64, ptr @layer1_size, align 8, !tbaa !17
  %46 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str.15, i64 noundef %44, i64 noundef %45) #10
  %47 = load i64, ptr @vocab_size, align 8, !tbaa !17
  %48 = icmp sgt i64 %47, 0
  br i1 %48, label %.lr.ph199, label %._crit_edge200

.lr.ph199:                                        ; preds = %42, %._crit_edge196
  %.2197 = phi i64 [ %67, %._crit_edge196 ], [ 0, %42 ]
  %49 = load ptr, ptr @vocab, align 8, !tbaa !19
  %50 = getelementptr inbounds %struct.vocab_word, ptr %49, i64 %.2197, i32 2
  %51 = load ptr, ptr %50, align 8, !tbaa !21
  %52 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str.16, ptr noundef %51) #10
  %53 = load i64, ptr @layer1_size, align 8, !tbaa !17
  %54 = icmp sgt i64 %53, 0
  br i1 %54, label %.lr.ph195, label %._crit_edge196

.lr.ph195:                                        ; preds = %.lr.ph199, %.lr.ph195
  %55 = phi i64 [ %64, %.lr.ph195 ], [ %53, %.lr.ph199 ]
  %.0109193 = phi i64 [ %63, %.lr.ph195 ], [ 0, %.lr.ph199 ]
  %56 = load ptr, ptr @syn0, align 8, !tbaa !19
  %57 = mul nsw i64 %55, %.2197
  %58 = getelementptr float, ptr %56, i64 %57
  %59 = getelementptr float, ptr %58, i64 %.0109193
  %60 = load float, ptr %59, align 4, !tbaa !9
  %61 = fpext float %60 to double
  %62 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str.17, double noundef %61) #10
  %63 = add nuw nsw i64 %.0109193, 1
  %64 = load i64, ptr @layer1_size, align 8, !tbaa !17
  %65 = icmp slt i64 %63, %64
  br i1 %65, label %.lr.ph195, label %._crit_edge196, !llvm.loop !23

._crit_edge196:                                   ; preds = %.lr.ph195, %.lr.ph199
  %66 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str.18) #10
  %67 = add nuw nsw i64 %.2197, 1
  %68 = load i64, ptr @vocab_size, align 8, !tbaa !17
  %69 = icmp slt i64 %67, %68
  br i1 %69, label %.lr.ph199, label %._crit_edge200, !llvm.loop !24

._crit_edge200:                                   ; preds = %._crit_edge196, %42
  %70 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19)
  br label %273

71:                                               ; preds = %._crit_edge
  %72 = shl i64 %40, 2
  %73 = tail call noalias ptr @malloc(i64 noundef %72) #9
  %74 = load i64, ptr @vocab_size, align 8, !tbaa !17
  %75 = tail call noalias ptr @calloc(i64 noundef %74, i64 noundef 4) #11
  %76 = load i64, ptr @layer1_size, align 8
  %77 = mul nsw i64 %76, %40
  %78 = tail call noalias ptr @calloc(i64 noundef %77, i64 noundef 4) #11
  %79 = icmp sgt i64 %74, 0
  %sext130 = shl i64 %40, 32
  %80 = ashr exact i64 %sext130, 32
  br i1 %79, label %.lr.ph148.preheader, label %.preheader140

.lr.ph148.preheader:                              ; preds = %71
  %xtraiter = and i64 %74, 1
  %81 = icmp eq i64 %74, 1
  br i1 %81, label %.preheader140.loopexit.unr-lcssa, label %.lr.ph148.preheader.new

.lr.ph148.preheader.new:                          ; preds = %.lr.ph148.preheader
  %unroll_iter = and i64 %74, 9223372036854775806
  br label %.lr.ph148

.preheader140.loopexit.unr-lcssa:                 ; preds = %.lr.ph148, %.lr.ph148.preheader
  %.3146.unr = phi i64 [ 0, %.lr.ph148.preheader ], [ %95, %.lr.ph148 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader140, label %.lr.ph148.epil

.lr.ph148.epil:                                   ; preds = %.preheader140.loopexit.unr-lcssa
  %82 = srem i64 %.3146.unr, %80
  %83 = trunc nsw i64 %82 to i32
  %84 = getelementptr inbounds i32, ptr %75, i64 %.3146.unr
  store i32 %83, ptr %84, align 4, !tbaa !5
  br label %.preheader140

.preheader140:                                    ; preds = %.lr.ph148.epil, %.preheader140.loopexit.unr-lcssa, %71
  %85 = icmp sgt i64 %80, 0
  %86 = ashr exact i64 %sext130, 30
  %min.iters.check254 = icmp ult i64 %80, 8
  %n.mod.vf256 = and i64 %40, 7
  %n.vec257 = sub nsw i64 %80, %n.mod.vf256
  %cmp.n262 = icmp eq i64 %n.mod.vf256, 0
  %xtraiter282 = and i64 %40, 3
  %87 = icmp ult i64 %80, 4
  %unroll_iter286 = sub nsw i64 %80, %xtraiter282
  %lcmp.mod284.not = icmp eq i64 %xtraiter282, 0
  br label %.preheader139

.lr.ph148:                                        ; preds = %.lr.ph148, %.lr.ph148.preheader.new
  %.3146 = phi i64 [ 0, %.lr.ph148.preheader.new ], [ %95, %.lr.ph148 ]
  %niter = phi i64 [ 0, %.lr.ph148.preheader.new ], [ %niter.next.1, %.lr.ph148 ]
  %88 = srem i64 %.3146, %80
  %89 = trunc nsw i64 %88 to i32
  %90 = getelementptr inbounds i32, ptr %75, i64 %.3146
  store i32 %89, ptr %90, align 4, !tbaa !5
  %91 = or disjoint i64 %.3146, 1
  %92 = srem i64 %91, %80
  %93 = trunc nsw i64 %92 to i32
  %94 = getelementptr inbounds i32, ptr %75, i64 %91
  store i32 %93, ptr %94, align 4, !tbaa !5
  %95 = add nuw nsw i64 %.3146, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader140.loopexit.unr-lcssa, label %.lr.ph148, !llvm.loop !25

.preheader139:                                    ; preds = %.preheader139.backedge, %.preheader140
  %96 = phi i64 [ %76, %.preheader140 ], [ %.be, %.preheader139.backedge ]
  %97 = phi i64 [ %74, %.preheader140 ], [ %.be267, %.preheader139.backedge ]
  %98 = phi i64 [ %76, %.preheader140 ], [ %.be268, %.preheader139.backedge ]
  %.4189 = phi i64 [ 0, %.preheader140 ], [ %.4189.be, %.preheader139.backedge ]
  %99 = mul nsw i64 %98, %80
  %100 = icmp sgt i64 %99, 0
  br i1 %100, label %.lr.ph150.preheader, label %.preheader138

.lr.ph150.preheader:                              ; preds = %.preheader139
  %101 = mul i64 %86, %98
  tail call void @llvm.memset.p0.i64(ptr align 4 %78, i8 0, i64 %101, i1 false), !tbaa !9
  br label %.preheader138

.preheader138:                                    ; preds = %.lr.ph150.preheader, %.preheader139
  br i1 %85, label %.lr.ph153.preheader, label %.preheader137

.lr.ph153.preheader:                              ; preds = %.preheader138
  br i1 %min.iters.check254, label %.lr.ph153.preheader265, label %vector.body259

.lr.ph153.preheader265:                           ; preds = %middle.block252, %.lr.ph153.preheader
  %.2111152.ph = phi i64 [ 0, %.lr.ph153.preheader ], [ %n.vec257, %middle.block252 ]
  br label %.lr.ph153

vector.body259:                                   ; preds = %.lr.ph153.preheader, %vector.body259
  %index260 = phi i64 [ %index.next261, %vector.body259 ], [ 0, %.lr.ph153.preheader ]
  %102 = getelementptr inbounds i32, ptr %73, i64 %index260
  %103 = getelementptr inbounds i8, ptr %102, i64 16
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %102, align 4, !tbaa !5
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %103, align 4, !tbaa !5
  %index.next261 = add nuw i64 %index260, 8
  %104 = icmp eq i64 %index.next261, %n.vec257
  br i1 %104, label %middle.block252, label %vector.body259, !llvm.loop !26

middle.block252:                                  ; preds = %vector.body259
  br i1 %cmp.n262, label %.preheader137, label %.lr.ph153.preheader265

.preheader137:                                    ; preds = %.lr.ph153, %middle.block252, %.preheader138
  %105 = icmp sgt i64 %97, 0
  br i1 %105, label %.preheader134.lr.ph, label %.preheader136

.preheader134.lr.ph:                              ; preds = %.preheader137
  %106 = icmp sgt i64 %98, 0
  %107 = load ptr, ptr @syn0, align 8
  br i1 %106, label %.preheader134.us.preheader, label %.preheader134.preheader

.preheader134.preheader:                          ; preds = %.preheader134.lr.ph
  %xtraiter272 = and i64 %97, 3
  %108 = icmp ult i64 %97, 4
  br i1 %108, label %.preheader136.loopexit264.unr-lcssa, label %.preheader134.preheader.new

.preheader134.preheader.new:                      ; preds = %.preheader134.preheader
  %unroll_iter274 = and i64 %97, 9223372036854775804
  br label %.preheader134

.preheader134.us.preheader:                       ; preds = %.preheader134.lr.ph
  %min.iters.check239 = icmp ult i64 %98, 8
  %n.vec242 = and i64 %98, 9223372036854775800
  %cmp.n251 = icmp eq i64 %98, %n.vec242
  br label %.preheader134.us

.preheader134.us:                                 ; preds = %.preheader134.us.preheader, %._crit_edge156.us
  %.0114157.us = phi i64 [ %132, %._crit_edge156.us ], [ 0, %.preheader134.us.preheader ]
  %109 = mul nuw nsw i64 %.0114157.us, %98
  %110 = getelementptr float, ptr %107, i64 %109
  %111 = getelementptr inbounds i32, ptr %75, i64 %.0114157.us
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = mul nsw i64 %98, %113
  %115 = getelementptr float, ptr %78, i64 %114
  br i1 %min.iters.check239, label %scalar.ph238.preheader, label %vector.body244

vector.body244:                                   ; preds = %.preheader134.us, %vector.body244
  %index245 = phi i64 [ %index.next250, %vector.body244 ], [ 0, %.preheader134.us ]
  %116 = getelementptr float, ptr %110, i64 %index245
  %117 = getelementptr i8, ptr %116, i64 16
  %wide.load246 = load <4 x float>, ptr %116, align 4, !tbaa !9
  %wide.load247 = load <4 x float>, ptr %117, align 4, !tbaa !9
  %118 = getelementptr float, ptr %115, i64 %index245
  %119 = getelementptr i8, ptr %118, i64 16
  %wide.load248 = load <4 x float>, ptr %118, align 4, !tbaa !9
  %wide.load249 = load <4 x float>, ptr %119, align 4, !tbaa !9
  %120 = fadd <4 x float> %wide.load246, %wide.load248
  %121 = fadd <4 x float> %wide.load247, %wide.load249
  store <4 x float> %120, ptr %118, align 4, !tbaa !9
  store <4 x float> %121, ptr %119, align 4, !tbaa !9
  %index.next250 = add nuw i64 %index245, 8
  %122 = icmp eq i64 %index.next250, %n.vec242
  br i1 %122, label %middle.block237, label %vector.body244, !llvm.loop !29

middle.block237:                                  ; preds = %vector.body244
  br i1 %cmp.n251, label %._crit_edge156.us, label %scalar.ph238.preheader

scalar.ph238.preheader:                           ; preds = %middle.block237, %.preheader134.us
  %.0120154.us.ph = phi i64 [ 0, %.preheader134.us ], [ %n.vec242, %middle.block237 ]
  br label %scalar.ph238

scalar.ph238:                                     ; preds = %scalar.ph238.preheader, %scalar.ph238
  %.0120154.us = phi i64 [ %128, %scalar.ph238 ], [ %.0120154.us.ph, %scalar.ph238.preheader ]
  %123 = getelementptr float, ptr %110, i64 %.0120154.us
  %124 = load float, ptr %123, align 4, !tbaa !9
  %125 = getelementptr float, ptr %115, i64 %.0120154.us
  %126 = load float, ptr %125, align 4, !tbaa !9
  %127 = fadd float %124, %126
  store float %127, ptr %125, align 4, !tbaa !9
  %128 = add nuw nsw i64 %.0120154.us, 1
  %exitcond207.not = icmp eq i64 %128, %98
  br i1 %exitcond207.not, label %._crit_edge156.us, label %scalar.ph238, !llvm.loop !30

._crit_edge156.us:                                ; preds = %scalar.ph238, %middle.block237
  %129 = getelementptr inbounds i32, ptr %73, i64 %113
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %129, align 4, !tbaa !5
  %132 = add nuw nsw i64 %.0114157.us, 1
  %exitcond208.not = icmp eq i64 %132, %97
  br i1 %exitcond208.not, label %.preheader136, label %.preheader134.us, !llvm.loop !31

.lr.ph153:                                        ; preds = %.lr.ph153.preheader265, %.lr.ph153
  %.2111152 = phi i64 [ %134, %.lr.ph153 ], [ %.2111152.ph, %.lr.ph153.preheader265 ]
  %133 = getelementptr inbounds i32, ptr %73, i64 %.2111152
  store i32 1, ptr %133, align 4, !tbaa !5
  %134 = add nuw nsw i64 %.2111152, 1
  %exitcond205.not = icmp eq i64 %134, %80
  br i1 %exitcond205.not, label %.preheader137, label %.lr.ph153, !llvm.loop !32

.preheader136.loopexit264.unr-lcssa:              ; preds = %.preheader134, %.preheader134.preheader
  %.0114157.unr = phi i64 [ 0, %.preheader134.preheader ], [ %169, %.preheader134 ]
  %lcmp.mod273.not = icmp eq i64 %xtraiter272, 0
  br i1 %lcmp.mod273.not, label %.preheader136, label %.preheader134.epil

.preheader134.epil:                               ; preds = %.preheader136.loopexit264.unr-lcssa, %.preheader134.epil
  %.0114157.epil = phi i64 [ %141, %.preheader134.epil ], [ %.0114157.unr, %.preheader136.loopexit264.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.preheader134.epil ], [ 0, %.preheader136.loopexit264.unr-lcssa ]
  %135 = getelementptr inbounds i32, ptr %75, i64 %.0114157.epil
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds i32, ptr %73, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %138, align 4, !tbaa !5
  %141 = add nuw nsw i64 %.0114157.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter272
  br i1 %epil.iter.cmp.not, label %.preheader136, label %.preheader134.epil, !llvm.loop !33

.preheader136:                                    ; preds = %.preheader136.loopexit264.unr-lcssa, %.preheader134.epil, %._crit_edge156.us, %.preheader137
  br i1 %85, label %.preheader133, label %.preheader135.thread

.preheader134:                                    ; preds = %.preheader134, %.preheader134.preheader.new
  %.0114157 = phi i64 [ 0, %.preheader134.preheader.new ], [ %169, %.preheader134 ]
  %niter275 = phi i64 [ 0, %.preheader134.preheader.new ], [ %niter275.next.3, %.preheader134 ]
  %142 = getelementptr inbounds i32, ptr %75, i64 %.0114157
  %143 = load i32, ptr %142, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds i32, ptr %73, i64 %144
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %145, align 4, !tbaa !5
  %148 = or disjoint i64 %.0114157, 1
  %149 = getelementptr inbounds i32, ptr %75, i64 %148
  %150 = load i32, ptr %149, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds i32, ptr %73, i64 %151
  %153 = load i32, ptr %152, align 4, !tbaa !5
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %152, align 4, !tbaa !5
  %155 = or disjoint i64 %.0114157, 2
  %156 = getelementptr inbounds i32, ptr %75, i64 %155
  %157 = load i32, ptr %156, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds i32, ptr %73, i64 %158
  %160 = load i32, ptr %159, align 4, !tbaa !5
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %159, align 4, !tbaa !5
  %162 = or disjoint i64 %.0114157, 3
  %163 = getelementptr inbounds i32, ptr %75, i64 %162
  %164 = load i32, ptr %163, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds i32, ptr %73, i64 %165
  %167 = load i32, ptr %166, align 4, !tbaa !5
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %166, align 4, !tbaa !5
  %169 = add nuw nsw i64 %.0114157, 4
  %niter275.next.3 = add i64 %niter275, 4
  %niter275.ncmp.3 = icmp eq i64 %niter275.next.3, %unroll_iter274
  br i1 %niter275.ncmp.3, label %.preheader136.loopexit264.unr-lcssa, label %.preheader134, !llvm.loop !31

.preheader135:                                    ; preds = %._crit_edge166
  %.pre = load i64, ptr @vocab_size, align 8, !tbaa !17
  %170 = icmp sgt i64 %.pre, 0
  br i1 %170, label %.preheader132.lr.ph, label %._crit_edge179.thread

.preheader135.thread:                             ; preds = %.preheader136
  %171 = icmp sgt i64 %97, 0
  br i1 %171, label %._crit_edge179.thread220, label %._crit_edge179.thread

.preheader132.lr.ph:                              ; preds = %.preheader135
  %172 = icmp sgt i64 %243, 0
  %173 = load ptr, ptr @syn0, align 8
  br i1 %85, label %.preheader132.us.preheader, label %._crit_edge179.thread220

.preheader132.us.preheader:                       ; preds = %.preheader132.lr.ph
  %xtraiter289 = and i64 %243, 3
  %174 = icmp ult i64 %243, 4
  %unroll_iter293 = and i64 %243, 9223372036854775804
  %lcmp.mod291.not = icmp eq i64 %xtraiter289, 0
  br label %.preheader132.us

.preheader132.us:                                 ; preds = %.preheader132.us.preheader, %._crit_edge176.us
  %.3117178.us = phi i64 [ %184, %._crit_edge176.us ], [ 0, %.preheader132.us.preheader ]
  %175 = mul nsw i64 %243, %.3117178.us
  %176 = getelementptr float, ptr %173, i64 %175
  br i1 %172, label %.preheader131.us.us, label %.preheader131.us180.preheader

.preheader131.us180.preheader:                    ; preds = %.preheader132.us
  br i1 %87, label %._crit_edge176.us.loopexit263.unr-lcssa, label %.preheader131.us180

.preheader131.us180:                              ; preds = %.preheader131.us180.preheader, %.preheader131.us180
  %.1107175.us181 = phi float [ %.2108.us185, %.preheader131.us180 ], [ -1.000000e+01, %.preheader131.us180.preheader ]
  %.0118174.us182 = phi i32 [ %.1119.us184, %.preheader131.us180 ], [ 0, %.preheader131.us180.preheader ]
  %.1121173.us183 = phi i64 [ %179, %.preheader131.us180 ], [ 0, %.preheader131.us180.preheader ]
  %niter287 = phi i64 [ %niter287.next.3, %.preheader131.us180 ], [ 0, %.preheader131.us180.preheader ]
  %177 = fcmp olt float %.1107175.us181, 0.000000e+00
  %178 = trunc i64 %.1121173.us183 to i32
  %.1119.us184 = select i1 %177, i32 %178, i32 %.0118174.us182
  %.2108.us185 = select i1 %177, float 0.000000e+00, float %.1107175.us181
  %179 = add nuw nsw i64 %.1121173.us183, 4
  %niter287.next.3 = add i64 %niter287, 4
  %niter287.ncmp.3 = icmp eq i64 %niter287.next.3, %unroll_iter286
  br i1 %niter287.ncmp.3, label %._crit_edge176.us.loopexit263.unr-lcssa, label %.preheader131.us180, !llvm.loop !35

._crit_edge176.us.loopexit263.unr-lcssa:          ; preds = %.preheader131.us180, %.preheader131.us180.preheader
  %.1119.us184.lcssa.ph = phi i32 [ poison, %.preheader131.us180.preheader ], [ %.1119.us184, %.preheader131.us180 ]
  %.1107175.us181.unr = phi float [ -1.000000e+01, %.preheader131.us180.preheader ], [ %.2108.us185, %.preheader131.us180 ]
  %.0118174.us182.unr = phi i32 [ 0, %.preheader131.us180.preheader ], [ %.1119.us184, %.preheader131.us180 ]
  %.1121173.us183.unr = phi i64 [ 0, %.preheader131.us180.preheader ], [ %179, %.preheader131.us180 ]
  br i1 %lcmp.mod284.not, label %._crit_edge176.us, label %.preheader131.us180.epil

.preheader131.us180.epil:                         ; preds = %._crit_edge176.us.loopexit263.unr-lcssa, %.preheader131.us180.epil
  %.1107175.us181.epil = phi float [ %.2108.us185.epil, %.preheader131.us180.epil ], [ %.1107175.us181.unr, %._crit_edge176.us.loopexit263.unr-lcssa ]
  %.0118174.us182.epil = phi i32 [ %.1119.us184.epil, %.preheader131.us180.epil ], [ %.0118174.us182.unr, %._crit_edge176.us.loopexit263.unr-lcssa ]
  %.1121173.us183.epil = phi i64 [ %182, %.preheader131.us180.epil ], [ %.1121173.us183.unr, %._crit_edge176.us.loopexit263.unr-lcssa ]
  %epil.iter283 = phi i64 [ %epil.iter283.next, %.preheader131.us180.epil ], [ 0, %._crit_edge176.us.loopexit263.unr-lcssa ]
  %180 = fcmp olt float %.1107175.us181.epil, 0.000000e+00
  %181 = trunc i64 %.1121173.us183.epil to i32
  %.1119.us184.epil = select i1 %180, i32 %181, i32 %.0118174.us182.epil
  %.2108.us185.epil = select i1 %180, float 0.000000e+00, float %.1107175.us181.epil
  %182 = add nuw nsw i64 %.1121173.us183.epil, 1
  %epil.iter283.next = add i64 %epil.iter283, 1
  %epil.iter283.cmp.not = icmp eq i64 %epil.iter283.next, %xtraiter282
  br i1 %epil.iter283.cmp.not, label %._crit_edge176.us, label %.preheader131.us180.epil, !llvm.loop !36

._crit_edge176.us:                                ; preds = %._crit_edge176.us.loopexit263.unr-lcssa, %.preheader131.us180.epil, %._crit_edge171.us.us
  %.us-phi.us = phi i32 [ %.1119.us.us, %._crit_edge171.us.us ], [ %.1119.us184.lcssa.ph, %._crit_edge176.us.loopexit263.unr-lcssa ], [ %.1119.us184.epil, %.preheader131.us180.epil ]
  %183 = getelementptr inbounds i32, ptr %75, i64 %.3117178.us
  store i32 %.us-phi.us, ptr %183, align 4, !tbaa !5
  %184 = add nuw nsw i64 %.3117178.us, 1
  %exitcond215.not = icmp eq i64 %184, %.pre
  br i1 %exitcond215.not, label %._crit_edge179, label %.preheader132.us, !llvm.loop !37

.preheader131.us.us:                              ; preds = %.preheader132.us, %._crit_edge171.us.us
  %.1107175.us.us = phi float [ %.2108.us.us, %._crit_edge171.us.us ], [ -1.000000e+01, %.preheader132.us ]
  %.0118174.us.us = phi i32 [ %.1119.us.us, %._crit_edge171.us.us ], [ 0, %.preheader132.us ]
  %.1121173.us.us = phi i64 [ %219, %._crit_edge171.us.us ], [ 0, %.preheader132.us ]
  %185 = mul nuw nsw i64 %243, %.1121173.us.us
  %186 = getelementptr float, ptr %78, i64 %185
  br i1 %174, label %._crit_edge171.us.us.unr-lcssa, label %.preheader131.us.us.new

.preheader131.us.us.new:                          ; preds = %.preheader131.us.us, %.preheader131.us.us.new
  %.0105169.us.us = phi float [ %209, %.preheader131.us.us.new ], [ 0.000000e+00, %.preheader131.us.us ]
  %.4113168.us.us = phi i64 [ %210, %.preheader131.us.us.new ], [ 0, %.preheader131.us.us ]
  %niter294 = phi i64 [ %niter294.next.3, %.preheader131.us.us.new ], [ 0, %.preheader131.us.us ]
  %187 = getelementptr float, ptr %186, i64 %.4113168.us.us
  %188 = load float, ptr %187, align 4, !tbaa !9
  %189 = getelementptr float, ptr %176, i64 %.4113168.us.us
  %190 = load float, ptr %189, align 4, !tbaa !9
  %191 = tail call float @llvm.fmuladd.f32(float %188, float %190, float %.0105169.us.us)
  %192 = or disjoint i64 %.4113168.us.us, 1
  %193 = getelementptr float, ptr %186, i64 %192
  %194 = load float, ptr %193, align 4, !tbaa !9
  %195 = getelementptr float, ptr %176, i64 %192
  %196 = load float, ptr %195, align 4, !tbaa !9
  %197 = tail call float @llvm.fmuladd.f32(float %194, float %196, float %191)
  %198 = or disjoint i64 %.4113168.us.us, 2
  %199 = getelementptr float, ptr %186, i64 %198
  %200 = load float, ptr %199, align 4, !tbaa !9
  %201 = getelementptr float, ptr %176, i64 %198
  %202 = load float, ptr %201, align 4, !tbaa !9
  %203 = tail call float @llvm.fmuladd.f32(float %200, float %202, float %197)
  %204 = or disjoint i64 %.4113168.us.us, 3
  %205 = getelementptr float, ptr %186, i64 %204
  %206 = load float, ptr %205, align 4, !tbaa !9
  %207 = getelementptr float, ptr %176, i64 %204
  %208 = load float, ptr %207, align 4, !tbaa !9
  %209 = tail call float @llvm.fmuladd.f32(float %206, float %208, float %203)
  %210 = add nuw nsw i64 %.4113168.us.us, 4
  %niter294.next.3 = add i64 %niter294, 4
  %niter294.ncmp.3 = icmp eq i64 %niter294.next.3, %unroll_iter293
  br i1 %niter294.ncmp.3, label %._crit_edge171.us.us.unr-lcssa, label %.preheader131.us.us.new, !llvm.loop !38

._crit_edge171.us.us.unr-lcssa:                   ; preds = %.preheader131.us.us.new, %.preheader131.us.us
  %.lcssa270.ph = phi float [ poison, %.preheader131.us.us ], [ %209, %.preheader131.us.us.new ]
  %.0105169.us.us.unr = phi float [ 0.000000e+00, %.preheader131.us.us ], [ %209, %.preheader131.us.us.new ]
  %.4113168.us.us.unr = phi i64 [ 0, %.preheader131.us.us ], [ %210, %.preheader131.us.us.new ]
  br i1 %lcmp.mod291.not, label %._crit_edge171.us.us, label %.epil.preheader288

.epil.preheader288:                               ; preds = %._crit_edge171.us.us.unr-lcssa, %.epil.preheader288
  %.0105169.us.us.epil = phi float [ %215, %.epil.preheader288 ], [ %.0105169.us.us.unr, %._crit_edge171.us.us.unr-lcssa ]
  %.4113168.us.us.epil = phi i64 [ %216, %.epil.preheader288 ], [ %.4113168.us.us.unr, %._crit_edge171.us.us.unr-lcssa ]
  %epil.iter290 = phi i64 [ %epil.iter290.next, %.epil.preheader288 ], [ 0, %._crit_edge171.us.us.unr-lcssa ]
  %211 = getelementptr float, ptr %186, i64 %.4113168.us.us.epil
  %212 = load float, ptr %211, align 4, !tbaa !9
  %213 = getelementptr float, ptr %176, i64 %.4113168.us.us.epil
  %214 = load float, ptr %213, align 4, !tbaa !9
  %215 = tail call float @llvm.fmuladd.f32(float %212, float %214, float %.0105169.us.us.epil)
  %216 = add nuw nsw i64 %.4113168.us.us.epil, 1
  %epil.iter290.next = add i64 %epil.iter290, 1
  %epil.iter290.cmp.not = icmp eq i64 %epil.iter290.next, %xtraiter289
  br i1 %epil.iter290.cmp.not, label %._crit_edge171.us.us, label %.epil.preheader288, !llvm.loop !39

._crit_edge171.us.us:                             ; preds = %.epil.preheader288, %._crit_edge171.us.us.unr-lcssa
  %.lcssa270 = phi float [ %.lcssa270.ph, %._crit_edge171.us.us.unr-lcssa ], [ %215, %.epil.preheader288 ]
  %217 = fcmp ogt float %.lcssa270, %.1107175.us.us
  %218 = trunc i64 %.1121173.us.us to i32
  %.1119.us.us = select i1 %217, i32 %218, i32 %.0118174.us.us
  %.2108.us.us = select i1 %217, float %.lcssa270, float %.1107175.us.us
  %219 = add nuw nsw i64 %.1121173.us.us, 1
  %exitcond214.not = icmp eq i64 %219, %80
  br i1 %exitcond214.not, label %._crit_edge176.us, label %.preheader131.us.us, !llvm.loop !35

.preheader133:                                    ; preds = %.preheader136, %._crit_edge166
  %220 = phi i64 [ %243, %._crit_edge166 ], [ %98, %.preheader136 ]
  %.3112167 = phi i64 [ %254, %._crit_edge166 ], [ 0, %.preheader136 ]
  %221 = icmp sgt i64 %220, 0
  br i1 %221, label %.lr.ph160, label %._crit_edge161

.lr.ph160:                                        ; preds = %.preheader133
  %222 = getelementptr inbounds i32, ptr %73, i64 %.3112167
  %223 = load i32, ptr %222, align 4, !tbaa !5
  %224 = sitofp i32 %223 to float
  %225 = mul nuw nsw i64 %220, %.3112167
  %226 = getelementptr float, ptr %78, i64 %225
  %xtraiter276 = and i64 %220, 1
  %227 = icmp eq i64 %220, 1
  br i1 %227, label %._crit_edge161.loopexit.unr-lcssa, label %.lr.ph160.new

.lr.ph160.new:                                    ; preds = %.lr.ph160
  %unroll_iter280 = and i64 %220, 9223372036854775806
  br label %228

228:                                              ; preds = %228, %.lr.ph160.new
  %.0106159 = phi float [ 0.000000e+00, %.lr.ph160.new ], [ %237, %228 ]
  %.1115158 = phi i64 [ 0, %.lr.ph160.new ], [ %238, %228 ]
  %niter281 = phi i64 [ 0, %.lr.ph160.new ], [ %niter281.next.1, %228 ]
  %229 = getelementptr float, ptr %226, i64 %.1115158
  %230 = load float, ptr %229, align 4, !tbaa !9
  %231 = fdiv float %230, %224
  store float %231, ptr %229, align 4, !tbaa !9
  %232 = tail call float @llvm.fmuladd.f32(float %231, float %231, float %.0106159)
  %233 = or disjoint i64 %.1115158, 1
  %234 = getelementptr float, ptr %226, i64 %233
  %235 = load float, ptr %234, align 4, !tbaa !9
  %236 = fdiv float %235, %224
  store float %236, ptr %234, align 4, !tbaa !9
  %237 = tail call float @llvm.fmuladd.f32(float %236, float %236, float %232)
  %238 = add nuw nsw i64 %.1115158, 2
  %niter281.next.1 = add i64 %niter281, 2
  %niter281.ncmp.1 = icmp eq i64 %niter281.next.1, %unroll_iter280
  br i1 %niter281.ncmp.1, label %._crit_edge161.loopexit.unr-lcssa, label %228, !llvm.loop !40

._crit_edge161.loopexit.unr-lcssa:                ; preds = %228, %.lr.ph160
  %.lcssa.ph = phi float [ poison, %.lr.ph160 ], [ %237, %228 ]
  %.0106159.unr = phi float [ 0.000000e+00, %.lr.ph160 ], [ %237, %228 ]
  %.1115158.unr = phi i64 [ 0, %.lr.ph160 ], [ %238, %228 ]
  %lcmp.mod278.not = icmp eq i64 %xtraiter276, 0
  br i1 %lcmp.mod278.not, label %._crit_edge161, label %._crit_edge161.loopexit.epilog-lcssa

._crit_edge161.loopexit.epilog-lcssa:             ; preds = %._crit_edge161.loopexit.unr-lcssa
  %239 = getelementptr float, ptr %226, i64 %.1115158.unr
  %240 = load float, ptr %239, align 4, !tbaa !9
  %241 = fdiv float %240, %224
  store float %241, ptr %239, align 4, !tbaa !9
  %242 = tail call float @llvm.fmuladd.f32(float %241, float %241, float %.0106159.unr)
  br label %._crit_edge161

._crit_edge161:                                   ; preds = %._crit_edge161.loopexit.epilog-lcssa, %._crit_edge161.loopexit.unr-lcssa, %.preheader133
  %.0106.lcssa = phi float [ 0.000000e+00, %.preheader133 ], [ %.lcssa.ph, %._crit_edge161.loopexit.unr-lcssa ], [ %242, %._crit_edge161.loopexit.epilog-lcssa ]
  %sqrtf = tail call float @sqrtf(float noundef %.0106.lcssa) #12
  %243 = load i64, ptr @layer1_size, align 8
  %244 = icmp sgt i64 %243, 0
  br i1 %244, label %.lr.ph165, label %._crit_edge166

.lr.ph165:                                        ; preds = %._crit_edge161
  %245 = mul nuw nsw i64 %243, %.3112167
  %246 = getelementptr float, ptr %78, i64 %245
  %min.iters.check = icmp ult i64 %243, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph165
  %n.vec = and i64 %243, 9223372036854775804
  %broadcast.splatinsert = insertelement <4 x float> poison, float %sqrtf, 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 ]
  %247 = getelementptr float, ptr %246, i64 %index
  %wide.load = load <4 x float>, ptr %247, align 4, !tbaa !9
  %248 = fdiv <4 x float> %wide.load, %broadcast.splat
  store <4 x float> %248, ptr %247, align 4, !tbaa !9
  %index.next = add nuw i64 %index, 4
  %249 = icmp eq i64 %index.next, %n.vec
  br i1 %249, label %middle.block, label %vector.body, !llvm.loop !41

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %243, %n.vec
  br i1 %cmp.n, label %._crit_edge166, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph165
  %.2116163.ph = phi i64 [ 0, %.lr.ph165 ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %.2116163 = phi i64 [ %253, %scalar.ph ], [ %.2116163.ph, %scalar.ph.preheader ]
  %250 = getelementptr float, ptr %246, i64 %.2116163
  %251 = load float, ptr %250, align 4, !tbaa !9
  %252 = fdiv float %251, %sqrtf
  store float %252, ptr %250, align 4, !tbaa !9
  %253 = add nuw nsw i64 %.2116163, 1
  %exitcond210.not = icmp eq i64 %253, %243
  br i1 %exitcond210.not, label %._crit_edge166, label %scalar.ph, !llvm.loop !42

._crit_edge166:                                   ; preds = %scalar.ph, %middle.block, %._crit_edge161
  %254 = add nuw nsw i64 %.3112167, 1
  %exitcond211.not = icmp eq i64 %254, %80
  br i1 %exitcond211.not, label %.preheader135, label %.preheader133, !llvm.loop !43

._crit_edge179:                                   ; preds = %._crit_edge176.us
  %255 = add nuw nsw i64 %.4189, 1
  %exitcond216.not = icmp eq i64 %255, 10
  br i1 %exitcond216.not, label %.lr.ph191.preheader, label %.preheader139.backedge

.preheader139.backedge:                           ; preds = %._crit_edge179, %._crit_edge179.thread, %._crit_edge179.thread220
  %.be = phi i64 [ %243, %._crit_edge179 ], [ %262, %._crit_edge179.thread ], [ %256, %._crit_edge179.thread220 ]
  %.be267 = phi i64 [ %.pre, %._crit_edge179 ], [ %261, %._crit_edge179.thread ], [ %257, %._crit_edge179.thread220 ]
  %.be268 = phi i64 [ %243, %._crit_edge179 ], [ %260, %._crit_edge179.thread ], [ %256, %._crit_edge179.thread220 ]
  %.4189.be = phi i64 [ %255, %._crit_edge179 ], [ %263, %._crit_edge179.thread ], [ %259, %._crit_edge179.thread220 ]
  br label %.preheader139, !llvm.loop !44

.lr.ph191.preheader:                              ; preds = %._crit_edge179.thread220, %._crit_edge179
  br label %.lr.ph191

._crit_edge179.thread220:                         ; preds = %.preheader135.thread, %.preheader132.lr.ph
  %256 = phi i64 [ %243, %.preheader132.lr.ph ], [ %96, %.preheader135.thread ]
  %257 = phi i64 [ %.pre, %.preheader132.lr.ph ], [ %97, %.preheader135.thread ]
  %258 = shl nuw i64 %257, 2
  tail call void @llvm.memset.p0.i64(ptr align 4 %75, i8 0, i64 %258, i1 false), !tbaa !5
  %259 = add nuw nsw i64 %.4189, 1
  %exitcond216.not221 = icmp eq i64 %259, 10
  br i1 %exitcond216.not221, label %.lr.ph191.preheader, label %.preheader139.backedge

._crit_edge179.thread:                            ; preds = %.preheader135.thread, %.preheader135
  %260 = phi i64 [ %98, %.preheader135.thread ], [ %243, %.preheader135 ]
  %261 = phi i64 [ %97, %.preheader135.thread ], [ %.pre, %.preheader135 ]
  %262 = phi i64 [ %96, %.preheader135.thread ], [ %243, %.preheader135 ]
  %263 = add nuw nsw i64 %.4189, 1
  %exitcond216.not219 = icmp eq i64 %263, 10
  br i1 %exitcond216.not219, label %._crit_edge192, label %.preheader139.backedge

.lr.ph191:                                        ; preds = %.lr.ph191.preheader, %.lr.ph191
  %.5190 = phi i64 [ %270, %.lr.ph191 ], [ 0, %.lr.ph191.preheader ]
  %264 = load ptr, ptr @vocab, align 8, !tbaa !19
  %265 = getelementptr inbounds %struct.vocab_word, ptr %264, i64 %.5190, i32 2
  %266 = load ptr, ptr %265, align 8, !tbaa !21
  %267 = getelementptr inbounds i32, ptr %75, i64 %.5190
  %268 = load i32, ptr %267, align 4, !tbaa !5
  %269 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str.20, ptr noundef %266, i32 noundef %268) #10
  %270 = add nuw nsw i64 %.5190, 1
  %271 = load i64, ptr @vocab_size, align 8, !tbaa !17
  %272 = icmp slt i64 %270, %271
  br i1 %272, label %.lr.ph191, label %._crit_edge192, !llvm.loop !45

._crit_edge192:                                   ; preds = %._crit_edge179.thread, %.lr.ph191
  tail call void @free(ptr noundef %73) #10
  tail call void @free(ptr noundef %78) #10
  tail call void @free(ptr noundef %75) #10
  br label %273

273:                                              ; preds = %._crit_edge192, %._crit_edge200
  %274 = tail call i32 @fclose(ptr noundef %39)
  br label %275

275:                                              ; preds = %13, %273
  ret void
}

; Function Attrs: nounwind
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

declare i32 @pthread_join(i64 noundef, ptr noundef) local_unnamed_addr #7

declare float @sqrtf(float) local_unnamed_addr

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = !{!18, !18, i64 0}
!18 = !{!"long long", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"any pointer", !7, i64 0}
!21 = !{!22, !20, i64 16}
!22 = !{!"vocab_word", !18, i64 0, !20, i64 8, !20, i64 16, !20, i64 24, !7, i64 32}
!23 = distinct !{!23, !15}
!24 = distinct !{!24, !15}
!25 = distinct !{!25, !15}
!26 = distinct !{!26, !15, !27, !28}
!27 = !{!"llvm.loop.isvectorized", i32 1}
!28 = !{!"llvm.loop.unroll.runtime.disable"}
!29 = distinct !{!29, !15, !27, !28}
!30 = distinct !{!30, !15, !28, !27}
!31 = distinct !{!31, !15}
!32 = distinct !{!32, !15, !28, !27}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.unroll.disable"}
!35 = distinct !{!35, !15}
!36 = distinct !{!36, !34}
!37 = distinct !{!37, !15}
!38 = distinct !{!38, !15}
!39 = distinct !{!39, !34}
!40 = distinct !{!40, !15}
!41 = distinct !{!41, !15, !27, !28}
!42 = distinct !{!42, !15, !28, !27}
!43 = distinct !{!43, !15}
!44 = distinct !{!44, !15}
!45 = distinct !{!45, !15}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass