; LLVM IR from mbheinen/bpa-ipf-tsp :: ipf (srv_cmdprs)

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

@.str = external hidden unnamed_addr constant [46 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @srv_cmdprs(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca [11 x i8], align 1
  %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
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 11, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  store i8 0, ptr %18, align 1, !tbaa !9
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = call ptr @strchr(ptr noundef %19, i32 noundef 10) #9
  store ptr %20, ptr %6, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %36

22:                                               ; preds = %2
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  store i8 0, ptr %23, align 1, !tbaa !9
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = call ptr @strcpy(ptr noundef %24, ptr noundef %25) #8
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = call i64 @strlen(ptr noundef %28) #9
  %30 = getelementptr inbounds i8, ptr %27, i64 %29
  store ptr %30, ptr %7, align 8, !tbaa !5
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  store i8 10, ptr %31, align 1, !tbaa !9
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  store i8 10, ptr %32, align 1, !tbaa !9
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %33, i32 1
  store ptr %34, ptr %7, align 8, !tbaa !5
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  store i8 0, ptr %35, align 1, !tbaa !9
  br label %41

36:                                               ; preds = %2
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = call ptr @strcat(ptr noundef %37, ptr noundef @.str) #8
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = call ptr @strcat(ptr noundef %39, ptr noundef @.str.1) #8
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %131

41:                                               ; preds = %22
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = call ptr @strstr(ptr noundef %42, ptr noundef @.str.2) #9
  store ptr %43, ptr %6, align 8, !tbaa !5
  %44 = icmp ne ptr %43, null
  br i1 %44, label %45, label %48

45:                                               ; preds = %41
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = call ptr @strcpy(ptr noundef %46, ptr noundef @.str.3) #8
  br label %53

48:                                               ; preds = %41
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = call ptr @strcat(ptr noundef %49, ptr noundef @.str.4) #8
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = call ptr @strcat(ptr noundef %51, ptr noundef @.str.1) #8
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %131

53:                                               ; preds = %45
  %54 = getelementptr inbounds [11 x i8], ptr %8, i64 0, i64 0
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = call ptr @strncpy(ptr noundef %54, ptr noundef %55, i64 noundef 10) #8
  %57 = getelementptr inbounds [11 x i8], ptr %8, i64 0, i64 10
  store i8 0, ptr %57, align 1, !tbaa !9
  %58 = getelementptr inbounds [11 x i8], ptr %8, i64 0, i64 0
  %59 = call ptr @strtok(ptr noundef %58, ptr noundef @.str.5) #8
  store ptr %59, ptr %9, align 8, !tbaa !5
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %60, i32 1
  store ptr %61, ptr %9, align 8, !tbaa !5
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %62, ptr %11, align 8, !tbaa !5
  br label %63

63:                                               ; preds = %103, %53
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = load i8, ptr %64, align 1, !tbaa !9
  %66 = sext i8 %65 to i32
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %106

68:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  %70 = load i8, ptr %69, align 1, !tbaa !9
  %71 = sext i8 %70 to i32
  %72 = call i1 @llvm.is.constant.i32(i32 %71)
  br i1 %72, label %73, label %93

73:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  %75 = load i8, ptr %74, align 1, !tbaa !9
  %76 = sext i8 %75 to i32
  store i32 %76, ptr %16, align 4, !tbaa !10
  %77 = load i32, ptr %16, align 4, !tbaa !10
  %78 = icmp slt i32 %77, -128
  br i1 %78, label %82, label %79

79:                                               ; preds = %73
  %80 = load i32, ptr %16, align 4, !tbaa !10
  %81 = icmp sgt i32 %80, 255
  br i1 %81, label %82, label %84

82:                                               ; preds = %79, %73
  %83 = load i32, ptr %16, align 4, !tbaa !10
  br label %91

84:                                               ; preds = %79
  %85 = call ptr @__ctype_toupper_loc() #10
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %87 = load i32, ptr %16, align 4, !tbaa !10
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds i32, ptr %86, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !10
  br label %91

91:                                               ; preds = %84, %82
  %92 = phi i32 [ %83, %82 ], [ %90, %84 ]
  store i32 %92, ptr %15, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %98

93:                                               ; preds = %68
  %94 = load ptr, ptr %11, align 8, !tbaa !5
  %95 = load i8, ptr %94, align 1, !tbaa !9
  %96 = sext i8 %95 to i32
  %97 = call i32 @toupper(i32 noundef %96) #9
  store i32 %97, ptr %15, align 4, !tbaa !10
  br label %98

98:                                               ; preds = %93, %91
  %99 = load i32, ptr %15, align 4, !tbaa !10
  store i32 %99, ptr %17, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  %100 = load i32, ptr %17, align 4, !tbaa !10
  %101 = trunc i32 %100 to i8
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  store i8 %101, ptr %102, align 1, !tbaa !9
  br label %103

103:                                              ; preds = %98
  %104 = load ptr, ptr %11, align 8, !tbaa !5
  %105 = getelementptr inbounds i8, ptr %104, i32 1
  store ptr %105, ptr %11, align 8, !tbaa !5
  br label %63, !llvm.loop !12

106:                                              ; preds = %63
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = call i32 @strncmp(ptr noundef %107, ptr noundef @.str.6, i64 noundef 7) #9
  %109 = icmp eq i32 %108, 0
  br i1 %109, label %110, label %114

110:                                              ; preds = %106
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = call i32 @p_cmdfil_c(ptr noundef %111, ptr noundef %112)
  store i32 %113, ptr %13, align 4, !tbaa !10
  br label %127

114:                                              ; preds = %106
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = call i32 @strncmp(ptr noundef %115, ptr noundef @.str.7, i64 noundef 5) #9
  %117 = icmp eq i32 %116, 0
  br i1 %117, label %118, label %122

118:                                              ; preds = %114
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  %121 = call i32 @p_cflow_c(ptr noundef %119, ptr noundef %120)
  store i32 %121, ptr %13, align 4, !tbaa !10
  br label %126

122:                                              ; preds = %114
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  %125 = call i32 @srv_fcmdprs_cw(ptr noundef %123, ptr noundef %124)
  store i32 %125, ptr %13, align 4, !tbaa !10
  br label %126

126:                                              ; preds = %122, %118
  br label %127

127:                                              ; preds = %126, %110
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = call ptr @strcat(ptr noundef %128, ptr noundef @.str.1) #8
  %130 = load i32, ptr %13, align 4, !tbaa !10
  store i32 %130, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %131

131:                                              ; preds = %127, %48, %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 11, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  %132 = load i32, ptr %3, align 4
  ret i32 %132
}

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

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

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #3

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

; Function Attrs: nounwind
declare ptr @strcat(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind willreturn memory(read)
declare ptr @strstr(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare ptr @strncpy(ptr noundef, ptr noundef, i64 noundef) #3

; Function Attrs: nounwind
declare ptr @strtok(ptr noundef, ptr noundef) #3

; Function Attrs: convergent nocallback nofree nosync nounwind willreturn memory(none)
declare i1 @llvm.is.constant.i32(i32) #4

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__ctype_toupper_loc() #5

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

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @toupper(i32 noundef) #6

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

declare i32 @p_cmdfil_c(ptr noundef, ptr noundef) #7

declare i32 @p_cflow_c(ptr noundef, ptr noundef) #7

declare i32 @srv_fcmdprs_cw(ptr noundef, ptr noundef) #7

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 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 #3 = { 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 = { convergent nocallback nofree nosync nounwind willreturn memory(none) }
attributes #5 = { nounwind willreturn memory(none) "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 = { inlinehint nounwind willreturn memory(read) 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 #7 = { "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 = { nounwind willreturn memory(none) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"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"

@.str = external hidden unnamed_addr constant [46 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @srv_cmdprs(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca [11 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 11, ptr nonnull %3) #7
  store i8 0, ptr %1, align 1, !tbaa !5
  %4 = tail call ptr @strchr(ptr noundef nonnull dereferenceable(1) %0, i32 noundef 10) #8
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %11, label %5

5:                                                ; preds = %2
  store i8 0, ptr %4, align 1, !tbaa !5
  %6 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(1) %0) #7
  %7 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %1) #8
  %8 = getelementptr inbounds i8, ptr %1, i64 %7
  store i8 10, ptr %4, align 1, !tbaa !5
  store i8 10, ptr %8, align 1, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %8, i64 1
  store i8 0, ptr %9, align 1, !tbaa !5
  %10 = tail call ptr @strstr(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.2) #8
  %.not49 = icmp eq ptr %10, null
  br i1 %.not49, label %21, label %14

11:                                               ; preds = %2
  %12 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(1) @.str) #7
  %13 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(1) @.str.1) #7
  br label %43

14:                                               ; preds = %5
  %15 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %10, ptr noundef nonnull dereferenceable(1) @.str.3) #7
  %16 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) %0, i64 noundef 10) #7
  %17 = getelementptr inbounds i8, ptr %3, i64 10
  store i8 0, ptr %17, align 1, !tbaa !5
  %18 = call ptr @strtok(ptr noundef nonnull %3, ptr noundef nonnull @.str.5) #7
  %19 = getelementptr inbounds i8, ptr %18, i64 1
  %20 = load i8, ptr %19, align 1, !tbaa !5
  %.not5051 = icmp eq i8 %20, 0
  br i1 %.not5051, label %._crit_edge, label %.lr.ph

21:                                               ; preds = %5
  %22 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(1) @.str.4) #7
  %23 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(1) @.str.1) #7
  br label %43

.lr.ph:                                           ; preds = %14, %.lr.ph
  %24 = phi i8 [ %29, %.lr.ph ], [ %20, %14 ]
  %.04552 = phi ptr [ %28, %.lr.ph ], [ %19, %14 ]
  %25 = sext i8 %24 to i32
  %26 = call i32 @toupper(i32 noundef %25) #8
  %27 = trunc i32 %26 to i8
  store i8 %27, ptr %.04552, align 1, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %.04552, i64 1
  %29 = load i8, ptr %28, align 1, !tbaa !5
  %.not50 = icmp eq i8 %29, 0
  br i1 %.not50, label %._crit_edge, label %.lr.ph, !llvm.loop !8

._crit_edge:                                      ; preds = %.lr.ph, %14
  %30 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %19, ptr noundef nonnull dereferenceable(1) @.str.6, i64 noundef 7) #8
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %34

32:                                               ; preds = %._crit_edge
  %33 = call i32 @p_cmdfil_c(ptr noundef %0, ptr noundef nonnull %9) #7
  br label %41

34:                                               ; preds = %._crit_edge
  %35 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %19, ptr noundef nonnull dereferenceable(1) @.str.7, i64 noundef 5) #8
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %39

37:                                               ; preds = %34
  %38 = call i32 @p_cflow_c(ptr noundef %0, ptr noundef nonnull %9) #7
  br label %41

39:                                               ; preds = %34
  %40 = call i32 @srv_fcmdprs_cw(ptr noundef %0, ptr noundef nonnull %9) #7
  br label %41

41:                                               ; preds = %37, %39, %32
  %.044 = phi i32 [ %33, %32 ], [ %38, %37 ], [ %40, %39 ]
  %42 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(1) @.str.1) #7
  br label %43

43:                                               ; preds = %41, %21, %11
  %.0 = phi i32 [ %.044, %41 ], [ 1, %21 ], [ 1, %11 ]
  call void @llvm.lifetime.end.p0(i64 11, ptr nonnull %3) #7
  ret i32 %.0
}

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

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

; 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 #3

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

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn
declare ptr @strtok(ptr noundef, ptr nocapture noundef readonly) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @toupper(i32 noundef) local_unnamed_addr #5

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

declare i32 @p_cmdfil_c(ptr noundef, ptr noundef) local_unnamed_addr #6

declare i32 @p_cflow_c(ptr noundef, ptr noundef) local_unnamed_addr #6

declare i32 @srv_fcmdprs_cw(ptr noundef, ptr noundef) local_unnamed_addr #6

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 = { 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 = { 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 #4 = { mustprogress nofree nounwind willreturn "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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LowerConstantIntrinsicsPass,SROAPass,SimplifyCFGPass,TailCallElimPass