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

; 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.gk_Tokens_t = type { i32, ptr, ptr }
%struct.gk_seq_t = type { i32, ptr, ptr, ptr, ptr, i32 }
%struct.gk_i2cc2i_t = type { i32, ptr, ptr }

@gk_seq_ReadGKMODPSSM.AAORDER = external hidden global ptr, align 8
@gk_seq_ReadGKMODPSSM.PSSMWIDTH = external hidden global i32, align 4
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

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

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

declare ptr @gk_imalloc(i64 noundef, ptr noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local ptr @gk_seq_ReadGKMODPSSM(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %struct.gk_Tokens_t, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca [300000 x i8], align 16
  %15 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #5
  %16 = load i32, ptr @gk_seq_ReadGKMODPSSM.PSSMWIDTH, align 4, !tbaa !9
  %17 = zext i32 %16 to i64
  %18 = call ptr @llvm.stacksave.p0()
  store ptr %18, ptr %12, align 8
  %19 = alloca i8, i64 %17, align 16
  store i64 %17, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 300000, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %20 = load ptr, ptr @gk_seq_ReadGKMODPSSM.AAORDER, align 8, !tbaa !5
  %21 = call ptr @gk_i2cc2i_create_common(ptr noundef %20)
  store ptr %21, ptr %15, align 8, !tbaa !5
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  call void @gk_getfilestats(ptr noundef %22, ptr noundef %9, ptr noundef %7, ptr noundef %8)
  %23 = load i32, ptr %9, align 4, !tbaa !9
  %24 = add nsw i32 %23, -1
  store i32 %24, ptr %9, align 4, !tbaa !9
  %25 = call ptr @gk_malloc(i64 noundef 48, ptr noundef @.str.2)
  store ptr %25, ptr %3, align 8, !tbaa !5
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  call void @gk_seq_init(ptr noundef %26)
  %27 = load i32, ptr %9, align 4, !tbaa !9
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.gk_seq_t, ptr %28, i32 0, i32 0
  store i32 %27, ptr %29, align 8, !tbaa !11
  %30 = load i32, ptr %9, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = call ptr @gk_imalloc(i64 noundef %31, ptr noundef @.str.2)
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.gk_seq_t, ptr %33, i32 0, i32 1
  store ptr %32, ptr %34, align 8, !tbaa !13
  %35 = load i32, ptr %9, align 4, !tbaa !9
  %36 = sext i32 %35 to i64
  %37 = load i32, ptr @gk_seq_ReadGKMODPSSM.PSSMWIDTH, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = call ptr @gk_iAllocMatrix(i64 noundef %36, i64 noundef %38, i32 noundef 0, ptr noundef @.str.2)
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.gk_seq_t, ptr %40, i32 0, i32 2
  store ptr %39, ptr %41, align 8, !tbaa !14
  %42 = load i32, ptr %9, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = load i32, ptr @gk_seq_ReadGKMODPSSM.PSSMWIDTH, align 4, !tbaa !9
  %45 = sext i32 %44 to i64
  %46 = call ptr @gk_iAllocMatrix(i64 noundef %43, i64 noundef %45, i32 noundef 0, ptr noundef @.str.2)
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.gk_seq_t, ptr %47, i32 0, i32 3
  store ptr %46, ptr %48, align 8, !tbaa !15
  %49 = load i32, ptr @gk_seq_ReadGKMODPSSM.PSSMWIDTH, align 4, !tbaa !9
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.gk_seq_t, ptr %50, i32 0, i32 5
  store i32 %49, ptr %51, align 8, !tbaa !16
  %52 = load ptr, ptr %2, align 8, !tbaa !5
  %53 = call ptr @gk_getbasename(ptr noundef %52)
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.gk_seq_t, ptr %54, i32 0, i32 4
  store ptr %53, ptr %55, align 8, !tbaa !17
  %56 = load ptr, ptr %2, align 8, !tbaa !5
  %57 = call ptr @gk_fopen(ptr noundef %56, ptr noundef @.str.3, ptr noundef @.str.2)
  store ptr %57, ptr %10, align 8, !tbaa !5
  %58 = getelementptr inbounds [300000 x i8], ptr %14, i64 0, i64 0
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = call ptr @fgets(ptr noundef %58, i32 noundef 299999, ptr noundef %59)
  %61 = getelementptr inbounds [300000 x i8], ptr %14, i64 0, i64 0
  %62 = call ptr @gk_strtoupper(ptr noundef %61)
  %63 = getelementptr inbounds [300000 x i8], ptr %14, i64 0, i64 0
  call void @gk_strtokenize(ptr noundef %63, ptr noundef @.str.4, ptr noundef %11)
  store i64 0, ptr %4, align 8, !tbaa !18
  br label %64

64:                                               ; preds = %79, %1
  %65 = load i64, ptr %4, align 8, !tbaa !18
  %66 = load i32, ptr @gk_seq_ReadGKMODPSSM.PSSMWIDTH, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = icmp slt i64 %65, %67
  br i1 %68, label %69, label %82

69:                                               ; preds = %64
  %70 = getelementptr inbounds %struct.gk_Tokens_t, ptr %11, i32 0, i32 2
  %71 = load ptr, ptr %70, align 8, !tbaa !20
  %72 = load i64, ptr %4, align 8, !tbaa !18
  %73 = getelementptr inbounds ptr, ptr %71, i64 %72
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %74, i64 0
  %76 = load i8, ptr %75, align 1, !tbaa !22
  %77 = load i64, ptr %4, align 8, !tbaa !18
  %78 = getelementptr inbounds i8, ptr %19, i64 %77
  store i8 %76, ptr %78, align 1, !tbaa !22
  br label %79

79:                                               ; preds = %69
  %80 = load i64, ptr %4, align 8, !tbaa !18
  %81 = add nsw i64 %80, 1
  store i64 %81, ptr %4, align 8, !tbaa !18
  br label %64, !llvm.loop !23

82:                                               ; preds = %64
  call void @gk_freetokenslist(ptr noundef %11)
  store i64 0, ptr %4, align 8, !tbaa !18
  store i64 0, ptr %6, align 8, !tbaa !18
  br label %83

83:                                               ; preds = %178, %82
  %84 = load i64, ptr %6, align 8, !tbaa !18
  %85 = load i32, ptr %9, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = icmp slt i64 %84, %86
  br i1 %87, label %88, label %181

88:                                               ; preds = %83
  %89 = getelementptr inbounds [300000 x i8], ptr %14, i64 0, i64 0
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = call ptr @fgets(ptr noundef %89, i32 noundef 299999, ptr noundef %90)
  %92 = getelementptr inbounds [300000 x i8], ptr %14, i64 0, i64 0
  %93 = call ptr @gk_strtoupper(ptr noundef %92)
  %94 = getelementptr inbounds [300000 x i8], ptr %14, i64 0, i64 0
  call void @gk_strtokenize(ptr noundef %94, ptr noundef @.str.4, ptr noundef %11)
  %95 = load ptr, ptr %15, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.gk_i2cc2i_t, ptr %95, i32 0, i32 2
  %97 = load ptr, ptr %96, align 8, !tbaa !20
  %98 = getelementptr inbounds %struct.gk_Tokens_t, ptr %11, i32 0, i32 2
  %99 = load ptr, ptr %98, align 8, !tbaa !20
  %100 = getelementptr inbounds ptr, ptr %99, i64 1
  %101 = load ptr, ptr %100, align 8, !tbaa !5
  %102 = getelementptr inbounds i8, ptr %101, i64 0
  %103 = load i8, ptr %102, align 1, !tbaa !22
  %104 = sext i8 %103 to i32
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds i32, ptr %97, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !9
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.gk_seq_t, ptr %108, i32 0, i32 1
  %110 = load ptr, ptr %109, align 8, !tbaa !13
  %111 = load i64, ptr %4, align 8, !tbaa !18
  %112 = getelementptr inbounds i32, ptr %110, i64 %111
  store i32 %107, ptr %112, align 4, !tbaa !9
  store i64 0, ptr %5, align 8, !tbaa !18
  br label %113

113:                                              ; preds = %172, %88
  %114 = load i64, ptr %5, align 8, !tbaa !18
  %115 = load i32, ptr @gk_seq_ReadGKMODPSSM.PSSMWIDTH, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = icmp slt i64 %114, %116
  br i1 %117, label %118, label %175

118:                                              ; preds = %113
  %119 = getelementptr inbounds %struct.gk_Tokens_t, ptr %11, i32 0, i32 2
  %120 = load ptr, ptr %119, align 8, !tbaa !20
  %121 = load i64, ptr %5, align 8, !tbaa !18
  %122 = add nsw i64 2, %121
  %123 = getelementptr inbounds ptr, ptr %120, i64 %122
  %124 = load ptr, ptr %123, align 8, !tbaa !5
  %125 = call i32 @atoi(ptr noundef %124) #6
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.gk_seq_t, ptr %126, i32 0, i32 2
  %128 = load ptr, ptr %127, align 8, !tbaa !14
  %129 = load i64, ptr %4, align 8, !tbaa !18
  %130 = getelementptr inbounds ptr, ptr %128, i64 %129
  %131 = load ptr, ptr %130, align 8, !tbaa !5
  %132 = load ptr, ptr %15, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.gk_i2cc2i_t, ptr %132, i32 0, i32 2
  %134 = load ptr, ptr %133, align 8, !tbaa !20
  %135 = load i64, ptr %5, align 8, !tbaa !18
  %136 = getelementptr inbounds i8, ptr %19, i64 %135
  %137 = load i8, ptr %136, align 1, !tbaa !22
  %138 = sext i8 %137 to i32
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds i32, ptr %134, i64 %139
  %141 = load i32, ptr %140, align 4, !tbaa !9
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds i32, ptr %131, i64 %142
  store i32 %125, ptr %143, align 4, !tbaa !9
  %144 = getelementptr inbounds %struct.gk_Tokens_t, ptr %11, i32 0, i32 2
  %145 = load ptr, ptr %144, align 8, !tbaa !20
  %146 = load i32, ptr @gk_seq_ReadGKMODPSSM.PSSMWIDTH, align 4, !tbaa !9
  %147 = add nsw i32 2, %146
  %148 = sext i32 %147 to i64
  %149 = load i64, ptr %5, align 8, !tbaa !18
  %150 = add nsw i64 %148, %149
  %151 = getelementptr inbounds ptr, ptr %145, i64 %150
  %152 = load ptr, ptr %151, align 8, !tbaa !5
  %153 = call i32 @atoi(ptr noundef %152) #6
  %154 = load ptr, ptr %3, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.gk_seq_t, ptr %154, i32 0, i32 3
  %156 = load ptr, ptr %155, align 8, !tbaa !15
  %157 = load i64, ptr %4, align 8, !tbaa !18
  %158 = getelementptr inbounds ptr, ptr %156, i64 %157
  %159 = load ptr, ptr %158, align 8, !tbaa !5
  %160 = load ptr, ptr %15, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.gk_i2cc2i_t, ptr %160, i32 0, i32 2
  %162 = load ptr, ptr %161, align 8, !tbaa !20
  %163 = load i64, ptr %5, align 8, !tbaa !18
  %164 = getelementptr inbounds i8, ptr %19, i64 %163
  %165 = load i8, ptr %164, align 1, !tbaa !22
  %166 = sext i8 %165 to i32
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds i32, ptr %162, i64 %167
  %169 = load i32, ptr %168, align 4, !tbaa !9
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds i32, ptr %159, i64 %170
  store i32 %153, ptr %171, align 4, !tbaa !9
  br label %172

172:                                              ; preds = %118
  %173 = load i64, ptr %5, align 8, !tbaa !18
  %174 = add nsw i64 %173, 1
  store i64 %174, ptr %5, align 8, !tbaa !18
  br label %113, !llvm.loop !25

175:                                              ; preds = %113
  call void @gk_freetokenslist(ptr noundef %11)
  %176 = load i64, ptr %4, align 8, !tbaa !18
  %177 = add nsw i64 %176, 1
  store i64 %177, ptr %4, align 8, !tbaa !18
  br label %178

178:                                              ; preds = %175
  %179 = load i64, ptr %6, align 8, !tbaa !18
  %180 = add nsw i64 %179, 1
  store i64 %180, ptr %6, align 8, !tbaa !18
  br label %83, !llvm.loop !26

181:                                              ; preds = %83
  %182 = load i64, ptr %4, align 8, !tbaa !18
  %183 = trunc i64 %182 to i32
  %184 = load ptr, ptr %3, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.gk_seq_t, ptr %184, i32 0, i32 0
  store i32 %183, ptr %185, align 8, !tbaa !11
  %186 = load ptr, ptr %10, align 8, !tbaa !5
  call void @gk_fclose(ptr noundef %186)
  %187 = load ptr, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 300000, ptr %14) #5
  %188 = load ptr, ptr %12, align 8
  call void @llvm.stackrestore.p0(ptr %188)
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret ptr %187
}

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

declare void @gk_getfilestats(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare ptr @gk_iAllocMatrix(i64 noundef, i64 noundef, i32 noundef, ptr noundef) #2

declare ptr @gk_getbasename(ptr noundef) #2

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

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

declare ptr @gk_strtoupper(ptr noundef) #2

declare void @gk_strtokenize(ptr noundef, ptr noundef, ptr noundef) #2

declare void @gk_freetokenslist(ptr noundef) #2

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

declare void @gk_fclose(ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

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 = { "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 }
attributes #4 = { inlinehint nounwind willreturn memory(read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { 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 = !{!12, !10, i64 0}
!12 = !{!"", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !10, i64 40}
!13 = !{!12, !6, i64 8}
!14 = !{!12, !6, i64 16}
!15 = !{!12, !6, i64 24}
!16 = !{!12, !10, i64 40}
!17 = !{!12, !6, i64 32}
!18 = !{!19, !19, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!21, !6, i64 16}
!21 = !{!"", !10, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = distinct !{!26, !24}


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

%struct.gk_Tokens_t = type { i32, ptr, ptr }

@gk_seq_ReadGKMODPSSM.AAORDER = external hidden local_unnamed_addr global ptr, align 8
@gk_seq_ReadGKMODPSSM.PSSMWIDTH = external hidden local_unnamed_addr global i32, align 4
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @gk_seq_init(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @gk_i2cc2i_create_common(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

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

declare ptr @gk_imalloc(i64 noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @gk_seq_ReadGKMODPSSM(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %struct.gk_Tokens_t, align 8
  %6 = alloca [300000 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  %7 = load i32, ptr @gk_seq_ReadGKMODPSSM.PSSMWIDTH, align 4, !tbaa !5
  %8 = zext i32 %7 to i64
  %9 = tail call ptr @llvm.stacksave.p0()
  %10 = alloca i8, i64 %8, align 16
  call void @llvm.lifetime.start.p0(i64 300000, ptr nonnull %6) #6
  %11 = load ptr, ptr @gk_seq_ReadGKMODPSSM.AAORDER, align 8, !tbaa !9
  %12 = tail call ptr @gk_i2cc2i_create_common(ptr noundef %11)
  call void @gk_getfilestats(ptr noundef %0, ptr noundef nonnull %4, ptr noundef nonnull %2, ptr noundef nonnull %3) #6
  %13 = load i32, ptr %4, align 4, !tbaa !5
  %14 = add nsw i32 %13, -1
  store i32 %14, ptr %4, align 4, !tbaa !5
  %15 = call ptr @gk_malloc(i64 noundef 48, ptr noundef nonnull @.str.2) #6
  call void @gk_seq_init(ptr noundef %15)
  %16 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %16, ptr %15, align 8, !tbaa !11
  %17 = sext i32 %16 to i64
  %18 = call ptr @gk_imalloc(i64 noundef %17, ptr noundef nonnull @.str.2) #6
  %19 = getelementptr inbounds i8, ptr %15, i64 8
  store ptr %18, ptr %19, align 8, !tbaa !13
  %20 = load i32, ptr %4, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = load i32, ptr @gk_seq_ReadGKMODPSSM.PSSMWIDTH, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = call ptr @gk_iAllocMatrix(i64 noundef %21, i64 noundef %23, i32 noundef 0, ptr noundef nonnull @.str.2) #6
  %25 = getelementptr inbounds i8, ptr %15, i64 16
  store ptr %24, ptr %25, align 8, !tbaa !14
  %26 = load i32, ptr %4, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = load i32, ptr @gk_seq_ReadGKMODPSSM.PSSMWIDTH, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = call ptr @gk_iAllocMatrix(i64 noundef %27, i64 noundef %29, i32 noundef 0, ptr noundef nonnull @.str.2) #6
  %31 = getelementptr inbounds i8, ptr %15, i64 24
  store ptr %30, ptr %31, align 8, !tbaa !15
  %32 = load i32, ptr @gk_seq_ReadGKMODPSSM.PSSMWIDTH, align 4, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %15, i64 40
  store i32 %32, ptr %33, align 8, !tbaa !16
  %34 = call ptr @gk_getbasename(ptr noundef %0) #6
  %35 = getelementptr inbounds i8, ptr %15, i64 32
  store ptr %34, ptr %35, align 8, !tbaa !17
  %36 = call ptr @gk_fopen(ptr noundef %0, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.2) #6
  %37 = call ptr @fgets(ptr noundef nonnull %6, i32 noundef 299999, ptr noundef %36)
  %38 = call ptr @gk_strtoupper(ptr noundef nonnull %6) #6
  call void @gk_strtokenize(ptr noundef nonnull %6, ptr noundef nonnull @.str.4, ptr noundef nonnull %5) #6
  %39 = load i32, ptr @gk_seq_ReadGKMODPSSM.PSSMWIDTH, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = icmp sgt i32 %39, 0
  br i1 %41, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %42 = getelementptr inbounds i8, ptr %5, i64 16
  %43 = load ptr, ptr %42, align 8, !tbaa !18
  %xtraiter = and i64 %40, 3
  %44 = icmp ult i32 %39, 4
  br i1 %44, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %40, 2147483644
  br label %45

45:                                               ; preds = %45, %.lr.ph.new
  %.040 = phi i64 [ 0, %.lr.ph.new ], [ %65, %45 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %45 ]
  %46 = getelementptr inbounds ptr, ptr %43, i64 %.040
  %47 = load ptr, ptr %46, align 8, !tbaa !9
  %48 = load i8, ptr %47, align 1, !tbaa !20
  %49 = getelementptr inbounds i8, ptr %10, i64 %.040
  store i8 %48, ptr %49, align 4, !tbaa !20
  %50 = or disjoint i64 %.040, 1
  %51 = getelementptr inbounds ptr, ptr %43, i64 %50
  %52 = load ptr, ptr %51, align 8, !tbaa !9
  %53 = load i8, ptr %52, align 1, !tbaa !20
  %54 = getelementptr inbounds i8, ptr %10, i64 %50
  store i8 %53, ptr %54, align 1, !tbaa !20
  %55 = or disjoint i64 %.040, 2
  %56 = getelementptr inbounds ptr, ptr %43, i64 %55
  %57 = load ptr, ptr %56, align 8, !tbaa !9
  %58 = load i8, ptr %57, align 1, !tbaa !20
  %59 = getelementptr inbounds i8, ptr %10, i64 %55
  store i8 %58, ptr %59, align 2, !tbaa !20
  %60 = or disjoint i64 %.040, 3
  %61 = getelementptr inbounds ptr, ptr %43, i64 %60
  %62 = load ptr, ptr %61, align 8, !tbaa !9
  %63 = load i8, ptr %62, align 1, !tbaa !20
  %64 = getelementptr inbounds i8, ptr %10, i64 %60
  store i8 %63, ptr %64, align 1, !tbaa !20
  %65 = add nuw nsw i64 %.040, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %45, !llvm.loop !21

._crit_edge.loopexit.unr-lcssa:                   ; preds = %45, %.lr.ph
  %.040.unr = phi i64 [ 0, %.lr.ph ], [ %65, %45 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %.040.epil = phi i64 [ %70, %.epil.preheader ], [ %.040.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %66 = getelementptr inbounds ptr, ptr %43, i64 %.040.epil
  %67 = load ptr, ptr %66, align 8, !tbaa !9
  %68 = load i8, ptr %67, align 1, !tbaa !20
  %69 = getelementptr inbounds i8, ptr %10, i64 %.040.epil
  store i8 %68, ptr %69, align 1, !tbaa !20
  %70 = add nuw nsw i64 %.040.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !23

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %1
  call void @gk_freetokenslist(ptr noundef nonnull %5) #6
  %71 = load i32, ptr %4, align 4, !tbaa !5
  %72 = icmp sgt i32 %71, 0
  br i1 %72, label %.lr.ph48, label %._crit_edge49

.lr.ph48:                                         ; preds = %._crit_edge
  %73 = getelementptr inbounds i8, ptr %12, i64 16
  %74 = getelementptr inbounds i8, ptr %5, i64 16
  br label %75

75:                                               ; preds = %.lr.ph48, %._crit_edge44
  %.146 = phi i64 [ 0, %.lr.ph48 ], [ %121, %._crit_edge44 ]
  %76 = call ptr @fgets(ptr noundef nonnull %6, i32 noundef 299999, ptr noundef %36)
  %77 = call ptr @gk_strtoupper(ptr noundef nonnull %6) #6
  call void @gk_strtokenize(ptr noundef nonnull %6, ptr noundef nonnull @.str.4, ptr noundef nonnull %5) #6
  %78 = load ptr, ptr %73, align 8, !tbaa !18
  %79 = load ptr, ptr %74, align 8, !tbaa !18
  %80 = getelementptr inbounds i8, ptr %79, i64 8
  %81 = load ptr, ptr %80, align 8, !tbaa !9
  %82 = load i8, ptr %81, align 1, !tbaa !20
  %83 = sext i8 %82 to i64
  %84 = getelementptr inbounds i32, ptr %78, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = load ptr, ptr %19, align 8, !tbaa !13
  %87 = getelementptr inbounds i32, ptr %86, i64 %.146
  store i32 %85, ptr %87, align 4, !tbaa !5
  %88 = load i32, ptr @gk_seq_ReadGKMODPSSM.PSSMWIDTH, align 4, !tbaa !5
  %89 = icmp sgt i32 %88, 0
  br i1 %89, label %.lr.ph43, label %._crit_edge44

.lr.ph43:                                         ; preds = %75
  %90 = load ptr, ptr %25, align 8, !tbaa !14
  %91 = getelementptr inbounds ptr, ptr %90, i64 %.146
  %92 = load ptr, ptr %91, align 8, !tbaa !9
  %93 = load ptr, ptr %31, align 8, !tbaa !15
  %94 = getelementptr inbounds ptr, ptr %93, i64 %.146
  %95 = load ptr, ptr %94, align 8, !tbaa !9
  br label %96

96:                                               ; preds = %.lr.ph43, %96
  %.03841 = phi i64 [ 0, %.lr.ph43 ], [ %117, %96 ]
  %97 = getelementptr inbounds ptr, ptr %79, i64 %.03841
  %98 = getelementptr inbounds i8, ptr %97, i64 16
  %99 = load ptr, ptr %98, align 8, !tbaa !9
  %100 = call i32 @atoi(ptr nocapture noundef %99) #7
  %101 = getelementptr inbounds i8, ptr %10, i64 %.03841
  %102 = load i8, ptr %101, align 1, !tbaa !20
  %103 = sext i8 %102 to i64
  %104 = getelementptr inbounds i32, ptr %78, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds i32, ptr %92, i64 %106
  store i32 %100, ptr %107, align 4, !tbaa !5
  %108 = load i32, ptr @gk_seq_ReadGKMODPSSM.PSSMWIDTH, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr ptr, ptr %97, i64 %109
  %111 = getelementptr i8, ptr %110, i64 16
  %112 = load ptr, ptr %111, align 8, !tbaa !9
  %113 = call i32 @atoi(ptr nocapture noundef %112) #7
  %114 = load i32, ptr %104, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds i32, ptr %95, i64 %115
  store i32 %113, ptr %116, align 4, !tbaa !5
  %117 = add nuw nsw i64 %.03841, 1
  %118 = load i32, ptr @gk_seq_ReadGKMODPSSM.PSSMWIDTH, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = icmp slt i64 %117, %119
  br i1 %120, label %96, label %._crit_edge44, !llvm.loop !25

._crit_edge44:                                    ; preds = %96, %75
  call void @gk_freetokenslist(ptr noundef nonnull %5) #6
  %121 = add nuw nsw i64 %.146, 1
  %122 = load i32, ptr %4, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = icmp slt i64 %121, %123
  br i1 %124, label %75, label %._crit_edge49.loopexit, !llvm.loop !26

._crit_edge49.loopexit:                           ; preds = %._crit_edge44
  %125 = trunc i64 %121 to i32
  br label %._crit_edge49

._crit_edge49:                                    ; preds = %._crit_edge49.loopexit, %._crit_edge
  %.1.lcssa = phi i32 [ 0, %._crit_edge ], [ %125, %._crit_edge49.loopexit ]
  store i32 %.1.lcssa, ptr %15, align 8, !tbaa !11
  call void @gk_fclose(ptr noundef %36) #6
  call void @llvm.lifetime.end.p0(i64 300000, ptr nonnull %6) #6
  call void @llvm.stackrestore.p0(ptr %9)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  ret ptr %15
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

declare void @gk_getfilestats(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare ptr @gk_iAllocMatrix(i64 noundef, i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare ptr @gk_getbasename(ptr noundef) local_unnamed_addr #2

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

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

declare ptr @gk_strtoupper(ptr noundef) local_unnamed_addr #2

declare void @gk_strtokenize(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @gk_freetokenslist(ptr noundef) local_unnamed_addr #2

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

declare void @gk_fclose(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

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 = { "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 nosync nounwind willreturn }
attributes #4 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !6, i64 40}
!13 = !{!12, !10, i64 8}
!14 = !{!12, !10, i64 16}
!15 = !{!12, !10, i64 24}
!16 = !{!12, !6, i64 40}
!17 = !{!12, !10, i64 32}
!18 = !{!19, !10, i64 16}
!19 = !{!"", !6, i64 0, !10, i64 8, !10, i64 16}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.unroll.disable"}
!25 = distinct !{!25, !22}
!26 = distinct !{!26, !22}


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