; LLVM IR from Discngine/fpocket :: src (tparams)

; 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.s_tparams = type { ptr, ptr, ptr, ptr, ptr, [128 x i8], [128 x i8], float, i32, i32, ptr }

@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@stdout = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [46 x i8], align 1
@stderr = external global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @init_def_tparams() #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 ptr @strcpy(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

; Function Attrs: nounwind uwtable
define dso_local ptr @get_tpocket_args(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store ptr null, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store ptr null, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store ptr null, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store ptr null, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %14 = call ptr @init_def_tparams()
  store ptr %14, ptr %12, align 8, !tbaa !9
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %15

15:                                               ; preds = %166, %2
  %16 = load i32, ptr %5, align 4, !tbaa !5
  %17 = load i32, ptr %3, align 4, !tbaa !5
  %18 = icmp slt i32 %16, %17
  br i1 %18, label %19, label %169

19:                                               ; preds = %15
  %20 = load ptr, ptr %4, align 8, !tbaa !9
  %21 = load i32, ptr %5, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds ptr, ptr %20, i64 %22
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = call i64 @strlen(ptr noundef %24) #6
  %26 = icmp eq i64 %25, 2
  br i1 %26, label %27, label %165

27:                                               ; preds = %19
  %28 = load ptr, ptr %4, align 8, !tbaa !9
  %29 = load i32, ptr %5, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds ptr, ptr %28, i64 %30
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  %33 = getelementptr inbounds i8, ptr %32, i64 0
  %34 = load i8, ptr %33, align 1, !tbaa !11
  %35 = sext i8 %34 to i32
  %36 = icmp eq i32 %35, 45
  br i1 %36, label %37, label %165

37:                                               ; preds = %27
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = sub nsw i32 %39, 1
  %41 = icmp slt i32 %38, %40
  br i1 %41, label %52, label %42

42:                                               ; preds = %37
  %43 = load ptr, ptr %4, align 8, !tbaa !9
  %44 = load i32, ptr %5, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds ptr, ptr %43, i64 %45
  %47 = load ptr, ptr %46, align 8, !tbaa !9
  %48 = getelementptr inbounds i8, ptr %47, i64 1
  %49 = load i8, ptr %48, align 1, !tbaa !11
  %50 = sext i8 %49 to i32
  %51 = icmp eq i32 %50, 107
  br i1 %51, label %52, label %165

52:                                               ; preds = %42, %37
  %53 = load ptr, ptr %4, align 8, !tbaa !9
  %54 = load i32, ptr %5, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds ptr, ptr %53, i64 %55
  %57 = load ptr, ptr %56, align 8, !tbaa !9
  %58 = getelementptr inbounds i8, ptr %57, i64 1
  %59 = load i8, ptr %58, align 1, !tbaa !11
  %60 = sext i8 %59 to i32
  switch i32 %60, label %164 [
    i32 100, label %61
    i32 107, label %72
    i32 111, label %75
    i32 103, label %116
    i32 76, label %157
  ]

61:                                               ; preds = %52
  %62 = load ptr, ptr %4, align 8, !tbaa !9
  %63 = load i32, ptr %5, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %5, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds ptr, ptr %62, i64 %65
  %67 = load ptr, ptr %66, align 8, !tbaa !9
  %68 = load ptr, ptr %12, align 8, !tbaa !9
  %69 = call i32 @parse_lig_neigh_dist(ptr noundef %67, ptr noundef %68)
  %70 = load i32, ptr %6, align 4, !tbaa !5
  %71 = add nsw i32 %70, %69
  store i32 %71, ptr %6, align 4, !tbaa !5
  br label %164

72:                                               ; preds = %52
  %73 = load ptr, ptr %12, align 8, !tbaa !9
  %74 = getelementptr inbounds %struct.s_tparams, ptr %73, i32 0, i32 9
  store i32 1, ptr %74, align 8, !tbaa !12
  br label %164

75:                                               ; preds = %52
  %76 = load i32, ptr %7, align 4, !tbaa !5
  %77 = icmp sge i32 %76, 1
  br i1 %77, label %78, label %81

78:                                               ; preds = %75
  %79 = load ptr, ptr @stdout, align 8, !tbaa !9
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef @.str.2) #5
  br label %115

81:                                               ; preds = %75
  %82 = load i32, ptr %5, align 4, !tbaa !5
  %83 = load i32, ptr %3, align 4, !tbaa !5
  %84 = sub nsw i32 %83, 1
  %85 = icmp slt i32 %82, %84
  br i1 %85, label %86, label %109

86:                                               ; preds = %81
  %87 = load ptr, ptr %4, align 8, !tbaa !9
  %88 = load i32, ptr %5, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %5, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds ptr, ptr %87, i64 %90
  %92 = load ptr, ptr %91, align 8, !tbaa !9
  %93 = call i64 @strlen(ptr noundef %92) #6
  %94 = icmp ult i64 %93, 300
  br i1 %94, label %95, label %105

95:                                               ; preds = %86
  %96 = load ptr, ptr %12, align 8, !tbaa !9
  %97 = getelementptr inbounds %struct.s_tparams, ptr %96, i32 0, i32 3
  %98 = load ptr, ptr %97, align 8, !tbaa !15
  %99 = load ptr, ptr %4, align 8, !tbaa !9
  %100 = load i32, ptr %5, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds ptr, ptr %99, i64 %101
  %103 = load ptr, ptr %102, align 8, !tbaa !9
  %104 = call ptr @strcpy(ptr noundef %98, ptr noundef %103) #5
  br label %108

105:                                              ; preds = %86
  %106 = load ptr, ptr @stdout, align 8, !tbaa !9
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %106, ptr noundef @.str.3, ptr noundef @.str) #5
  br label %108

108:                                              ; preds = %105, %95
  br label %114

109:                                              ; preds = %81
  %110 = load ptr, ptr @stdout, align 8, !tbaa !9
  %111 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %110, ptr noundef @.str.4) #5
  %112 = load i32, ptr %6, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %6, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %109, %108
  br label %115

115:                                              ; preds = %114, %78
  br label %164

116:                                              ; preds = %52
  %117 = load i32, ptr %7, align 4, !tbaa !5
  %118 = icmp sge i32 %117, 1
  br i1 %118, label %119, label %122

119:                                              ; preds = %116
  %120 = load ptr, ptr @stdout, align 8, !tbaa !9
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef @.str.2) #5
  br label %156

122:                                              ; preds = %116
  %123 = load i32, ptr %5, align 4, !tbaa !5
  %124 = load i32, ptr %3, align 4, !tbaa !5
  %125 = sub nsw i32 %124, 1
  %126 = icmp slt i32 %123, %125
  br i1 %126, label %127, label %150

127:                                              ; preds = %122
  %128 = load ptr, ptr %4, align 8, !tbaa !9
  %129 = load i32, ptr %5, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %5, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds ptr, ptr %128, i64 %131
  %133 = load ptr, ptr %132, align 8, !tbaa !9
  %134 = call i64 @strlen(ptr noundef %133) #6
  %135 = icmp ult i64 %134, 300
  br i1 %135, label %136, label %146

136:                                              ; preds = %127
  %137 = load ptr, ptr %12, align 8, !tbaa !9
  %138 = getelementptr inbounds %struct.s_tparams, ptr %137, i32 0, i32 4
  %139 = load ptr, ptr %138, align 8, !tbaa !16
  %140 = load ptr, ptr %4, align 8, !tbaa !9
  %141 = load i32, ptr %5, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds ptr, ptr %140, i64 %142
  %144 = load ptr, ptr %143, align 8, !tbaa !9
  %145 = call ptr @strcpy(ptr noundef %139, ptr noundef %144) #5
  br label %149

146:                                              ; preds = %127
  %147 = load ptr, ptr @stdout, align 8, !tbaa !9
  %148 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %147, ptr noundef @.str.3, ptr noundef @.str.1) #5
  br label %149

149:                                              ; preds = %146, %136
  br label %155

150:                                              ; preds = %122
  %151 = load ptr, ptr @stdout, align 8, !tbaa !9
  %152 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %151, ptr noundef @.str.4) #5
  %153 = load i32, ptr %6, align 4, !tbaa !5
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %6, align 4, !tbaa !5
  br label %155

155:                                              ; preds = %150, %149
  br label %156

156:                                              ; preds = %155, %119
  br label %164

157:                                              ; preds = %52
  %158 = load ptr, ptr %4, align 8, !tbaa !9
  %159 = load i32, ptr %5, align 4, !tbaa !5
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %5, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds ptr, ptr %158, i64 %161
  %163 = load ptr, ptr %162, align 8, !tbaa !9
  store ptr %163, ptr %11, align 8, !tbaa !9
  br label %164

164:                                              ; preds = %157, %156, %115, %72, %61, %52
  br label %165

165:                                              ; preds = %164, %42, %27, %19
  br label %166

166:                                              ; preds = %165
  %167 = load i32, ptr %5, align 4, !tbaa !5
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %5, align 4, !tbaa !5
  br label %15, !llvm.loop !17

169:                                              ; preds = %15
  %170 = load i32, ptr %3, align 4, !tbaa !5
  %171 = load ptr, ptr %4, align 8, !tbaa !9
  %172 = call ptr @get_fpocket_args(i32 noundef %170, ptr noundef %171)
  %173 = load ptr, ptr %12, align 8, !tbaa !9
  %174 = getelementptr inbounds %struct.s_tparams, ptr %173, i32 0, i32 10
  store ptr %172, ptr %174, align 8, !tbaa !19
  %175 = load i32, ptr %6, align 4, !tbaa !5
  %176 = icmp sgt i32 %175, 0
  br i1 %176, label %177, label %180

177:                                              ; preds = %169
  %178 = load ptr, ptr %12, align 8, !tbaa !9
  call void @free_tparams(ptr noundef %178)
  store ptr null, ptr %12, align 8, !tbaa !9
  %179 = load ptr, ptr @stdout, align 8, !tbaa !9
  call void @print_test_usage(ptr noundef %179)
  br label %242

180:                                              ; preds = %169
  %181 = load ptr, ptr %11, align 8, !tbaa !9
  %182 = icmp ne ptr %181, null
  br i1 %182, label %183, label %204

183:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %184 = load ptr, ptr %11, align 8, !tbaa !9
  %185 = load ptr, ptr %12, align 8, !tbaa !9
  %186 = call i32 @add_list_data(ptr noundef %184, ptr noundef %185)
  store i32 %186, ptr %13, align 4, !tbaa !5
  %187 = load i32, ptr %13, align 4, !tbaa !5
  %188 = icmp sle i32 %187, 0
  br i1 %188, label %189, label %194

189:                                              ; preds = %183
  %190 = load ptr, ptr @stderr, align 8, !tbaa !9
  %191 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %190, ptr noundef @.str.5) #5
  %192 = load ptr, ptr %12, align 8, !tbaa !9
  call void @free_tparams(ptr noundef %192)
  store ptr null, ptr %12, align 8, !tbaa !9
  %193 = load ptr, ptr @stdout, align 8, !tbaa !9
  call void @print_test_usage(ptr noundef %193)
  br label %203

194:                                              ; preds = %183
  %195 = load ptr, ptr %12, align 8, !tbaa !9
  %196 = getelementptr inbounds %struct.s_tparams, ptr %195, i32 0, i32 5
  %197 = getelementptr inbounds [128 x i8], ptr %196, i64 0, i64 0
  %198 = call ptr @strcpy(ptr noundef %197, ptr noundef @.str.1) #5
  %199 = load ptr, ptr %12, align 8, !tbaa !9
  %200 = getelementptr inbounds %struct.s_tparams, ptr %199, i32 0, i32 6
  %201 = getelementptr inbounds [128 x i8], ptr %200, i64 0, i64 0
  %202 = call ptr @strcpy(ptr noundef %201, ptr noundef @.str) #5
  br label %203

203:                                              ; preds = %194, %189
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %241

204:                                              ; preds = %180
  %205 = load ptr, ptr %8, align 8, !tbaa !9
  %206 = icmp ne ptr %205, null
  br i1 %206, label %207, label %235

207:                                              ; preds = %204
  %208 = load ptr, ptr %10, align 8, !tbaa !9
  %209 = icmp ne ptr %208, null
  br i1 %209, label %210, label %235

210:                                              ; preds = %207
  %211 = load ptr, ptr %9, align 8, !tbaa !9
  %212 = icmp ne ptr %211, null
  br i1 %212, label %213, label %235

213:                                              ; preds = %210
  %214 = load ptr, ptr %10, align 8, !tbaa !9
  %215 = load ptr, ptr %9, align 8, !tbaa !9
  %216 = load ptr, ptr %8, align 8, !tbaa !9
  %217 = load ptr, ptr %12, align 8, !tbaa !9
  %218 = call i32 @add_prot(ptr noundef %214, ptr noundef %215, ptr noundef %216, ptr noundef %217)
  %219 = icmp eq i32 %218, 0
  br i1 %219, label %220, label %225

220:                                              ; preds = %213
  %221 = load ptr, ptr @stderr, align 8, !tbaa !9
  %222 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %221, ptr noundef @.str.5) #5
  %223 = load ptr, ptr %12, align 8, !tbaa !9
  call void @free_tparams(ptr noundef %223)
  store ptr null, ptr %12, align 8, !tbaa !9
  %224 = load ptr, ptr @stdout, align 8, !tbaa !9
  call void @print_test_usage(ptr noundef %224)
  br label %234

225:                                              ; preds = %213
  %226 = load ptr, ptr %12, align 8, !tbaa !9
  %227 = getelementptr inbounds %struct.s_tparams, ptr %226, i32 0, i32 5
  %228 = getelementptr inbounds [128 x i8], ptr %227, i64 0, i64 0
  %229 = call ptr @strcpy(ptr noundef %228, ptr noundef @.str.1) #5
  %230 = load ptr, ptr %12, align 8, !tbaa !9
  %231 = getelementptr inbounds %struct.s_tparams, ptr %230, i32 0, i32 6
  %232 = getelementptr inbounds [128 x i8], ptr %231, i64 0, i64 0
  %233 = call ptr @strcpy(ptr noundef %232, ptr noundef @.str) #5
  br label %234

234:                                              ; preds = %225, %220
  br label %240

235:                                              ; preds = %210, %207, %204
  %236 = load ptr, ptr @stdout, align 8, !tbaa !9
  %237 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %236, ptr noundef @.str.6) #5
  %238 = load ptr, ptr %12, align 8, !tbaa !9
  call void @free_tparams(ptr noundef %238)
  store ptr null, ptr %12, align 8, !tbaa !9
  %239 = load ptr, ptr @stdout, align 8, !tbaa !9
  call void @print_test_usage(ptr noundef %239)
  br label %240

240:                                              ; preds = %235, %234
  br label %241

241:                                              ; preds = %240, %203
  br label %242

242:                                              ; preds = %241, %177
  %243 = load ptr, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  ret ptr %243
}

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #3

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @add_prot(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #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 = { 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 = { 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 #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 }
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 = !{!"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 = !{!7, !7, i64 0}
!12 = !{!13, !6, i64 304}
!13 = !{!"s_tparams", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !7, i64 40, !7, i64 168, !14, i64 296, !6, i64 300, !6, i64 304, !10, i64 312}
!14 = !{!"float", !7, i64 0}
!15 = !{!13, !10, i64 24}
!16 = !{!13, !10, i64 32}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!13, !10, i64 312}


; 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"

@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [56 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @init_def_tparams() local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local ptr @get_tpocket_args(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = tail call ptr @init_def_tparams()
  %4 = icmp sgt i32 %0, 1
  br i1 %4, label %.lr.ph, label %.thread80

.thread80:                                        ; preds = %2
  %5 = tail call ptr @get_fpocket_args(i32 noundef %0, ptr noundef %1) #5
  %6 = getelementptr inbounds i8, ptr %3, i64 312
  store ptr %5, ptr %6, align 8, !tbaa !5
  br label %84

.lr.ph:                                           ; preds = %2
  %7 = add nsw i32 %0, -1
  %8 = getelementptr inbounds i8, ptr %3, i64 32
  %9 = getelementptr inbounds i8, ptr %3, i64 24
  %10 = getelementptr inbounds i8, ptr %3, i64 304
  br label %11

11:                                               ; preds = %.lr.ph, %63
  %.074 = phi i32 [ 1, %.lr.ph ], [ %64, %63 ]
  %.06673 = phi ptr [ null, %.lr.ph ], [ %.167, %63 ]
  %.06872 = phi i32 [ 0, %.lr.ph ], [ %.169, %63 ]
  %12 = sext i32 %.074 to i64
  %13 = getelementptr inbounds ptr, ptr %1, i64 %12
  %14 = load ptr, ptr %13, align 8, !tbaa !12
  %15 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %14) #6
  %16 = icmp eq i64 %15, 2
  br i1 %16, label %17, label %63

17:                                               ; preds = %11
  %18 = load i8, ptr %14, align 1, !tbaa !13
  %19 = icmp eq i8 %18, 45
  br i1 %19, label %20, label %63

20:                                               ; preds = %17
  %21 = icmp slt i32 %.074, %7
  %.phi.trans.insert = getelementptr inbounds i8, ptr %14, i64 1
  %.pre = load i8, ptr %.phi.trans.insert, align 1, !tbaa !13
  br i1 %21, label %24, label %22

22:                                               ; preds = %20
  %23 = icmp eq i8 %.pre, 107
  br i1 %23, label %.thread, label %63

24:                                               ; preds = %20
  switch i8 %.pre, label %63 [
    i8 100, label %25
    i8 107, label %.thread
    i8 111, label %32
    i8 103, label %45
    i8 76, label %58
  ]

25:                                               ; preds = %24
  %26 = add nsw i32 %.074, 1
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds ptr, ptr %1, i64 %27
  %29 = load ptr, ptr %28, align 8, !tbaa !12
  %30 = tail call i32 @parse_lig_neigh_dist(ptr noundef %29, ptr noundef %3)
  %31 = add nsw i32 %30, %.06872
  br label %63

.thread:                                          ; preds = %22, %24
  store i32 1, ptr %10, align 8, !tbaa !14
  br label %63

32:                                               ; preds = %24
  %33 = add nsw i32 %.074, 1
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds ptr, ptr %1, i64 %34
  %36 = load ptr, ptr %35, align 8, !tbaa !12
  %37 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %36) #6
  %38 = icmp ult i64 %37, 300
  br i1 %38, label %39, label %42

39:                                               ; preds = %32
  %40 = load ptr, ptr %9, align 8, !tbaa !15
  %41 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %40, ptr noundef nonnull dereferenceable(1) %36) #5
  br label %63

42:                                               ; preds = %32
  %43 = load ptr, ptr @stdout, align 8, !tbaa !12
  %44 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str) #5
  br label %63

45:                                               ; preds = %24
  %46 = add nsw i32 %.074, 1
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds ptr, ptr %1, i64 %47
  %49 = load ptr, ptr %48, align 8, !tbaa !12
  %50 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %49) #6
  %51 = icmp ult i64 %50, 300
  br i1 %51, label %52, label %55

52:                                               ; preds = %45
  %53 = load ptr, ptr %8, align 8, !tbaa !16
  %54 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %53, ptr noundef nonnull dereferenceable(1) %49) #5
  br label %63

55:                                               ; preds = %45
  %56 = load ptr, ptr @stdout, align 8, !tbaa !12
  %57 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1) #5
  br label %63

58:                                               ; preds = %24
  %59 = add nsw i32 %.074, 1
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds ptr, ptr %1, i64 %60
  %62 = load ptr, ptr %61, align 8, !tbaa !12
  br label %63

63:                                               ; preds = %11, %17, %22, %52, %55, %39, %42, %58, %.thread, %25, %24
  %.169 = phi i32 [ %.06872, %24 ], [ %.06872, %58 ], [ %.06872, %52 ], [ %.06872, %55 ], [ %.06872, %39 ], [ %.06872, %42 ], [ %.06872, %.thread ], [ %31, %25 ], [ %.06872, %22 ], [ %.06872, %17 ], [ %.06872, %11 ]
  %.167 = phi ptr [ %.06673, %24 ], [ %62, %58 ], [ %.06673, %52 ], [ %.06673, %55 ], [ %.06673, %39 ], [ %.06673, %42 ], [ %.06673, %.thread ], [ %.06673, %25 ], [ %.06673, %22 ], [ %.06673, %17 ], [ %.06673, %11 ]
  %.1 = phi i32 [ %.074, %24 ], [ %59, %58 ], [ %46, %52 ], [ %46, %55 ], [ %33, %39 ], [ %33, %42 ], [ %.074, %.thread ], [ %26, %25 ], [ %.074, %22 ], [ %.074, %17 ], [ %.074, %11 ]
  %64 = add nsw i32 %.1, 1
  %65 = icmp slt i32 %64, %0
  br i1 %65, label %11, label %._crit_edge, !llvm.loop !17

._crit_edge:                                      ; preds = %63
  %66 = icmp sgt i32 %.169, 0
  %67 = tail call ptr @get_fpocket_args(i32 noundef %0, ptr noundef nonnull %1) #5
  %68 = getelementptr inbounds i8, ptr %3, i64 312
  store ptr %67, ptr %68, align 8, !tbaa !5
  br i1 %66, label %69, label %71

69:                                               ; preds = %._crit_edge
  tail call void @free_tparams(ptr noundef nonnull %3)
  %70 = load ptr, ptr @stdout, align 8, !tbaa !12
  tail call void @print_test_usage(ptr noundef %70)
  br label %88

71:                                               ; preds = %._crit_edge
  %.not = icmp eq ptr %.167, null
  br i1 %.not, label %84, label %72

72:                                               ; preds = %71
  %73 = tail call i32 @add_list_data(ptr noundef nonnull %.167, ptr noundef nonnull %3)
  %74 = icmp slt i32 %73, 1
  br i1 %74, label %75, label %79

75:                                               ; preds = %72
  %76 = load ptr, ptr @stderr, align 8, !tbaa !12
  %77 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef nonnull @.str.5) #7
  tail call void @free_tparams(ptr noundef nonnull %3)
  %78 = load ptr, ptr @stdout, align 8, !tbaa !12
  tail call void @print_test_usage(ptr noundef %78)
  br label %88

79:                                               ; preds = %72
  %80 = getelementptr inbounds i8, ptr %3, i64 40
  %81 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %80, ptr noundef nonnull dereferenceable(1) @.str.1) #5
  %82 = getelementptr inbounds i8, ptr %3, i64 168
  %83 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %82, ptr noundef nonnull dereferenceable(1) @.str) #5
  br label %88

84:                                               ; preds = %.thread80, %71
  %85 = load ptr, ptr @stdout, align 8, !tbaa !12
  %86 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef nonnull @.str.6) #5
  tail call void @free_tparams(ptr noundef nonnull %3)
  %87 = load ptr, ptr @stdout, align 8, !tbaa !12
  tail call void @print_test_usage(ptr noundef %87)
  br label %88

88:                                               ; preds = %75, %79, %84, %69
  %.165 = phi ptr [ null, %69 ], [ null, %84 ], [ null, %75 ], [ %3, %79 ]
  ret ptr %.165
}

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

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

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

declare ptr @get_fpocket_args(i32 noundef, ptr noundef) local_unnamed_addr #4

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @add_list_data(ptr noundef, ptr noundef) 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: readwrite) "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 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 = { 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 = { "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) }
attributes #7 = { cold 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, !7, i64 312}
!6 = !{!"s_tparams", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !8, i64 40, !8, i64 168, !10, i64 296, !11, i64 300, !11, i64 304, !7, i64 312}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!6, !11, i64 304}
!15 = !{!6, !7, i64 24}
!16 = !{!6, !7, i64 32}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


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