; LLVM IR from clibs/clib :: src (clib)

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

@debugger = external dso_local global %struct.debug_t, align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@usage = external hidden global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@stderr = external global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store ptr null, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store ptr null, ptr %7, align 8, !tbaa !9
  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 4, ptr %11) #5
  store i32 1, ptr %11, align 4, !tbaa !5
  %13 = call i32 @debug_init(ptr noundef @debugger, ptr noundef @.str)
  %14 = call i32 @clib_cache_meta_init()
  call void @notify_new_release()
  %15 = load ptr, ptr %5, align 8, !tbaa !9
  %16 = getelementptr inbounds ptr, ptr %15, i64 1
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  %18 = icmp eq ptr null, %17
  br i1 %18, label %31, label %19

19:                                               ; preds = %2
  %20 = load ptr, ptr %5, align 8, !tbaa !9
  %21 = getelementptr inbounds ptr, ptr %20, i64 1
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  %23 = call i32 @strncmp(ptr noundef %22, ptr noundef @.str.1, i64 noundef 2) #6
  %24 = icmp eq i32 0, %23
  br i1 %24, label %31, label %25

25:                                               ; preds = %19
  %26 = load ptr, ptr %5, align 8, !tbaa !9
  %27 = getelementptr inbounds ptr, ptr %26, i64 1
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = call i32 @strncmp(ptr noundef %28, ptr noundef @.str.2, i64 noundef 6) #6
  %30 = icmp eq i32 0, %29
  br i1 %30, label %31, label %34

31:                                               ; preds = %25, %19, %2
  %32 = load ptr, ptr @usage, align 8, !tbaa !9
  %33 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %32)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %175

34:                                               ; preds = %25
  %35 = load ptr, ptr %5, align 8, !tbaa !9
  %36 = getelementptr inbounds ptr, ptr %35, i64 1
  %37 = load ptr, ptr %36, align 8, !tbaa !9
  %38 = call i32 @strncmp(ptr noundef %37, ptr noundef @.str.4, i64 noundef 2) #6
  %39 = icmp eq i32 0, %38
  br i1 %39, label %46, label %40

40:                                               ; preds = %34
  %41 = load ptr, ptr %5, align 8, !tbaa !9
  %42 = getelementptr inbounds ptr, ptr %41, i64 1
  %43 = load ptr, ptr %42, align 8, !tbaa !9
  %44 = call i32 @strncmp(ptr noundef %43, ptr noundef @.str.5, i64 noundef 9) #6
  %45 = icmp eq i32 0, %44
  br i1 %45, label %46, label %48

46:                                               ; preds = %40, %34
  %47 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef @.str.6)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %175

48:                                               ; preds = %40
  %49 = load ptr, ptr %5, align 8, !tbaa !9
  %50 = getelementptr inbounds ptr, ptr %49, i64 1
  %51 = load ptr, ptr %50, align 8, !tbaa !9
  %52 = call i32 @strncmp(ptr noundef %51, ptr noundef @.str.7, i64 noundef 2) #6
  %53 = icmp eq i32 0, %52
  br i1 %53, label %54, label %60

54:                                               ; preds = %48
  %55 = load ptr, ptr @stderr, align 8, !tbaa !9
  %56 = load ptr, ptr %5, align 8, !tbaa !9
  %57 = getelementptr inbounds ptr, ptr %56, i64 1
  %58 = load ptr, ptr %57, align 8, !tbaa !9
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef @.str.8, ptr noundef %58) #5
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %175

60:                                               ; preds = %48
  %61 = load ptr, ptr %5, align 8, !tbaa !9
  %62 = getelementptr inbounds ptr, ptr %61, i64 1
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  %64 = call noalias ptr @strdup(ptr noundef %63) #5
  store ptr %64, ptr %6, align 8, !tbaa !9
  %65 = load ptr, ptr %6, align 8, !tbaa !9
  %66 = icmp eq ptr null, %65
  br i1 %66, label %67, label %70

67:                                               ; preds = %60
  %68 = load ptr, ptr @stderr, align 8, !tbaa !9
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %68, ptr noundef @.str.9) #5
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %175

70:                                               ; preds = %60
  %71 = load ptr, ptr %6, align 8, !tbaa !9
  %72 = call ptr @trim(ptr noundef %71)
  store ptr %72, ptr %6, align 8, !tbaa !9
  %73 = load ptr, ptr %6, align 8, !tbaa !9
  %74 = call i32 @strcmp(ptr noundef %73, ptr noundef @.str.10) #6
  %75 = icmp eq i32 0, %74
  br i1 %75, label %76, label %90

76:                                               ; preds = %70
  %77 = load i32, ptr %4, align 4, !tbaa !5
  %78 = icmp sge i32 %77, 3
  br i1 %78, label %79, label %86

79:                                               ; preds = %76
  %80 = load ptr, ptr %6, align 8, !tbaa !9
  call void @free(ptr noundef %80) #5
  %81 = load ptr, ptr %5, align 8, !tbaa !9
  %82 = getelementptr inbounds ptr, ptr %81, i64 2
  %83 = load ptr, ptr %82, align 8, !tbaa !9
  %84 = call noalias ptr @strdup(ptr noundef %83) #5
  store ptr %84, ptr %6, align 8, !tbaa !9
  %85 = call noalias ptr @strdup(ptr noundef @.str.2) #5
  store ptr %85, ptr %7, align 8, !tbaa !9
  br label %89

86:                                               ; preds = %76
  %87 = load ptr, ptr @stderr, align 8, !tbaa !9
  %88 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %87, ptr noundef @.str.11) #5
  br label %168

89:                                               ; preds = %79
  br label %102

90:                                               ; preds = %70
  %91 = load i32, ptr %4, align 4, !tbaa !5
  %92 = icmp sge i32 %91, 3
  br i1 %92, label %93, label %101

93:                                               ; preds = %90
  %94 = load ptr, ptr %5, align 8, !tbaa !9
  %95 = load i32, ptr %4, align 4, !tbaa !5
  %96 = call ptr @str_flatten(ptr noundef %94, i32 noundef 2, i32 noundef %95)
  store ptr %96, ptr %7, align 8, !tbaa !9
  %97 = load ptr, ptr %7, align 8, !tbaa !9
  %98 = icmp eq ptr null, %97
  br i1 %98, label %99, label %100

99:                                               ; preds = %93
  br label %168

100:                                              ; preds = %93
  br label %101

101:                                              ; preds = %100, %90
  br label %102

102:                                              ; preds = %101, %89
  %103 = load ptr, ptr %7, align 8, !tbaa !9
  call void (ptr, ptr, ...) @debug(ptr noundef @debugger, ptr noundef @.str.12, ptr noundef %103)
  %104 = load ptr, ptr %6, align 8, !tbaa !9
  %105 = call i32 @strcmp(ptr noundef %104, ptr noundef @.str.13) #6
  %106 = icmp eq i32 %105, 0
  br i1 %106, label %107, label %109

107:                                              ; preds = %102
  %108 = call noalias ptr @strdup(ptr noundef @.str.14) #5
  br label %111

109:                                              ; preds = %102
  %110 = load ptr, ptr %6, align 8, !tbaa !9
  br label %111

111:                                              ; preds = %109, %107
  %112 = phi ptr [ %108, %107 ], [ %110, %109 ]
  store ptr %112, ptr %6, align 8, !tbaa !9
  %113 = load ptr, ptr %6, align 8, !tbaa !9
  %114 = call i32 @strcmp(ptr noundef %113, ptr noundef @.str.15) #6
  %115 = icmp eq i32 %114, 0
  br i1 %115, label %116, label %118

116:                                              ; preds = %111
  %117 = call noalias ptr @strdup(ptr noundef @.str.16) #5
  br label %120

118:                                              ; preds = %111
  %119 = load ptr, ptr %6, align 8, !tbaa !9
  br label %120

120:                                              ; preds = %118, %116
  %121 = phi ptr [ %117, %116 ], [ %119, %118 ]
  store ptr %121, ptr %6, align 8, !tbaa !9
  %122 = load ptr, ptr %6, align 8, !tbaa !9
  call void @warn_deprecated_sub_command(ptr noundef %122)
  %123 = load ptr, ptr %6, align 8, !tbaa !9
  %124 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %8, ptr noundef @.str.17, ptr noundef %123)
  %125 = icmp eq i32 -1, %124
  br i1 %125, label %126, label %129

126:                                              ; preds = %120
  store i32 1, ptr %11, align 4, !tbaa !5
  %127 = load ptr, ptr @stderr, align 8, !tbaa !9
  %128 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %127, ptr noundef @.str.9) #5
  br label %168

129:                                              ; preds = %120
  %130 = load ptr, ptr %6, align 8, !tbaa !9
  call void (ptr, ptr, ...) @debug(ptr noundef @debugger, ptr noundef @.str.18, ptr noundef %130)
  %131 = load ptr, ptr %8, align 8, !tbaa !9
  %132 = call ptr @which(ptr noundef %131)
  store ptr %132, ptr %10, align 8, !tbaa !9
  %133 = load ptr, ptr %10, align 8, !tbaa !9
  %134 = icmp eq ptr null, %133
  br i1 %134, label %135, label %139

135:                                              ; preds = %129
  %136 = load ptr, ptr @stderr, align 8, !tbaa !9
  %137 = load ptr, ptr %6, align 8, !tbaa !9
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef @.str.19, ptr noundef %137) #5
  br label %168

139:                                              ; preds = %129
  %140 = load ptr, ptr %7, align 8, !tbaa !9
  %141 = icmp ne ptr %140, null
  br i1 %141, label %142, label %151

142:                                              ; preds = %139
  %143 = load ptr, ptr %10, align 8, !tbaa !9
  %144 = load ptr, ptr %7, align 8, !tbaa !9
  %145 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %9, ptr noundef @.str.20, ptr noundef %143, ptr noundef %144)
  %146 = icmp eq i32 -1, %145
  br i1 %146, label %147, label %150

147:                                              ; preds = %142
  store i32 1, ptr %11, align 4, !tbaa !5
  %148 = load ptr, ptr @stderr, align 8, !tbaa !9
  %149 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %148, ptr noundef @.str.9) #5
  br label %168

150:                                              ; preds = %142
  br label %159

151:                                              ; preds = %139
  %152 = load ptr, ptr %10, align 8, !tbaa !9
  %153 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %9, ptr noundef @.str.21, ptr noundef %152)
  %154 = icmp eq i32 -1, %153
  br i1 %154, label %155, label %158

155:                                              ; preds = %151
  store i32 1, ptr %11, align 4, !tbaa !5
  %156 = load ptr, ptr @stderr, align 8, !tbaa !9
  %157 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %156, ptr noundef @.str.9) #5
  br label %168

158:                                              ; preds = %151
  br label %159

159:                                              ; preds = %158, %150
  %160 = load ptr, ptr %9, align 8, !tbaa !9
  call void (ptr, ptr, ...) @debug(ptr noundef @debugger, ptr noundef @.str.22, ptr noundef %160)
  %161 = load ptr, ptr %9, align 8, !tbaa !9
  %162 = call i32 @system(ptr noundef %161)
  store i32 %162, ptr %11, align 4, !tbaa !5
  %163 = load i32, ptr %11, align 4, !tbaa !5
  call void (ptr, ptr, ...) @debug(ptr noundef @debugger, ptr noundef @.str.23, i32 noundef %163)
  %164 = load i32, ptr %11, align 4, !tbaa !5
  %165 = icmp sgt i32 %164, 255
  br i1 %165, label %166, label %167

166:                                              ; preds = %159
  store i32 1, ptr %11, align 4, !tbaa !5
  br label %167

167:                                              ; preds = %166, %159
  br label %168

168:                                              ; preds = %167, %155, %147, %135, %126, %99, %86
  %169 = load ptr, ptr %6, align 8, !tbaa !9
  call void @free(ptr noundef %169) #5
  %170 = load ptr, ptr %7, align 8, !tbaa !9
  call void @free(ptr noundef %170) #5
  %171 = load ptr, ptr %8, align 8, !tbaa !9
  call void @free(ptr noundef %171) #5
  %172 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %172) #5
  %173 = load ptr, ptr %10, align 8, !tbaa !9
  call void @free(ptr noundef %173) #5
  %174 = load i32, ptr %11, align 4, !tbaa !5
  store i32 %174, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %175

175:                                              ; preds = %168, %67, %54, %46, %31
  call void @llvm.lifetime.end.p0(i64 4, 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 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %176 = load i32, ptr %3, align 4
  ret i32 %176
}

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

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

declare i32 @clib_cache_meta_init() #2

; Function Attrs: nounwind uwtable
declare hidden void @notify_new_release() #0

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

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

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

; Function Attrs: nounwind
declare noalias ptr @strdup(ptr noundef) #4

declare ptr @trim(ptr noundef) #2

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

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

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

declare void @debug(ptr noundef, ptr noundef, ...) #2

; Function Attrs: nounwind uwtable
declare hidden void @warn_deprecated_sub_command(ptr noundef) #0

declare i32 @asprintf(ptr noundef, ptr noundef, ...) #2

declare ptr @which(ptr noundef) #2

declare i32 @system(ptr noundef) #2

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

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}


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

@debugger = external dso_local global %struct.debug_t, align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@usage = external hidden local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  store ptr null, ptr %4, align 8, !tbaa !5
  %5 = tail call i32 @debug_init(ptr noundef nonnull @debugger, ptr noundef nonnull @.str) #8
  %6 = tail call i32 @clib_cache_meta_init() #8
  tail call void @notify_new_release()
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = icmp eq ptr %8, null
  br i1 %9, label %16, label %10

10:                                               ; preds = %2
  %11 = tail call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef 2) #9
  %12 = icmp eq i32 %11, 0
  br i1 %12, label %16, label %13

13:                                               ; preds = %10
  %14 = tail call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef 6) #9
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %16, label %19

16:                                               ; preds = %13, %10, %2
  %17 = load ptr, ptr @usage, align 8, !tbaa !5
  %18 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef %17)
  br label %103

19:                                               ; preds = %13
  %20 = tail call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.4, i64 noundef 2) #9
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %25, label %22

22:                                               ; preds = %19
  %23 = tail call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.5, i64 noundef 9) #9
  %24 = icmp eq i32 %23, 0
  br i1 %24, label %25, label %27

25:                                               ; preds = %22, %19
  %26 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull @.str.6)
  br label %103

27:                                               ; preds = %22
  %28 = tail call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.7, i64 noundef 2) #9
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %30, label %33

30:                                               ; preds = %27
  %31 = load ptr, ptr @stderr, align 8, !tbaa !5
  %32 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef nonnull @.str.8, ptr noundef nonnull %8) #10
  br label %103

33:                                               ; preds = %27
  %34 = tail call noalias ptr @strdup(ptr noundef nonnull %8) #8
  %35 = icmp eq ptr %34, null
  br i1 %35, label %36, label %39

36:                                               ; preds = %33
  %37 = load ptr, ptr @stderr, align 8, !tbaa !5
  %38 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef nonnull @.str.9) #10
  br label %103

39:                                               ; preds = %33
  %40 = tail call ptr @trim(ptr noundef nonnull %34) #8
  %41 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %40, ptr noundef nonnull dereferenceable(1) @.str.10) #9
  %42 = icmp eq i32 %41, 0
  %43 = icmp sgt i32 %0, 2
  br i1 %42, label %44, label %53

44:                                               ; preds = %39
  br i1 %43, label %45, label %50

45:                                               ; preds = %44
  tail call void @free(ptr noundef %40) #8
  %46 = getelementptr inbounds i8, ptr %1, i64 16
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  %48 = tail call noalias ptr @strdup(ptr noundef %47) #8
  %49 = tail call noalias ptr @strdup(ptr noundef nonnull @.str.2) #8
  br label %57

50:                                               ; preds = %44
  %51 = load ptr, ptr @stderr, align 8, !tbaa !5
  %52 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef nonnull @.str.11) #10
  br label %100

53:                                               ; preds = %39
  br i1 %43, label %54, label %57

54:                                               ; preds = %53
  %55 = tail call ptr @str_flatten(ptr noundef nonnull %1, i32 noundef 2, i32 noundef %0) #8
  %56 = icmp eq ptr %55, null
  br i1 %56, label %100, label %57

57:                                               ; preds = %53, %54, %45
  %.040 = phi ptr [ %48, %45 ], [ %40, %54 ], [ %40, %53 ]
  %.039 = phi ptr [ %49, %45 ], [ %55, %54 ], [ null, %53 ]
  tail call void (ptr, ptr, ...) @debug(ptr noundef nonnull @debugger, ptr noundef nonnull @.str.12, ptr noundef %.039) #8
  %58 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.040, ptr noundef nonnull dereferenceable(1) @.str.13) #9
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %60, label %62

60:                                               ; preds = %57
  %61 = tail call noalias ptr @strdup(ptr noundef nonnull @.str.14) #8
  br label %62

62:                                               ; preds = %57, %60
  %63 = phi ptr [ %61, %60 ], [ %.040, %57 ]
  %64 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %63, ptr noundef nonnull dereferenceable(1) @.str.15) #9
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %66, label %68

66:                                               ; preds = %62
  %67 = tail call noalias ptr @strdup(ptr noundef nonnull @.str.16) #8
  br label %68

68:                                               ; preds = %62, %66
  %69 = phi ptr [ %67, %66 ], [ %63, %62 ]
  tail call void @warn_deprecated_sub_command(ptr noundef %69)
  %70 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %3, ptr noundef nonnull @.str.17, ptr noundef %69) #8
  %71 = icmp eq i32 %70, -1
  br i1 %71, label %72, label %75

72:                                               ; preds = %68
  %73 = load ptr, ptr @stderr, align 8, !tbaa !5
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef nonnull @.str.9) #10
  br label %100

75:                                               ; preds = %68
  call void (ptr, ptr, ...) @debug(ptr noundef nonnull @debugger, ptr noundef nonnull @.str.18, ptr noundef %69) #8
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = call ptr @which(ptr noundef %76) #8
  %78 = icmp eq ptr %77, null
  br i1 %78, label %79, label %82

79:                                               ; preds = %75
  %80 = load ptr, ptr @stderr, align 8, !tbaa !5
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef nonnull @.str.19, ptr noundef %69) #10
  br label %100

82:                                               ; preds = %75
  %.not = icmp eq ptr %.039, null
  br i1 %.not, label %89, label %83

83:                                               ; preds = %82
  %84 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str.20, ptr noundef nonnull %77, ptr noundef nonnull %.039) #8
  %85 = icmp eq i32 %84, -1
  br i1 %85, label %86, label %95

86:                                               ; preds = %83
  %87 = load ptr, ptr @stderr, align 8, !tbaa !5
  %88 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %87, ptr noundef nonnull @.str.9) #10
  br label %100

89:                                               ; preds = %82
  %90 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str.21, ptr noundef nonnull %77) #8
  %91 = icmp eq i32 %90, -1
  br i1 %91, label %92, label %95

92:                                               ; preds = %89
  %93 = load ptr, ptr @stderr, align 8, !tbaa !5
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str.9) #10
  br label %100

95:                                               ; preds = %89, %83
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  call void (ptr, ptr, ...) @debug(ptr noundef nonnull @debugger, ptr noundef nonnull @.str.22, ptr noundef %96) #8
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = call i32 @system(ptr noundef %97) #8
  call void (ptr, ptr, ...) @debug(ptr noundef nonnull @debugger, ptr noundef nonnull @.str.23, i32 noundef %98) #8
  %99 = icmp sgt i32 %98, 255
  %spec.store.select = select i1 %99, i32 1, i32 %98
  br label %100

100:                                              ; preds = %54, %95, %92, %86, %79, %72, %50
  %.141 = phi ptr [ %69, %72 ], [ %69, %79 ], [ %69, %86 ], [ %69, %95 ], [ %69, %92 ], [ %40, %50 ], [ %40, %54 ]
  %.1 = phi ptr [ %.039, %72 ], [ %.039, %79 ], [ %.039, %86 ], [ %.039, %95 ], [ null, %92 ], [ null, %50 ], [ null, %54 ]
  %.038 = phi ptr [ null, %72 ], [ null, %79 ], [ %77, %86 ], [ %77, %95 ], [ %77, %92 ], [ null, %50 ], [ null, %54 ]
  %.0 = phi i32 [ 1, %72 ], [ 1, %79 ], [ 1, %86 ], [ %spec.store.select, %95 ], [ 1, %92 ], [ 1, %50 ], [ 1, %54 ]
  call void @free(ptr noundef %.141) #8
  call void @free(ptr noundef %.1) #8
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  call void @free(ptr noundef %101) #8
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  call void @free(ptr noundef %102) #8
  call void @free(ptr noundef %.038) #8
  br label %103

103:                                              ; preds = %100, %36, %30, %25, %16
  %.042 = phi i32 [ 0, %16 ], [ 0, %25 ], [ 1, %30 ], [ 1, %36 ], [ %.0, %100 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  ret i32 %.042
}

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

declare i32 @debug_init(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @clib_cache_meta_init() local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden void @notify_new_release() local_unnamed_addr #0

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strdup(ptr nocapture noundef readonly) local_unnamed_addr #5

declare ptr @trim(ptr noundef) local_unnamed_addr #2

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

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

declare ptr @str_flatten(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @debug(ptr noundef, ptr noundef, ...) local_unnamed_addr #2

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

declare i32 @asprintf(ptr noundef, ptr noundef, ...) local_unnamed_addr #2

declare ptr @which(ptr noundef) local_unnamed_addr #2

; Function Attrs: nofree
declare noundef i32 @system(ptr nocapture noundef readonly) local_unnamed_addr #7

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nofree "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 #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { 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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass