; LLVM IR from alexzheng42/sDMD :: src (CG)

; 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.CGMatrixStr = type { [5 x double], [32 x %struct.CGBeadStr] }
%struct.CGBeadStr = type { double, double, double, double }
%struct.AAStr = type { [5 x i8], i32, i32, i32, i32, double }

@totalAminoAcids = external global i32, align 4
@aminoacid = external global ptr, align 8
@datadir = external global [1024 x i8], align 16
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@CGMatrix = external global %struct.CGMatrixStr, align 8
@.str.14 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 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: nounwind
declare i32 @sprintf(ptr 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

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

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

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

declare i32 @AAModel(ptr noundef) #3

declare i32 @fclose(ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @ReadGoPara() #4 {
  %1 = alloca [512 x i8], align 16
  %2 = alloca [128 x i8], align 16
  %3 = alloca double, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 512, ptr %1) #5
  call void @llvm.lifetime.start.p0(i64 128, ptr %2) #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
  %9 = getelementptr inbounds [512 x i8], ptr %1, i64 0, i64 0
  %10 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %9, ptr noundef @.str.14, ptr noundef @datadir) #5
  %11 = getelementptr inbounds [512 x i8], ptr %1, i64 0, i64 0
  %12 = call noalias ptr @fopen(ptr noundef %11, ptr noundef @.str.7)
  store ptr %12, ptr %5, align 8, !tbaa !5
  %13 = call noalias ptr @calloc(i64 noundef 32, i64 noundef 8) #6
  store ptr %13, ptr %4, align 8, !tbaa !5
  %14 = call noalias ptr @calloc(i64 noundef 64, i64 noundef 8) #6
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds ptr, ptr %15, i64 0
  store ptr %14, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %17

17:                                               ; preds = %33, %0
  %18 = load i32, ptr %6, align 4, !tbaa !9
  %19 = icmp slt i32 %18, 32
  br i1 %19, label %21, label %20

20:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %36

21:                                               ; preds = %17
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds ptr, ptr %22, i64 0
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %25 = load i32, ptr %6, align 4, !tbaa !9
  %26 = mul nsw i32 %25, 2
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds double, ptr %24, i64 %27
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = load i32, ptr %6, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds ptr, ptr %29, i64 %31
  store ptr %28, ptr %32, align 8, !tbaa !5
  br label %33

33:                                               ; preds = %21
  %34 = load i32, ptr %6, align 4, !tbaa !9
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %6, align 4, !tbaa !9
  br label %17, !llvm.loop !11

36:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 1, ptr %7, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %80, %36
  %38 = load i32, ptr %7, align 4, !tbaa !9
  %39 = load i32, ptr @totalAminoAcids, align 4, !tbaa !9
  %40 = icmp sle i32 %38, %39
  br i1 %40, label %42, label %41

41:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %83

42:                                               ; preds = %37
  %43 = getelementptr inbounds [128 x i8], ptr %2, i64 0, i64 0
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = call ptr @fgets(ptr noundef %43, i32 noundef 128, ptr noundef %44)
  %46 = getelementptr inbounds [128 x i8], ptr %2, i64 0, i64 0
  %47 = getelementptr inbounds [512 x i8], ptr %1, i64 0, i64 0
  %48 = getelementptr inbounds [512 x i8], ptr %1, i64 0, i64 0
  %49 = getelementptr inbounds [512 x i8], ptr %1, i64 0, i64 0
  %50 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %46, ptr noundef @.str.15, ptr noundef %47, ptr noundef %48, ptr noundef %49, ptr noundef %3) #5
  %51 = load double, ptr %3, align 8, !tbaa !13
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = load ptr, ptr @aminoacid, align 8, !tbaa !5
  %54 = load i32, ptr %7, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds %struct.AAStr, ptr %53, i64 %55
  %57 = getelementptr inbounds %struct.AAStr, ptr %56, i32 0, i32 0
  %58 = getelementptr inbounds [5 x i8], ptr %57, i64 0, i64 0
  %59 = call i32 @AAModel(ptr noundef %58)
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds ptr, ptr %52, i64 %60
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = getelementptr inbounds double, ptr %62, i64 0
  %64 = load double, ptr %63, align 8, !tbaa !13
  %65 = fadd double %64, %51
  store double %65, ptr %63, align 8, !tbaa !13
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = load ptr, ptr @aminoacid, align 8, !tbaa !5
  %68 = load i32, ptr %7, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds %struct.AAStr, ptr %67, i64 %69
  %71 = getelementptr inbounds %struct.AAStr, ptr %70, i32 0, i32 0
  %72 = getelementptr inbounds [5 x i8], ptr %71, i64 0, i64 0
  %73 = call i32 @AAModel(ptr noundef %72)
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds ptr, ptr %66, i64 %74
  %76 = load ptr, ptr %75, align 8, !tbaa !5
  %77 = getelementptr inbounds double, ptr %76, i64 1
  %78 = load double, ptr %77, align 8, !tbaa !13
  %79 = fadd double %78, 1.000000e+00
  store double %79, ptr %77, align 8, !tbaa !13
  br label %80

80:                                               ; preds = %42
  %81 = load i32, ptr %7, align 4, !tbaa !9
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %7, align 4, !tbaa !9
  br label %37, !llvm.loop !15

83:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %84

84:                                               ; preds = %131, %83
  %85 = load i32, ptr %8, align 4, !tbaa !9
  %86 = icmp slt i32 %85, 32
  br i1 %86, label %88, label %87

87:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %134

88:                                               ; preds = %84
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = load i32, ptr %8, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds ptr, ptr %89, i64 %91
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  %94 = getelementptr inbounds double, ptr %93, i64 1
  %95 = load double, ptr %94, align 8, !tbaa !13
  %96 = fcmp une double %95, 0.000000e+00
  br i1 %96, label %97, label %117

97:                                               ; preds = %88
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = load i32, ptr %8, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds ptr, ptr %98, i64 %100
  %102 = load ptr, ptr %101, align 8, !tbaa !5
  %103 = getelementptr inbounds double, ptr %102, i64 0
  %104 = load double, ptr %103, align 8, !tbaa !13
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = load i32, ptr %8, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds ptr, ptr %105, i64 %107
  %109 = load ptr, ptr %108, align 8, !tbaa !5
  %110 = getelementptr inbounds double, ptr %109, i64 1
  %111 = load double, ptr %110, align 8, !tbaa !13
  %112 = fdiv double %104, %111
  %113 = load i32, ptr %8, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [32 x %struct.CGBeadStr], ptr getelementptr inbounds (%struct.CGMatrixStr, ptr @CGMatrix, i32 0, i32 1), i64 0, i64 %114
  %116 = getelementptr inbounds %struct.CGBeadStr, ptr %115, i32 0, i32 2
  store double %112, ptr %116, align 8, !tbaa !16
  br label %130

117:                                              ; preds = %88
  %118 = load i32, ptr %8, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [32 x %struct.CGBeadStr], ptr getelementptr inbounds (%struct.CGMatrixStr, ptr @CGMatrix, i32 0, i32 1), i64 0, i64 %119
  %121 = getelementptr inbounds %struct.CGBeadStr, ptr %120, i32 0, i32 2
  %122 = load double, ptr %121, align 8, !tbaa !16
  %123 = fcmp olt double %122, 0.000000e+00
  br i1 %123, label %124, label %129

124:                                              ; preds = %117
  %125 = load i32, ptr %8, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [32 x %struct.CGBeadStr], ptr getelementptr inbounds (%struct.CGMatrixStr, ptr @CGMatrix, i32 0, i32 1), i64 0, i64 %126
  %128 = getelementptr inbounds %struct.CGBeadStr, ptr %127, i32 0, i32 2
  store double -1.000000e+08, ptr %128, align 8, !tbaa !16
  br label %129

129:                                              ; preds = %124, %117
  br label %130

130:                                              ; preds = %129, %97
  br label %131

131:                                              ; preds = %130
  %132 = load i32, ptr %8, align 4, !tbaa !9
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %8, align 4, !tbaa !9
  br label %84, !llvm.loop !18

134:                                              ; preds = %87
  %135 = load ptr, ptr %5, align 8, !tbaa !5
  %136 = call i32 @fclose(ptr noundef %135)
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = getelementptr inbounds ptr, ptr %137, i64 0
  %139 = load ptr, ptr %138, align 8, !tbaa !5
  call void @free(ptr noundef %139) #5
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  call void @free(ptr noundef %140) #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
  call void @llvm.lifetime.end.p0(i64 128, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 512, ptr %1) #5
  ret void
}

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = !{!17, !14, i64 16}
!17 = !{!"CGBeadStr", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!18 = distinct !{!18, !12}


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

%struct.CGMatrixStr = type { [5 x double], [32 x %struct.CGBeadStr] }
%struct.CGBeadStr = type { double, double, double, double }
%struct.AAStr = type { [5 x i8], i32, i32, i32, i32, double }

@totalAminoAcids = external local_unnamed_addr global i32, align 4
@aminoacid = external local_unnamed_addr global ptr, align 8
@datadir = external global [1024 x i8], align 16
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@CGMatrix = external local_unnamed_addr global %struct.CGMatrixStr, align 8
@.str.14 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #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: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) 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: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

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

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

declare i32 @AAModel(ptr noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
define dso_local void @ReadGoPara() local_unnamed_addr #4 {
.preheader30:
  %0 = alloca [512 x i8], align 16
  %1 = alloca [128 x i8], align 16
  %2 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %0) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %3 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.14, ptr noundef nonnull @datadir) #6
  %4 = call noalias ptr @fopen(ptr noundef nonnull %0, ptr noundef nonnull @.str.7)
  %5 = tail call noalias dereferenceable_or_null(256) ptr @calloc(i64 noundef 32, i64 noundef 8) #7
  %6 = tail call noalias dereferenceable_or_null(512) ptr @calloc(i64 noundef 64, i64 noundef 8) #7
  store ptr %6, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %6, i64 16
  %8 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr %7, ptr %8, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %6, i64 32
  %10 = getelementptr inbounds i8, ptr %5, i64 16
  store ptr %9, ptr %10, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %6, i64 48
  %12 = getelementptr inbounds i8, ptr %5, i64 24
  store ptr %11, ptr %12, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %6, i64 64
  %14 = getelementptr inbounds i8, ptr %5, i64 32
  store ptr %13, ptr %14, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %6, i64 80
  %16 = getelementptr inbounds i8, ptr %5, i64 40
  store ptr %15, ptr %16, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %6, i64 96
  %18 = getelementptr inbounds i8, ptr %5, i64 48
  store ptr %17, ptr %18, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %6, i64 112
  %20 = getelementptr inbounds i8, ptr %5, i64 56
  store ptr %19, ptr %20, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %6, i64 128
  %22 = getelementptr inbounds i8, ptr %5, i64 64
  store ptr %21, ptr %22, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %6, i64 144
  %24 = getelementptr inbounds i8, ptr %5, i64 72
  store ptr %23, ptr %24, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %6, i64 160
  %26 = getelementptr inbounds i8, ptr %5, i64 80
  store ptr %25, ptr %26, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %6, i64 176
  %28 = getelementptr inbounds i8, ptr %5, i64 88
  store ptr %27, ptr %28, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %6, i64 192
  %30 = getelementptr inbounds i8, ptr %5, i64 96
  store ptr %29, ptr %30, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %6, i64 208
  %32 = getelementptr inbounds i8, ptr %5, i64 104
  store ptr %31, ptr %32, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %6, i64 224
  %34 = getelementptr inbounds i8, ptr %5, i64 112
  store ptr %33, ptr %34, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %6, i64 240
  %36 = getelementptr inbounds i8, ptr %5, i64 120
  store ptr %35, ptr %36, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %6, i64 256
  %38 = getelementptr inbounds i8, ptr %5, i64 128
  store ptr %37, ptr %38, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %6, i64 272
  %40 = getelementptr inbounds i8, ptr %5, i64 136
  store ptr %39, ptr %40, align 8, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %6, i64 288
  %42 = getelementptr inbounds i8, ptr %5, i64 144
  store ptr %41, ptr %42, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %6, i64 304
  %44 = getelementptr inbounds i8, ptr %5, i64 152
  store ptr %43, ptr %44, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %6, i64 320
  %46 = getelementptr inbounds i8, ptr %5, i64 160
  store ptr %45, ptr %46, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %6, i64 336
  %48 = getelementptr inbounds i8, ptr %5, i64 168
  store ptr %47, ptr %48, align 8, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %6, i64 352
  %50 = getelementptr inbounds i8, ptr %5, i64 176
  store ptr %49, ptr %50, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %6, i64 368
  %52 = getelementptr inbounds i8, ptr %5, i64 184
  store ptr %51, ptr %52, align 8, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %6, i64 384
  %54 = getelementptr inbounds i8, ptr %5, i64 192
  store ptr %53, ptr %54, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %6, i64 400
  %56 = getelementptr inbounds i8, ptr %5, i64 200
  store ptr %55, ptr %56, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %6, i64 416
  %58 = getelementptr inbounds i8, ptr %5, i64 208
  store ptr %57, ptr %58, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %6, i64 432
  %60 = getelementptr inbounds i8, ptr %5, i64 216
  store ptr %59, ptr %60, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %6, i64 448
  %62 = getelementptr inbounds i8, ptr %5, i64 224
  store ptr %61, ptr %62, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %6, i64 464
  %64 = getelementptr inbounds i8, ptr %5, i64 232
  store ptr %63, ptr %64, align 8, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %6, i64 480
  %66 = getelementptr inbounds i8, ptr %5, i64 240
  store ptr %65, ptr %66, align 8, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %6, i64 496
  %68 = getelementptr inbounds i8, ptr %5, i64 248
  store ptr %67, ptr %68, align 8, !tbaa !5
  %69 = load i32, ptr @totalAminoAcids, align 4, !tbaa !9
  %.not32 = icmp slt i32 %69, 1
  br i1 %.not32, label %.preheader.preheader, label %.lr.ph

.preheader.preheader:                             ; preds = %.lr.ph, %.preheader30
  br label %.preheader

.lr.ph:                                           ; preds = %.preheader30, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %.preheader30 ]
  %70 = call ptr @fgets(ptr noundef nonnull %1, i32 noundef 128, ptr noundef %4)
  %71 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %1, ptr noundef nonnull @.str.15, ptr noundef nonnull %0, ptr noundef nonnull %0, ptr noundef nonnull %0, ptr noundef nonnull %2) #6
  %72 = load double, ptr %2, align 8, !tbaa !11
  %73 = load ptr, ptr @aminoacid, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.AAStr, ptr %73, i64 %indvars.iv
  %75 = call i32 @AAModel(ptr noundef nonnull %74) #6
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds ptr, ptr %5, i64 %76
  %78 = load ptr, ptr %77, align 8, !tbaa !5
  %79 = load double, ptr %78, align 8, !tbaa !11
  %80 = fadd double %72, %79
  store double %80, ptr %78, align 8, !tbaa !11
  %81 = load ptr, ptr @aminoacid, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.AAStr, ptr %81, i64 %indvars.iv
  %83 = call i32 @AAModel(ptr noundef nonnull %82) #6
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds ptr, ptr %5, i64 %84
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %86, i64 8
  %88 = load double, ptr %87, align 8, !tbaa !11
  %89 = fadd double %88, 1.000000e+00
  store double %89, ptr %87, align 8, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %90 = load i32, ptr @totalAminoAcids, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %.not.not = icmp slt i64 %indvars.iv, %91
  br i1 %.not.not, label %.lr.ph, label %.preheader.preheader, !llvm.loop !13

92:                                               ; preds = %108
  %93 = call i32 @fclose(ptr noundef %4)
  call void @free(ptr noundef %6) #6
  call void @free(ptr noundef nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %1) #6
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %0) #6
  ret void

.preheader:                                       ; preds = %.preheader.preheader, %108
  %indvars.iv37 = phi i64 [ %indvars.iv.next38, %108 ], [ 0, %.preheader.preheader ]
  %94 = getelementptr inbounds ptr, ptr %5, i64 %indvars.iv37
  %95 = load ptr, ptr %94, align 8, !tbaa !5
  %96 = getelementptr inbounds i8, ptr %95, i64 8
  %97 = load double, ptr %96, align 8, !tbaa !11
  %98 = fcmp une double %97, 0.000000e+00
  br i1 %98, label %99, label %103

99:                                               ; preds = %.preheader
  %100 = load double, ptr %95, align 8, !tbaa !11
  %101 = fdiv double %100, %97
  %102 = getelementptr inbounds [32 x %struct.CGBeadStr], ptr getelementptr inbounds (i8, ptr @CGMatrix, i64 40), i64 0, i64 %indvars.iv37, i32 2
  store double %101, ptr %102, align 8, !tbaa !15
  br label %108

103:                                              ; preds = %.preheader
  %104 = getelementptr inbounds [32 x %struct.CGBeadStr], ptr getelementptr inbounds (i8, ptr @CGMatrix, i64 40), i64 0, i64 %indvars.iv37, i32 2
  %105 = load double, ptr %104, align 8, !tbaa !15
  %106 = fcmp olt double %105, 0.000000e+00
  br i1 %106, label %107, label %108

107:                                              ; preds = %103
  store double -1.000000e+08, ptr %104, align 8, !tbaa !15
  br label %108

108:                                              ; preds = %99, %107, %103
  %indvars.iv.next38 = add nuw nsw i64 %indvars.iv37, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next38, 32
  br i1 %exitcond.not, label %92, label %.preheader, !llvm.loop !17
}

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !12, i64 16}
!16 = !{!"CGBeadStr", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!17 = distinct !{!17, !14}


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