; LLVM IR from AngelJumbo/lavat :: lavat (parse_options)

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

@gradient1 = external dso_local global i16, align 2
@gradient2 = external dso_local global i16, align 2
@nballs = external hidden global i32, align 4
@custom = external hidden global ptr, align 8
@color2 = external hidden global i16, align 2
@rim = external hidden global i16, align 2
@color = external hidden global i16, align 2
@party = external hidden global i16, align 2
@speedMult = external hidden global i16, align 2
@radiusIn = external hidden global float, align 4
@contained = external hidden global i16, align 2
@optind = external global i32, align 4
@.str.29 = external hidden unnamed_addr constant [21 x i8], align 1
@stderr = external global ptr, align 8
@.str.30 = external hidden unnamed_addr constant [41 x i8], align 1
@baseColor = external dso_local global [3 x i32], align 4
@optarg = external global ptr, align 8
@baseColor2 = external dso_local global [3 x i32], align 4
@.str.31 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [32 x i8], align 1
@optopt = external global i32, align 4
@.str.37 = external hidden unnamed_addr constant [26 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @tb_has_truecolor() #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @set_color(ptr noundef, ptr noundef, ptr noundef, i16 noundef signext) #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @parse_options(i32 noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  %8 = load i32, ptr %4, align 4, !tbaa !5
  %9 = icmp eq i32 %8, 1
  br i1 %9, label %10, label %11

10:                                               ; preds = %2
  store i32 1, ptr %3, align 4
  br label %133

11:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 1, ptr @optind, align 4, !tbaa !5
  br label %12

12:                                               ; preds = %27, %11
  %13 = load i32, ptr %4, align 4, !tbaa !5
  %14 = load ptr, ptr %5, align 8, !tbaa !9
  %15 = call i32 @getopt(i32 noundef %13, ptr noundef %14, ptr noundef @.str.29) #5
  store i32 %15, ptr %6, align 4, !tbaa !5
  %16 = icmp ne i32 %15, -1
  br i1 %16, label %17, label %28

17:                                               ; preds = %12
  %18 = load i32, ptr %6, align 4, !tbaa !5
  %19 = icmp eq i32 %18, 103
  br i1 %19, label %20, label %27

20:                                               ; preds = %17
  store i16 1, ptr @gradient1, align 2, !tbaa !11
  %21 = call i32 @tb_has_truecolor()
  %22 = icmp ne i32 %21, 0
  br i1 %22, label %26, label %23

23:                                               ; preds = %20
  %24 = load ptr, ptr @stderr, align 8, !tbaa !9
  %25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef @.str.30) #5
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %132

26:                                               ; preds = %20
  br label %28

27:                                               ; preds = %17
  br label %12, !llvm.loop !13

28:                                               ; preds = %26, %12
  store i32 1, ptr @optind, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %130, %28
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = load ptr, ptr %5, align 8, !tbaa !9
  %32 = call i32 @getopt(i32 noundef %30, ptr noundef %31, ptr noundef @.str.29) #5
  store i32 %32, ptr %6, align 4, !tbaa !5
  %33 = icmp ne i32 %32, -1
  br i1 %33, label %34, label %131

34:                                               ; preds = %29
  %35 = load i32, ptr %6, align 4, !tbaa !5
  switch i32 %35, label %130 [
    i32 99, label %36
    i32 107, label %43
    i32 115, label %51
    i32 82, label %65
    i32 114, label %79
    i32 98, label %93
    i32 70, label %104
    i32 67, label %106
    i32 112, label %107
    i32 104, label %121
    i32 103, label %130
    i32 58, label %122
    i32 63, label %126
  ]

36:                                               ; preds = %34
  %37 = load ptr, ptr @optarg, align 8, !tbaa !9
  %38 = load i16, ptr @gradient1, align 2, !tbaa !11
  %39 = call i32 @set_color(ptr noundef @color, ptr noundef @baseColor, ptr noundef %37, i16 noundef signext %38)
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %42, label %41

41:                                               ; preds = %36
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %132

42:                                               ; preds = %36
  br label %130

43:                                               ; preds = %34
  %44 = load ptr, ptr @optarg, align 8, !tbaa !9
  %45 = load i16, ptr @gradient1, align 2, !tbaa !11
  %46 = call i32 @set_color(ptr noundef @color2, ptr noundef @baseColor2, ptr noundef %44, i16 noundef signext %45)
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %49, label %48

48:                                               ; preds = %43
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %132

49:                                               ; preds = %43
  %50 = load i16, ptr @gradient1, align 2, !tbaa !11
  store i16 %50, ptr @gradient2, align 2, !tbaa !11
  br label %130

51:                                               ; preds = %34
  %52 = load ptr, ptr @optarg, align 8, !tbaa !9
  %53 = call i32 @atoi(ptr noundef %52) #6
  %54 = trunc i32 %53 to i16
  store i16 %54, ptr @speedMult, align 2, !tbaa !11
  %55 = load i16, ptr @speedMult, align 2, !tbaa !11
  %56 = sext i16 %55 to i32
  %57 = icmp sgt i32 %56, 10
  br i1 %57, label %62, label %58

58:                                               ; preds = %51
  %59 = load i16, ptr @speedMult, align 2, !tbaa !11
  %60 = sext i16 %59 to i32
  %61 = icmp sle i32 %60, 0
  br i1 %61, label %62, label %64

62:                                               ; preds = %58, %51
  %63 = call i32 (ptr, ...) @printf(ptr noundef @.str.31)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %132

64:                                               ; preds = %58
  br label %130

65:                                               ; preds = %34
  %66 = load ptr, ptr @optarg, align 8, !tbaa !9
  %67 = call i32 @atoi(ptr noundef %66) #6
  %68 = trunc i32 %67 to i16
  store i16 %68, ptr @rim, align 2, !tbaa !11
  %69 = load i16, ptr @rim, align 2, !tbaa !11
  %70 = sext i16 %69 to i32
  %71 = icmp sgt i32 %70, 5
  br i1 %71, label %76, label %72

72:                                               ; preds = %65
  %73 = load i16, ptr @rim, align 2, !tbaa !11
  %74 = sext i16 %73 to i32
  %75 = icmp slt i32 %74, 1
  br i1 %75, label %76, label %78

76:                                               ; preds = %72, %65
  %77 = call i32 (ptr, ...) @printf(ptr noundef @.str.32)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %132

78:                                               ; preds = %72
  br label %130

79:                                               ; preds = %34
  %80 = load ptr, ptr @optarg, align 8, !tbaa !9
  %81 = call i32 @atoi(ptr noundef %80) #6
  %82 = mul nsw i32 %81, 5
  %83 = add nsw i32 100, %82
  %84 = sitofp i32 %83 to float
  store float %84, ptr @radiusIn, align 4, !tbaa !15
  %85 = load float, ptr @radiusIn, align 4, !tbaa !15
  %86 = fcmp ogt float %85, 1.500000e+02
  br i1 %86, label %90, label %87

87:                                               ; preds = %79
  %88 = load float, ptr @radiusIn, align 4, !tbaa !15
  %89 = fcmp olt float %88, 1.000000e+02
  br i1 %89, label %90, label %92

90:                                               ; preds = %87, %79
  %91 = call i32 (ptr, ...) @printf(ptr noundef @.str.33)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %132

92:                                               ; preds = %87
  br label %130

93:                                               ; preds = %34
  %94 = load ptr, ptr @optarg, align 8, !tbaa !9
  %95 = call i32 @atoi(ptr noundef %94) #6
  store i32 %95, ptr @nballs, align 4, !tbaa !5
  %96 = load i32, ptr @nballs, align 4, !tbaa !5
  %97 = icmp sgt i32 %96, 20
  br i1 %97, label %101, label %98

98:                                               ; preds = %93
  %99 = load i32, ptr @nballs, align 4, !tbaa !5
  %100 = icmp slt i32 %99, 5
  br i1 %100, label %101, label %103

101:                                              ; preds = %98, %93
  %102 = call i32 (ptr, ...) @printf(ptr noundef @.str.34, i32 noundef 5, i32 noundef 20)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %132

103:                                              ; preds = %98
  br label %130

104:                                              ; preds = %34
  %105 = load ptr, ptr @optarg, align 8, !tbaa !9
  store ptr %105, ptr @custom, align 8, !tbaa !9
  br label %130

106:                                              ; preds = %34
  store i16 1, ptr @contained, align 2, !tbaa !11
  br label %130

107:                                              ; preds = %34
  %108 = load ptr, ptr @optarg, align 8, !tbaa !9
  %109 = call i32 @atoi(ptr noundef %108) #6
  %110 = trunc i32 %109 to i16
  store i16 %110, ptr @party, align 2, !tbaa !11
  %111 = load i16, ptr @party, align 2, !tbaa !11
  %112 = sext i16 %111 to i32
  %113 = icmp slt i32 %112, 0
  br i1 %113, label %118, label %114

114:                                              ; preds = %107
  %115 = load i16, ptr @party, align 2, !tbaa !11
  %116 = sext i16 %115 to i32
  %117 = icmp sgt i32 %116, 3
  br i1 %117, label %118, label %120

118:                                              ; preds = %114, %107
  %119 = call i32 (ptr, ...) @printf(ptr noundef @.str.35)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %132

120:                                              ; preds = %114
  br label %130

121:                                              ; preds = %34
  call void @print_help()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %132

122:                                              ; preds = %34
  %123 = load ptr, ptr @stderr, align 8, !tbaa !9
  %124 = load i32, ptr @optopt, align 4, !tbaa !5
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %123, ptr noundef @.str.36, i32 noundef %124) #5
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %132

126:                                              ; preds = %34
  %127 = load ptr, ptr @stderr, align 8, !tbaa !9
  %128 = load i32, ptr @optopt, align 4, !tbaa !5
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %127, ptr noundef @.str.37, i32 noundef %128) #5
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %132

130:                                              ; preds = %120, %106, %104, %103, %92, %78, %64, %49, %42, %34, %34
  br label %29, !llvm.loop !17

131:                                              ; preds = %29
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %132

132:                                              ; preds = %131, %126, %122, %121, %118, %101, %90, %76, %62, %48, %41, %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %133

133:                                              ; preds = %132, %10
  %134 = load i32, ptr %3, align 4
  ret i32 %134
}

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

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

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #4

; Function Attrs: nounwind uwtable
declare dso_local void @print_help() #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 "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 = { 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 #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, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = distinct !{!17, !14}


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

@gradient1 = external dso_local local_unnamed_addr global i16, align 2
@gradient2 = external dso_local local_unnamed_addr global i16, align 2
@nballs = external hidden local_unnamed_addr global i32, align 4
@custom = external hidden local_unnamed_addr global ptr, align 8
@color2 = external hidden global i16, align 2
@rim = external hidden local_unnamed_addr global i16, align 2
@color = external hidden global i16, align 2
@party = external hidden local_unnamed_addr global i16, align 2
@speedMult = external hidden local_unnamed_addr global i16, align 2
@radiusIn = external hidden local_unnamed_addr global float, align 4
@contained = external hidden local_unnamed_addr global i16, align 2
@optind = external local_unnamed_addr global i32, align 4
@.str.29 = external hidden unnamed_addr constant [21 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.30 = external hidden unnamed_addr constant [41 x i8], align 1
@baseColor = external dso_local global [3 x i32], align 4
@optarg = external local_unnamed_addr global ptr, align 8
@baseColor2 = external dso_local global [3 x i32], align 4
@.str.31 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [32 x i8], align 1
@optopt = external local_unnamed_addr global i32, align 4
@.str.37 = external hidden unnamed_addr constant [26 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @tb_has_truecolor() local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @parse_options(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = icmp eq i32 %0, 1
  br i1 %3, label %.loopexit, label %4

4:                                                ; preds = %2
  store i32 1, ptr @optind, align 4, !tbaa !5
  br label %5

5:                                                ; preds = %5, %4
  %6 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.29) #4
  switch i32 %6, label %5 [
    i32 -1, label %.loopexit27
    i32 103, label %7
  ]

7:                                                ; preds = %5
  store i16 1, ptr @gradient1, align 2, !tbaa !9
  %8 = tail call i32 @tb_has_truecolor()
  %.not22 = icmp eq i32 %8, 0
  br i1 %.not22, label %9, label %.loopexit27

9:                                                ; preds = %7
  %10 = load ptr, ptr @stderr, align 8, !tbaa !11
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str.30) #5
  br label %.loopexit

.loopexit27:                                      ; preds = %5, %7
  store i32 1, ptr @optind, align 4, !tbaa !5
  br label %12

12:                                               ; preds = %.backedge, %.loopexit27
  %13 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.29) #4
  switch i32 %13, label %.backedge [
    i32 -1, label %.loopexit
    i32 99, label %14
    i32 107, label %18
    i32 115, label %24
    i32 82, label %32
    i32 114, label %40
    i32 98, label %48
    i32 70, label %54
    i32 67, label %56
    i32 112, label %57
    i32 104, label %64
    i32 63, label %69
    i32 58, label %65
  ]

.backedge:                                        ; preds = %12, %57, %48, %40, %32, %24, %14, %56, %54, %22
  br label %12, !llvm.loop !13

14:                                               ; preds = %12
  %15 = load ptr, ptr @optarg, align 8, !tbaa !11
  %16 = load i16, ptr @gradient1, align 2, !tbaa !9
  %17 = tail call i32 @set_color(ptr noundef nonnull @color, ptr noundef nonnull @baseColor, ptr noundef %15, i16 noundef signext %16)
  %.not26 = icmp eq i32 %17, 0
  br i1 %.not26, label %.loopexit, label %.backedge

18:                                               ; preds = %12
  %19 = load ptr, ptr @optarg, align 8, !tbaa !11
  %20 = load i16, ptr @gradient1, align 2, !tbaa !9
  %21 = tail call i32 @set_color(ptr noundef nonnull @color2, ptr noundef nonnull @baseColor2, ptr noundef %19, i16 noundef signext %20)
  %.not25 = icmp eq i32 %21, 0
  br i1 %.not25, label %.loopexit, label %22

22:                                               ; preds = %18
  %23 = load i16, ptr @gradient1, align 2, !tbaa !9
  store i16 %23, ptr @gradient2, align 2, !tbaa !9
  br label %.backedge

24:                                               ; preds = %12
  %25 = load ptr, ptr @optarg, align 8, !tbaa !11
  %26 = tail call i32 @atoi(ptr nocapture noundef %25) #6
  %27 = trunc i32 %26 to i16
  store i16 %27, ptr @speedMult, align 2, !tbaa !9
  %sext24 = shl i32 %26, 16
  %28 = ashr exact i32 %sext24, 16
  %29 = add nsw i32 %28, -11
  %or.cond = icmp ult i32 %29, -10
  br i1 %or.cond, label %30, label %.backedge

30:                                               ; preds = %24
  %31 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.31)
  br label %.loopexit

32:                                               ; preds = %12
  %33 = load ptr, ptr @optarg, align 8, !tbaa !11
  %34 = tail call i32 @atoi(ptr nocapture noundef %33) #6
  %35 = trunc i32 %34 to i16
  store i16 %35, ptr @rim, align 2, !tbaa !9
  %sext = shl i32 %34, 16
  %36 = ashr exact i32 %sext, 16
  %37 = add nsw i32 %36, -6
  %or.cond5 = icmp ult i32 %37, -5
  br i1 %or.cond5, label %38, label %.backedge

38:                                               ; preds = %32
  %39 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.32)
  br label %.loopexit

40:                                               ; preds = %12
  %41 = load ptr, ptr @optarg, align 8, !tbaa !11
  %42 = tail call i32 @atoi(ptr nocapture noundef %41) #6
  %43 = mul nsw i32 %42, 5
  %44 = add nsw i32 %43, 100
  %45 = sitofp i32 %44 to float
  store float %45, ptr @radiusIn, align 4, !tbaa !15
  %or.cond7 = icmp ugt i32 %42, 10
  br i1 %or.cond7, label %46, label %.backedge

46:                                               ; preds = %40
  %47 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.33)
  br label %.loopexit

48:                                               ; preds = %12
  %49 = load ptr, ptr @optarg, align 8, !tbaa !11
  %50 = tail call i32 @atoi(ptr nocapture noundef %49) #6
  store i32 %50, ptr @nballs, align 4, !tbaa !5
  %51 = add i32 %50, -21
  %or.cond9 = icmp ult i32 %51, -16
  br i1 %or.cond9, label %52, label %.backedge

52:                                               ; preds = %48
  %53 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.34, i32 noundef 5, i32 noundef 20)
  br label %.loopexit

54:                                               ; preds = %12
  %55 = load ptr, ptr @optarg, align 8, !tbaa !11
  store ptr %55, ptr @custom, align 8, !tbaa !11
  br label %.backedge

56:                                               ; preds = %12
  store i16 1, ptr @contained, align 2, !tbaa !9
  br label %.backedge

57:                                               ; preds = %12
  %58 = load ptr, ptr @optarg, align 8, !tbaa !11
  %59 = tail call i32 @atoi(ptr nocapture noundef %58) #6
  %60 = trunc i32 %59 to i16
  store i16 %60, ptr @party, align 2, !tbaa !9
  %61 = and i32 %59, 65532
  %or.cond12.not = icmp eq i32 %61, 0
  br i1 %or.cond12.not, label %.backedge, label %62

62:                                               ; preds = %57
  %63 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.35)
  br label %.loopexit

64:                                               ; preds = %12
  tail call void @print_help()
  br label %.loopexit

65:                                               ; preds = %12
  %66 = load ptr, ptr @stderr, align 8, !tbaa !11
  %67 = load i32, ptr @optopt, align 4, !tbaa !5
  %68 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef nonnull @.str.36, i32 noundef %67) #5
  br label %.loopexit

69:                                               ; preds = %12
  %70 = load ptr, ptr @stderr, align 8, !tbaa !11
  %71 = load i32, ptr @optopt, align 4, !tbaa !5
  %72 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef nonnull @.str.37, i32 noundef %71) #5
  br label %.loopexit

.loopexit:                                        ; preds = %14, %18, %12, %9, %30, %38, %46, %52, %62, %64, %65, %69, %2
  %.1 = phi i32 [ 1, %2 ], [ 0, %65 ], [ 0, %69 ], [ 0, %64 ], [ 0, %62 ], [ 0, %52 ], [ 0, %46 ], [ 0, %38 ], [ 0, %30 ], [ 0, %9 ], [ 1, %12 ], [ 0, %18 ], [ 0, %14 ]
  ret i32 %.1
}

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local void @print_help() 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 = { 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 #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 = { 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 #4 = { nounwind }
attributes #5 = { cold 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 = !{!"short", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}


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