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

@binary = external dso_local global i32, align 4
@cbow = external dso_local global i32, align 4
@debug_mode = external dso_local global i32, align 4
@window = external dso_local global i32, align 4
@min_count = external dso_local global i32, align 4
@num_threads = external dso_local global i32, align 4
@vocab_max_size = external dso_local global i64, align 8
@layer1_size = external dso_local global i64, align 8
@iter = external dso_local global i64, align 8
@classes = external dso_local global i64, align 8
@alpha = external dso_local global float, align 4
@sample = external dso_local global float, align 4
@hs = external dso_local global i32, align 4
@negative = external dso_local global i32, align 4
@vocab = external dso_local global ptr, align 8
@vocab_hash = 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
@expTable = external dso_local global ptr, align 8
@output_file = external dso_local global [100 x i8], align 16
@.str.22 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [122 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [9 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: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

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

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #2

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @TrainModel() #6

; Function Attrs: nounwind uwtable
declare dso_local i32 @ArgPos(ptr noundef, i32 noundef, ptr noundef) #6

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #6 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  %8 = load i32, ptr %4, align 4, !tbaa !5
  %9 = icmp eq i32 %8, 1
  br i1 %9, label %10, label %51

10:                                               ; preds = %2
  %11 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
  %12 = call i32 (ptr, ...) @printf(ptr noundef @.str.23)
  %13 = call i32 (ptr, ...) @printf(ptr noundef @.str.24)
  %14 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
  %15 = call i32 (ptr, ...) @printf(ptr noundef @.str.26)
  %16 = call i32 (ptr, ...) @printf(ptr noundef @.str.27)
  %17 = call i32 (ptr, ...) @printf(ptr noundef @.str.28)
  %18 = call i32 (ptr, ...) @printf(ptr noundef @.str.29)
  %19 = call i32 (ptr, ...) @printf(ptr noundef @.str.30)
  %20 = call i32 (ptr, ...) @printf(ptr noundef @.str.31)
  %21 = call i32 (ptr, ...) @printf(ptr noundef @.str.32)
  %22 = call i32 (ptr, ...) @printf(ptr noundef @.str.33)
  %23 = call i32 (ptr, ...) @printf(ptr noundef @.str.34)
  %24 = call i32 (ptr, ...) @printf(ptr noundef @.str.35)
  %25 = call i32 (ptr, ...) @printf(ptr noundef @.str.36)
  %26 = call i32 (ptr, ...) @printf(ptr noundef @.str.37)
  %27 = call i32 (ptr, ...) @printf(ptr noundef @.str.38)
  %28 = call i32 (ptr, ...) @printf(ptr noundef @.str.39)
  %29 = call i32 (ptr, ...) @printf(ptr noundef @.str.40)
  %30 = call i32 (ptr, ...) @printf(ptr noundef @.str.41)
  %31 = call i32 (ptr, ...) @printf(ptr noundef @.str.42)
  %32 = call i32 (ptr, ...) @printf(ptr noundef @.str.43)
  %33 = call i32 (ptr, ...) @printf(ptr noundef @.str.44)
  %34 = call i32 (ptr, ...) @printf(ptr noundef @.str.45)
  %35 = call i32 (ptr, ...) @printf(ptr noundef @.str.46)
  %36 = call i32 (ptr, ...) @printf(ptr noundef @.str.47)
  %37 = call i32 (ptr, ...) @printf(ptr noundef @.str.48)
  %38 = call i32 (ptr, ...) @printf(ptr noundef @.str.49)
  %39 = call i32 (ptr, ...) @printf(ptr noundef @.str.50)
  %40 = call i32 (ptr, ...) @printf(ptr noundef @.str.51)
  %41 = call i32 (ptr, ...) @printf(ptr noundef @.str.52)
  %42 = call i32 (ptr, ...) @printf(ptr noundef @.str.53)
  %43 = call i32 (ptr, ...) @printf(ptr noundef @.str.54)
  %44 = call i32 (ptr, ...) @printf(ptr noundef @.str.55)
  %45 = call i32 (ptr, ...) @printf(ptr noundef @.str.56)
  %46 = call i32 (ptr, ...) @printf(ptr noundef @.str.57)
  %47 = call i32 (ptr, ...) @printf(ptr noundef @.str.58)
  %48 = call i32 (ptr, ...) @printf(ptr noundef @.str.59)
  %49 = call i32 (ptr, ...) @printf(ptr noundef @.str.60)
  %50 = call i32 (ptr, ...) @printf(ptr noundef @.str.61)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %322

51:                                               ; preds = %2
  store i8 0, ptr @output_file, align 16, !tbaa !11
  store i8 0, ptr @save_vocab_file, align 16, !tbaa !11
  store i8 0, ptr @read_vocab_file, align 16, !tbaa !11
  %52 = load i32, ptr %4, align 4, !tbaa !5
  %53 = load ptr, ptr %5, align 8, !tbaa !9
  %54 = call i32 @ArgPos(ptr noundef @.str.62, i32 noundef %52, ptr noundef %53)
  store i32 %54, ptr %6, align 4, !tbaa !5
  %55 = icmp sgt i32 %54, 0
  br i1 %55, label %56, label %65

56:                                               ; preds = %51
  %57 = load ptr, ptr %5, align 8, !tbaa !9
  %58 = load i32, ptr %6, align 4, !tbaa !5
  %59 = add nsw i32 %58, 1
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds ptr, ptr %57, i64 %60
  %62 = load ptr, ptr %61, align 8, !tbaa !9
  %63 = call i32 @atoi(ptr noundef %62) #9
  %64 = sext i32 %63 to i64
  store i64 %64, ptr @layer1_size, align 8, !tbaa !12
  br label %65

65:                                               ; preds = %56, %51
  %66 = load i32, ptr %4, align 4, !tbaa !5
  %67 = load ptr, ptr %5, align 8, !tbaa !9
  %68 = call i32 @ArgPos(ptr noundef @.str.63, i32 noundef %66, ptr noundef %67)
  store i32 %68, ptr %6, align 4, !tbaa !5
  %69 = icmp sgt i32 %68, 0
  br i1 %69, label %70, label %78

70:                                               ; preds = %65
  %71 = load ptr, ptr %5, align 8, !tbaa !9
  %72 = load i32, ptr %6, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds ptr, ptr %71, i64 %74
  %76 = load ptr, ptr %75, align 8, !tbaa !9
  %77 = call ptr @strcpy(ptr noundef @train_file, ptr noundef %76) #8
  br label %78

78:                                               ; preds = %70, %65
  %79 = load i32, ptr %4, align 4, !tbaa !5
  %80 = load ptr, ptr %5, align 8, !tbaa !9
  %81 = call i32 @ArgPos(ptr noundef @.str.64, i32 noundef %79, ptr noundef %80)
  store i32 %81, ptr %6, align 4, !tbaa !5
  %82 = icmp sgt i32 %81, 0
  br i1 %82, label %83, label %91

83:                                               ; preds = %78
  %84 = load ptr, ptr %5, align 8, !tbaa !9
  %85 = load i32, ptr %6, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds ptr, ptr %84, i64 %87
  %89 = load ptr, ptr %88, align 8, !tbaa !9
  %90 = call ptr @strcpy(ptr noundef @save_vocab_file, ptr noundef %89) #8
  br label %91

91:                                               ; preds = %83, %78
  %92 = load i32, ptr %4, align 4, !tbaa !5
  %93 = load ptr, ptr %5, align 8, !tbaa !9
  %94 = call i32 @ArgPos(ptr noundef @.str.65, i32 noundef %92, ptr noundef %93)
  store i32 %94, ptr %6, align 4, !tbaa !5
  %95 = icmp sgt i32 %94, 0
  br i1 %95, label %96, label %104

96:                                               ; preds = %91
  %97 = load ptr, ptr %5, align 8, !tbaa !9
  %98 = load i32, ptr %6, align 4, !tbaa !5
  %99 = add nsw i32 %98, 1
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds ptr, ptr %97, i64 %100
  %102 = load ptr, ptr %101, align 8, !tbaa !9
  %103 = call ptr @strcpy(ptr noundef @read_vocab_file, ptr noundef %102) #8
  br label %104

104:                                              ; preds = %96, %91
  %105 = load i32, ptr %4, align 4, !tbaa !5
  %106 = load ptr, ptr %5, align 8, !tbaa !9
  %107 = call i32 @ArgPos(ptr noundef @.str.66, i32 noundef %105, ptr noundef %106)
  store i32 %107, ptr %6, align 4, !tbaa !5
  %108 = icmp sgt i32 %107, 0
  br i1 %108, label %109, label %117

109:                                              ; preds = %104
  %110 = load ptr, ptr %5, align 8, !tbaa !9
  %111 = load i32, ptr %6, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds ptr, ptr %110, i64 %113
  %115 = load ptr, ptr %114, align 8, !tbaa !9
  %116 = call i32 @atoi(ptr noundef %115) #9
  store i32 %116, ptr @debug_mode, align 4, !tbaa !5
  br label %117

117:                                              ; preds = %109, %104
  %118 = load i32, ptr %4, align 4, !tbaa !5
  %119 = load ptr, ptr %5, align 8, !tbaa !9
  %120 = call i32 @ArgPos(ptr noundef @.str.67, i32 noundef %118, ptr noundef %119)
  store i32 %120, ptr %6, align 4, !tbaa !5
  %121 = icmp sgt i32 %120, 0
  br i1 %121, label %122, label %130

122:                                              ; preds = %117
  %123 = load ptr, ptr %5, align 8, !tbaa !9
  %124 = load i32, ptr %6, align 4, !tbaa !5
  %125 = add nsw i32 %124, 1
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds ptr, ptr %123, i64 %126
  %128 = load ptr, ptr %127, align 8, !tbaa !9
  %129 = call i32 @atoi(ptr noundef %128) #9
  store i32 %129, ptr @binary, align 4, !tbaa !5
  br label %130

130:                                              ; preds = %122, %117
  %131 = load i32, ptr %4, align 4, !tbaa !5
  %132 = load ptr, ptr %5, align 8, !tbaa !9
  %133 = call i32 @ArgPos(ptr noundef @.str.68, i32 noundef %131, ptr noundef %132)
  store i32 %133, ptr %6, align 4, !tbaa !5
  %134 = icmp sgt i32 %133, 0
  br i1 %134, label %135, label %143

135:                                              ; preds = %130
  %136 = load ptr, ptr %5, align 8, !tbaa !9
  %137 = load i32, ptr %6, align 4, !tbaa !5
  %138 = add nsw i32 %137, 1
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds ptr, ptr %136, i64 %139
  %141 = load ptr, ptr %140, align 8, !tbaa !9
  %142 = call i32 @atoi(ptr noundef %141) #9
  store i32 %142, ptr @cbow, align 4, !tbaa !5
  br label %143

143:                                              ; preds = %135, %130
  %144 = load i32, ptr @cbow, align 4, !tbaa !5
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %146, label %147

146:                                              ; preds = %143
  store float 0x3FA99999A0000000, ptr @alpha, align 4, !tbaa !14
  br label %147

147:                                              ; preds = %146, %143
  %148 = load i32, ptr %4, align 4, !tbaa !5
  %149 = load ptr, ptr %5, align 8, !tbaa !9
  %150 = call i32 @ArgPos(ptr noundef @.str.69, i32 noundef %148, ptr noundef %149)
  store i32 %150, ptr %6, align 4, !tbaa !5
  %151 = icmp sgt i32 %150, 0
  br i1 %151, label %152, label %161

152:                                              ; preds = %147
  %153 = load ptr, ptr %5, align 8, !tbaa !9
  %154 = load i32, ptr %6, align 4, !tbaa !5
  %155 = add nsw i32 %154, 1
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds ptr, ptr %153, i64 %156
  %158 = load ptr, ptr %157, align 8, !tbaa !9
  %159 = call double @atof(ptr noundef %158) #9
  %160 = fptrunc double %159 to float
  store float %160, ptr @alpha, align 4, !tbaa !14
  br label %161

161:                                              ; preds = %152, %147
  %162 = load i32, ptr %4, align 4, !tbaa !5
  %163 = load ptr, ptr %5, align 8, !tbaa !9
  %164 = call i32 @ArgPos(ptr noundef @.str.70, i32 noundef %162, ptr noundef %163)
  store i32 %164, ptr %6, align 4, !tbaa !5
  %165 = icmp sgt i32 %164, 0
  br i1 %165, label %166, label %174

166:                                              ; preds = %161
  %167 = load ptr, ptr %5, align 8, !tbaa !9
  %168 = load i32, ptr %6, align 4, !tbaa !5
  %169 = add nsw i32 %168, 1
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds ptr, ptr %167, i64 %170
  %172 = load ptr, ptr %171, align 8, !tbaa !9
  %173 = call ptr @strcpy(ptr noundef @output_file, ptr noundef %172) #8
  br label %174

174:                                              ; preds = %166, %161
  %175 = load i32, ptr %4, align 4, !tbaa !5
  %176 = load ptr, ptr %5, align 8, !tbaa !9
  %177 = call i32 @ArgPos(ptr noundef @.str.71, i32 noundef %175, ptr noundef %176)
  store i32 %177, ptr %6, align 4, !tbaa !5
  %178 = icmp sgt i32 %177, 0
  br i1 %178, label %179, label %187

179:                                              ; preds = %174
  %180 = load ptr, ptr %5, align 8, !tbaa !9
  %181 = load i32, ptr %6, align 4, !tbaa !5
  %182 = add nsw i32 %181, 1
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds ptr, ptr %180, i64 %183
  %185 = load ptr, ptr %184, align 8, !tbaa !9
  %186 = call i32 @atoi(ptr noundef %185) #9
  store i32 %186, ptr @window, align 4, !tbaa !5
  br label %187

187:                                              ; preds = %179, %174
  %188 = load i32, ptr %4, align 4, !tbaa !5
  %189 = load ptr, ptr %5, align 8, !tbaa !9
  %190 = call i32 @ArgPos(ptr noundef @.str.72, i32 noundef %188, ptr noundef %189)
  store i32 %190, ptr %6, align 4, !tbaa !5
  %191 = icmp sgt i32 %190, 0
  br i1 %191, label %192, label %201

192:                                              ; preds = %187
  %193 = load ptr, ptr %5, align 8, !tbaa !9
  %194 = load i32, ptr %6, align 4, !tbaa !5
  %195 = add nsw i32 %194, 1
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds ptr, ptr %193, i64 %196
  %198 = load ptr, ptr %197, align 8, !tbaa !9
  %199 = call double @atof(ptr noundef %198) #9
  %200 = fptrunc double %199 to float
  store float %200, ptr @sample, align 4, !tbaa !14
  br label %201

201:                                              ; preds = %192, %187
  %202 = load i32, ptr %4, align 4, !tbaa !5
  %203 = load ptr, ptr %5, align 8, !tbaa !9
  %204 = call i32 @ArgPos(ptr noundef @.str.73, i32 noundef %202, ptr noundef %203)
  store i32 %204, ptr %6, align 4, !tbaa !5
  %205 = icmp sgt i32 %204, 0
  br i1 %205, label %206, label %214

206:                                              ; preds = %201
  %207 = load ptr, ptr %5, align 8, !tbaa !9
  %208 = load i32, ptr %6, align 4, !tbaa !5
  %209 = add nsw i32 %208, 1
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds ptr, ptr %207, i64 %210
  %212 = load ptr, ptr %211, align 8, !tbaa !9
  %213 = call i32 @atoi(ptr noundef %212) #9
  store i32 %213, ptr @hs, align 4, !tbaa !5
  br label %214

214:                                              ; preds = %206, %201
  %215 = load i32, ptr %4, align 4, !tbaa !5
  %216 = load ptr, ptr %5, align 8, !tbaa !9
  %217 = call i32 @ArgPos(ptr noundef @.str.74, i32 noundef %215, ptr noundef %216)
  store i32 %217, ptr %6, align 4, !tbaa !5
  %218 = icmp sgt i32 %217, 0
  br i1 %218, label %219, label %227

219:                                              ; preds = %214
  %220 = load ptr, ptr %5, align 8, !tbaa !9
  %221 = load i32, ptr %6, align 4, !tbaa !5
  %222 = add nsw i32 %221, 1
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds ptr, ptr %220, i64 %223
  %225 = load ptr, ptr %224, align 8, !tbaa !9
  %226 = call i32 @atoi(ptr noundef %225) #9
  store i32 %226, ptr @negative, align 4, !tbaa !5
  br label %227

227:                                              ; preds = %219, %214
  %228 = load i32, ptr %4, align 4, !tbaa !5
  %229 = load ptr, ptr %5, align 8, !tbaa !9
  %230 = call i32 @ArgPos(ptr noundef @.str.75, i32 noundef %228, ptr noundef %229)
  store i32 %230, ptr %6, align 4, !tbaa !5
  %231 = icmp sgt i32 %230, 0
  br i1 %231, label %232, label %240

232:                                              ; preds = %227
  %233 = load ptr, ptr %5, align 8, !tbaa !9
  %234 = load i32, ptr %6, align 4, !tbaa !5
  %235 = add nsw i32 %234, 1
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds ptr, ptr %233, i64 %236
  %238 = load ptr, ptr %237, align 8, !tbaa !9
  %239 = call i32 @atoi(ptr noundef %238) #9
  store i32 %239, ptr @num_threads, align 4, !tbaa !5
  br label %240

240:                                              ; preds = %232, %227
  %241 = load i32, ptr %4, align 4, !tbaa !5
  %242 = load ptr, ptr %5, align 8, !tbaa !9
  %243 = call i32 @ArgPos(ptr noundef @.str.76, i32 noundef %241, ptr noundef %242)
  store i32 %243, ptr %6, align 4, !tbaa !5
  %244 = icmp sgt i32 %243, 0
  br i1 %244, label %245, label %254

245:                                              ; preds = %240
  %246 = load ptr, ptr %5, align 8, !tbaa !9
  %247 = load i32, ptr %6, align 4, !tbaa !5
  %248 = add nsw i32 %247, 1
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds ptr, ptr %246, i64 %249
  %251 = load ptr, ptr %250, align 8, !tbaa !9
  %252 = call i32 @atoi(ptr noundef %251) #9
  %253 = sext i32 %252 to i64
  store i64 %253, ptr @iter, align 8, !tbaa !12
  br label %254

254:                                              ; preds = %245, %240
  %255 = load i32, ptr %4, align 4, !tbaa !5
  %256 = load ptr, ptr %5, align 8, !tbaa !9
  %257 = call i32 @ArgPos(ptr noundef @.str.77, i32 noundef %255, ptr noundef %256)
  store i32 %257, ptr %6, align 4, !tbaa !5
  %258 = icmp sgt i32 %257, 0
  br i1 %258, label %259, label %267

259:                                              ; preds = %254
  %260 = load ptr, ptr %5, align 8, !tbaa !9
  %261 = load i32, ptr %6, align 4, !tbaa !5
  %262 = add nsw i32 %261, 1
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds ptr, ptr %260, i64 %263
  %265 = load ptr, ptr %264, align 8, !tbaa !9
  %266 = call i32 @atoi(ptr noundef %265) #9
  store i32 %266, ptr @min_count, align 4, !tbaa !5
  br label %267

267:                                              ; preds = %259, %254
  %268 = load i32, ptr %4, align 4, !tbaa !5
  %269 = load ptr, ptr %5, align 8, !tbaa !9
  %270 = call i32 @ArgPos(ptr noundef @.str.78, i32 noundef %268, ptr noundef %269)
  store i32 %270, ptr %6, align 4, !tbaa !5
  %271 = icmp sgt i32 %270, 0
  br i1 %271, label %272, label %281

272:                                              ; preds = %267
  %273 = load ptr, ptr %5, align 8, !tbaa !9
  %274 = load i32, ptr %6, align 4, !tbaa !5
  %275 = add nsw i32 %274, 1
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds ptr, ptr %273, i64 %276
  %278 = load ptr, ptr %277, align 8, !tbaa !9
  %279 = call i32 @atoi(ptr noundef %278) #9
  %280 = sext i32 %279 to i64
  store i64 %280, ptr @classes, align 8, !tbaa !12
  br label %281

281:                                              ; preds = %272, %267
  %282 = load i64, ptr @vocab_max_size, align 8, !tbaa !12
  %283 = call noalias ptr @calloc(i64 noundef %282, i64 noundef 40) #10
  store ptr %283, ptr @vocab, align 8, !tbaa !9
  %284 = call noalias ptr @calloc(i64 noundef 30000000, i64 noundef 4) #10
  store ptr %284, ptr @vocab_hash, align 8, !tbaa !9
  %285 = call noalias ptr @malloc(i64 noundef 4004) #11
  store ptr %285, ptr @expTable, align 8, !tbaa !9
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %286

286:                                              ; preds = %318, %281
  %287 = load i32, ptr %6, align 4, !tbaa !5
  %288 = icmp slt i32 %287, 1000
  br i1 %288, label %289, label %321

289:                                              ; preds = %286
  %290 = load i32, ptr %6, align 4, !tbaa !5
  %291 = sitofp i32 %290 to float
  %292 = fdiv float %291, 1.000000e+03
  %293 = call float @llvm.fmuladd.f32(float %292, float 2.000000e+00, float -1.000000e+00)
  %294 = fmul float %293, 6.000000e+00
  %295 = fpext float %294 to double
  %296 = call double @exp(double noundef %295) #8
  %297 = fptrunc double %296 to float
  %298 = load ptr, ptr @expTable, align 8, !tbaa !9
  %299 = load i32, ptr %6, align 4, !tbaa !5
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds float, ptr %298, i64 %300
  store float %297, ptr %301, align 4, !tbaa !14
  %302 = load ptr, ptr @expTable, align 8, !tbaa !9
  %303 = load i32, ptr %6, align 4, !tbaa !5
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds float, ptr %302, i64 %304
  %306 = load float, ptr %305, align 4, !tbaa !14
  %307 = load ptr, ptr @expTable, align 8, !tbaa !9
  %308 = load i32, ptr %6, align 4, !tbaa !5
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds float, ptr %307, i64 %309
  %311 = load float, ptr %310, align 4, !tbaa !14
  %312 = fadd float %311, 1.000000e+00
  %313 = fdiv float %306, %312
  %314 = load ptr, ptr @expTable, align 8, !tbaa !9
  %315 = load i32, ptr %6, align 4, !tbaa !5
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds float, ptr %314, i64 %316
  store float %313, ptr %317, align 4, !tbaa !14
  br label %318

318:                                              ; preds = %289
  %319 = load i32, ptr %6, align 4, !tbaa !5
  %320 = add nsw i32 %319, 1
  store i32 %320, ptr %6, align 4, !tbaa !5
  br label %286, !llvm.loop !16

321:                                              ; preds = %286
  call void @TrainModel()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %322

322:                                              ; preds = %321, %10
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  %323 = load i32, ptr %3, align 4
  ret i32 %323
}

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #7

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #7

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

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

!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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long long", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


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

@binary = external dso_local local_unnamed_addr global i32, align 4
@cbow = external dso_local local_unnamed_addr global i32, align 4
@debug_mode = external dso_local local_unnamed_addr global i32, align 4
@window = external dso_local local_unnamed_addr global i32, align 4
@min_count = external dso_local local_unnamed_addr global i32, align 4
@num_threads = external dso_local local_unnamed_addr global i32, align 4
@vocab_max_size = external dso_local local_unnamed_addr global i64, align 8
@layer1_size = external dso_local local_unnamed_addr global i64, align 8
@iter = 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
@sample = external dso_local local_unnamed_addr global float, align 4
@hs = external dso_local local_unnamed_addr global i32, align 4
@negative = external dso_local local_unnamed_addr global i32, align 4
@vocab = external dso_local local_unnamed_addr global ptr, align 8
@vocab_hash = 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 global [100 x i8], align 16
@read_vocab_file = external dso_local global [100 x i8], align 16
@expTable = external dso_local local_unnamed_addr global ptr, align 8
@output_file = external dso_local global [100 x i8], align 16
@.str.22 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [122 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [9 x i8], align 1

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
declare dso_local void @TrainModel() local_unnamed_addr #5

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #5 {
  %3 = icmp eq i32 %0, 1
  br i1 %3, label %4, label %45

4:                                                ; preds = %2
  %5 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.22)
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.23)
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24)
  %8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.25)
  %9 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26)
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.27)
  %11 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28)
  %12 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.29)
  %13 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30)
  %14 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.31)
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.32)
  %16 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.33)
  %17 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.34)
  %18 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.35)
  %19 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.36)
  %20 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.37)
  %21 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.38)
  %22 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.39)
  %23 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.40)
  %24 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.41)
  %25 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.42)
  %26 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.43)
  %27 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.44)
  %28 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.45)
  %29 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.46)
  %30 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.47)
  %31 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.48)
  %32 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.49)
  %33 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.50)
  %34 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.51)
  %35 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.52)
  %36 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.53)
  %37 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.54)
  %38 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.55)
  %39 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.56)
  %40 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.57)
  %41 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.58)
  %42 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.59)
  %43 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.60)
  %44 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.61)
  br label %225

45:                                               ; preds = %2
  store i8 0, ptr @output_file, align 16, !tbaa !5
  store i8 0, ptr @save_vocab_file, align 16, !tbaa !5
  store i8 0, ptr @read_vocab_file, align 16, !tbaa !5
  %46 = tail call i32 @ArgPos(ptr noundef nonnull @.str.62, i32 noundef %0, ptr noundef %1)
  %47 = icmp sgt i32 %46, 0
  br i1 %47, label %48, label %55

48:                                               ; preds = %45
  %49 = zext nneg i32 %46 to i64
  %50 = getelementptr inbounds ptr, ptr %1, i64 %49
  %51 = getelementptr inbounds i8, ptr %50, i64 8
  %52 = load ptr, ptr %51, align 8, !tbaa !8
  %53 = tail call i32 @atoi(ptr nocapture noundef %52) #8
  %54 = sext i32 %53 to i64
  store i64 %54, ptr @layer1_size, align 8, !tbaa !10
  br label %55

55:                                               ; preds = %48, %45
  %56 = tail call i32 @ArgPos(ptr noundef nonnull @.str.63, i32 noundef %0, ptr noundef %1)
  %57 = icmp sgt i32 %56, 0
  br i1 %57, label %58, label %64

58:                                               ; preds = %55
  %59 = zext nneg i32 %56 to i64
  %60 = getelementptr inbounds ptr, ptr %1, i64 %59
  %61 = getelementptr inbounds i8, ptr %60, i64 8
  %62 = load ptr, ptr %61, align 8, !tbaa !8
  %63 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @train_file, ptr noundef nonnull dereferenceable(1) %62) #9
  br label %64

64:                                               ; preds = %58, %55
  %65 = tail call i32 @ArgPos(ptr noundef nonnull @.str.64, i32 noundef %0, ptr noundef %1)
  %66 = icmp sgt i32 %65, 0
  br i1 %66, label %67, label %73

67:                                               ; preds = %64
  %68 = zext nneg i32 %65 to i64
  %69 = getelementptr inbounds ptr, ptr %1, i64 %68
  %70 = getelementptr inbounds i8, ptr %69, i64 8
  %71 = load ptr, ptr %70, align 8, !tbaa !8
  %72 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @save_vocab_file, ptr noundef nonnull dereferenceable(1) %71) #9
  br label %73

73:                                               ; preds = %67, %64
  %74 = tail call i32 @ArgPos(ptr noundef nonnull @.str.65, i32 noundef %0, ptr noundef %1)
  %75 = icmp sgt i32 %74, 0
  br i1 %75, label %76, label %82

76:                                               ; preds = %73
  %77 = zext nneg i32 %74 to i64
  %78 = getelementptr inbounds ptr, ptr %1, i64 %77
  %79 = getelementptr inbounds i8, ptr %78, i64 8
  %80 = load ptr, ptr %79, align 8, !tbaa !8
  %81 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @read_vocab_file, ptr noundef nonnull dereferenceable(1) %80) #9
  br label %82

82:                                               ; preds = %76, %73
  %83 = tail call i32 @ArgPos(ptr noundef nonnull @.str.66, i32 noundef %0, ptr noundef %1)
  %84 = icmp sgt i32 %83, 0
  br i1 %84, label %85, label %91

85:                                               ; preds = %82
  %86 = zext nneg i32 %83 to i64
  %87 = getelementptr inbounds ptr, ptr %1, i64 %86
  %88 = getelementptr inbounds i8, ptr %87, i64 8
  %89 = load ptr, ptr %88, align 8, !tbaa !8
  %90 = tail call i32 @atoi(ptr nocapture noundef %89) #8
  store i32 %90, ptr @debug_mode, align 4, !tbaa !12
  br label %91

91:                                               ; preds = %85, %82
  %92 = tail call i32 @ArgPos(ptr noundef nonnull @.str.67, i32 noundef %0, ptr noundef %1)
  %93 = icmp sgt i32 %92, 0
  br i1 %93, label %94, label %100

94:                                               ; preds = %91
  %95 = zext nneg i32 %92 to i64
  %96 = getelementptr inbounds ptr, ptr %1, i64 %95
  %97 = getelementptr inbounds i8, ptr %96, i64 8
  %98 = load ptr, ptr %97, align 8, !tbaa !8
  %99 = tail call i32 @atoi(ptr nocapture noundef %98) #8
  store i32 %99, ptr @binary, align 4, !tbaa !12
  br label %100

100:                                              ; preds = %94, %91
  %101 = tail call i32 @ArgPos(ptr noundef nonnull @.str.68, i32 noundef %0, ptr noundef %1)
  %102 = icmp sgt i32 %101, 0
  br i1 %102, label %103, label %thread-pre-split

103:                                              ; preds = %100
  %104 = zext nneg i32 %101 to i64
  %105 = getelementptr inbounds ptr, ptr %1, i64 %104
  %106 = getelementptr inbounds i8, ptr %105, i64 8
  %107 = load ptr, ptr %106, align 8, !tbaa !8
  %108 = tail call i32 @atoi(ptr nocapture noundef %107) #8
  store i32 %108, ptr @cbow, align 4, !tbaa !12
  br label %109

thread-pre-split:                                 ; preds = %100
  %.pr = load i32, ptr @cbow, align 4, !tbaa !12
  br label %109

109:                                              ; preds = %thread-pre-split, %103
  %110 = phi i32 [ %.pr, %thread-pre-split ], [ %108, %103 ]
  %.not = icmp eq i32 %110, 0
  br i1 %.not, label %112, label %111

111:                                              ; preds = %109
  store float 0x3FA99999A0000000, ptr @alpha, align 4, !tbaa !14
  br label %112

112:                                              ; preds = %111, %109
  %113 = tail call i32 @ArgPos(ptr noundef nonnull @.str.69, i32 noundef %0, ptr noundef %1)
  %114 = icmp sgt i32 %113, 0
  br i1 %114, label %115, label %122

115:                                              ; preds = %112
  %116 = zext nneg i32 %113 to i64
  %117 = getelementptr inbounds ptr, ptr %1, i64 %116
  %118 = getelementptr inbounds i8, ptr %117, i64 8
  %119 = load ptr, ptr %118, align 8, !tbaa !8
  %120 = tail call double @atof(ptr noundef %119) #8
  %121 = fptrunc double %120 to float
  store float %121, ptr @alpha, align 4, !tbaa !14
  br label %122

122:                                              ; preds = %115, %112
  %123 = tail call i32 @ArgPos(ptr noundef nonnull @.str.70, i32 noundef %0, ptr noundef %1)
  %124 = icmp sgt i32 %123, 0
  br i1 %124, label %125, label %131

125:                                              ; preds = %122
  %126 = zext nneg i32 %123 to i64
  %127 = getelementptr inbounds ptr, ptr %1, i64 %126
  %128 = getelementptr inbounds i8, ptr %127, i64 8
  %129 = load ptr, ptr %128, align 8, !tbaa !8
  %130 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @output_file, ptr noundef nonnull dereferenceable(1) %129) #9
  br label %131

131:                                              ; preds = %125, %122
  %132 = tail call i32 @ArgPos(ptr noundef nonnull @.str.71, i32 noundef %0, ptr noundef %1)
  %133 = icmp sgt i32 %132, 0
  br i1 %133, label %134, label %140

