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

; 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_dparams = type { ptr, ptr, ptr, ptr, ptr, float, i32, i32, ptr }

@stdout = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [40 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @get_dpocket_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 i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  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 4, ptr %8) #5
  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
  %11 = call ptr @init_def_dparams()
  store ptr %11, ptr %10, align 8, !tbaa !9
  %12 = load i32, ptr %3, align 4, !tbaa !5
  %13 = load ptr, ptr %4, align 8, !tbaa !9
  %14 = call ptr @get_fpocket_args(i32 noundef %12, ptr noundef %13)
  %15 = load ptr, ptr %10, align 8, !tbaa !9
  %16 = getelementptr inbounds %struct.s_dparams, ptr %15, i32 0, i32 8
  store ptr %14, ptr %16, align 8, !tbaa !11
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %183, %2
  %18 = load i32, ptr %5, align 4, !tbaa !5
  %19 = load i32, ptr %3, align 4, !tbaa !5
  %20 = icmp slt i32 %18, %19
  br i1 %20, label %21, label %186

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

29:                                               ; preds = %21
  %30 = load ptr, ptr %4, align 8, !tbaa !9
  %31 = load i32, ptr %5, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds ptr, ptr %30, i64 %32
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  %35 = getelementptr inbounds i8, ptr %34, i64 0
  %36 = load i8, ptr %35, align 1, !tbaa !14
  %37 = sext i8 %36 to i32
  %38 = icmp eq i32 %37, 45
  br i1 %38, label %39, label %182

39:                                               ; preds = %29
  %40 = load ptr, ptr %4, align 8, !tbaa !9
  %41 = load i32, ptr %5, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds ptr, ptr %40, i64 %42
  %44 = load ptr, ptr %43, align 8, !tbaa !9
  %45 = getelementptr inbounds i8, ptr %44, i64 1
  %46 = load i8, ptr %45, align 1, !tbaa !14
  %47 = sext i8 %46 to i32
  switch i32 %47, label %162 [
    i32 100, label %48
    i32 101, label %70
    i32 69, label %75
    i32 111, label %80
    i32 102, label %144
  ]

48:                                               ; preds = %39
  %49 = load i32, ptr %5, align 4, !tbaa !5
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = sub nsw i32 %50, 1
  %52 = icmp slt i32 %49, %51
  br i1 %52, label %53, label %64

53:                                               ; preds = %48
  %54 = load ptr, ptr %4, align 8, !tbaa !9
  %55 = load i32, ptr %5, align 4, !tbaa !5
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %5, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds ptr, ptr %54, i64 %57
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  %60 = load ptr, ptr %10, align 8, !tbaa !9
  %61 = call i32 @parse_dist_crit(ptr noundef %59, ptr noundef %60)
  %62 = load i32, ptr %6, align 4, !tbaa !5
  %63 = add nsw i32 %62, %61
  store i32 %63, ptr %6, align 4, !tbaa !5
  br label %69

64:                                               ; preds = %48
  %65 = load ptr, ptr @stdout, align 8, !tbaa !9
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef @.str.3) #5
  %67 = load i32, ptr %6, align 4, !tbaa !5
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %6, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %64, %53
  br label %181

70:                                               ; preds = %39
  %71 = load ptr, ptr %10, align 8, !tbaa !9
  %72 = getelementptr inbounds %struct.s_dparams, ptr %71, i32 0, i32 7
  store i32 1, ptr %72, align 8, !tbaa !15
  %73 = load ptr, ptr %10, align 8, !tbaa !9
  %74 = getelementptr inbounds %struct.s_dparams, ptr %73, i32 0, i32 5
  store float 4.000000e+00, ptr %74, align 8, !tbaa !16
  br label %181

75:                                               ; preds = %39
  %76 = load ptr, ptr %10, align 8, !tbaa !9
  %77 = getelementptr inbounds %struct.s_dparams, ptr %76, i32 0, i32 7
  store i32 2, ptr %77, align 8, !tbaa !15
  %78 = load ptr, ptr %10, align 8, !tbaa !9
  %79 = getelementptr inbounds %struct.s_dparams, ptr %78, i32 0, i32 5
  store float 4.000000e+00, ptr %79, align 8, !tbaa !16
  br label %181

80:                                               ; preds = %39
  %81 = load i32, ptr %7, align 4, !tbaa !5
  %82 = icmp sge i32 %81, 1
  br i1 %82, label %83, label %86

83:                                               ; preds = %80
  %84 = load ptr, ptr @stdout, align 8, !tbaa !9
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef @.str.4) #5
  br label %143

86:                                               ; preds = %80
  %87 = load i32, ptr %5, align 4, !tbaa !5
  %88 = load i32, ptr %3, align 4, !tbaa !5
  %89 = sub nsw i32 %88, 1
  %90 = icmp slt i32 %87, %89
  br i1 %90, label %91, label %137

91:                                               ; preds = %86
  %92 = load ptr, ptr %4, align 8, !tbaa !9
  %93 = load i32, ptr %5, align 4, !tbaa !5
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %5, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds ptr, ptr %92, i64 %95
  %97 = load ptr, ptr %96, align 8, !tbaa !9
  %98 = call i64 @strlen(ptr noundef %97) #6
  %99 = icmp ult i64 %98, 300
  br i1 %99, label %100, label %133

100:                                              ; preds = %91
  %101 = load ptr, ptr %4, align 8, !tbaa !9
  %102 = load i32, ptr %5, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds ptr, ptr %101, i64 %103
  %105 = load ptr, ptr %104, align 8, !tbaa !9
  call void @remove_ext(ptr noundef %105)
  %106 = load ptr, ptr %10, align 8, !tbaa !9
  %107 = getelementptr inbounds %struct.s_dparams, ptr %106, i32 0, i32 2
  %108 = load ptr, ptr %107, align 8, !tbaa !17
  %109 = load ptr, ptr %4, align 8, !tbaa !9
  %110 = load i32, ptr %5, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds ptr, ptr %109, i64 %111
  %113 = load ptr, ptr %112, align 8, !tbaa !9
  %114 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %108, ptr noundef @.str.5, ptr noundef %113) #5
  %115 = load ptr, ptr %10, align 8, !tbaa !9
  %116 = getelementptr inbounds %struct.s_dparams, ptr %115, i32 0, i32 3
  %117 = load ptr, ptr %116, align 8, !tbaa !18
  %118 = load ptr, ptr %4, align 8, !tbaa !9
  %119 = load i32, ptr %5, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds ptr, ptr %118, i64 %120
  %122 = load ptr, ptr %121, align 8, !tbaa !9
  %123 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %117, ptr noundef @.str.6, ptr noundef %122) #5
  %124 = load ptr, ptr %10, align 8, !tbaa !9
  %125 = getelementptr inbounds %struct.s_dparams, ptr %124, i32 0, i32 4
  %126 = load ptr, ptr %125, align 8, !tbaa !19
  %127 = load ptr, ptr %4, align 8, !tbaa !9
  %128 = load i32, ptr %5, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds ptr, ptr %127, i64 %129
  %131 = load ptr, ptr %130, align 8, !tbaa !9
  %132 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %126, ptr noundef @.str.7, ptr noundef %131) #5
  br label %136

133:                                              ; preds = %91
  %134 = load ptr, ptr @stdout, align 8, !tbaa !9
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef @.str.8) #5
  br label %136

136:                                              ; preds = %133, %100
  br label %142

137:                                              ; preds = %86
  %138 = load ptr, ptr @stdout, align 8, !tbaa !9
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef @.str.9) #5
  %140 = load i32, ptr %6, align 4, !tbaa !5
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %6, align 4, !tbaa !5
  br label %142

142:                                              ; preds = %137, %136
  br label %143

143:                                              ; preds = %142, %83
  br label %181

144:                                              ; preds = %39
  %145 = load i32, ptr %5, align 4, !tbaa !5
  %146 = load i32, ptr %3, align 4, !tbaa !5
  %147 = sub nsw i32 %146, 1
  %148 = icmp slt i32 %145, %147
  br i1 %148, label %149, label %156

149:                                              ; preds = %144
  %150 = load ptr, ptr %4, align 8, !tbaa !9
  %151 = load i32, ptr %5, align 4, !tbaa !5
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %5, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds ptr, ptr %150, i64 %153
  %155 = load ptr, ptr %154, align 8, !tbaa !9
  store ptr %155, ptr %9, align 8, !tbaa !9
  br label %161

156:                                              ; preds = %144
  %157 = load ptr, ptr @stdout, align 8, !tbaa !9
  %158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %157, ptr noundef @.str.10) #5
  %159 = load i32, ptr %6, align 4, !tbaa !5
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %6, align 4, !tbaa !5
  br label %161

161:                                              ; preds = %156, %149
  br label %181

162:                                              ; preds = %39
  %163 = load ptr, ptr %4, align 8, !tbaa !9
  %164 = load i32, ptr %5, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds ptr, ptr %163, i64 %165
  %167 = load ptr, ptr %166, align 8, !tbaa !9
  %168 = getelementptr inbounds i8, ptr %167, i64 1
  %169 = load i8, ptr %168, align 1, !tbaa !14
  %170 = call i32 @is_fpocket_opt(i8 noundef signext %169)
  %171 = icmp ne i32 %170, 0
  br i1 %171, label %180, label %172

172:                                              ; preds = %162
  %173 = load ptr, ptr @stdout, align 8, !tbaa !9
  %174 = load ptr, ptr %4, align 8, !tbaa !9
  %175 = load i32, ptr %5, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds ptr, ptr %174, i64 %176
  %178 = load ptr, ptr %177, align 8, !tbaa !9
  %179 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %173, ptr noundef @.str.11, ptr noundef %178) #5
  br label %180

180:                                              ; preds = %172, %162
  br label %181

181:                                              ; preds = %180, %161, %143, %75, %70, %69
  br label %182

182:                                              ; preds = %181, %29, %21
  br label %183

183:                                              ; preds = %182
  %184 = load i32, ptr %5, align 4, !tbaa !5
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %5, align 4, !tbaa !5
  br label %17, !llvm.loop !20

186:                                              ; preds = %17
  %187 = load i32, ptr %6, align 4, !tbaa !5
  %188 = icmp sgt i32 %187, 0
  br i1 %188, label %189, label %192

189:                                              ; preds = %186
  %190 = load ptr, ptr %10, align 8, !tbaa !9
  call void @free_dparams(ptr noundef %190)
  store ptr null, ptr %10, align 8, !tbaa !9
  %191 = load ptr, ptr @stdout, align 8, !tbaa !9
  call void @print_dpocket_usage(ptr noundef %191)
  br label %213

192:                                              ; preds = %186
  %193 = load ptr, ptr %9, align 8, !tbaa !9
  %194 = icmp ne ptr %193, null
  br i1 %194, label %195, label %207

195:                                              ; preds = %192
  %196 = load ptr, ptr %9, align 8, !tbaa !9
  %197 = load ptr, ptr %10, align 8, !tbaa !9
  %198 = call i32 @add_list_complexes(ptr noundef %196, ptr noundef %197)
  store i32 %198, ptr %8, align 4, !tbaa !5
  %199 = load i32, ptr %8, align 4, !tbaa !5
  %200 = icmp sle i32 %199, 0
  br i1 %200, label %201, label %206

201:                                              ; preds = %195
  %202 = load ptr, ptr @stdout, align 8, !tbaa !9
  %203 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %202, ptr noundef @.str.12) #5
  %204 = load ptr, ptr %10, align 8, !tbaa !9
  call void @free_dparams(ptr noundef %204)
  store ptr null, ptr %10, align 8, !tbaa !9
  %205 = load ptr, ptr @stdout, align 8, !tbaa !9
  call void @print_dpocket_usage(ptr noundef %205)
  br label %206

206:                                              ; preds = %201, %195
  br label %212

207:                                              ; preds = %192
  %208 = load ptr, ptr @stdout, align 8, !tbaa !9
  %209 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %208, ptr noundef @.str.13) #5
  %210 = load ptr, ptr %10, align 8, !tbaa !9
  call void @free_dparams(ptr noundef %210)
  store ptr null, ptr %10, align 8, !tbaa !9
  %211 = load ptr, ptr @stdout, align 8, !tbaa !9
  call void @print_dpocket_usage(ptr noundef %211)
  br label %212

212:                                              ; preds = %207, %206
  br label %213

213:                                              ; preds = %212, %189
  %214 = load ptr, ptr %10, align 8, !tbaa !9
  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 4, 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 %214
}

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

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

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

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

declare void @remove_ext(ptr noundef) #2

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

declare i32 @is_fpocket_opt(i8 noundef signext) #2

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @add_list_complexes(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 = { "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 = { 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 }
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 = !{!12, !10, i64 56}
!12 = !{!"s_dparams", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !13, i64 40, !6, i64 44, !6, i64 48, !10, i64 56}
!13 = !{!"float", !7, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!12, !6, i64 48}
!16 = !{!12, !13, i64 40}
!17 = !{!12, !10, i64 16}
!18 = !{!12, !10, i64 24}
!19 = !{!12, !10, i64 32}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}


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

@stdout = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [40 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local ptr @get_dpocket_args(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = tail call ptr @init_def_dparams()
  %4 = tail call ptr @get_fpocket_args(i32 noundef %0, ptr noundef %1) #4
  %5 = getelementptr inbounds i8, ptr %3, i64 56
  store ptr %4, ptr %5, align 8, !tbaa !5
  %6 = icmp sgt i32 %0, 1
  br i1 %6, label %.lr.ph, label %.sink.split.sink.split

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

13:                                               ; preds = %.lr.ph, %83
  %.05766 = phi ptr [ null, %.lr.ph ], [ %.1, %83 ]
  %.05865 = phi i32 [ 1, %.lr.ph ], [ %84, %83 ]
  %.06064 = phi i32 [ 0, %.lr.ph ], [ %.161, %83 ]
  %14 = sext i32 %.05865 to i64
  %15 = getelementptr inbounds ptr, ptr %1, i64 %14
  %16 = load ptr, ptr %15, align 8, !tbaa !12
  %17 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %16) #5
  %18 = icmp eq i64 %17, 2
  br i1 %18, label %19, label %83

19:                                               ; preds = %13
  %20 = load i8, ptr %16, align 1, !tbaa !13
  %21 = icmp eq i8 %20, 45
  br i1 %21, label %22, label %83

22:                                               ; preds = %19
  %23 = getelementptr inbounds i8, ptr %16, i64 1
  %24 = load i8, ptr %23, align 1, !tbaa !13
  switch i8 %24, label %77 [
    i8 100, label %25
    i8 101, label %38
    i8 69, label %39
    i8 111, label %40
    i8 102, label %66
  ]

25:                                               ; preds = %22
  %26 = icmp slt i32 %.05865, %7
  br i1 %26, label %27, label %34

27:                                               ; preds = %25
  %28 = add nsw i32 %.05865, 1
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds ptr, ptr %1, i64 %29
  %31 = load ptr, ptr %30, align 8, !tbaa !12
  %32 = tail call i32 @parse_dist_crit(ptr noundef %31, ptr noundef %3)
  %33 = add nsw i32 %32, %.06064
  br label %83

34:                                               ; preds = %25
  %35 = load ptr, ptr @stdout, align 8, !tbaa !12
  %36 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef nonnull @.str.3) #4
  %37 = add nsw i32 %.06064, 1
  br label %83

38:                                               ; preds = %22
  store i32 1, ptr %11, align 8, !tbaa !14
  store float 4.000000e+00, ptr %12, align 8, !tbaa !15
  br label %83

39:                                               ; preds = %22
  store i32 2, ptr %11, align 8, !tbaa !14
  store float 4.000000e+00, ptr %12, align 8, !tbaa !15
  br label %83

40:                                               ; preds = %22
  %41 = icmp slt i32 %.05865, %7
  br i1 %41, label %42, label %62

42:                                               ; preds = %40
  %43 = add nsw i32 %.05865, 1
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds ptr, ptr %1, i64 %44
  %46 = load ptr, ptr %45, align 8, !tbaa !12
  %47 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %46) #5
  %48 = icmp ult i64 %47, 300
  br i1 %48, label %49, label %59

49:                                               ; preds = %42
  tail call void @remove_ext(ptr noundef %46) #4
  %50 = load ptr, ptr %8, align 8, !tbaa !16
  %51 = load ptr, ptr %45, align 8, !tbaa !12
  %52 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %50, ptr noundef nonnull dereferenceable(1) @.str.5, ptr noundef %51) #4
  %53 = load ptr, ptr %9, align 8, !tbaa !17
  %54 = load ptr, ptr %45, align 8, !tbaa !12
  %55 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %53, ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef %54) #4
  %56 = load ptr, ptr %10, align 8, !tbaa !18
  %57 = load ptr, ptr %45, align 8, !tbaa !12
  %58 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %56, ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef %57) #4
  br label %83

59:                                               ; preds = %42
  %60 = load ptr, ptr @stdout, align 8, !tbaa !12
  %61 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef nonnull @.str.8) #4
  br label %83

62:                                               ; preds = %40
  %63 = load ptr, ptr @stdout, align 8, !tbaa !12
  %64 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef nonnull @.str.9) #4
  %65 = add nsw i32 %.06064, 1
  br label %83

66:                                               ; preds = %22
  %67 = icmp slt i32 %.05865, %7
  br i1 %67, label %68, label %73

68:                                               ; preds = %66
  %69 = add nsw i32 %.05865, 1
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds ptr, ptr %1, i64 %70
  %72 = load ptr, ptr %71, align 8, !tbaa !12
  br label %83

73:                                               ; preds = %66
  %74 = load ptr, ptr @stdout, align 8, !tbaa !12
  %75 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str.10) #4
  %76 = add nsw i32 %.06064, 1
  br label %83

77:                                               ; preds = %22
  %78 = tail call i32 @is_fpocket_opt(i8 noundef signext %24) #4
  %.not63 = icmp eq i32 %78, 0
  br i1 %.not63, label %79, label %83

79:                                               ; preds = %77
  %80 = load ptr, ptr @stdout, align 8, !tbaa !12
  %81 = load ptr, ptr %15, align 8, !tbaa !12
  %82 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef nonnull @.str.11, ptr noundef %81) #4
  br label %83

83:                                               ; preds = %13, %19, %77, %79, %68, %73, %49, %59, %62, %27, %34, %39, %38
  %.161 = phi i32 [ %.06064, %77 ], [ %.06064, %79 ], [ %.06064, %68 ], [ %76, %73 ], [ %.06064, %49 ], [ %.06064, %59 ], [ %65, %62 ], [ %.06064, %39 ], [ %.06064, %38 ], [ %33, %27 ], [ %37, %34 ], [ %.06064, %19 ], [ %.06064, %13 ]
  %.159 = phi i32 [ %.05865, %77 ], [ %.05865, %79 ], [ %69, %68 ], [ %.05865, %73 ], [ %43, %49 ], [ %43, %59 ], [ %.05865, %62 ], [ %.05865, %39 ], [ %.05865, %38 ], [ %28, %27 ], [ %.05865, %34 ], [ %.05865, %19 ], [ %.05865, %13 ]
  %.1 = phi ptr [ %.05766, %77 ], [ %.05766, %79 ], [ %72, %68 ], [ %.05766, %73 ], [ %.05766, %49 ], [ %.05766, %59 ], [ %.05766, %62 ], [ %.05766, %39 ], [ %.05766, %38 ], [ %.05766, %27 ], [ %.05766, %34 ], [ %.05766, %19 ], [ %.05766, %13 ]
  %84 = add nsw i32 %.159, 1
  %85 = icmp slt i32 %84, %0
  br i1 %85, label %13, label %._crit_edge, !llvm.loop !19

._crit_edge:                                      ; preds = %83
  %86 = icmp sgt i32 %.161, 0
  br i1 %86, label %.sink.split, label %87

87:                                               ; preds = %._crit_edge
  %.not = icmp eq ptr %.1, null
  br i1 %.not, label %.sink.split.sink.split, label %88

88:                                               ; preds = %87
  %89 = tail call i32 @add_list_complexes(ptr noundef nonnull %.1, ptr noundef %3)
  %90 = icmp slt i32 %89, 1
  br i1 %90, label %.sink.split.sink.split, label %94

.sink.split.sink.split:                           ; preds = %87, %2, %88
  %.str.12.sink = phi ptr [ @.str.12, %88 ], [ @.str.13, %2 ], [ @.str.13, %87 ]
  %91 = load ptr, ptr @stdout, align 8, !tbaa !12
  %92 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull %.str.12.sink) #4
  br label %.sink.split

.sink.split:                                      ; preds = %.sink.split.sink.split, %._crit_edge
  tail call void @free_dparams(ptr noundef %3)
  %93 = load ptr, ptr @stdout, align 8, !tbaa !12
  tail call void @print_dpocket_usage(ptr noundef %93)
  br label %94

94:                                               ; preds = %.sink.split, %88
  %.0 = phi ptr [ %3, %88 ], [ null, %.sink.split ]
  ret ptr %.0
}

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

; 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_dist_crit(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 void @remove_ext(ptr noundef) local_unnamed_addr #1

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

declare i32 @is_fpocket_opt(i8 noundef signext) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @add_list_complexes(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 = { "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 = { nounwind }
attributes #5 = { 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, !7, i64 56}
!6 = !{!"s_dparams", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !11, i64 44, !11, i64 48, !7, i64 56}
!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 48}
!15 = !{!6, !10, i64 40}
!16 = !{!6, !7, i64 16}
!17 = !{!6, !7, i64 24}
!18 = !{!6, !7, i64 32}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


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