; LLVM IR from gost-engine/engine :: gost12sum (main)

; 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.gost2012_hash_ctx = type { %union.uint512_u, %union.uint512_u, %union.uint512_u, %union.uint512_u, i64, i32 }
%union.uint512_u = type { [8 x i64] }

@stderr = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@optarg = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1
@optopt = external global i32, align 4
@optind = external global i32, align 4
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [6 x i8], align 1

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %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
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %struct.gost2012_hash_ctx, align 8
  %15 = alloca [129 x i8], align 16
  %16 = alloca [129 x i8], align 16
  %17 = alloca [4096 x i8], align 16
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca [129 x i8], align 16
  %24 = alloca [4097 x i8], align 16
  %25 = alloca ptr, align 8
  %26 = alloca [129 x i8], align 16
  %27 = alloca [129 x i8], align 16
  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) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store ptr null, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 32, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 272, ptr %14) #6
  br label %28

28:                                               ; preds = %57, %2
  %29 = load i32, ptr %4, align 4, !tbaa !5
  %30 = load ptr, ptr %5, align 8, !tbaa !9
  %31 = call i32 @getopt(i32 noundef %29, ptr noundef %30, ptr noundef @.str.2) #6
  store i32 %31, ptr %6, align 4, !tbaa !5
  %32 = icmp ne i32 %31, -1
  br i1 %32, label %33, label %58

33:                                               ; preds = %28
  %34 = load i32, ptr %6, align 4, !tbaa !5
  switch i32 %34, label %53 [
    i32 104, label %35
    i32 118, label %36
    i32 108, label %37
    i32 120, label %38
    i32 99, label %39
  ]

35:                                               ; preds = %33
  call void @help()
  call void @exit(i32 noundef 0) #7
  unreachable

36:                                               ; preds = %33
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %57

37:                                               ; preds = %33
  store i32 64, ptr %13, align 4, !tbaa !5
  br label %57

38:                                               ; preds = %33
  store i32 1, ptr %12, align 4, !tbaa !5
  br label %57

39:                                               ; preds = %33
  %40 = load ptr, ptr @optarg, align 8, !tbaa !9
  %41 = icmp ne ptr %40, null
  br i1 %41, label %42, label %50

42:                                               ; preds = %39
  %43 = load ptr, ptr @optarg, align 8, !tbaa !9
  %44 = call noalias ptr @fopen(ptr noundef %43, ptr noundef @.str.3)
  store ptr %44, ptr %11, align 8, !tbaa !9
  %45 = load ptr, ptr %11, align 8, !tbaa !9
  %46 = icmp ne ptr %45, null
  br i1 %46, label %49, label %47

47:                                               ; preds = %42
  %48 = load ptr, ptr @optarg, align 8, !tbaa !9
  call void @perror(ptr noundef %48)
  call void @exit(i32 noundef 2) #7
  unreachable

49:                                               ; preds = %42
  br label %52

50:                                               ; preds = %39
  %51 = load ptr, ptr @stdin, align 8, !tbaa !9
  store ptr %51, ptr %11, align 8, !tbaa !9
  br label %52

52:                                               ; preds = %50, %49
  br label %57

53:                                               ; preds = %33
  %54 = load ptr, ptr @stderr, align 8, !tbaa !9
  %55 = load i32, ptr @optopt, align 4, !tbaa !5
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef @.str.4, i32 noundef %55) #6
  call void @help()
  br label %57

57:                                               ; preds = %53, %52, %38, %37, %36
  br label %28, !llvm.loop !11

58:                                               ; preds = %28
  %59 = load ptr, ptr %11, align 8, !tbaa !9
  %60 = icmp ne ptr %59, null
  br i1 %60, label %61, label %189

61:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 129, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 129, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 4096, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !5
  %62 = load ptr, ptr %11, align 8, !tbaa !9
  %63 = load ptr, ptr @stdin, align 8, !tbaa !9
  %64 = icmp eq ptr %62, %63
  br i1 %64, label %65, label %85

65:                                               ; preds = %61
  %66 = load i32, ptr @optind, align 4, !tbaa !5
  %67 = load i32, ptr %4, align 4, !tbaa !5
  %68 = icmp slt i32 %66, %67
  br i1 %68, label %69, label %85

69:                                               ; preds = %65
  %70 = load ptr, ptr %5, align 8, !tbaa !9
  %71 = load i32, ptr @optind, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds ptr, ptr %70, i64 %72
  %74 = load ptr, ptr %73, align 8, !tbaa !9
  %75 = call noalias ptr @fopen(ptr noundef %74, ptr noundef @.str.3)
  store ptr %75, ptr %11, align 8, !tbaa !9
  %76 = load ptr, ptr %11, align 8, !tbaa !9
  %77 = icmp ne ptr %76, null
  br i1 %77, label %84, label %78

78:                                               ; preds = %69
  %79 = load ptr, ptr %5, align 8, !tbaa !9
  %80 = load i32, ptr @optind, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds ptr, ptr %79, i64 %81
  %83 = load ptr, ptr %82, align 8, !tbaa !9
  call void @perror(ptr noundef %83)
  call void @exit(i32 noundef 2) #7
  unreachable

84:                                               ; preds = %69
  br label %85

85:                                               ; preds = %84, %65, %61
  br label %86

86:                                               ; preds = %154, %152, %85
  %87 = load ptr, ptr %11, align 8, !tbaa !9
  %88 = getelementptr inbounds [129 x i8], ptr %15, i64 0, i64 0
  %89 = getelementptr inbounds [4096 x i8], ptr %17, i64 0, i64 0
  %90 = load i32, ptr %8, align 4, !tbaa !5
  %91 = call i32 @get_line(ptr noundef %87, ptr noundef %88, ptr noundef %89, i32 noundef %90, ptr noundef %20)
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %155

93:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !5
  %94 = load i32, ptr %20, align 4, !tbaa !5
  %95 = icmp eq i32 %94, 0
  br i1 %95, label %96, label %104

96:                                               ; preds = %93
  %97 = load ptr, ptr @stderr, align 8, !tbaa !9
  %98 = getelementptr inbounds [4096 x i8], ptr %17, i64 0, i64 0
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef @.str.5, ptr noundef %98) #6
  %100 = load i32, ptr %9, align 4, !tbaa !5
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %9, align 4, !tbaa !5
  %102 = load i32, ptr %19, align 4, !tbaa !5
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %19, align 4, !tbaa !5
  store i32 5, ptr %22, align 4
  br label %152, !llvm.loop !13

104:                                              ; preds = %93
  %105 = getelementptr inbounds [4096 x i8], ptr %17, i64 0, i64 0
  %106 = getelementptr inbounds [129 x i8], ptr %16, i64 0, i64 0
  %107 = load i32, ptr %10, align 4, !tbaa !5
  %108 = load i32, ptr %20, align 4, !tbaa !5
  %109 = call i32 @hash_file(ptr noundef %14, ptr noundef %105, ptr noundef %106, i32 noundef %107, i32 noundef %108)
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %114, label %111

111:                                              ; preds = %104
  %112 = load i32, ptr %9, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %9, align 4, !tbaa !5
  store i32 1, ptr %21, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %111, %104
  %115 = load i32, ptr %19, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %19, align 4, !tbaa !5
  %117 = load i32, ptr %21, align 4, !tbaa !5
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %119, label %120

119:                                              ; preds = %114
  store i32 5, ptr %22, align 4
  br label %152, !llvm.loop !13

120:                                              ; preds = %114
  %121 = getelementptr inbounds [129 x i8], ptr %16, i64 0, i64 0
  %122 = getelementptr inbounds [129 x i8], ptr %15, i64 0, i64 0
  %123 = load i32, ptr %20, align 4, !tbaa !5
  %124 = mul nsw i32 %123, 2
  %125 = add nsw i32 %124, 1
  %126 = sext i32 %125 to i64
  %127 = call i32 @strncmp(ptr noundef %121, ptr noundef %122, i64 noundef %126) #8
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %137, label %129

129:                                              ; preds = %120
  %130 = load i32, ptr %8, align 4, !tbaa !5
  %131 = icmp ne i32 %130, 0
  br i1 %131, label %132, label %136

132:                                              ; preds = %129
  %133 = load ptr, ptr @stderr, align 8, !tbaa !9
  %134 = getelementptr inbounds [4096 x i8], ptr %17, i64 0, i64 0
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %133, ptr noundef @.str.6, ptr noundef %134) #6
  br label %136

136:                                              ; preds = %132, %129
  br label %151

137:                                              ; preds = %120
  %138 = load i32, ptr %8, align 4, !tbaa !5
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %144

140:                                              ; preds = %137
  %141 = load ptr, ptr @stderr, align 8, !tbaa !9
  %142 = getelementptr inbounds [4096 x i8], ptr %17, i64 0, i64 0
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %141, ptr noundef @.str.7, ptr noundef %142) #6
  br label %148

144:                                              ; preds = %137
  %145 = load ptr, ptr @stderr, align 8, !tbaa !9
  %146 = getelementptr inbounds [4096 x i8], ptr %17, i64 0, i64 0
  %147 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %145, ptr noundef @.str.8, ptr noundef %146) #6
  br label %148

148:                                              ; preds = %144, %140
  %149 = load i32, ptr %18, align 4, !tbaa !5
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %18, align 4, !tbaa !5
  br label %151

151:                                              ; preds = %148, %136
  store i32 0, ptr %22, align 4
  br label %152

152:                                              ; preds = %151, %119, %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  %153 = load i32, ptr %22, align 4
  switch i32 %153, label %305 [
    i32 0, label %154
    i32 5, label %86
  ]

154:                                              ; preds = %152
  br label %86, !llvm.loop !13

155:                                              ; preds = %86
  %156 = load i32, ptr %9, align 4, !tbaa !5
  %157 = icmp ne i32 %156, 0
  br i1 %157, label %158, label %166

158:                                              ; preds = %155
  %159 = load ptr, ptr @stderr, align 8, !tbaa !9
  %160 = load ptr, ptr %5, align 8, !tbaa !9
  %161 = getelementptr inbounds ptr, ptr %160, i64 0
  %162 = load ptr, ptr %161, align 8, !tbaa !9
  %163 = load i32, ptr %9, align 4, !tbaa !5
  %164 = load i32, ptr %19, align 4, !tbaa !5
  %165 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %159, ptr noundef @.str.9, ptr noundef %162, i32 noundef %163, i32 noundef %164) #6
  br label %166

166:                                              ; preds = %158, %155
  %167 = load i32, ptr %18, align 4, !tbaa !5
  %168 = icmp ne i32 %167, 0
  br i1 %168, label %169, label %179

169:                                              ; preds = %166
  %170 = load ptr, ptr @stderr, align 8, !tbaa !9
  %171 = load ptr, ptr %5, align 8, !tbaa !9
  %172 = getelementptr inbounds ptr, ptr %171, i64 0
  %173 = load ptr, ptr %172, align 8, !tbaa !9
  %174 = load i32, ptr %18, align 4, !tbaa !5
  %175 = load i32, ptr %19, align 4, !tbaa !5
  %176 = load i32, ptr %9, align 4, !tbaa !5
  %177 = sub nsw i32 %175, %176
  %178 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %170, ptr noundef @.str.10, ptr noundef %173, i32 noundef %174, i32 noundef %177) #6
  br label %179

179:                                              ; preds = %169, %166
  %180 = load i32, ptr %18, align 4, !tbaa !5
  %181 = icmp ne i32 %180, 0
  br i1 %181, label %185, label %182

182:                                              ; preds = %179
  %183 = load i32, ptr %9, align 4, !tbaa !5
  %184 = icmp ne i32 %183, 0
  br label %185

185:                                              ; preds = %182, %179
  %186 = phi i1 [ true, %179 ], [ %184, %182 ]
  %187 = zext i1 %186 to i64
  %188 = select i1 %186, i32 1, i32 0
  call void @exit(i32 noundef %188) #7
  unreachable

189:                                              ; preds = %58
  %190 = load i32, ptr %12, align 4, !tbaa !5
  %191 = icmp ne i32 %190, 0
  br i1 %191, label %192, label %250

192:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 129, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 4097, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  br label %193

193:                                              ; preds = %248, %192
  %194 = load ptr, ptr @stdin, align 8, !tbaa !9
  %195 = call i32 @feof(ptr noundef %194) #6
  %196 = icmp ne i32 %195, 0
  %197 = xor i1 %196, true
  br i1 %197, label %198, label %249

198:                                              ; preds = %193
  %199 = getelementptr inbounds [4097 x i8], ptr %24, i64 0, i64 0
  %200 = load ptr, ptr @stdin, align 8, !tbaa !9
  %201 = call ptr @fgets(ptr noundef %199, i32 noundef 4096, ptr noundef %200)
  %202 = icmp ne ptr %201, null
  br i1 %202, label %204, label %203

203:                                              ; preds = %198
  br label %249

204:                                              ; preds = %198
  %205 = getelementptr inbounds [4097 x i8], ptr %24, i64 0, i64 0
  store ptr %205, ptr %25, align 8, !tbaa !9
  br label %206

206:                                              ; preds = %211, %204
  %207 = load ptr, ptr %25, align 8, !tbaa !9
  %208 = load i8, ptr %207, align 1, !tbaa !14
  %209 = icmp ne i8 %208, 0
  br i1 %209, label %210, label %214

210:                                              ; preds = %206
  br label %211

211:                                              ; preds = %210
  %212 = load ptr, ptr %25, align 8, !tbaa !9
  %213 = getelementptr inbounds i8, ptr %212, i32 1
  store ptr %213, ptr %25, align 8, !tbaa !9
  br label %206, !llvm.loop !15

214:                                              ; preds = %206
  %215 = load ptr, ptr %25, align 8, !tbaa !9
  %216 = getelementptr inbounds i8, ptr %215, i32 -1
  store ptr %216, ptr %25, align 8, !tbaa !9
  br label %217

217:                                              ; preds = %231, %214
  %218 = load ptr, ptr %25, align 8, !tbaa !9
  %219 = load i8, ptr %218, align 1, !tbaa !14
  %220 = sext i8 %219 to i32
  %221 = icmp eq i32 %220, 10
  br i1 %221, label %227, label %222

222:                                              ; preds = %217
  %223 = load ptr, ptr %25, align 8, !tbaa !9
  %224 = load i8, ptr %223, align 1, !tbaa !14
  %225 = sext i8 %224 to i32
  %226 = icmp eq i32 %225, 13
  br label %227

227:                                              ; preds = %222, %217
  %228 = phi i1 [ true, %217 ], [ %226, %222 ]
  br i1 %228, label %229, label %234

229:                                              ; preds = %227
  %230 = load ptr, ptr %25, align 8, !tbaa !9
  store i8 0, ptr %230, align 1, !tbaa !14
  br label %231

231:                                              ; preds = %229
  %232 = load ptr, ptr %25, align 8, !tbaa !9
  %233 = getelementptr inbounds i8, ptr %232, i32 -1
  store ptr %233, ptr %25, align 8, !tbaa !9
  br label %217, !llvm.loop !16

234:                                              ; preds = %227
  %235 = getelementptr inbounds [4097 x i8], ptr %24, i64 0, i64 0
  %236 = getelementptr inbounds [129 x i8], ptr %23, i64 0, i64 0
  %237 = load i32, ptr %10, align 4, !tbaa !5
  %238 = load i32, ptr %13, align 4, !tbaa !5
  %239 = call i32 @hash_file(ptr noundef %14, ptr noundef %235, ptr noundef %236, i32 noundef %237, i32 noundef %238)
  %240 = icmp ne i32 %239, 0
  br i1 %240, label %244, label %241

241:                                              ; preds = %234
  %242 = load i32, ptr %9, align 4, !tbaa !5
  %243 = add nsw i32 %242, 1
  store i32 %243, ptr %9, align 4, !tbaa !5
  br label %248

244:                                              ; preds = %234
  %245 = getelementptr inbounds [129 x i8], ptr %23, i64 0, i64 0
  %246 = getelementptr inbounds [4097 x i8], ptr %24, i64 0, i64 0
  %247 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef %245, ptr noundef %246)
  br label %248

248:                                              ; preds = %244, %241
  br label %193, !llvm.loop !17

249:                                              ; preds = %203, %193
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4097, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 129, ptr %23) #6
  br label %299

250:                                              ; preds = %189
  %251 = load i32, ptr @optind, align 4, !tbaa !5
  %252 = load i32, ptr %4, align 4, !tbaa !5
  %253 = icmp eq i32 %251, %252
  br i1 %253, label %254, label %265

254:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 129, ptr %26) #6
  %255 = load ptr, ptr @stdin, align 8, !tbaa !9
  %256 = call i32 @fileno(ptr noundef %255) #6
  %257 = getelementptr inbounds [129 x i8], ptr %26, i64 0, i64 0
  %258 = load i32, ptr %13, align 4, !tbaa !5
  %259 = call i32 @hash_stream(ptr noundef %14, i32 noundef %256, ptr noundef %257, i32 noundef %258)
  %260 = icmp ne i32 %259, 0
  br i1 %260, label %262, label %261

261:                                              ; preds = %254
  call void @perror(ptr noundef @.str.12)
  call void @exit(i32 noundef 1) #7
  unreachable

262:                                              ; preds = %254
  %263 = getelementptr inbounds [129 x i8], ptr %26, i64 0, i64 0
  %264 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, ptr noundef %263)
  call void @exit(i32 noundef 0) #7
  unreachable

265:                                              ; preds = %250
  %266 = load i32, ptr @optind, align 4, !tbaa !5
  store i32 %266, ptr %7, align 4, !tbaa !5
  br label %267

267:                                              ; preds = %294, %265
  %268 = load i32, ptr %7, align 4, !tbaa !5
  %269 = load i32, ptr %4, align 4, !tbaa !5
  %270 = icmp slt i32 %268, %269
  br i1 %270, label %271, label %297

271:                                              ; preds = %267
  call void @llvm.lifetime.start.p0(i64 129, ptr %27) #6
  %272 = load ptr, ptr %5, align 8, !tbaa !9
  %273 = load i32, ptr %7, align 4, !tbaa !5
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds ptr, ptr %272, i64 %274
  %276 = load ptr, ptr %275, align 8, !tbaa !9
  %277 = getelementptr inbounds [129 x i8], ptr %27, i64 0, i64 0
  %278 = load i32, ptr %10, align 4, !tbaa !5
  %279 = load i32, ptr %13, align 4, !tbaa !5
  %280 = call i32 @hash_file(ptr noundef %14, ptr noundef %276, ptr noundef %277, i32 noundef %278, i32 noundef %279)
  %281 = icmp ne i32 %280, 0
  br i1 %281, label %285, label %282

282:                                              ; preds = %271
  %283 = load i32, ptr %9, align 4, !tbaa !5
  %284 = add nsw i32 %283, 1
  store i32 %284, ptr %9, align 4, !tbaa !5
  br label %293

285:                                              ; preds = %271
  %286 = getelementptr inbounds [129 x i8], ptr %27, i64 0, i64 0
  %287 = load ptr, ptr %5, align 8, !tbaa !9
  %288 = load i32, ptr %7, align 4, !tbaa !5
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds ptr, ptr %287, i64 %289
  %291 = load ptr, ptr %290, align 8, !tbaa !9
  %292 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef %286, ptr noundef %291)
  br label %293

293:                                              ; preds = %285, %282
  call void @llvm.lifetime.end.p0(i64 129, ptr %27) #6
  br label %294

294:                                              ; preds = %293
  %295 = load i32, ptr %7, align 4, !tbaa !5
  %296 = add nsw i32 %295, 1
  store i32 %296, ptr %7, align 4, !tbaa !5
  br label %267, !llvm.loop !18

297:                                              ; preds = %267
  br label %298

298:                                              ; preds = %297
  br label %299

299:                                              ; preds = %298, %249
  br label %300

300:                                              ; preds = %299
  %301 = load i32, ptr %9, align 4, !tbaa !5
  %302 = icmp ne i32 %301, 0
  %303 = zext i1 %302 to i64
  %304 = select i1 %302, i32 1, i32 0
  call void @exit(i32 noundef %304) #7
  unreachable

305:                                              ; preds = %152
  unreachable
}

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

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1

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

declare void @perror(ptr noundef) #4

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #5

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

; Function Attrs: nounwind
declare i32 @feof(ptr noundef) #1

declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #4

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

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

; Function Attrs: nounwind
declare i32 @fileno(ptr noundef) #1

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

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


; 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.gost2012_hash_ctx = type { %union.uint512_u, %union.uint512_u, %union.uint512_u, %union.uint512_u, i64, i32 }
%union.uint512_u = type { [8 x i64] }

@stderr = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1
@optopt = external local_unnamed_addr global i32, align 4
@optind = external local_unnamed_addr global i32, align 4
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [6 x i8], align 1

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #2

; Function Attrs: noreturn nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #3 {
  %3 = alloca %struct.gost2012_hash_ctx, align 8
  %4 = alloca [129 x i8], align 16
  %5 = alloca [129 x i8], align 16
  %6 = alloca [4096 x i8], align 16
  %7 = alloca i32, align 4
  %8 = alloca [129 x i8], align 16
  %9 = alloca [4097 x i8], align 16
  %10 = alloca [129 x i8], align 16
  %11 = alloca [129 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 272, ptr nonnull %3) #7
  br label %.outer

.outer:                                           ; preds = %12, %2
  %.not100 = phi i1 [ true, %2 ], [ false, %12 ]
  %.071.ph = phi i32 [ 0, %2 ], [ 1, %12 ]
  %.064.ph = phi ptr [ null, %2 ], [ %.064.ph170, %12 ]
  %.062.ph = phi i32 [ 0, %2 ], [ %.062.ph174, %12 ]
  %.060.ph = phi i32 [ 32, %2 ], [ %.060.ph177, %12 ]
  br label %.outer169

.outer169:                                        ; preds = %.outer169.backedge, %.outer
  %.064.ph170 = phi ptr [ %.064.ph, %.outer ], [ %.064.ph170.be, %.outer169.backedge ]
  %.062.ph171 = phi i32 [ %.062.ph, %.outer ], [ %.062.ph174, %.outer169.backedge ]
  %.060.ph172 = phi i32 [ %.060.ph, %.outer ], [ %.060.ph177, %.outer169.backedge ]
  br label %.outer173

.outer173:                                        ; preds = %.outer169, %16
  %.062.ph174 = phi i32 [ %.062.ph171, %.outer169 ], [ 1, %16 ]
  %.060.ph175 = phi i32 [ %.060.ph172, %.outer169 ], [ %.060.ph177, %16 ]
  br label %.outer176

.outer176:                                        ; preds = %.outer173, %15
  %.060.ph177 = phi i32 [ %.060.ph175, %.outer173 ], [ 64, %15 ]
  br label %12

12:                                               ; preds = %.outer176, %25
  %13 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.2) #7
  switch i32 %13, label %25 [
    i32 -1, label %29
    i32 104, label %14
    i32 118, label %.outer
    i32 108, label %15
    i32 120, label %16
    i32 99, label %17
  ], !llvm.loop !5

14:                                               ; preds = %12
  tail call void @help()
  tail call void @exit(i32 noundef 0) #8
  unreachable

15:                                               ; preds = %12
  br label %.outer176, !llvm.loop !5

16:                                               ; preds = %12
  br label %.outer173, !llvm.loop !5

17:                                               ; preds = %12
  %18 = load ptr, ptr @optarg, align 8, !tbaa !7
  %.not101 = icmp eq ptr %18, null
  br i1 %.not101, label %23, label %19

19:                                               ; preds = %17
  %20 = tail call noalias ptr @fopen(ptr noundef nonnull %18, ptr noundef nonnull @.str.3)
  %.not102 = icmp eq ptr %20, null
  br i1 %.not102, label %21, label %.outer169.backedge

.outer169.backedge:                               ; preds = %19, %23
  %.064.ph170.be = phi ptr [ %24, %23 ], [ %20, %19 ]
  br label %.outer169, !llvm.loop !5

21:                                               ; preds = %19
  %22 = load ptr, ptr @optarg, align 8, !tbaa !7
  tail call void @perror(ptr noundef %22) #9
  tail call void @exit(i32 noundef 2) #8
  unreachable

23:                                               ; preds = %17
  %24 = load ptr, ptr @stdin, align 8, !tbaa !7
  br label %.outer169.backedge

25:                                               ; preds = %12
  %26 = load ptr, ptr @stderr, align 8, !tbaa !7
  %27 = load i32, ptr @optopt, align 4, !tbaa !11
  %28 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.4, i32 noundef %27) #10
  tail call void @help()
  br label %12, !llvm.loop !5

29:                                               ; preds = %12
  %.not82 = icmp eq ptr %.064.ph170, null
  br i1 %.not82, label %85, label %30

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 129, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 129, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  store i32 0, ptr %7, align 4, !tbaa !11
  %31 = load ptr, ptr @stdin, align 8, !tbaa !7
  %32 = icmp eq ptr %.064.ph170, %31
  br i1 %32, label %33, label %46

33:                                               ; preds = %30
  %34 = load i32, ptr @optind, align 4, !tbaa !11
  %35 = icmp slt i32 %34, %0
  br i1 %35, label %36, label %46

36:                                               ; preds = %33
  %37 = sext i32 %34 to i64
  %38 = getelementptr inbounds ptr, ptr %1, i64 %37
  %39 = load ptr, ptr %38, align 8, !tbaa !7
  %40 = tail call noalias ptr @fopen(ptr noundef %39, ptr noundef nonnull @.str.3)
  %.not91 = icmp eq ptr %40, null
  br i1 %.not91, label %41, label %46

41:                                               ; preds = %36
  %42 = load i32, ptr @optind, align 4, !tbaa !11
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds ptr, ptr %1, i64 %43
  %45 = load ptr, ptr %44, align 8, !tbaa !7
  tail call void @perror(ptr noundef %45) #9
  tail call void @exit(i32 noundef 2) #8
  unreachable

46:                                               ; preds = %36, %33, %30
  %.266 = phi ptr [ %40, %36 ], [ %.064.ph170, %33 ], [ %.064.ph170, %30 ]
  %47 = call i32 @get_line(ptr noundef nonnull %.266, ptr noundef nonnull %4, ptr noundef nonnull %6, i32 noundef %.071.ph, ptr noundef nonnull %7)
  %.not92113 = icmp eq i32 %47, 0
  br i1 %.not92113, label %.thread, label %.lr.ph

.lr.ph:                                           ; preds = %46
  %.str.8..str.7 = select i1 %.not100, ptr @.str.8, ptr @.str.7
  br label %48

48:                                               ; preds = %.lr.ph, %71
  %.056116 = phi i32 [ 0, %.lr.ph ], [ %.157, %71 ]
  %.058115 = phi i32 [ 0, %.lr.ph ], [ %.2, %71 ]
  %.068114 = phi i32 [ 0, %.lr.ph ], [ %.270, %71 ]
  %49 = load i32, ptr %7, align 4, !tbaa !11
  %50 = icmp eq i32 %49, 0
  %51 = add nsw i32 %.068114, 1
  br i1 %50, label %52, label %55

52:                                               ; preds = %48
  %53 = load ptr, ptr @stderr, align 8, !tbaa !7
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.5, ptr noundef nonnull %6) #10
  br label %71, !llvm.loop !13

55:                                               ; preds = %48
  %56 = call i32 @hash_file(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %5, i32 noundef 0, i32 noundef %49)
  %.not96.not = icmp eq i32 %56, 0
  br i1 %.not96.not, label %71, label %57, !llvm.loop !13

57:                                               ; preds = %55
  %58 = load i32, ptr %7, align 4, !tbaa !11
  %59 = shl nsw i32 %58, 1
  %60 = or disjoint i32 %59, 1
  %61 = sext i32 %60 to i64
  %62 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) %4, i64 noundef %61) #11
  %.not98 = icmp eq i32 %62, 0
  br i1 %.not98, label %63, label %67

63:                                               ; preds = %57
  br i1 %.not100, label %71, label %64

64:                                               ; preds = %63
  %65 = load ptr, ptr @stderr, align 8, !tbaa !7
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef nonnull @.str.6, ptr noundef nonnull %6) #10
  br label %71

67:                                               ; preds = %57
  %68 = load ptr, ptr @stderr, align 8, !tbaa !7
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %68, ptr noundef nonnull %.str.8..str.7, ptr noundef nonnull %6) #10
  %70 = add nsw i32 %.058115, 1
  br label %71

71:                                               ; preds = %67, %64, %63, %55, %52
  %.270 = phi i32 [ %51, %52 ], [ %51, %55 ], [ %.068114, %63 ], [ %.068114, %64 ], [ %.068114, %67 ]
  %.2 = phi i32 [ %.058115, %52 ], [ %.058115, %55 ], [ %.058115, %63 ], [ %.058115, %64 ], [ %70, %67 ]
  %.157 = add nuw nsw i32 %.056116, 1
  %72 = call i32 @get_line(ptr noundef nonnull %.266, ptr noundef nonnull %4, ptr noundef nonnull %6, i32 noundef %.071.ph, ptr noundef nonnull %7)
  %.not92 = icmp eq i32 %72, 0
  br i1 %.not92, label %._crit_edge, label %48

._crit_edge:                                      ; preds = %71
  %.not95 = icmp eq i32 %.270, 0
  br i1 %.not95, label %77, label %73

73:                                               ; preds = %._crit_edge
  %74 = load ptr, ptr @stderr, align 8, !tbaa !7
  %75 = load ptr, ptr %1, align 8, !tbaa !7
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str.9, ptr noundef %75, i32 noundef %.270, i32 noundef %.157) #10
  br label %77

77:                                               ; preds = %73, %._crit_edge
  %.068.lcssa144 = phi i32 [ %.270, %73 ], [ 0, %._crit_edge ]
  %.not94 = icmp eq i32 %.2, 0
  br i1 %.not94, label %.thread, label %78

78:                                               ; preds = %77
  %79 = load ptr, ptr @stderr, align 8, !tbaa !7
  %80 = load ptr, ptr %1, align 8, !tbaa !7
  %81 = sub nsw i32 %.157, %.068.lcssa144
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef nonnull @.str.10, ptr noundef %80, i32 noundef %.2, i32 noundef %81) #10
  br label %.thread

.thread:                                          ; preds = %46, %78, %77
  %.068.lcssa144152 = phi i32 [ %.068.lcssa144, %78 ], [ %.068.lcssa144, %77 ], [ 0, %46 ]
  %.058.lcssa145151 = phi i32 [ 1, %78 ], [ 0, %77 ], [ 0, %46 ]
  %83 = or i32 %.058.lcssa145151, %.068.lcssa144152
  %.not93 = icmp ne i32 %83, 0
  %84 = zext i1 %.not93 to i32
  call void @exit(i32 noundef %84) #8
  unreachable

85:                                               ; preds = %29
  %.not83 = icmp eq i32 %.062.ph174, 0
  br i1 %.not83, label %103, label %86

86:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 129, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 4097, ptr nonnull %9) #7
  %87 = load ptr, ptr @stdin, align 8, !tbaa !7
  %88 = tail call i32 @feof(ptr noundef %87) #7
  %.not86119 = icmp eq i32 %88, 0
  br i1 %.not86119, label %.lr.ph122, label %._crit_edge123

.lr.ph122:                                        ; preds = %86, %100
  %.3120 = phi i32 [ %.4, %100 ], [ 0, %86 ]
  %89 = load ptr, ptr @stdin, align 8, !tbaa !7
  %90 = call ptr @fgets(ptr noundef nonnull %9, i32 noundef 4096, ptr noundef %89)
  %.not87 = icmp eq ptr %90, null
  br i1 %.not87, label %._crit_edge123, label %.preheader104

.preheader104:                                    ; preds = %.lr.ph122, %.preheader104
  %.0 = phi ptr [ %92, %.preheader104 ], [ %9, %.lr.ph122 ]
  %91 = load i8, ptr %.0, align 1, !tbaa !14
  %.not89 = icmp eq i8 %91, 0
  %92 = getelementptr inbounds i8, ptr %.0, i64 1
  br i1 %.not89, label %.preheader103, label %.preheader104, !llvm.loop !15

.preheader103:                                    ; preds = %.preheader104, %.critedge
  %.0.pn = phi ptr [ %.1, %.critedge ], [ %.0, %.preheader104 ]
  %.1 = getelementptr inbounds i8, ptr %.0.pn, i64 -1
  %93 = load i8, ptr %.1, align 1, !tbaa !14
  switch i8 %93, label %94 [
    i8 10, label %.critedge
    i8 13, label %.critedge
  ]

.critedge:                                        ; preds = %.preheader103, %.preheader103
  store i8 0, ptr %.1, align 1, !tbaa !14
  br label %.preheader103, !llvm.loop !16

94:                                               ; preds = %.preheader103
  %95 = call i32 @hash_file(ptr noundef nonnull %3, ptr noundef nonnull %9, ptr noundef nonnull %8, i32 noundef 0, i32 noundef %.060.ph177)
  %.not90 = icmp eq i32 %95, 0
  br i1 %.not90, label %96, label %98

96:                                               ; preds = %94
  %97 = add nsw i32 %.3120, 1
  br label %100

98:                                               ; preds = %94
  %99 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef nonnull %8, ptr noundef nonnull %9)
  br label %100

100:                                              ; preds = %98, %96
  %.4 = phi i32 [ %.3120, %98 ], [ %97, %96 ]
  %101 = load ptr, ptr @stdin, align 8, !tbaa !7
  %102 = call i32 @feof(ptr noundef %101) #7
  %.not86 = icmp eq i32 %102, 0
  br i1 %.not86, label %.lr.ph122, label %._crit_edge123, !llvm.loop !17

._crit_edge123:                                   ; preds = %100, %.lr.ph122, %86
  %.3.lcssa = phi i32 [ 0, %86 ], [ %.3120, %.lr.ph122 ], [ %.4, %100 ]
  call void @llvm.lifetime.end.p0(i64 4097, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 129, ptr nonnull %8) #7
  br label %.loopexit

103:                                              ; preds = %85
  %104 = load i32, ptr @optind, align 4, !tbaa !11
  %105 = icmp eq i32 %104, %0
  br i1 %105, label %108, label %.preheader

.preheader:                                       ; preds = %103
  %106 = icmp slt i32 %104, %0
  br i1 %106, label %.lr.ph129.preheader, label %.loopexit

.lr.ph129.preheader:                              ; preds = %.preheader
  %107 = sext i32 %104 to i64
  br label %.lr.ph129

108:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 129, ptr nonnull %10) #7
  %109 = load ptr, ptr @stdin, align 8, !tbaa !7
  %110 = tail call i32 @fileno(ptr noundef %109) #7
  %111 = call i32 @hash_stream(ptr noundef nonnull %3, i32 noundef %110, ptr noundef nonnull %10, i32 noundef %.060.ph177)
  %.not85 = icmp eq i32 %111, 0
  br i1 %.not85, label %112, label %113

112:                                              ; preds = %108
  call void @perror(ptr noundef nonnull @.str.12) #9
  call void @exit(i32 noundef 1) #8
  unreachable

113:                                              ; preds = %108
  %114 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, ptr noundef nonnull %10)
  call void @exit(i32 noundef 0) #8
  unreachable

.lr.ph129:                                        ; preds = %.lr.ph129.preheader, %123
  %indvars.iv = phi i64 [ %107, %.lr.ph129.preheader ], [ %indvars.iv.next, %123 ]
  %.5127 = phi i32 [ 0, %.lr.ph129.preheader ], [ %.6, %123 ]
  call void @llvm.lifetime.start.p0(i64 129, ptr nonnull %11) #7
  %115 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv
  %116 = load ptr, ptr %115, align 8, !tbaa !7
  %117 = call i32 @hash_file(ptr noundef nonnull %3, ptr noundef %116, ptr noundef nonnull %11, i32 noundef 0, i32 noundef %.060.ph177)
  %.not84 = icmp eq i32 %117, 0
  br i1 %.not84, label %118, label %120

118:                                              ; preds = %.lr.ph129
  %119 = add nsw i32 %.5127, 1
  br label %123

120:                                              ; preds = %.lr.ph129
  %121 = load ptr, ptr %115, align 8, !tbaa !7
  %122 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef nonnull %11, ptr noundef %121)
  br label %123

123:                                              ; preds = %120, %118
  %.6 = phi i32 [ %.5127, %120 ], [ %119, %118 ]
  call void @llvm.lifetime.end.p0(i64 129, ptr nonnull %11) #7
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next to i32
  %exitcond.not = icmp eq i32 %lftr.wideiv, %0
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph129, !llvm.loop !18

.loopexit:                                        ; preds = %123, %.preheader, %._crit_edge123
  %.7 = phi i32 [ %.3.lcssa, %._crit_edge123 ], [ 0, %.preheader ], [ %.6, %123 ]
  %.not88 = icmp ne i32 %.7, 0
  %124 = zext i1 %.not88 to i32
  call void @exit(i32 noundef %124) #8
  unreachable
}

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

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

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

; Function Attrs: nofree nounwind
declare void @perror(ptr nocapture noundef readonly) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strncmp(ptr nocapture noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #6

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

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

; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #1

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

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

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

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

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


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