134:                                              ; preds = %131
  %135 = zext nneg i32 %132 to i64
  %136 = getelementptr inbounds ptr, ptr %1, i64 %135
  %137 = getelementptr inbounds i8, ptr %136, i64 8
  %138 = load ptr, ptr %137, align 8, !tbaa !8
  %139 = tail call i32 @atoi(ptr nocapture noundef %138) #8
  store i32 %139, ptr @window, align 4, !tbaa !12
  br label %140

140:                                              ; preds = %134, %131
  %141 = tail call i32 @ArgPos(ptr noundef nonnull @.str.72, i32 noundef %0, ptr noundef %1)
  %142 = icmp sgt i32 %141, 0
  br i1 %142, label %143, label %150

143:                                              ; preds = %140
  %144 = zext nneg i32 %141 to i64
  %145 = getelementptr inbounds ptr, ptr %1, i64 %144
  %146 = getelementptr inbounds i8, ptr %145, i64 8
  %147 = load ptr, ptr %146, align 8, !tbaa !8
  %148 = tail call double @atof(ptr noundef %147) #8
  %149 = fptrunc double %148 to float
  store float %149, ptr @sample, align 4, !tbaa !14
  br label %150

150:                                              ; preds = %143, %140
  %151 = tail call i32 @ArgPos(ptr noundef nonnull @.str.73, i32 noundef %0, ptr noundef %1)
  %152 = icmp sgt i32 %151, 0
  br i1 %152, label %153, label %159

153:                                              ; preds = %150
  %154 = zext nneg i32 %151 to i64
  %155 = getelementptr inbounds ptr, ptr %1, i64 %154
  %156 = getelementptr inbounds i8, ptr %155, i64 8
  %157 = load ptr, ptr %156, align 8, !tbaa !8
  %158 = tail call i32 @atoi(ptr nocapture noundef %157) #8
  store i32 %158, ptr @hs, align 4, !tbaa !12
  br label %159

159:                                              ; preds = %153, %150
  %160 = tail call i32 @ArgPos(ptr noundef nonnull @.str.74, i32 noundef %0, ptr noundef %1)
  %161 = icmp sgt i32 %160, 0
  br i1 %161, label %162, label %168

162:                                              ; preds = %159
  %163 = zext nneg i32 %160 to i64
  %164 = getelementptr inbounds ptr, ptr %1, i64 %163
  %165 = getelementptr inbounds i8, ptr %164, i64 8
  %166 = load ptr, ptr %165, align 8, !tbaa !8
  %167 = tail call i32 @atoi(ptr nocapture noundef %166) #8
  store i32 %167, ptr @negative, align 4, !tbaa !12
  br label %168

168:                                              ; preds = %162, %159
  %169 = tail call i32 @ArgPos(ptr noundef nonnull @.str.75, i32 noundef %0, ptr noundef %1)
  %170 = icmp sgt i32 %169, 0
  br i1 %170, label %171, label %177

171:                                              ; preds = %168
  %172 = zext nneg i32 %169 to i64
  %173 = getelementptr inbounds ptr, ptr %1, i64 %172
  %174 = getelementptr inbounds i8, ptr %173, i64 8
  %175 = load ptr, ptr %174, align 8, !tbaa !8
  %176 = tail call i32 @atoi(ptr nocapture noundef %175) #8
  store i32 %176, ptr @num_threads, align 4, !tbaa !12
  br label %177

177:                                              ; preds = %171, %168
  %178 = tail call i32 @ArgPos(ptr noundef nonnull @.str.76, i32 noundef %0, ptr noundef %1)
  %179 = icmp sgt i32 %178, 0
  br i1 %179, label %180, label %187

180:                                              ; preds = %177
  %181 = zext nneg i32 %178 to i64
  %182 = getelementptr inbounds ptr, ptr %1, i64 %181
  %183 = getelementptr inbounds i8, ptr %182, i64 8
  %184 = load ptr, ptr %183, align 8, !tbaa !8
  %185 = tail call i32 @atoi(ptr nocapture noundef %184) #8
  %186 = sext i32 %185 to i64
  store i64 %186, ptr @iter, align 8, !tbaa !10
  br label %187

187:                                              ; preds = %180, %177
  %188 = tail call i32 @ArgPos(ptr noundef nonnull @.str.77, i32 noundef %0, ptr noundef %1)
  %189 = icmp sgt i32 %188, 0
  br i1 %189, label %190, label %196

190:                                              ; preds = %187
  %191 = zext nneg i32 %188 to i64
  %192 = getelementptr inbounds ptr, ptr %1, i64 %191
  %193 = getelementptr inbounds i8, ptr %192, i64 8
  %194 = load ptr, ptr %193, align 8, !tbaa !8
  %195 = tail call i32 @atoi(ptr nocapture noundef %194) #8
  store i32 %195, ptr @min_count, align 4, !tbaa !12
  br label %196

196:                                              ; preds = %190, %187
  %197 = tail call i32 @ArgPos(ptr noundef nonnull @.str.78, i32 noundef %0, ptr noundef %1)
  %198 = icmp sgt i32 %197, 0
  br i1 %198, label %199, label %206

199:                                              ; preds = %196
  %200 = zext nneg i32 %197 to i64
  %201 = getelementptr inbounds ptr, ptr %1, i64 %200
  %202 = getelementptr inbounds i8, ptr %201, i64 8
  %203 = load ptr, ptr %202, align 8, !tbaa !8
  %204 = tail call i32 @atoi(ptr nocapture noundef %203) #8
  %205 = sext i32 %204 to i64
  store i64 %205, ptr @classes, align 8, !tbaa !10
  br label %206

206:                                              ; preds = %199, %196
  %207 = load i64, ptr @vocab_max_size, align 8, !tbaa !10
  %208 = tail call noalias ptr @calloc(i64 noundef %207, i64 noundef 40) #10
  store ptr %208, ptr @vocab, align 8, !tbaa !8
  %209 = tail call noalias dereferenceable_or_null(120000000) ptr @calloc(i64 noundef 30000000, i64 noundef 4) #10
  store ptr %209, ptr @vocab_hash, align 8, !tbaa !8
  %210 = tail call noalias dereferenceable_or_null(4004) ptr @malloc(i64 noundef 4004) #11
  store ptr %210, ptr @expTable, align 8, !tbaa !8
  br label %211

211:                                              ; preds = %206, %211
  %indvars.iv = phi i64 [ 0, %206 ], [ %indvars.iv.next, %211 ]
  %212 = trunc nuw nsw i64 %indvars.iv to i32
  %213 = uitofp nneg i32 %212 to float
  %214 = fdiv float %213, 1.000000e+03
  %215 = tail call float @llvm.fmuladd.f32(float %214, float 2.000000e+00, float -1.000000e+00)
  %216 = fmul float %215, 6.000000e+00
  %217 = fpext float %216 to double
  %218 = tail call double @exp(double noundef %217) #9
  %219 = fptrunc double %218 to float
  %220 = load ptr, ptr @expTable, align 8, !tbaa !8
  %221 = getelementptr inbounds float, ptr %220, i64 %indvars.iv
  %222 = fadd float %219, 1.000000e+00
  %223 = fdiv float %219, %222
  store float %223, ptr %221, align 4, !tbaa !14
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 1000
  br i1 %exitcond.not, label %224, label %211, !llvm.loop !16

224:                                              ; preds = %211
  tail call void @TrainModel()
  br label %225

225:                                              ; preds = %224, %4
  ret i32 0
}

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare double @atof(ptr nocapture noundef nonnull) local_unnamed_addr #6

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

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

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"long long", !6, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !6, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !6, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass