; 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.CGGovStr = type { [2 x [16 x i8]], i32, i32, ptr, ptr }
%struct.AAStr = type { [5 x i8], i32, i32, i32, i32, double }
%struct.AtomStr = type { ptr, ptr }
%struct.PropertyStr = type { [8 x i8], [2 x [16 x i8]], [8 x i8], i32, i32, i32, double, double, [3 x double], %struct.AtomSeqStr, ptr, ptr }
%struct.AtomSeqStr = type { i32, i32, i32 }
%struct.CGStr = type { i32, i32, i32 }

@CG = external global %struct.CGGovStr, align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@totalAminoAcids = external global i32, align 4
@aminoacid = external global ptr, align 8
@atom = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [59 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @InitializeCG() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = call i32 @strcmp(ptr noundef getelementptr inbounds ([2 x [16 x i8]], ptr @CG, i64 0, i64 1), ptr noundef @.str) #7
  %7 = icmp eq i32 %6, 0
  br i1 %7, label %8, label %99

8:                                                ; preds = %0
  %9 = load i32, ptr @totalAminoAcids, align 4, !tbaa !5
  store i32 %9, ptr getelementptr inbounds (%struct.CGGovStr, ptr @CG, i32 0, i32 2), align 4, !tbaa !9
  %10 = load i32, ptr @totalAminoAcids, align 4, !tbaa !5
  %11 = add nsw i32 %10, 1
  %12 = sext i32 %11 to i64
  %13 = call noalias ptr @calloc(i64 noundef %12, i64 noundef 4) #8
  store ptr %13, ptr getelementptr inbounds (%struct.CGGovStr, ptr @CG, i32 0, i32 3), align 8, !tbaa !12
  %14 = load i32, ptr @totalAminoAcids, align 4, !tbaa !5
  %15 = add nsw i32 %14, 1
  %16 = sext i32 %15 to i64
  %17 = call noalias ptr @calloc(i64 noundef %16, i64 noundef 12) #8
  store ptr %17, ptr getelementptr inbounds (%struct.CGGovStr, ptr @CG, i32 0, i32 4), align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #9
  store i32 1, ptr %1, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %95, %8
  %19 = load i32, ptr %1, align 4, !tbaa !5
  %20 = load i32, ptr @totalAminoAcids, align 4, !tbaa !5
  %21 = icmp sle i32 %19, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %18
  store i32 2, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #9
  br label %98

23:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #9
  %24 = load ptr, ptr @aminoacid, align 8, !tbaa !14
  %25 = load i32, ptr %1, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds %struct.AAStr, ptr %24, i64 %26
  %28 = getelementptr inbounds %struct.AAStr, ptr %27, i32 0, i32 2
  %29 = load i32, ptr %28, align 4, !tbaa !15
  store i32 %29, ptr %3, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %90, %23
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = load ptr, ptr @aminoacid, align 8, !tbaa !14
  %33 = load i32, ptr %1, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds %struct.AAStr, ptr %32, i64 %34
  %36 = getelementptr inbounds %struct.AAStr, ptr %35, i32 0, i32 3
  %37 = load i32, ptr %36, align 8, !tbaa !18
  %38 = icmp sle i32 %31, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %30
  store i32 5, ptr %2, align 4
  br label %93

40:                                               ; preds = %30
  %41 = load ptr, ptr @atom, align 8, !tbaa !14
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds %struct.AtomStr, ptr %41, i64 %43
  %45 = getelementptr inbounds %struct.AtomStr, ptr %44, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8, !tbaa !19
  %47 = getelementptr inbounds %struct.PropertyStr, ptr %46, i32 0, i32 0
  %48 = getelementptr inbounds [8 x i8], ptr %47, i64 0, i64 0
  %49 = call i32 @strcmp(ptr noundef %48, ptr noundef @.str.1) #7
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %51, label %89

51:                                               ; preds = %40
  %52 = load i32, ptr %3, align 4, !tbaa !5
  %53 = load ptr, ptr getelementptr inbounds (%struct.CGGovStr, ptr @CG, i32 0, i32 3), align 8, !tbaa !12
  %54 = load i32, ptr %1, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds i32, ptr %53, i64 %55
  store i32 %52, ptr %56, align 4, !tbaa !5
  %57 = load ptr, ptr @aminoacid, align 8, !tbaa !14
  %58 = load i32, ptr %1, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds %struct.AAStr, ptr %57, i64 %59
  %61 = getelementptr inbounds %struct.AAStr, ptr %60, i32 0, i32 2
  %62 = load i32, ptr %61, align 4, !tbaa !15
  %63 = load ptr, ptr getelementptr inbounds (%struct.CGGovStr, ptr @CG, i32 0, i32 4), align 8, !tbaa !13
  %64 = load i32, ptr %1, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds %struct.CGStr, ptr %63, i64 %65
  %67 = getelementptr inbounds %struct.CGStr, ptr %66, i32 0, i32 0
  store i32 %62, ptr %67, align 4, !tbaa !21
  %68 = load ptr, ptr @aminoacid, align 8, !tbaa !14
  %69 = load i32, ptr %1, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds %struct.AAStr, ptr %68, i64 %70
  %72 = getelementptr inbounds %struct.AAStr, ptr %71, i32 0, i32 3
  %73 = load i32, ptr %72, align 8, !tbaa !18
  %74 = load ptr, ptr getelementptr inbounds (%struct.CGGovStr, ptr @CG, i32 0, i32 4), align 8, !tbaa !13
  %75 = load i32, ptr %1, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds %struct.CGStr, ptr %74, i64 %76
  %78 = getelementptr inbounds %struct.CGStr, ptr %77, i32 0, i32 1
  store i32 %73, ptr %78, align 4, !tbaa !23
  %79 = load ptr, ptr @atom, align 8, !tbaa !14
  %80 = load i32, ptr %3, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds %struct.AtomStr, ptr %79, i64 %81
  %83 = getelementptr inbounds %struct.AtomStr, ptr %82, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !19
  %85 = getelementptr inbounds %struct.PropertyStr, ptr %84, i32 0, i32 1
  %86 = getelementptr inbounds [2 x [16 x i8]], ptr %85, i64 0, i64 0
  %87 = getelementptr inbounds [16 x i8], ptr %86, i64 0, i64 0
  %88 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %87, ptr noundef @.str.2) #9
  store i32 5, ptr %2, align 4
  br label %93

89:                                               ; preds = %40
  br label %90

90:                                               ; preds = %89
  %91 = load i32, ptr %3, align 4, !tbaa !5
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %3, align 4, !tbaa !5
  br label %30, !llvm.loop !24

93:                                               ; preds = %51, %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  %96 = load i32, ptr %1, align 4, !tbaa !5
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %1, align 4, !tbaa !5
  br label %18, !llvm.loop !26

98:                                               ; preds = %22
  br label %195

99:                                               ; preds = %0
  %100 = call i32 @strcmp(ptr noundef getelementptr inbounds ([2 x [16 x i8]], ptr @CG, i64 0, i64 1), ptr noundef @.str.3) #7
  %101 = icmp eq i32 %100, 0
  br i1 %101, label %102, label %192

102:                                              ; preds = %99
  %103 = load i32, ptr @totalAminoAcids, align 4, !tbaa !5
  store i32 %103, ptr getelementptr inbounds (%struct.CGGovStr, ptr @CG, i32 0, i32 2), align 4, !tbaa !9
  %104 = load i32, ptr @totalAminoAcids, align 4, !tbaa !5
  %105 = add nsw i32 %104, 1
  %106 = sext i32 %105 to i64
  %107 = call noalias ptr @calloc(i64 noundef %106, i64 noundef 4) #8
  store ptr %107, ptr getelementptr inbounds (%struct.CGGovStr, ptr @CG, i32 0, i32 3), align 8, !tbaa !12
  %108 = load i32, ptr @totalAminoAcids, align 4, !tbaa !5
  %109 = add nsw i32 %108, 1
  %110 = sext i32 %109 to i64
  %111 = call noalias ptr @calloc(i64 noundef %110, i64 noundef 12) #8
  store ptr %111, ptr getelementptr inbounds (%struct.CGGovStr, ptr @CG, i32 0, i32 4), align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #9
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %112

112:                                              ; preds = %188, %102
  %113 = load i32, ptr %4, align 4, !tbaa !5
  %114 = load i32, ptr @totalAminoAcids, align 4, !tbaa !5
  %115 = icmp sle i32 %113, %114
  br i1 %115, label %117, label %116

116:                                              ; preds = %112
  store i32 8, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #9
  br label %191

117:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  %118 = load ptr, ptr @aminoacid, align 8, !tbaa !14
  %119 = load i32, ptr %4, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds %struct.AAStr, ptr %118, i64 %120
  %122 = getelementptr inbounds %struct.AAStr, ptr %121, i32 0, i32 2
  %123 = load i32, ptr %122, align 4, !tbaa !15
  store i32 %123, ptr %5, align 4, !tbaa !5
  br label %124

124:                                              ; preds = %184, %117
  %125 = load i32, ptr %5, align 4, !tbaa !5
  %126 = load ptr, ptr @aminoacid, align 8, !tbaa !14
  %127 = load i32, ptr %4, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds %struct.AAStr, ptr %126, i64 %128
  %130 = getelementptr inbounds %struct.AAStr, ptr %129, i32 0, i32 3
  %131 = load i32, ptr %130, align 8, !tbaa !18
  %132 = icmp sle i32 %125, %131
  br i1 %132, label %134, label %133

133:                                              ; preds = %124
  store i32 11, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  br label %187

134:                                              ; preds = %124
  %135 = load ptr, ptr @atom, align 8, !tbaa !14
  %136 = load i32, ptr %5, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds %struct.AtomStr, ptr %135, i64 %137
  %139 = getelementptr inbounds %struct.AtomStr, ptr %138, i32 0, i32 0
  %140 = load ptr, ptr %139, align 8, !tbaa !19
  %141 = getelementptr inbounds %struct.PropertyStr, ptr %140, i32 0, i32 0
  %142 = getelementptr inbounds [8 x i8], ptr %141, i64 0, i64 0
  %143 = call i32 @strcmp(ptr noundef %142, ptr noundef @.str.1) #7
  %144 = icmp eq i32 %143, 0
  br i1 %144, label %145, label %173

145:                                              ; preds = %134
  %146 = load i32, ptr %5, align 4, !tbaa !5
  %147 = load ptr, ptr getelementptr inbounds (%struct.CGGovStr, ptr @CG, i32 0, i32 3), align 8, !tbaa !12
  %148 = load i32, ptr %4, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds i32, ptr %147, i64 %149
  store i32 %146, ptr %150, align 4, !tbaa !5
  %151 = load ptr, ptr @aminoacid, align 8, !tbaa !14
  %152 = load i32, ptr %4, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds %struct.AAStr, ptr %151, i64 %153
  %155 = getelementptr inbounds %struct.AAStr, ptr %154, i32 0, i32 2
  %156 = load i32, ptr %155, align 4, !tbaa !15
  %157 = load ptr, ptr getelementptr inbounds (%struct.CGGovStr, ptr @CG, i32 0, i32 4), align 8, !tbaa !13
  %158 = load i32, ptr %4, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds %struct.CGStr, ptr %157, i64 %159
  %161 = getelementptr inbounds %struct.CGStr, ptr %160, i32 0, i32 0
  store i32 %156, ptr %161, align 4, !tbaa !21
  %162 = load ptr, ptr @aminoacid, align 8, !tbaa !14
  %163 = load i32, ptr %4, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds %struct.AAStr, ptr %162, i64 %164
  %166 = getelementptr inbounds %struct.AAStr, ptr %165, i32 0, i32 3
  %167 = load i32, ptr %166, align 8, !tbaa !18
  %168 = load ptr, ptr getelementptr inbounds (%struct.CGGovStr, ptr @CG, i32 0, i32 4), align 8, !tbaa !13
  %169 = load i32, ptr %4, align 4, !tbaa !5
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds %struct.CGStr, ptr %168, i64 %170
  %172 = getelementptr inbounds %struct.CGStr, ptr %171, i32 0, i32 1
  store i32 %167, ptr %172, align 4, !tbaa !23
  br label %173

173:                                              ; preds = %145, %134
  %174 = load ptr, ptr @atom, align 8, !tbaa !14
  %175 = load i32, ptr %5, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds %struct.AtomStr, ptr %174, i64 %176
  %178 = getelementptr inbounds %struct.AtomStr, ptr %177, i32 0, i32 0
  %179 = load ptr, ptr %178, align 8, !tbaa !19
  %180 = getelementptr inbounds %struct.PropertyStr, ptr %179, i32 0, i32 1
  %181 = getelementptr inbounds [2 x [16 x i8]], ptr %180, i64 0, i64 0
  %182 = getelementptr inbounds [16 x i8], ptr %181, i64 0, i64 0
  %183 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %182, ptr noundef @.str.2) #9
  br label %184

184:                                              ; preds = %173
  %185 = load i32, ptr %5, align 4, !tbaa !5
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %5, align 4, !tbaa !5
  br label %124, !llvm.loop !27

187:                                              ; preds = %133
  br label %188

188:                                              ; preds = %187
  %189 = load i32, ptr %4, align 4, !tbaa !5
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %4, align 4, !tbaa !5
  br label %112, !llvm.loop !28

191:                                              ; preds = %116
  br label %194

192:                                              ; preds = %99
  %193 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 80)
  call void @exit(i32 noundef 1) #10
  unreachable

194:                                              ; preds = %191
  br label %195

195:                                              ; preds = %194, %98
  call void @InitializeCGPotentialMatrix()
  ret void
}

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

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

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

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #4

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

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

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

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

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

!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, !6, i64 36}
!10 = !{!"CGGovStr", !7, i64 0, !6, i64 32, !6, i64 36, !11, i64 40, !11, i64 48}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !11, i64 40}
!13 = !{!10, !11, i64 48}
!14 = !{!11, !11, i64 0}
!15 = !{!16, !6, i64 12}
!16 = !{!"AAStr", !7, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !17, i64 24}
!17 = !{!"double", !7, i64 0}
!18 = !{!16, !6, i64 16}
!19 = !{!20, !11, i64 0}
!20 = !{!"AtomStr", !11, i64 0, !11, i64 8}
!21 = !{!22, !6, i64 0}
!22 = !{!"CGStr", !6, i64 0, !6, i64 4, !6, i64 8}
!23 = !{!22, !6, i64 4}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}
!27 = distinct !{!27, !25}
!28 = distinct !{!28, !25}


; 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.CGGovStr = type { [2 x [16 x i8]], i32, i32, ptr, ptr }
%struct.AAStr = type { [5 x i8], i32, i32, i32, i32, double }
%struct.AtomStr = type { ptr, ptr }
%struct.CGStr = type { i32, i32, i32 }

@CG = external global %struct.CGGovStr, align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@totalAminoAcids = external local_unnamed_addr global i32, align 4
@aminoacid = external local_unnamed_addr global ptr, align 8
@atom = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [59 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @InitializeCG() local_unnamed_addr #0 {
  %1 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @CG, i64 16), ptr noundef nonnull dereferenceable(1) @.str) #5
  %2 = icmp eq i32 %1, 0
  br i1 %2, label %3, label %36

3:                                                ; preds = %0
  %4 = load i32, ptr @totalAminoAcids, align 4, !tbaa !5
  store i32 %4, ptr getelementptr inbounds (i8, ptr @CG, i64 36), align 4, !tbaa !9
  %5 = add nsw i32 %4, 1
  %6 = sext i32 %5 to i64
  %7 = tail call noalias ptr @calloc(i64 noundef %6, i64 noundef 4) #6
  store ptr %7, ptr getelementptr inbounds (i8, ptr @CG, i64 40), align 8, !tbaa !12
  %8 = tail call noalias ptr @calloc(i64 noundef %6, i64 noundef 12) #6
  store ptr %8, ptr getelementptr inbounds (i8, ptr @CG, i64 48), align 8, !tbaa !13
  %.not3249 = icmp slt i32 %4, 1
  br i1 %.not3249, label %.loopexit34, label %.lr.ph52.preheader

.lr.ph52.preheader:                               ; preds = %3
  %.pre68 = load ptr, ptr @aminoacid, align 8, !tbaa !14
  br label %.lr.ph52

.lr.ph52:                                         ; preds = %.lr.ph52.preheader, %.loopexit
  %9 = phi i32 [ %4, %.lr.ph52.preheader ], [ %33, %.loopexit ]
  %10 = phi ptr [ %.pre68, %.lr.ph52.preheader ], [ %34, %.loopexit ]
  %indvars.iv63 = phi i64 [ 1, %.lr.ph52.preheader ], [ %indvars.iv.next64, %.loopexit ]
  %11 = getelementptr inbounds %struct.AAStr, ptr %10, i64 %indvars.iv63, i32 2
  %12 = load i32, ptr %11, align 4, !tbaa !15
  %13 = getelementptr inbounds %struct.AAStr, ptr %10, i64 %indvars.iv63, i32 3
  %14 = load i32, ptr %13, align 8, !tbaa !18
  %.not3345 = icmp sgt i32 %12, %14
  br i1 %.not3345, label %.loopexit, label %.lr.ph48

.lr.ph48:                                         ; preds = %.lr.ph52
  %15 = load ptr, ptr @atom, align 8, !tbaa !14
  %16 = sext i32 %12 to i64
  %17 = add i32 %14, 1
  br label %18

18:                                               ; preds = %.lr.ph48, %32
  %indvars.iv60 = phi i64 [ %16, %.lr.ph48 ], [ %indvars.iv.next61, %32 ]
  %19 = getelementptr inbounds %struct.AtomStr, ptr %15, i64 %indvars.iv60
  %20 = load ptr, ptr %19, align 8, !tbaa !19
  %21 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %20, ptr noundef nonnull dereferenceable(1) @.str.1) #5
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %23, label %32

23:                                               ; preds = %18
  %24 = trunc nsw i64 %indvars.iv60 to i32
  %25 = load ptr, ptr getelementptr inbounds (i8, ptr @CG, i64 40), align 8, !tbaa !12
  %26 = getelementptr inbounds i32, ptr %25, i64 %indvars.iv63
  store i32 %24, ptr %26, align 4, !tbaa !5
  %27 = load ptr, ptr getelementptr inbounds (i8, ptr @CG, i64 48), align 8, !tbaa !13
  %28 = getelementptr inbounds %struct.CGStr, ptr %27, i64 %indvars.iv63
  %29 = load <2 x i32>, ptr %11, align 4, !tbaa !5
  store <2 x i32> %29, ptr %28, align 4, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %20, i64 8
  %31 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %30, ptr noundef nonnull dereferenceable(1) @.str.2) #7
  %.pre67 = load ptr, ptr @aminoacid, align 8, !tbaa !14
  %.pre69 = load i32, ptr @totalAminoAcids, align 4, !tbaa !5
  br label %.loopexit

32:                                               ; preds = %18
  %indvars.iv.next61 = add nsw i64 %indvars.iv60, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next61 to i32
  %exitcond.not = icmp eq i32 %17, %lftr.wideiv
  br i1 %exitcond.not, label %.loopexit, label %18, !llvm.loop !21

.loopexit:                                        ; preds = %32, %.lr.ph52, %23
  %33 = phi i32 [ %9, %.lr.ph52 ], [ %.pre69, %23 ], [ %9, %32 ]
  %34 = phi ptr [ %10, %.lr.ph52 ], [ %.pre67, %23 ], [ %10, %32 ]
  %indvars.iv.next64 = add nuw nsw i64 %indvars.iv63, 1
  %35 = sext i32 %33 to i64
  %.not32.not = icmp slt i64 %indvars.iv63, %35
  br i1 %.not32.not, label %.lr.ph52, label %.loopexit34, !llvm.loop !23

36:                                               ; preds = %0
  %37 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @CG, i64 16), ptr noundef nonnull dereferenceable(1) @.str.3) #5
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %79

39:                                               ; preds = %36
  %40 = load i32, ptr @totalAminoAcids, align 4, !tbaa !5
  store i32 %40, ptr getelementptr inbounds (i8, ptr @CG, i64 36), align 4, !tbaa !9
  %41 = add nsw i32 %40, 1
  %42 = sext i32 %41 to i64
  %43 = tail call noalias ptr @calloc(i64 noundef %42, i64 noundef 4) #6
  store ptr %43, ptr getelementptr inbounds (i8, ptr @CG, i64 40), align 8, !tbaa !12
  %44 = tail call noalias ptr @calloc(i64 noundef %42, i64 noundef 12) #6
  store ptr %44, ptr getelementptr inbounds (i8, ptr @CG, i64 48), align 8, !tbaa !13
  %.not41 = icmp slt i32 %40, 1
  br i1 %.not41, label %.loopexit34, label %.lr.ph44.preheader

.lr.ph44.preheader:                               ; preds = %39
  %.pre = load ptr, ptr @aminoacid, align 8, !tbaa !14
  br label %.lr.ph44

.lr.ph44:                                         ; preds = %.lr.ph44.preheader, %._crit_edge
  %45 = phi i32 [ %40, %.lr.ph44.preheader ], [ %52, %._crit_edge ]
  %46 = phi ptr [ %.pre, %.lr.ph44.preheader ], [ %53, %._crit_edge ]
  %indvars.iv57 = phi i64 [ 1, %.lr.ph44.preheader ], [ %indvars.iv.next58, %._crit_edge ]
  %47 = getelementptr inbounds %struct.AAStr, ptr %46, i64 %indvars.iv57, i32 2
  %48 = load i32, ptr %47, align 4, !tbaa !15
  %49 = getelementptr inbounds %struct.AAStr, ptr %46, i64 %indvars.iv57, i32 3
  %50 = load i32, ptr %49, align 8, !tbaa !18
  %.not3139 = icmp sgt i32 %48, %50
  br i1 %.not3139, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.lr.ph44
  %51 = sext i32 %48 to i64
  br label %.lr.ph

._crit_edge.loopexit:                             ; preds = %72
  %.pre66 = load i32, ptr @totalAminoAcids, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph44
  %52 = phi i32 [ %.pre66, %._crit_edge.loopexit ], [ %45, %.lr.ph44 ]
  %53 = phi ptr [ %75, %._crit_edge.loopexit ], [ %46, %.lr.ph44 ]
  %indvars.iv.next58 = add nuw nsw i64 %indvars.iv57, 1
  %54 = sext i32 %52 to i64
  %.not.not = icmp slt i64 %indvars.iv57, %54
  br i1 %.not.not, label %.lr.ph44, label %.loopexit34, !llvm.loop !24

.lr.ph:                                           ; preds = %.lr.ph.preheader, %72
  %indvars.iv = phi i64 [ %51, %.lr.ph.preheader ], [ %indvars.iv.next, %72 ]
  %55 = phi ptr [ %49, %.lr.ph.preheader ], [ %76, %72 ]
  %56 = phi ptr [ %46, %.lr.ph.preheader ], [ %75, %72 ]
  %57 = load ptr, ptr @atom, align 8, !tbaa !14
  %58 = getelementptr inbounds %struct.AtomStr, ptr %57, i64 %indvars.iv
  %59 = load ptr, ptr %58, align 8, !tbaa !19
  %60 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %59, ptr noundef nonnull dereferenceable(1) @.str.1) #5
  %61 = icmp eq i32 %60, 0
  br i1 %61, label %62, label %72

62:                                               ; preds = %.lr.ph
  %63 = load ptr, ptr getelementptr inbounds (i8, ptr @CG, i64 40), align 8, !tbaa !12
  %64 = getelementptr inbounds i32, ptr %63, i64 %indvars.iv57
  %65 = trunc nsw i64 %indvars.iv to i32
  store i32 %65, ptr %64, align 4, !tbaa !5
  %66 = getelementptr inbounds %struct.AAStr, ptr %56, i64 %indvars.iv57, i32 2
  %67 = load i32, ptr %66, align 4, !tbaa !15
  %68 = load ptr, ptr getelementptr inbounds (i8, ptr @CG, i64 48), align 8, !tbaa !13
  %69 = getelementptr inbounds %struct.CGStr, ptr %68, i64 %indvars.iv57
  store i32 %67, ptr %69, align 4, !tbaa !25
  %70 = load i32, ptr %55, align 8, !tbaa !18
  %71 = getelementptr inbounds %struct.CGStr, ptr %68, i64 %indvars.iv57, i32 1
  store i32 %70, ptr %71, align 4, !tbaa !27
  br label %72

72:                                               ; preds = %62, %.lr.ph
  %73 = getelementptr inbounds i8, ptr %59, i64 8
  %74 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %73, ptr noundef nonnull dereferenceable(1) @.str.2) #7
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %75 = load ptr, ptr @aminoacid, align 8, !tbaa !14
  %76 = getelementptr inbounds %struct.AAStr, ptr %75, i64 %indvars.iv57, i32 3
  %77 = load i32, ptr %76, align 8, !tbaa !18
  %78 = sext i32 %77 to i64
  %.not31.not = icmp slt i64 %indvars.iv, %78
  br i1 %.not31.not, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !28

79:                                               ; preds = %36
  %80 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef nonnull @.str.5, i32 noundef 80)
  tail call void @exit(i32 noundef 1) #8
  unreachable

.loopexit34:                                      ; preds = %._crit_edge, %.loopexit, %39, %3
  tail call void @InitializeCGPotentialMatrix()
  ret void
}

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

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

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

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

!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, !6, i64 36}
!10 = !{!"CGGovStr", !7, i64 0, !6, i64 32, !6, i64 36, !11, i64 40, !11, i64 48}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !11, i64 40}
!13 = !{!10, !11, i64 48}
!14 = !{!11, !11, i64 0}
!15 = !{!16, !6, i64 12}
!16 = !{!"AAStr", !7, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !17, i64 24}
!17 = !{!"double", !7, i64 0}
!18 = !{!16, !6, i64 16}
!19 = !{!20, !11, i64 0}
!20 = !{!"AtomStr", !11, i64 0, !11, i64 8}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}
!25 = !{!26, !6, i64 0}
!26 = !{!"CGStr", !6, i64 0, !6, i64 4, !6, i64 8}
!27 = !{!26, !6, i64 4}
!28 = distinct !{!28, !22}


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