; LLVM IR from masyagin1998/GCI :: src (interpreter)

; 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.option = type { ptr, i32, ptr, i32 }
%struct.INTERPRETER_PARAMS = type { [1024 x i8], [1024 x i8], i32, i64, i64 }

@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@__const.parse_args.opts = external hidden unnamed_addr constant [8 x %struct.option], align 16
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@optarg = external global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [6 x i8], align 1
@stderr = external global ptr, align 8
@.str.14 = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @parse_args(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [8 x %struct.option], align 16
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %7) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.parse_args.opts, i64 256, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %10 = load ptr, ptr %6, align 8, !tbaa !9
  %11 = getelementptr inbounds %struct.INTERPRETER_PARAMS, ptr %10, i32 0, i32 0
  %12 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  store i8 0, ptr %12, align 8, !tbaa !11
  %13 = load ptr, ptr %6, align 8, !tbaa !9
  %14 = getelementptr inbounds %struct.INTERPRETER_PARAMS, ptr %13, i32 0, i32 1
  %15 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %16 = call ptr @strncpy(ptr noundef %15, ptr noundef @.str.7, i64 noundef 1024) #7
  %17 = load ptr, ptr %6, align 8, !tbaa !9
  %18 = getelementptr inbounds %struct.INTERPRETER_PARAMS, ptr %17, i32 0, i32 2
  store i32 3, ptr %18, align 8, !tbaa !12
  %19 = load ptr, ptr %6, align 8, !tbaa !9
  %20 = getelementptr inbounds %struct.INTERPRETER_PARAMS, ptr %19, i32 0, i32 3
  store i64 1024, ptr %20, align 8, !tbaa !15
  %21 = load ptr, ptr %6, align 8, !tbaa !9
  %22 = getelementptr inbounds %struct.INTERPRETER_PARAMS, ptr %21, i32 0, i32 4
  store i64 1048576, ptr %22, align 8, !tbaa !16
  br label %23

23:                                               ; preds = %124, %3
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = load ptr, ptr %5, align 8, !tbaa !9
  %26 = getelementptr inbounds [8 x %struct.option], ptr %7, i64 0, i64 0
  %27 = call i32 @getopt_long(i32 noundef %24, ptr noundef %25, ptr noundef @.str.8, ptr noundef %26, ptr noundef %9) #7
  store i32 %27, ptr %8, align 4, !tbaa !5
  %28 = icmp ne i32 %27, -1
  br i1 %28, label %29, label %125

29:                                               ; preds = %23
  %30 = load i32, ptr %8, align 4, !tbaa !5
  switch i32 %30, label %123 [
    i32 118, label %31
    i32 104, label %35
    i32 105, label %39
    i32 111, label %45
    i32 109, label %51
    i32 0, label %95
  ]

31:                                               ; preds = %29
  %32 = load ptr, ptr %5, align 8, !tbaa !9
  %33 = getelementptr inbounds ptr, ptr %32, i64 0
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  call void @print_version(ptr noundef %34)
  br label %124

35:                                               ; preds = %29
  %36 = load ptr, ptr %5, align 8, !tbaa !9
  %37 = getelementptr inbounds ptr, ptr %36, i64 0
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  call void @print_help(ptr noundef %38)
  br label %124

39:                                               ; preds = %29
  %40 = load ptr, ptr %6, align 8, !tbaa !9
  %41 = getelementptr inbounds %struct.INTERPRETER_PARAMS, ptr %40, i32 0, i32 0
  %42 = getelementptr inbounds [1024 x i8], ptr %41, i64 0, i64 0
  %43 = load ptr, ptr @optarg, align 8, !tbaa !9
  %44 = call ptr @strncpy(ptr noundef %42, ptr noundef %43, i64 noundef 1024) #7
  br label %124

45:                                               ; preds = %29
  %46 = load ptr, ptr %6, align 8, !tbaa !9
  %47 = getelementptr inbounds %struct.INTERPRETER_PARAMS, ptr %46, i32 0, i32 1
  %48 = getelementptr inbounds [1024 x i8], ptr %47, i64 0, i64 0
  %49 = load ptr, ptr @optarg, align 8, !tbaa !9
  %50 = call ptr @strncpy(ptr noundef %48, ptr noundef %49, i64 noundef 1024) #7
  br label %124

51:                                               ; preds = %29
  %52 = load ptr, ptr @optarg, align 8, !tbaa !9
  %53 = call i32 @strcmp(ptr noundef %52, ptr noundef @.str.9) #8
  %54 = icmp eq i32 %53, 0
  br i1 %54, label %55, label %58

55:                                               ; preds = %51
  %56 = load ptr, ptr %6, align 8, !tbaa !9
  %57 = getelementptr inbounds %struct.INTERPRETER_PARAMS, ptr %56, i32 0, i32 2
  store i32 0, ptr %57, align 8, !tbaa !12
  br label %94

58:                                               ; preds = %51
  %59 = load ptr, ptr @optarg, align 8, !tbaa !9
  %60 = call i32 @strcmp(ptr noundef %59, ptr noundef @.str.10) #8
  %61 = icmp eq i32 %60, 0
  br i1 %61, label %62, label %65

62:                                               ; preds = %58
  %63 = load ptr, ptr %6, align 8, !tbaa !9
  %64 = getelementptr inbounds %struct.INTERPRETER_PARAMS, ptr %63, i32 0, i32 2
  store i32 1, ptr %64, align 8, !tbaa !12
  br label %93

65:                                               ; preds = %58
  %66 = load ptr, ptr @optarg, align 8, !tbaa !9
  %67 = call i32 @strcmp(ptr noundef %66, ptr noundef @.str.11) #8
  %68 = icmp eq i32 %67, 0
  br i1 %68, label %69, label %72

69:                                               ; preds = %65
  %70 = load ptr, ptr %6, align 8, !tbaa !9
  %71 = getelementptr inbounds %struct.INTERPRETER_PARAMS, ptr %70, i32 0, i32 2
  store i32 2, ptr %71, align 8, !tbaa !12
  br label %92

72:                                               ; preds = %65
  %73 = load ptr, ptr @optarg, align 8, !tbaa !9
  %74 = call i32 @strcmp(ptr noundef %73, ptr noundef @.str.12) #8
  %75 = icmp eq i32 %74, 0
  br i1 %75, label %76, label %79

76:                                               ; preds = %72
  %77 = load ptr, ptr %6, align 8, !tbaa !9
  %78 = getelementptr inbounds %struct.INTERPRETER_PARAMS, ptr %77, i32 0, i32 2
  store i32 3, ptr %78, align 8, !tbaa !12
  br label %91

79:                                               ; preds = %72
  %80 = load ptr, ptr @optarg, align 8, !tbaa !9
  %81 = call i32 @strcmp(ptr noundef %80, ptr noundef @.str.13) #8
  %82 = icmp eq i32 %81, 0
  br i1 %82, label %83, label %86

83:                                               ; preds = %79
  %84 = load ptr, ptr %6, align 8, !tbaa !9
  %85 = getelementptr inbounds %struct.INTERPRETER_PARAMS, ptr %84, i32 0, i32 2
  store i32 4, ptr %85, align 8, !tbaa !12
  br label %90

86:                                               ; preds = %79
  %87 = load ptr, ptr @stderr, align 8, !tbaa !9
  %88 = load ptr, ptr @optarg, align 8, !tbaa !9
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %87, ptr noundef @.str.14, ptr noundef %88) #7
  call void @exit(i32 noundef 1) #9
  unreachable

90:                                               ; preds = %83
  br label %91

91:                                               ; preds = %90, %76
  br label %92

92:                                               ; preds = %91, %69
  br label %93

93:                                               ; preds = %92, %62
  br label %94

94:                                               ; preds = %93, %55
  br label %124

95:                                               ; preds = %29
  %96 = load i32, ptr %9, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [8 x %struct.option], ptr %7, i64 0, i64 %97
  %99 = getelementptr inbounds %struct.option, ptr %98, i32 0, i32 0
  %100 = load ptr, ptr %99, align 16, !tbaa !17
  %101 = call i32 @strcmp(ptr noundef @.str.5, ptr noundef %100) #8
  %102 = icmp eq i32 %101, 0
  br i1 %102, label %103, label %108

103:                                              ; preds = %95
  %104 = load ptr, ptr @optarg, align 8, !tbaa !9
  %105 = call i64 @atoll(ptr noundef %104) #8
  %106 = load ptr, ptr %6, align 8, !tbaa !9
  %107 = getelementptr inbounds %struct.INTERPRETER_PARAMS, ptr %106, i32 0, i32 3
  store i64 %105, ptr %107, align 8, !tbaa !15
  br label %122

108:                                              ; preds = %95
  %109 = load i32, ptr %9, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [8 x %struct.option], ptr %7, i64 0, i64 %110
  %112 = getelementptr inbounds %struct.option, ptr %111, i32 0, i32 0
  %113 = load ptr, ptr %112, align 16, !tbaa !17
  %114 = call i32 @strcmp(ptr noundef @.str.6, ptr noundef %113) #8
  %115 = icmp eq i32 %114, 0
  br i1 %115, label %116, label %121

116:                                              ; preds = %108
  %117 = load ptr, ptr @optarg, align 8, !tbaa !9
  %118 = call i64 @atoll(ptr noundef %117) #8
  %119 = load ptr, ptr %6, align 8, !tbaa !9
  %120 = getelementptr inbounds %struct.INTERPRETER_PARAMS, ptr %119, i32 0, i32 4
  store i64 %118, ptr %120, align 8, !tbaa !16
  br label %121

121:                                              ; preds = %116, %108
  br label %122

122:                                              ; preds = %121, %103
  br label %123

123:                                              ; preds = %122, %29
  br label %124

124:                                              ; preds = %123, %94, %45, %39, %35, %31
  br label %23, !llvm.loop !19

125:                                              ; preds = %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 256, ptr %7) #7
  ret i32 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

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

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i64 @atoll(ptr noundef nonnull) #6

; 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #5 = { noreturn 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 #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 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { noreturn 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !6, i64 2048}
!13 = !{!"INTERPRETER_PARAMS", !7, i64 0, !7, i64 1024, !6, i64 2048, !14, i64 2056, !14, i64 2064}
!14 = !{!"long", !7, i64 0}
!15 = !{!13, !14, i64 2056}
!16 = !{!13, !14, i64 2064}
!17 = !{!18, !10, i64 0}
!18 = !{!"option", !10, i64 0, !6, i64 8, !10, i64 16, !6, i64 24}
!19 = distinct !{!19, !20}
!20 = !{!"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"

%struct.option = type { ptr, i32, ptr, i32 }

@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@__const.parse_args.opts = external hidden unnamed_addr constant [8 x %struct.option], align 16
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [6 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.14 = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @parse_args(i32 noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = alloca [8 x %struct.option], align 16
  %5 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %4) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(256) %4, ptr noundef nonnull align 16 dereferenceable(256) @__const.parse_args.opts, i64 256, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  store i8 0, ptr %2, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %2, i64 1024
  %7 = tail call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.7, i64 noundef 1024) #9
  %8 = getelementptr inbounds i8, ptr %2, i64 2048
  store i32 3, ptr %8, align 8, !tbaa !8
  %9 = getelementptr inbounds i8, ptr %2, i64 2056
  store i64 1024, ptr %9, align 8, !tbaa !12
  %10 = getelementptr inbounds i8, ptr %2, i64 2064
  store i64 1048576, ptr %10, align 8, !tbaa !13
  br label %11

11:                                               ; preds = %.backedge, %3
  %12 = call i32 @getopt_long(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.8, ptr noundef nonnull %4, ptr noundef nonnull %5) #9
  switch i32 %12, label %.backedge [
    i32 -1, label %63
    i32 118, label %13
    i32 104, label %15
    i32 105, label %17
    i32 111, label %20
    i32 109, label %23
    i32 0, label %47
  ]

.backedge:                                        ; preds = %11, %57, %60, %54, %27, %35, %43, %39, %31, %20, %17, %15, %13
  br label %11, !llvm.loop !14

13:                                               ; preds = %11
  %14 = load ptr, ptr %1, align 8, !tbaa !16
  call void @print_version(ptr noundef %14)
  br label %.backedge

15:                                               ; preds = %11
  %16 = load ptr, ptr %1, align 8, !tbaa !16
  call void @print_help(ptr noundef %16)
  br label %.backedge

17:                                               ; preds = %11
  %18 = load ptr, ptr @optarg, align 8, !tbaa !16
  %19 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) %18, i64 noundef 1024) #9
  br label %.backedge

20:                                               ; preds = %11
  %21 = load ptr, ptr @optarg, align 8, !tbaa !16
  %22 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %21, i64 noundef 1024) #9
  br label %.backedge

23:                                               ; preds = %11
  %24 = load ptr, ptr @optarg, align 8, !tbaa !16
  %25 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %24, ptr noundef nonnull dereferenceable(1) @.str.9) #10
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %27, label %28

27:                                               ; preds = %23
  store i32 0, ptr %8, align 8, !tbaa !8
  br label %.backedge

28:                                               ; preds = %23
  %29 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %24, ptr noundef nonnull dereferenceable(1) @.str.10) #10
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %32

31:                                               ; preds = %28
  store i32 1, ptr %8, align 8, !tbaa !8
  br label %.backedge

32:                                               ; preds = %28
  %33 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %24, ptr noundef nonnull dereferenceable(1) @.str.11) #10
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %35, label %36

35:                                               ; preds = %32
  store i32 2, ptr %8, align 8, !tbaa !8
  br label %.backedge

36:                                               ; preds = %32
  %37 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %24, ptr noundef nonnull dereferenceable(1) @.str.12) #10
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %40

39:                                               ; preds = %36
  store i32 3, ptr %8, align 8, !tbaa !8
  br label %.backedge

40:                                               ; preds = %36
  %41 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %24, ptr noundef nonnull dereferenceable(1) @.str.13) #10
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %43, label %44

43:                                               ; preds = %40
  store i32 4, ptr %8, align 8, !tbaa !8
  br label %.backedge

44:                                               ; preds = %40
  %45 = load ptr, ptr @stderr, align 8, !tbaa !16
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull @.str.14, ptr noundef %24) #11
  call void @exit(i32 noundef 1) #12
  unreachable

47:                                               ; preds = %11
  %48 = load i32, ptr %5, align 4, !tbaa !18
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [8 x %struct.option], ptr %4, i64 0, i64 %49
  %51 = load ptr, ptr %50, align 16, !tbaa !19
  %52 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.5, ptr noundef nonnull dereferenceable(1) %51) #10
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %54, label %57

54:                                               ; preds = %47
  %55 = load ptr, ptr @optarg, align 8, !tbaa !16
  %56 = call i64 @atoll(ptr nocapture noundef %55) #10
  store i64 %56, ptr %9, align 8, !tbaa !12
  br label %.backedge

57:                                               ; preds = %47
  %58 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef nonnull dereferenceable(1) %51) #10
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %60, label %.backedge

60:                                               ; preds = %57
  %61 = load ptr, ptr @optarg, align 8, !tbaa !16
  %62 = call i64 @atoll(ptr nocapture noundef %61) #10
  store i64 %62, ptr %10, align 8, !tbaa !13
  br label %.backedge

63:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %4) #9
  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 nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #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: nounwind
declare i32 @getopt_long(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i64 @atoll(ptr nocapture noundef nonnull) local_unnamed_addr #8

; 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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: 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 #6 = { 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 #7 = { noreturn 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { cold nounwind }
attributes #12 = { noreturn 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !10, i64 2048}
!9 = !{!"INTERPRETER_PARAMS", !6, i64 0, !6, i64 1024, !10, i64 2048, !11, i64 2056, !11, i64 2064}
!10 = !{!"int", !6, i64 0}
!11 = !{!"long", !6, i64 0}
!12 = !{!9, !11, i64 2056}
!13 = !{!9, !11, i64 2064}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !17, i64 0}
!17 = !{!"any pointer", !6, i64 0}
!18 = !{!10, !10, i64 0}
!19 = !{!20, !17, i64 0}
!20 = !{!"option", !17, i64 0, !10, i64 8, !17, i64 16, !10, i64 24}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass