; LLVM IR from ekoontz/graphlab :: src/graphlab/extern/metis/GKlib (pdb)

; 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.pdbf = type { i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr }
%struct.atom = type { i32, ptr, i8, ptr, i8, i32, i8, i8, double, double, double, double, double }

@__const.gk_readpdbfile.aname = external hidden unnamed_addr constant [5 x i8], align 1
@__const.gk_readpdbfile.rname = external hidden unnamed_addr constant [4 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [57 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local signext i8 @gk_threetoone(ptr noundef) #0

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local ptr @gk_readpdbfile(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca [6 x i8], align 1
  %6 = alloca i32, align 4
  %7 = alloca [5 x i8], align 1
  %8 = alloca i8, align 1
  %9 = alloca [4 x i8], align 1
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca [300000 x i8], align 16
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 0, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 6, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 5, ptr %7) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.gk_readpdbfile.aname, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  store i8 32, ptr %8, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 @__const.gk_readpdbfile.rname, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  store i8 32, ptr %10, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  store i8 32, ptr %11, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 -37, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  store i8 32, ptr %14, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  store i8 32, ptr %15, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 300000, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 0, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 0, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 0, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 0, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  store i32 1, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %30 = call ptr @gk_malloc(i64 noundef 56, ptr noundef @.str.21)
  store ptr %30, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = load ptr, ptr %2, align 8, !tbaa !5
  %33 = call ptr @gk_fopen(ptr noundef %31, ptr noundef @.str.22, ptr noundef %32)
  store ptr %33, ptr %29, align 8, !tbaa !5
  br label %34

34:                                               ; preds = %136, %1
  %35 = getelementptr inbounds [300000 x i8], ptr %21, i64 0, i64 0
  %36 = load ptr, ptr %29, align 8, !tbaa !5
  %37 = call ptr @fgets(ptr noundef %35, i32 noundef 256, ptr noundef %36)
  %38 = icmp ne ptr %37, null
  br i1 %38, label %39, label %137

39:                                               ; preds = %34
  %40 = getelementptr inbounds [300000 x i8], ptr %21, i64 0, i64 0
  %41 = getelementptr inbounds [6 x i8], ptr %5, i64 0, i64 0
  %42 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %40, ptr noundef @.str.23, ptr noundef %41) #6
  %43 = getelementptr inbounds [6 x i8], ptr %5, i64 0, i64 0
  %44 = call ptr @strstr(ptr noundef %43, ptr noundef @.str.24) #7
  %45 = icmp ne ptr %44, null
  br i1 %45, label %46, label %122

46:                                               ; preds = %39
  %47 = getelementptr inbounds [300000 x i8], ptr %21, i64 0, i64 0
  %48 = getelementptr inbounds [6 x i8], ptr %5, i64 0, i64 0
  %49 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
  %50 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
  %51 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %47, ptr noundef @.str.25, ptr noundef %48, ptr noundef %6, ptr noundef %49, ptr noundef %8, ptr noundef %50, ptr noundef %10, ptr noundef %12, ptr noundef %14, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %15) #6
  %52 = getelementptr inbounds [6 x i8], ptr %5, i64 0, i64 0
  %53 = getelementptr inbounds [6 x i8], ptr %5, i64 0, i64 0
  %54 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %52, ptr noundef @.str.26, ptr noundef %53) #6
  %55 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
  %56 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
  %57 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %55, ptr noundef @.str.26, ptr noundef %56) #6
  %58 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
  %59 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
  %60 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %58, ptr noundef @.str.26, ptr noundef %59) #6
  %61 = load i8, ptr %8, align 1, !tbaa !11
  %62 = sext i8 %61 to i32
  %63 = icmp ne i32 %62, 32
  br i1 %63, label %64, label %67

64:                                               ; preds = %46
  %65 = load i32, ptr %22, align 4, !tbaa !9
  %66 = or i32 %65, 1
  store i32 %66, ptr %22, align 4, !tbaa !9
  br label %67

67:                                               ; preds = %64, %46
  %68 = load i32, ptr %27, align 4, !tbaa !9
  %69 = icmp eq i32 %68, 1
  br i1 %69, label %70, label %75

70:                                               ; preds = %67
  %71 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %71, ptr %13, align 4, !tbaa !9
  %72 = load i8, ptr %10, align 1, !tbaa !11
  store i8 %72, ptr %11, align 1, !tbaa !11
  %73 = load i32, ptr %24, align 4, !tbaa !9
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %24, align 4, !tbaa !9
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %70, %67
  %76 = load i32, ptr %13, align 4, !tbaa !9
  %77 = load i32, ptr %12, align 4, !tbaa !9
  %78 = icmp ne i32 %76, %77
  br i1 %78, label %79, label %83

79:                                               ; preds = %75
  %80 = load i32, ptr %24, align 4, !tbaa !9
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %24, align 4, !tbaa !9
  %82 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %82, ptr %13, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %79, %75
  %84 = load i8, ptr %11, align 1, !tbaa !11
  %85 = sext i8 %84 to i32
  %86 = load i8, ptr %10, align 1, !tbaa !11
  %87 = sext i8 %86 to i32
  %88 = icmp ne i32 %85, %87
  br i1 %88, label %89, label %92

89:                                               ; preds = %83
  %90 = load i32, ptr %22, align 4, !tbaa !9
  %91 = or i32 %90, 8
  store i32 %91, ptr %22, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %89, %83
  %93 = load i8, ptr %10, align 1, !tbaa !11
  store i8 %93, ptr %11, align 1, !tbaa !11
  %94 = load i32, ptr %23, align 4, !tbaa !9
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %23, align 4, !tbaa !9
  %96 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
  %97 = call i32 @strcmp(ptr noundef %96, ptr noundef @.str.27) #7
  %98 = icmp eq i32 %97, 0
  br i1 %98, label %99, label %102

99:                                               ; preds = %92
  %100 = load i32, ptr %25, align 4, !tbaa !9
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %25, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %99, %92
  %103 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
  %104 = call i32 @strcmp(ptr noundef %103, ptr noundef @.str.28) #7
  %105 = icmp eq i32 %104, 0
  br i1 %105, label %118, label %106

106:                                              ; preds = %102
  %107 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
  %108 = call i32 @strcmp(ptr noundef %107, ptr noundef @.str.27) #7
  %109 = icmp eq i32 %108, 0
  br i1 %109, label %118, label %110

110:                                              ; preds = %106
  %111 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
  %112 = call i32 @strcmp(ptr noundef %111, ptr noundef @.str.29) #7
  %113 = icmp eq i32 %112, 0
  br i1 %113, label %118, label %114

114:                                              ; preds = %110
  %115 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
  %116 = call i32 @strcmp(ptr noundef %115, ptr noundef @.str.30) #7
  %117 = icmp eq i32 %116, 0
  br i1 %117, label %118, label %121

118:                                              ; preds = %114, %110, %106, %102
  %119 = load i32, ptr %26, align 4, !tbaa !9
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %26, align 4, !tbaa !9
  br label %121

121:                                              ; preds = %118, %114
  br label %136

122:                                              ; preds = %39
  %123 = getelementptr inbounds [6 x i8], ptr %5, i64 0, i64 0
  %124 = call ptr @strstr(ptr noundef %123, ptr noundef @.str.31) #7
  %125 = icmp ne ptr %124, null
  br i1 %125, label %134, label %126

126:                                              ; preds = %122
  %127 = getelementptr inbounds [6 x i8], ptr %5, i64 0, i64 0
  %128 = call ptr @strstr(ptr noundef %127, ptr noundef @.str.32) #7
  %129 = icmp ne ptr %128, null
  br i1 %129, label %134, label %130

130:                                              ; preds = %126
  %131 = getelementptr inbounds [6 x i8], ptr %5, i64 0, i64 0
  %132 = call ptr @strstr(ptr noundef %131, ptr noundef @.str.33) #7
  %133 = icmp ne ptr %132, null
  br i1 %133, label %134, label %135

134:                                              ; preds = %130, %126, %122
  br label %137

135:                                              ; preds = %130
  br label %136

136:                                              ; preds = %135, %121
  br label %34, !llvm.loop !12

137:                                              ; preds = %134, %34
  %138 = load ptr, ptr %29, align 8, !tbaa !5
  %139 = call i32 @fclose(ptr noundef %138)
  %140 = load i32, ptr %23, align 4, !tbaa !9
  %141 = load ptr, ptr %28, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.pdbf, ptr %141, i32 0, i32 0
  store i32 %140, ptr %142, align 8, !tbaa !14
  %143 = load i32, ptr %25, align 4, !tbaa !9
  %144 = load ptr, ptr %28, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.pdbf, ptr %144, i32 0, i32 2
  store i32 %143, ptr %145, align 8, !tbaa !16
  %146 = load i32, ptr %26, align 4, !tbaa !9
  %147 = load ptr, ptr %28, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.pdbf, ptr %147, i32 0, i32 3
  store i32 %146, ptr %148, align 4, !tbaa !17
  %149 = load i32, ptr %24, align 4, !tbaa !9
  %150 = load ptr, ptr %28, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.pdbf, ptr %150, i32 0, i32 1
  store i32 %149, ptr %151, align 4, !tbaa !18
  %152 = load i32, ptr %24, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = mul i64 %153, 1
  %155 = call ptr @gk_malloc(i64 noundef %154, ptr noundef @.str.34)
  %156 = load ptr, ptr %28, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.pdbf, ptr %156, i32 0, i32 5
  store ptr %155, ptr %157, align 8, !tbaa !19
  %158 = load i32, ptr %23, align 4, !tbaa !9
  %159 = sext i32 %158 to i64
  %160 = mul i64 %159, 88
  %161 = call ptr @gk_malloc(i64 noundef %160, ptr noundef @.str.35)
  %162 = load ptr, ptr %28, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.pdbf, ptr %162, i32 0, i32 6
  store ptr %161, ptr %163, align 8, !tbaa !20
  %164 = load i32, ptr %26, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = mul i64 %165, 8
  %167 = call ptr @gk_malloc(i64 noundef %166, ptr noundef @.str.36)
  %168 = load ptr, ptr %28, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.pdbf, ptr %168, i32 0, i32 7
  store ptr %167, ptr %169, align 8, !tbaa !21
  %170 = load i32, ptr %25, align 4, !tbaa !9
  %171 = sext i32 %170 to i64
  %172 = mul i64 %171, 8
  %173 = call ptr @gk_malloc(i64 noundef %172, ptr noundef @.str.37)
  %174 = load ptr, ptr %28, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.pdbf, ptr %174, i32 0, i32 8
  store ptr %173, ptr %175, align 8, !tbaa !22
  store i32 0, ptr %4, align 4, !tbaa !9
  store i32 1, ptr %27, align 4, !tbaa !9
  store i32 0, ptr %25, align 4, !tbaa !9
  store i32 0, ptr %26, align 4, !tbaa !9
  store i32 0, ptr %3, align 4, !tbaa !9
  %176 = load ptr, ptr %2, align 8, !tbaa !5
  %177 = load ptr, ptr %2, align 8, !tbaa !5
  %178 = call ptr @gk_fopen(ptr noundef %176, ptr noundef @.str.22, ptr noundef %177)
  store ptr %178, ptr %29, align 8, !tbaa !5
  br label %179

179:                                              ; preds = %406, %137
  %180 = getelementptr inbounds [300000 x i8], ptr %21, i64 0, i64 0
  %181 = load ptr, ptr %29, align 8, !tbaa !5
  %182 = call ptr @fgets(ptr noundef %180, i32 noundef 256, ptr noundef %181)
  %183 = icmp ne ptr %182, null
  br i1 %183, label %184, label %407

184:                                              ; preds = %179
  %185 = getelementptr inbounds [300000 x i8], ptr %21, i64 0, i64 0
  %186 = getelementptr inbounds [6 x i8], ptr %5, i64 0, i64 0
  %187 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %185, ptr noundef @.str.23, ptr noundef %186) #6
  %188 = getelementptr inbounds [6 x i8], ptr %5, i64 0, i64 0
  %189 = call ptr @strstr(ptr noundef %188, ptr noundef @.str.24) #7
  %190 = icmp ne ptr %189, null
  br i1 %190, label %191, label %392

191:                                              ; preds = %184
  %192 = getelementptr inbounds [300000 x i8], ptr %21, i64 0, i64 0
  %193 = getelementptr inbounds [6 x i8], ptr %5, i64 0, i64 0
  %194 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
  %195 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
  %196 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %192, ptr noundef @.str.25, ptr noundef %193, ptr noundef %6, ptr noundef %194, ptr noundef %8, ptr noundef %195, ptr noundef %10, ptr noundef %12, ptr noundef %14, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %15) #6
  %197 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
  %198 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
  %199 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %197, ptr noundef @.str.38, ptr noundef %198) #6
  %200 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
  %201 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
  %202 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %200, ptr noundef @.str.38, ptr noundef %201) #6
  %203 = load i32, ptr %27, align 4, !tbaa !9
  %204 = icmp eq i32 %203, 1
  br i1 %204, label %205, label %217

205:                                              ; preds = %191
  %206 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
  %207 = call signext i8 @gk_threetoone(ptr noundef %206)
  %208 = load ptr, ptr %28, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.pdbf, ptr %208, i32 0, i32 5
  %210 = load ptr, ptr %209, align 8, !tbaa !19
  %211 = load i32, ptr %4, align 4, !tbaa !9
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds i8, ptr %210, i64 %212
  store i8 %207, ptr %213, align 1, !tbaa !11
  %214 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %214, ptr %13, align 4, !tbaa !9
  %215 = load i32, ptr %4, align 4, !tbaa !9
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr %4, align 4, !tbaa !9
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %217

217:                                              ; preds = %205, %191
  %218 = load i32, ptr %13, align 4, !tbaa !9
  %219 = load i32, ptr %12, align 4, !tbaa !9
  %220 = icmp ne i32 %218, %219
  br i1 %220, label %221, label %233

221:                                              ; preds = %217
  %222 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
  %223 = call signext i8 @gk_threetoone(ptr noundef %222)
  %224 = load ptr, ptr %28, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.pdbf, ptr %224, i32 0, i32 5
  %226 = load ptr, ptr %225, align 8, !tbaa !19
  %227 = load i32, ptr %4, align 4, !tbaa !9
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds i8, ptr %226, i64 %228
  store i8 %223, ptr %229, align 1, !tbaa !11
  %230 = load i32, ptr %4, align 4, !tbaa !9
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr %4, align 4, !tbaa !9
  %232 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %232, ptr %13, align 4, !tbaa !9
  br label %233

233:                                              ; preds = %221, %217
  %234 = load double, ptr %16, align 8, !tbaa !23
  %235 = load ptr, ptr %28, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.pdbf, ptr %235, i32 0, i32 6
  %237 = load ptr, ptr %236, align 8, !tbaa !20
  %238 = load i32, ptr %3, align 4, !tbaa !9
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds %struct.atom, ptr %237, i64 %239
  %241 = getelementptr inbounds %struct.atom, ptr %240, i32 0, i32 8
  store double %234, ptr %241, align 8, !tbaa !25
  %242 = load double, ptr %17, align 8, !tbaa !23
  %243 = load ptr, ptr %28, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.pdbf, ptr %243, i32 0, i32 6
  %245 = load ptr, ptr %244, align 8, !tbaa !20
  %246 = load i32, ptr %3, align 4, !tbaa !9
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds %struct.atom, ptr %245, i64 %247
  %249 = getelementptr inbounds %struct.atom, ptr %248, i32 0, i32 9
  store double %242, ptr %249, align 8, !tbaa !27
  %250 = load double, ptr %18, align 8, !tbaa !23
  %251 = load ptr, ptr %28, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.pdbf, ptr %251, i32 0, i32 6
  %253 = load ptr, ptr %252, align 8, !tbaa !20
  %254 = load i32, ptr %3, align 4, !tbaa !9
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds %struct.atom, ptr %253, i64 %255
  %257 = getelementptr inbounds %struct.atom, ptr %256, i32 0, i32 10
  store double %250, ptr %257, align 8, !tbaa !28
  %258 = load double, ptr %19, align 8, !tbaa !23
  %259 = load ptr, ptr %28, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.pdbf, ptr %259, i32 0, i32 6
  %261 = load ptr, ptr %260, align 8, !tbaa !20
  %262 = load i32, ptr %3, align 4, !tbaa !9
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds %struct.atom, ptr %261, i64 %263
  %265 = getelementptr inbounds %struct.atom, ptr %264, i32 0, i32 11
  store double %258, ptr %265, align 8, !tbaa !29
  %266 = load double, ptr %20, align 8, !tbaa !23
  %267 = load ptr, ptr %28, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.pdbf, ptr %267, i32 0, i32 6
  %269 = load ptr, ptr %268, align 8, !tbaa !20
  %270 = load i32, ptr %3, align 4, !tbaa !9
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds %struct.atom, ptr %269, i64 %271
  %273 = getelementptr inbounds %struct.atom, ptr %272, i32 0, i32 12
  store double %266, ptr %273, align 8, !tbaa !30
  %274 = load i8, ptr %15, align 1, !tbaa !11
  %275 = load ptr, ptr %28, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.pdbf, ptr %275, i32 0, i32 6
  %277 = load ptr, ptr %276, align 8, !tbaa !20
  %278 = load i32, ptr %3, align 4, !tbaa !9
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds %struct.atom, ptr %277, i64 %279
  %281 = getelementptr inbounds %struct.atom, ptr %280, i32 0, i32 7
  store i8 %274, ptr %281, align 1, !tbaa !31
  %282 = load i32, ptr %6, align 4, !tbaa !9
  %283 = load ptr, ptr %28, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.pdbf, ptr %283, i32 0, i32 6
  %285 = load ptr, ptr %284, align 8, !tbaa !20
  %286 = load i32, ptr %3, align 4, !tbaa !9
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds %struct.atom, ptr %285, i64 %287
  %289 = getelementptr inbounds %struct.atom, ptr %288, i32 0, i32 0
  store i32 %282, ptr %289, align 8, !tbaa !32
  %290 = load i8, ptr %10, align 1, !tbaa !11
  %291 = load ptr, ptr %28, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.pdbf, ptr %291, i32 0, i32 6
  %293 = load ptr, ptr %292, align 8, !tbaa !20
  %294 = load i32, ptr %3, align 4, !tbaa !9
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds %struct.atom, ptr %293, i64 %295
  %297 = getelementptr inbounds %struct.atom, ptr %296, i32 0, i32 4
  store i8 %290, ptr %297, align 8, !tbaa !33
  %298 = load i8, ptr %8, align 1, !tbaa !11
  %299 = load ptr, ptr %28, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.pdbf, ptr %299, i32 0, i32 6
  %301 = load ptr, ptr %300, align 8, !tbaa !20
  %302 = load i32, ptr %3, align 4, !tbaa !9
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds %struct.atom, ptr %301, i64 %303
  %305 = getelementptr inbounds %struct.atom, ptr %304, i32 0, i32 2
  store i8 %298, ptr %305, align 8, !tbaa !34
  %306 = load i32, ptr %12, align 4, !tbaa !9
  %307 = load ptr, ptr %28, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.pdbf, ptr %307, i32 0, i32 6
  %309 = load ptr, ptr %308, align 8, !tbaa !20
  %310 = load i32, ptr %3, align 4, !tbaa !9
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds %struct.atom, ptr %309, i64 %311
  %313 = getelementptr inbounds %struct.atom, ptr %312, i32 0, i32 5
  store i32 %306, ptr %313, align 4, !tbaa !35
  %314 = load i8, ptr %14, align 1, !tbaa !11
  %315 = load ptr, ptr %28, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.pdbf, ptr %315, i32 0, i32 6
  %317 = load ptr, ptr %316, align 8, !tbaa !20
  %318 = load i32, ptr %3, align 4, !tbaa !9
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds %struct.atom, ptr %317, i64 %319
  %321 = getelementptr inbounds %struct.atom, ptr %320, i32 0, i32 6
  store i8 %314, ptr %321, align 8, !tbaa !36
  %322 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
  %323 = call ptr @gk_strdup(ptr noundef %322)
  %324 = load ptr, ptr %28, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.pdbf, ptr %324, i32 0, i32 6
  %326 = load ptr, ptr %325, align 8, !tbaa !20
  %327 = load i32, ptr %3, align 4, !tbaa !9
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds %struct.atom, ptr %326, i64 %328
  %330 = getelementptr inbounds %struct.atom, ptr %329, i32 0, i32 1
  store ptr %323, ptr %330, align 8, !tbaa !37
  %331 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
  %332 = call ptr @gk_strdup(ptr noundef %331)
  %333 = load ptr, ptr %28, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.pdbf, ptr %333, i32 0, i32 6
  %335 = load ptr, ptr %334, align 8, !tbaa !20
  %336 = load i32, ptr %3, align 4, !tbaa !9
  %337 = sext i32 %336 to i64
  %338 = getelementptr inbounds %struct.atom, ptr %335, i64 %337
  %339 = getelementptr inbounds %struct.atom, ptr %338, i32 0, i32 3
  store ptr %332, ptr %339, align 8, !tbaa !38
  %340 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
  %341 = call i32 @strcmp(ptr noundef %340, ptr noundef @.str.27) #7
  %342 = icmp eq i32 %341, 0
  br i1 %342, label %343, label %358

343:                                              ; preds = %233
  %344 = load ptr, ptr %28, align 8, !tbaa !5
  %345 = getelementptr inbounds %struct.pdbf, ptr %344, i32 0, i32 6
  %346 = load ptr, ptr %345, align 8, !tbaa !20
  %347 = load i32, ptr %3, align 4, !tbaa !9
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds %struct.atom, ptr %346, i64 %348
  %350 = load ptr, ptr %28, align 8, !tbaa !5
  %351 = getelementptr inbounds %struct.pdbf, ptr %350, i32 0, i32 8
  %352 = load ptr, ptr %351, align 8, !tbaa !22
  %353 = load i32, ptr %25, align 4, !tbaa !9
  %354 = sext i32 %353 to i64
  %355 = getelementptr inbounds ptr, ptr %352, i64 %354
  store ptr %349, ptr %355, align 8, !tbaa !5
  %356 = load i32, ptr %25, align 4, !tbaa !9
  %357 = add nsw i32 %356, 1
  store i32 %357, ptr %25, align 4, !tbaa !9
  br label %358

358:                                              ; preds = %343, %233
  %359 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
  %360 = call i32 @strcmp(ptr noundef %359, ptr noundef @.str.28) #7
  %361 = icmp eq i32 %360, 0
  br i1 %361, label %374, label %362

362:                                              ; preds = %358
  %363 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
  %364 = call i32 @strcmp(ptr noundef %363, ptr noundef @.str.27) #7
  %365 = icmp eq i32 %364, 0
  br i1 %365, label %374, label %366

366:                                              ; preds = %362
  %367 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
  %368 = call i32 @strcmp(ptr noundef %367, ptr noundef @.str.29) #7
  %369 = icmp eq i32 %368, 0
  br i1 %369, label %374, label %370

370:                                              ; preds = %366
  %371 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
  %372 = call i32 @strcmp(ptr noundef %371, ptr noundef @.str.30) #7
  %373 = icmp eq i32 %372, 0
  br i1 %373, label %374, label %389

374:                                              ; preds = %370, %366, %362, %358
  %375 = load ptr, ptr %28, align 8, !tbaa !5
  %376 = getelementptr inbounds %struct.pdbf, ptr %375, i32 0, i32 6
  %377 = load ptr, ptr %376, align 8, !tbaa !20
  %378 = load i32, ptr %3, align 4, !tbaa !9
  %379 = sext i32 %378 to i64
  %380 = getelementptr inbounds %struct.atom, ptr %377, i64 %379
  %381 = load ptr, ptr %28, align 8, !tbaa !5
  %382 = getelementptr inbounds %struct.pdbf, ptr %381, i32 0, i32 7
  %383 = load ptr, ptr %382, align 8, !tbaa !21
  %384 = load i32, ptr %26, align 4, !tbaa !9
  %385 = sext i32 %384 to i64
  %386 = getelementptr inbounds ptr, ptr %383, i64 %385
  store ptr %380, ptr %386, align 8, !tbaa !5
  %387 = load i32, ptr %26, align 4, !tbaa !9
  %388 = add nsw i32 %387, 1
  store i32 %388, ptr %26, align 4, !tbaa !9
  br label %389

389:                                              ; preds = %374, %370
  %390 = load i32, ptr %3, align 4, !tbaa !9
  %391 = add nsw i32 %390, 1
  store i32 %391, ptr %3, align 4, !tbaa !9
  br label %406

392:                                              ; preds = %184
  %393 = getelementptr inbounds [6 x i8], ptr %5, i64 0, i64 0
  %394 = call ptr @strstr(ptr noundef %393, ptr noundef @.str.31) #7
  %395 = icmp ne ptr %394, null
  br i1 %395, label %404, label %396

396:                                              ; preds = %392
  %397 = getelementptr inbounds [6 x i8], ptr %5, i64 0, i64 0
  %398 = call ptr @strstr(ptr noundef %397, ptr noundef @.str.32) #7
  %399 = icmp ne ptr %398, null
  br i1 %399, label %404, label %400

400:                                              ; preds = %396
  %401 = getelementptr inbounds [6 x i8], ptr %5, i64 0, i64 0
  %402 = call ptr @strstr(ptr noundef %401, ptr noundef @.str.33) #7
  %403 = icmp ne ptr %402, null
  br i1 %403, label %404, label %405

404:                                              ; preds = %400, %396, %392
  br label %407

405:                                              ; preds = %400
  br label %406

406:                                              ; preds = %405, %389
  br label %179, !llvm.loop !39

407:                                              ; preds = %404, %179
  %408 = load i32, ptr %25, align 4, !tbaa !9
  %409 = load i32, ptr %24, align 4, !tbaa !9
  %410 = icmp ne i32 %408, %409
  br i1 %410, label %411, label %431

411:                                              ; preds = %407
  %412 = load i32, ptr %24, align 4, !tbaa !9
  %413 = load i32, ptr %25, align 4, !tbaa !9
  %414 = sub nsw i32 %412, %413
  %415 = call i32 (ptr, ...) @printf(ptr noundef @.str.39, i32 noundef %414)
  %416 = load i32, ptr %25, align 4, !tbaa !9
  %417 = load i32, ptr %24, align 4, !tbaa !9
  %418 = icmp slt i32 %416, %417
  br i1 %418, label %419, label %422

419:                                              ; preds = %411
  %420 = load i32, ptr %22, align 4, !tbaa !9
  %421 = or i32 %420, 2
  store i32 %421, ptr %22, align 4, !tbaa !9
  br label %430

422:                                              ; preds = %411
  %423 = load i32, ptr %25, align 4, !tbaa !9
  %424 = load i32, ptr %24, align 4, !tbaa !9
  %425 = icmp sgt i32 %423, %424
  br i1 %425, label %426, label %429

426:                                              ; preds = %422
  %427 = load i32, ptr %22, align 4, !tbaa !9
  %428 = or i32 %427, 16
  store i32 %428, ptr %22, align 4, !tbaa !9
  br label %429

429:                                              ; preds = %426, %422
  br label %430

430:                                              ; preds = %429, %419
  br label %431

431:                                              ; preds = %430, %407
  %432 = load i32, ptr %26, align 4, !tbaa !9
  %433 = load i32, ptr %24, align 4, !tbaa !9
  %434 = mul nsw i32 %433, 4
  %435 = icmp slt i32 %432, %434
  br i1 %435, label %436, label %439

436:                                              ; preds = %431
  %437 = load i32, ptr %22, align 4, !tbaa !9
  %438 = or i32 %437, 4
  store i32 %438, ptr %22, align 4, !tbaa !9
  br label %448

439:                                              ; preds = %431
  %440 = load i32, ptr %26, align 4, !tbaa !9
  %441 = load i32, ptr %24, align 4, !tbaa !9
  %442 = mul nsw i32 %441, 4
  %443 = icmp sgt i32 %440, %442
  br i1 %443, label %444, label %447

444:                                              ; preds = %439
  %445 = load i32, ptr %22, align 4, !tbaa !9
  %446 = or i32 %445, 32
  store i32 %446, ptr %22, align 4, !tbaa !9
  br label %447

447:                                              ; preds = %444, %439
  br label %448

448:                                              ; preds = %447, %436
  %449 = load ptr, ptr %29, align 8, !tbaa !5
  %450 = call i32 @fclose(ptr noundef %449)
  %451 = load i32, ptr %22, align 4, !tbaa !9
  %452 = load ptr, ptr %28, align 8, !tbaa !5
  %453 = getelementptr inbounds %struct.pdbf, ptr %452, i32 0, i32 4
  store i32 %451, ptr %453, align 8, !tbaa !40
  %454 = load ptr, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 300000, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 5, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 6, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  ret ptr %454
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare ptr @gk_malloc(i64 noundef, ptr noundef) #4

declare ptr @gk_fopen(ptr noundef, ptr noundef, ptr noundef) #4

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

; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #5

; Function Attrs: nounwind willreturn memory(read)
declare ptr @strstr(ptr noundef, ptr noundef) #2

declare i32 @fclose(ptr noundef) #4

declare ptr @gk_strdup(ptr noundef) #4

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind 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 #3 = { nocallback nofree 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 "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 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !10, i64 0}
!15 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!16 = !{!15, !10, i64 8}
!17 = !{!15, !10, i64 12}
!18 = !{!15, !10, i64 4}
!19 = !{!15, !6, i64 24}
!20 = !{!15, !6, i64 32}
!21 = !{!15, !6, i64 40}
!22 = !{!15, !6, i64 48}
!23 = !{!24, !24, i64 0}
!24 = !{!"double", !7, i64 0}
!25 = !{!26, !24, i64 48}
!26 = !{!"", !10, i64 0, !6, i64 8, !7, i64 16, !6, i64 24, !7, i64 32, !10, i64 36, !7, i64 40, !7, i64 41, !24, i64 48, !24, i64 56, !24, i64 64, !24, i64 72, !24, i64 80}
!27 = !{!26, !24, i64 56}
!28 = !{!26, !24, i64 64}
!29 = !{!26, !24, i64 72}
!30 = !{!26, !24, i64 80}
!31 = !{!26, !7, i64 41}
!32 = !{!26, !10, i64 0}
!33 = !{!26, !7, i64 32}
!34 = !{!26, !7, i64 16}
!35 = !{!26, !10, i64 36}
!36 = !{!26, !7, i64 40}
!37 = !{!26, !6, i64 8}
!38 = !{!26, !6, i64 24}
!39 = distinct !{!39, !13}
!40 = !{!15, !10, i64 16}


; 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.atom = type { i32, ptr, i8, ptr, i8, i32, i8, i8, double, double, double, double, double }

@__const.gk_readpdbfile.aname = external hidden unnamed_addr constant [5 x i8], align 1
@__const.gk_readpdbfile.rname = external hidden unnamed_addr constant [4 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [57 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local signext i8 @gk_threetoone(ptr noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @gk_readpdbfile(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca [6 x i8], align 1
  %3 = alloca i32, align 4
  %4 = alloca [5 x i8], align 1
  %5 = alloca i8, align 1
  %6 = alloca [4 x i8], align 4
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca [300000 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(5) %4, ptr noundef nonnull align 1 dereferenceable(5) @__const.gk_readpdbfile.aname, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  store i8 32, ptr %5, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  %17 = load i32, ptr @__const.gk_readpdbfile.rname, align 1
  store i32 %17, ptr %6, align 4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  store i8 32, ptr %7, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #6
  store i8 32, ptr %9, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #6
  store i8 32, ptr %10, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 300000, ptr nonnull %16) #6
  %18 = tail call ptr @gk_malloc(i64 noundef 56, ptr noundef nonnull @.str.21) #6
  %19 = tail call ptr @gk_fopen(ptr noundef %0, ptr noundef nonnull @.str.22, ptr noundef %0) #6
  %20 = call ptr @fgets(ptr noundef nonnull %16, i32 noundef 256, ptr noundef %19)
  %.not155 = icmp eq ptr %20, null
  br i1 %.not155, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %1, %56
  %.097163 = phi i32 [ %.2, %56 ], [ 1, %1 ]
  %.099162 = phi i32 [ %.1100, %56 ], [ 0, %1 ]
  %.0104161 = phi i32 [ %.2106, %56 ], [ 0, %1 ]
  %.0110160 = phi i32 [ %.3113, %56 ], [ 0, %1 ]
  %.0114159 = phi i32 [ %.1115, %56 ], [ 0, %1 ]
  %.0116158 = phi i32 [ %.3119, %56 ], [ 0, %1 ]
  %.0122157 = phi i32 [ %.3125, %56 ], [ -37, %1 ]
  %.0128156 = phi i8 [ %.2130, %56 ], [ 32, %1 ]
  %21 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %16, ptr noundef nonnull @.str.23, ptr noundef nonnull %2) #6
  %22 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str.24) #7
  %.not137 = icmp eq ptr %22, null
  br i1 %.not137, label %50, label %23

23:                                               ; preds = %.lr.ph
  %24 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %16, ptr noundef nonnull @.str.25, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %10) #6
  %25 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %2, ptr noundef nonnull @.str.26, ptr noundef nonnull %2) #6
  %26 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %4, ptr noundef nonnull @.str.26, ptr noundef nonnull %4) #6
  %27 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %6, ptr noundef nonnull @.str.26, ptr noundef nonnull %6) #6
  %28 = load i8, ptr %5, align 1, !tbaa !5
  %.not148 = icmp ne i8 %28, 32
  %29 = zext i1 %.not148 to i32
  %spec.select = or i32 %.0116158, %29
  %30 = icmp eq i32 %.097163, 1
  %31 = load i32, ptr %8, align 4
  %32 = load i8, ptr %7, align 1
  %33 = zext i1 %30 to i32
  %.1111 = add nsw i32 %.0110160, %33
  %.not149153 = icmp ne i32 %.0122157, %31
  %not. = xor i1 %30, true
  %.not149 = select i1 %not., i1 %.not149153, i1 false
  %34 = zext i1 %.not149 to i32
  %.2112 = add nsw i32 %.1111, %34
  %.not150154 = icmp eq i8 %.0128156, %32
  %.not150 = select i1 %30, i1 true, i1 %.not150154
  %35 = or i32 %spec.select, 8
  %.2118 = select i1 %.not150, i32 %spec.select, i32 %35
  %36 = add nsw i32 %.0114159, 1
  %37 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.27) #7
  %38 = icmp eq i32 %37, 0
  %39 = zext i1 %38 to i32
  %.1105 = add nsw i32 %.0104161, %39
  %40 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.28) #7
  %41 = icmp eq i32 %40, 0
  %brmerge = select i1 %41, i1 true, i1 %38
  br i1 %brmerge, label %48, label %42

42:                                               ; preds = %23
  %43 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.29) #7
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %48, label %45

45:                                               ; preds = %42
  %46 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.30) #7
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %48, label %56

48:                                               ; preds = %23, %45, %42
  %49 = add nsw i32 %.099162, 1
  br label %56

50:                                               ; preds = %.lr.ph
  %51 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str.31) #7
  %.not138 = icmp eq ptr %51, null
  br i1 %.not138, label %52, label %._crit_edge

52:                                               ; preds = %50
  %53 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str.32) #7
  %.not139 = icmp eq ptr %53, null
  br i1 %.not139, label %54, label %._crit_edge

54:                                               ; preds = %52
  %55 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str.33) #7
  %.not140 = icmp eq ptr %55, null
  br i1 %.not140, label %56, label %._crit_edge

56:                                               ; preds = %54, %45, %48
  %.2130 = phi i8 [ %32, %48 ], [ %32, %45 ], [ %.0128156, %54 ]
  %.3125 = phi i32 [ %31, %48 ], [ %31, %45 ], [ %.0122157, %54 ]
  %.3119 = phi i32 [ %.2118, %48 ], [ %.2118, %45 ], [ %.0116158, %54 ]
  %.1115 = phi i32 [ %36, %48 ], [ %36, %45 ], [ %.0114159, %54 ]
  %.3113 = phi i32 [ %.2112, %48 ], [ %.2112, %45 ], [ %.0110160, %54 ]
  %.2106 = phi i32 [ %.1105, %48 ], [ %.0104161, %45 ], [ %.0104161, %54 ]
  %.1100 = phi i32 [ %49, %48 ], [ %.099162, %45 ], [ %.099162, %54 ]
  %.2 = phi i32 [ 0, %48 ], [ 0, %45 ], [ %.097163, %54 ]
  %57 = call ptr @fgets(ptr noundef nonnull %16, i32 noundef 256, ptr noundef %19)
  %.not = icmp eq ptr %57, null
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !8

._crit_edge:                                      ; preds = %56, %54, %52, %50, %1
  %.0122.lcssa = phi i32 [ -37, %1 ], [ %.0122157, %50 ], [ %.0122157, %52 ], [ %.0122157, %54 ], [ %.3125, %56 ]
  %.0116.lcssa = phi i32 [ 0, %1 ], [ %.0116158, %50 ], [ %.0116158, %52 ], [ %.0116158, %54 ], [ %.3119, %56 ]
  %.0114.lcssa = phi i32 [ 0, %1 ], [ %.0114159, %50 ], [ %.0114159, %52 ], [ %.0114159, %54 ], [ %.1115, %56 ]
  %.0110.lcssa = phi i32 [ 0, %1 ], [ %.0110160, %50 ], [ %.0110160, %52 ], [ %.0110160, %54 ], [ %.3113, %56 ]
  %.0104.lcssa = phi i32 [ 0, %1 ], [ %.0104161, %50 ], [ %.0104161, %52 ], [ %.0104161, %54 ], [ %.2106, %56 ]
  %.099.lcssa = phi i32 [ 0, %1 ], [ %.099162, %50 ], [ %.099162, %52 ], [ %.099162, %54 ], [ %.1100, %56 ]
  %58 = call i32 @fclose(ptr noundef %19)
  store i32 %.0114.lcssa, ptr %18, align 8, !tbaa !10
  %59 = getelementptr inbounds i8, ptr %18, i64 8
  store i32 %.0104.lcssa, ptr %59, align 8, !tbaa !14
  %60 = getelementptr inbounds i8, ptr %18, i64 12
  store i32 %.099.lcssa, ptr %60, align 4, !tbaa !15
  %61 = getelementptr inbounds i8, ptr %18, i64 4
  store i32 %.0110.lcssa, ptr %61, align 4, !tbaa !16
  %62 = sext i32 %.0110.lcssa to i64
  %63 = call ptr @gk_malloc(i64 noundef %62, ptr noundef nonnull @.str.34) #6
  %64 = getelementptr inbounds i8, ptr %18, i64 24
  store ptr %63, ptr %64, align 8, !tbaa !17
  %65 = sext i32 %.0114.lcssa to i64
  %66 = mul nsw i64 %65, 88
  %67 = call ptr @gk_malloc(i64 noundef %66, ptr noundef nonnull @.str.35) #6
  %68 = getelementptr inbounds i8, ptr %18, i64 32
  store ptr %67, ptr %68, align 8, !tbaa !18
  %69 = sext i32 %.099.lcssa to i64
  %70 = shl nsw i64 %69, 3
  %71 = call ptr @gk_malloc(i64 noundef %70, ptr noundef nonnull @.str.36) #6
  %72 = getelementptr inbounds i8, ptr %18, i64 40
  store ptr %71, ptr %72, align 8, !tbaa !19
  %73 = sext i32 %.0104.lcssa to i64
  %74 = shl nsw i64 %73, 3
  %75 = call ptr @gk_malloc(i64 noundef %74, ptr noundef nonnull @.str.37) #6
  %76 = getelementptr inbounds i8, ptr %18, i64 48
  store ptr %75, ptr %76, align 8, !tbaa !20
  %77 = call ptr @gk_fopen(ptr noundef %0, ptr noundef nonnull @.str.22, ptr noundef %0) #6
  %78 = call ptr @fgets(ptr noundef nonnull %16, i32 noundef 256, ptr noundef %77)
  %.not141190 = icmp eq ptr %78, null
  br i1 %.not141190, label %._crit_edge199, label %.lr.ph198

.lr.ph198:                                        ; preds = %._crit_edge, %166
  %.0196 = phi i32 [ %.1, %166 ], [ 0, %._crit_edge ]
  %.3195 = phi i32 [ %.5, %166 ], [ 1, %._crit_edge ]
  %.2101194 = phi i32 [ %.4103, %166 ], [ 0, %._crit_edge ]
  %.3107193 = phi i32 [ %.5109, %166 ], [ 0, %._crit_edge ]
  %.4126192 = phi i32 [ %.7, %166 ], [ %.0122.lcssa, %._crit_edge ]
  %.0131191 = phi i32 [ %.3134, %166 ], [ 0, %._crit_edge ]
  %79 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %16, ptr noundef nonnull @.str.23, ptr noundef nonnull %2) #6
  %80 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str.24) #7
  %.not142 = icmp eq ptr %80, null
  br i1 %.not142, label %160, label %81

81:                                               ; preds = %.lr.ph198
  %82 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %16, ptr noundef nonnull @.str.25, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %10) #6
  %83 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %4, ptr noundef nonnull @.str.38, ptr noundef nonnull %4) #6
  %84 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %6, ptr noundef nonnull @.str.38, ptr noundef nonnull %6) #6
  %85 = icmp eq i32 %.3195, 1
  br i1 %85, label %.thread, label %92

.thread:                                          ; preds = %81
  %86 = call signext i8 @gk_threetoone(ptr noundef nonnull %6)
  %87 = load ptr, ptr %64, align 8, !tbaa !17
  %88 = sext i32 %.0131191 to i64
  %89 = getelementptr inbounds i8, ptr %87, i64 %88
  store i8 %86, ptr %89, align 1, !tbaa !5
  %90 = load i32, ptr %8, align 4, !tbaa !21
  %91 = add nsw i32 %.0131191, 1
  br label %100

92:                                               ; preds = %81
  %.pre = load i32, ptr %8, align 4, !tbaa !21
  %.not147 = icmp eq i32 %.4126192, %.pre
  br i1 %.not147, label %100, label %93

93:                                               ; preds = %92
  %94 = call signext i8 @gk_threetoone(ptr noundef nonnull %6)
  %95 = load ptr, ptr %64, align 8, !tbaa !17
  %96 = sext i32 %.0131191 to i64
  %97 = getelementptr inbounds i8, ptr %95, i64 %96
  store i8 %94, ptr %97, align 1, !tbaa !5
  %98 = add nsw i32 %.0131191, 1
  %99 = load i32, ptr %8, align 4, !tbaa !21
  br label %100

100:                                              ; preds = %.thread, %93, %92
  %.2133 = phi i32 [ %98, %93 ], [ %.0131191, %92 ], [ %91, %.thread ]
  %.6 = phi i32 [ %99, %93 ], [ %.pre, %92 ], [ %90, %.thread ]
  %101 = load double, ptr %11, align 8, !tbaa !22
  %102 = load ptr, ptr %68, align 8, !tbaa !18
  %103 = sext i32 %.0196 to i64
  %104 = getelementptr inbounds %struct.atom, ptr %102, i64 %103, i32 8
  store double %101, ptr %104, align 8, !tbaa !24
  %105 = load double, ptr %12, align 8, !tbaa !22
  %106 = getelementptr inbounds %struct.atom, ptr %102, i64 %103, i32 9
  store double %105, ptr %106, align 8, !tbaa !26
  %107 = load double, ptr %13, align 8, !tbaa !22
  %108 = getelementptr inbounds %struct.atom, ptr %102, i64 %103, i32 10
  store double %107, ptr %108, align 8, !tbaa !27
  %109 = load double, ptr %14, align 8, !tbaa !22
  %110 = getelementptr inbounds %struct.atom, ptr %102, i64 %103, i32 11
  store double %109, ptr %110, align 8, !tbaa !28
  %111 = load double, ptr %15, align 8, !tbaa !22
  %112 = getelementptr inbounds %struct.atom, ptr %102, i64 %103, i32 12
  store double %111, ptr %112, align 8, !tbaa !29
  %113 = load i8, ptr %10, align 1, !tbaa !5
  %114 = getelementptr inbounds %struct.atom, ptr %102, i64 %103, i32 7
  store i8 %113, ptr %114, align 1, !tbaa !30
  %115 = load i32, ptr %3, align 4, !tbaa !21
  %116 = getelementptr inbounds %struct.atom, ptr %102, i64 %103
  store i32 %115, ptr %116, align 8, !tbaa !31
  %117 = load i8, ptr %7, align 1, !tbaa !5
  %118 = getelementptr inbounds %struct.atom, ptr %102, i64 %103, i32 4
  store i8 %117, ptr %118, align 8, !tbaa !32
  %119 = load i8, ptr %5, align 1, !tbaa !5
  %120 = getelementptr inbounds %struct.atom, ptr %102, i64 %103, i32 2
  store i8 %119, ptr %120, align 8, !tbaa !33
  %121 = load i32, ptr %8, align 4, !tbaa !21
  %122 = getelementptr inbounds %struct.atom, ptr %102, i64 %103, i32 5
  store i32 %121, ptr %122, align 4, !tbaa !34
  %123 = load i8, ptr %9, align 1, !tbaa !5
  %124 = getelementptr inbounds %struct.atom, ptr %102, i64 %103, i32 6
  store i8 %123, ptr %124, align 8, !tbaa !35
  %125 = call ptr @gk_strdup(ptr noundef nonnull %4) #6
  %126 = load ptr, ptr %68, align 8, !tbaa !18
  %127 = getelementptr inbounds %struct.atom, ptr %126, i64 %103, i32 1
  store ptr %125, ptr %127, align 8, !tbaa !36
  %128 = call ptr @gk_strdup(ptr noundef nonnull %6) #6
  %129 = load ptr, ptr %68, align 8, !tbaa !18
  %130 = getelementptr inbounds %struct.atom, ptr %129, i64 %103, i32 3
  store ptr %128, ptr %130, align 8, !tbaa !37
  %131 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.27) #7
  %132 = icmp eq i32 %131, 0
  br i1 %132, label %133, label %139

133:                                              ; preds = %100
  %134 = getelementptr inbounds %struct.atom, ptr %129, i64 %103
  %135 = load ptr, ptr %76, align 8, !tbaa !20
  %136 = sext i32 %.3107193 to i64
  %137 = getelementptr inbounds ptr, ptr %135, i64 %136
  store ptr %134, ptr %137, align 8, !tbaa !38
  %138 = add nsw i32 %.3107193, 1
  br label %139

139:                                              ; preds = %133, %100
  %.4108 = phi i32 [ %138, %133 ], [ %.3107193, %100 ]
  %140 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.28) #7
  %141 = icmp eq i32 %140, 0
  br i1 %141, label %151, label %142

142:                                              ; preds = %139
  %143 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.27) #7
  %144 = icmp eq i32 %143, 0
  br i1 %144, label %151, label %145

145:                                              ; preds = %142
  %146 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.29) #7
  %147 = icmp eq i32 %146, 0
  br i1 %147, label %151, label %148

148:                                              ; preds = %145
  %149 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.30) #7
  %150 = icmp eq i32 %149, 0
  br i1 %150, label %151, label %158

151:                                              ; preds = %148, %145, %142, %139
  %152 = load ptr, ptr %68, align 8, !tbaa !18
  %153 = getelementptr inbounds %struct.atom, ptr %152, i64 %103
  %154 = load ptr, ptr %72, align 8, !tbaa !19
  %155 = sext i32 %.2101194 to i64
  %156 = getelementptr inbounds ptr, ptr %154, i64 %155
  store ptr %153, ptr %156, align 8, !tbaa !38
  %157 = add nsw i32 %.2101194, 1
  br label %158

158:                                              ; preds = %151, %148
  %.3102 = phi i32 [ %157, %151 ], [ %.2101194, %148 ]
  %159 = add nsw i32 %.0196, 1
  br label %166

160:                                              ; preds = %.lr.ph198
  %161 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str.31) #7
  %.not143 = icmp eq ptr %161, null
  br i1 %.not143, label %162, label %._crit_edge199

162:                                              ; preds = %160
  %163 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str.32) #7
  %.not144 = icmp eq ptr %163, null
  br i1 %.not144, label %164, label %._crit_edge199

164:                                              ; preds = %162
  %165 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str.33) #7
  %.not145 = icmp eq ptr %165, null
  br i1 %.not145, label %166, label %._crit_edge199

166:                                              ; preds = %164, %158
  %.3134 = phi i32 [ %.2133, %158 ], [ %.0131191, %164 ]
  %.7 = phi i32 [ %.6, %158 ], [ %.4126192, %164 ]
  %.5109 = phi i32 [ %.4108, %158 ], [ %.3107193, %164 ]
  %.4103 = phi i32 [ %.3102, %158 ], [ %.2101194, %164 ]
  %.5 = phi i32 [ 0, %158 ], [ %.3195, %164 ]
  %.1 = phi i32 [ %159, %158 ], [ %.0196, %164 ]
  %167 = call ptr @fgets(ptr noundef nonnull %16, i32 noundef 256, ptr noundef %77)
  %.not141 = icmp eq ptr %167, null
  br i1 %.not141, label %._crit_edge199, label %.lr.ph198, !llvm.loop !39

._crit_edge199:                                   ; preds = %166, %164, %162, %160, %._crit_edge
  %.3107.lcssa = phi i32 [ 0, %._crit_edge ], [ %.3107193, %160 ], [ %.3107193, %162 ], [ %.3107193, %164 ], [ %.5109, %166 ]
  %.2101.lcssa = phi i32 [ 0, %._crit_edge ], [ %.2101194, %160 ], [ %.2101194, %162 ], [ %.2101194, %164 ], [ %.4103, %166 ]
  %.not146 = icmp eq i32 %.3107.lcssa, %.0110.lcssa
  br i1 %.not146, label %177, label %168

168:                                              ; preds = %._crit_edge199
  %169 = sub nsw i32 %.0110.lcssa, %.3107.lcssa
  %170 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.39, i32 noundef %169)
  %171 = icmp slt i32 %.3107.lcssa, %.0110.lcssa
  br i1 %171, label %172, label %174

172:                                              ; preds = %168
  %173 = or i32 %.0116.lcssa, 2
  br label %177

174:                                              ; preds = %168
  %175 = icmp sgt i32 %.3107.lcssa, %.0110.lcssa
  %176 = or i32 %.0116.lcssa, 16
  %spec.select151 = select i1 %175, i32 %176, i32 %.0116.lcssa
  br label %177

177:                                              ; preds = %174, %172, %._crit_edge199
  %.4120 = phi i32 [ %173, %172 ], [ %.0116.lcssa, %._crit_edge199 ], [ %spec.select151, %174 ]
  %178 = shl nsw i32 %.0110.lcssa, 2
  %179 = icmp slt i32 %.2101.lcssa, %178
  %180 = or i32 %.4120, 4
  %181 = icmp sgt i32 %.2101.lcssa, %178
  %182 = or i32 %.4120, 32
  %spec.select152 = select i1 %181, i32 %182, i32 %.4120
  %.5121 = select i1 %179, i32 %180, i32 %spec.select152
  %183 = call i32 @fclose(ptr noundef %77)
  %184 = getelementptr inbounds i8, ptr %18, i64 16
  store i32 %.5121, ptr %184, align 8, !tbaa !40
  call void @llvm.lifetime.end.p0(i64 300000, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %2) #6
  ret ptr %18
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare ptr @gk_malloc(i64 noundef, ptr noundef) local_unnamed_addr #4

declare ptr @gk_fopen(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare ptr @strstr(ptr noundef, ptr nocapture noundef) local_unnamed_addr #2

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

declare ptr @gk_strdup(ptr noundef) local_unnamed_addr #4

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nocallback nofree 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 = { 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 #6 = { nounwind }
attributes #7 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!11, !12, i64 0}
!11 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48}
!12 = !{!"int", !6, i64 0}
!13 = !{!"any pointer", !6, i64 0}
!14 = !{!11, !12, i64 8}
!15 = !{!11, !12, i64 12}
!16 = !{!11, !12, i64 4}
!17 = !{!11, !13, i64 24}
!18 = !{!11, !13, i64 32}
!19 = !{!11, !13, i64 40}
!20 = !{!11, !13, i64 48}
!21 = !{!12, !12, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"double", !6, i64 0}
!24 = !{!25, !23, i64 48}
!25 = !{!"", !12, i64 0, !13, i64 8, !6, i64 16, !13, i64 24, !6, i64 32, !12, i64 36, !6, i64 40, !6, i64 41, !23, i64 48, !23, i64 56, !23, i64 64, !23, i64 72, !23, i64 80}
!26 = !{!25, !23, i64 56}
!27 = !{!25, !23, i64 64}
!28 = !{!25, !23, i64 72}
!29 = !{!25, !23, i64 80}
!30 = !{!25, !6, i64 41}
!31 = !{!25, !12, i64 0}
!32 = !{!25, !6, i64 32}
!33 = !{!25, !6, i64 16}
!34 = !{!25, !12, i64 36}
!35 = !{!25, !6, i64 40}
!36 = !{!25, !13, i64 8}
!37 = !{!25, !13, i64 24}
!38 = !{!13, !13, i64 0}
!39 = distinct !{!39, !9}
!40 = !{!11, !12, i64 16}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass