; LLVM IR from huawei-noah/bolt :: inference/examples/c_api (c_test)

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

@modelPath = external dso_local global ptr, align 8
@inputDataPath = external dso_local global ptr, align 8
@affinity = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@affinityPolicyName = external dso_local global ptr, align 8
@algorithmMapPath = external dso_local global ptr, align 8
@loopTime = external dso_local global i32, align 4
@warmUp = external dso_local global i32, align 4
@threadsNum = external dso_local global i32, align 4
@useFileStream = external dso_local global i32, align 4
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [44 x i8], align 1
@optarg = external global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [44 x i8], align 1
@stdout = external global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [4 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 void @PrintHelp() #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @ParseOptions(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
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  %10 = load i32, ptr %4, align 4, !tbaa !5
  %11 = icmp slt i32 %10, 2
  br i1 %11, label %12, label %13

12:                                               ; preds = %2
  call void @PrintHelp()
  store i32 1, ptr %3, align 4
  br label %138

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

14:                                               ; preds = %53, %13
  %15 = load i32, ptr %6, align 4, !tbaa !5
  %16 = load i32, ptr %4, align 4, !tbaa !5
  %17 = icmp slt i32 %15, %16
  br i1 %17, label %19, label %18

18:                                               ; preds = %14
  store i32 2, ptr %7, align 4
  br label %56

19:                                               ; preds = %14
  %20 = load ptr, ptr %5, align 8, !tbaa !9
  %21 = load i32, ptr %6, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds ptr, ptr %20, i64 %22
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = call i32 @strcmp(ptr noundef %24, ptr noundef @.str.2) #7
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %51, label %27

27:                                               ; preds = %19
  %28 = load ptr, ptr %5, align 8, !tbaa !9
  %29 = load i32, ptr %6, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds ptr, ptr %28, i64 %30
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  %33 = call i32 @strcmp(ptr noundef %32, ptr noundef @.str.3) #7
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %51, label %35

35:                                               ; preds = %27
  %36 = load ptr, ptr %5, align 8, !tbaa !9
  %37 = load i32, ptr %6, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds ptr, ptr %36, i64 %38
  %40 = load ptr, ptr %39, align 8, !tbaa !9
  %41 = call i32 @strcmp(ptr noundef %40, ptr noundef @.str.4) #7
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %51, label %43

43:                                               ; preds = %35
  %44 = load ptr, ptr %5, align 8, !tbaa !9
  %45 = load i32, ptr %6, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds ptr, ptr %44, i64 %46
  %48 = load ptr, ptr %47, align 8, !tbaa !9
  %49 = call i32 @strcmp(ptr noundef %48, ptr noundef @.str.5) #7
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %51, label %52

51:                                               ; preds = %43, %35, %27, %19
  call void @PrintHelp()
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %56

52:                                               ; preds = %43
  br label %53

53:                                               ; preds = %52
  %54 = load i32, ptr %6, align 4, !tbaa !5
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %6, align 4, !tbaa !5
  br label %14, !llvm.loop !11

56:                                               ; preds = %51, %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %57 = load i32, ptr %7, align 4
  switch i32 %57, label %140 [
    i32 2, label %58
    i32 1, label %138
  ]

58:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store ptr @.str.6, ptr %9, align 8, !tbaa !9
  br label %59

59:                                               ; preds = %104, %58
  %60 = load i32, ptr %4, align 4, !tbaa !5
  %61 = load ptr, ptr %5, align 8, !tbaa !9
  %62 = load ptr, ptr %9, align 8, !tbaa !9
  %63 = call i32 @getopt(i32 noundef %60, ptr noundef %61, ptr noundef %62) #6
  store i32 %63, ptr %8, align 4, !tbaa !5
  %64 = icmp ne i32 %63, -1
  br i1 %64, label %65, label %105

65:                                               ; preds = %59
  %66 = load i32, ptr %8, align 4, !tbaa !5
  switch i32 %66, label %103 [
    i32 109, label %67
    i32 105, label %71
    i32 97, label %75
    i32 108, label %79
    i32 119, label %84
    i32 116, label %89
    i32 112, label %94
    i32 102, label %98
  ]

67:                                               ; preds = %65
  %68 = load ptr, ptr @optarg, align 8, !tbaa !9
  %69 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %68)
  %70 = load ptr, ptr @optarg, align 8, !tbaa !9
  store ptr %70, ptr @modelPath, align 8, !tbaa !9
  br label %104

71:                                               ; preds = %65
  %72 = load ptr, ptr @optarg, align 8, !tbaa !9
  %73 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %72)
  %74 = load ptr, ptr @optarg, align 8, !tbaa !9
  store ptr %74, ptr @inputDataPath, align 8, !tbaa !9
  br label %104

75:                                               ; preds = %65
  %76 = load ptr, ptr @optarg, align 8, !tbaa !9
  %77 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %76)
  %78 = load ptr, ptr @optarg, align 8, !tbaa !9
  store ptr %78, ptr @affinityPolicyName, align 8, !tbaa !9
  br label %104

79:                                               ; preds = %65
  %80 = load ptr, ptr @optarg, align 8, !tbaa !9
  %81 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %80)
  %82 = load ptr, ptr @optarg, align 8, !tbaa !9
  %83 = call i32 @atoi(ptr noundef %82) #7
  store i32 %83, ptr @loopTime, align 4, !tbaa !5
  br label %104

84:                                               ; preds = %65
  %85 = load ptr, ptr @optarg, align 8, !tbaa !9
  %86 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef %85)
  %87 = load ptr, ptr @optarg, align 8, !tbaa !9
  %88 = call i32 @atoi(ptr noundef %87) #7
  store i32 %88, ptr @warmUp, align 4, !tbaa !5
  br label %104

89:                                               ; preds = %65
  %90 = load ptr, ptr @optarg, align 8, !tbaa !9
  %91 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, ptr noundef %90)
  %92 = load ptr, ptr @optarg, align 8, !tbaa !9
  %93 = call i32 @atoi(ptr noundef %92) #7
  store i32 %93, ptr @threadsNum, align 4, !tbaa !5
  br label %104

94:                                               ; preds = %65
  %95 = load ptr, ptr @optarg, align 8, !tbaa !9
  %96 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, ptr noundef %95)
  %97 = load ptr, ptr @optarg, align 8, !tbaa !9
  store ptr %97, ptr @algorithmMapPath, align 8, !tbaa !9
  br label %104

98:                                               ; preds = %65
  %99 = load ptr, ptr @optarg, align 8, !tbaa !9
  %100 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, ptr noundef %99)
  %101 = load ptr, ptr @optarg, align 8, !tbaa !9
  %102 = call i32 @atoi(ptr noundef %101) #7
  store i32 %102, ptr @useFileStream, align 4, !tbaa !5
  br label %104

103:                                              ; preds = %65
  call void @PrintHelp()
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %137

104:                                              ; preds = %98, %94, %89, %84, %79, %75, %71, %67
  br label %59, !llvm.loop !13

105:                                              ; preds = %59
  %106 = load ptr, ptr @stdout, align 8, !tbaa !9
  %107 = call i32 @fflush(ptr noundef %106)
  %108 = load ptr, ptr @modelPath, align 8, !tbaa !9
  %109 = icmp eq ptr %108, null
  br i1 %109, label %110, label %112

110:                                              ; preds = %105
  %111 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  call void @PrintHelp()
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %137

112:                                              ; preds = %105
  %113 = load ptr, ptr @affinityPolicyName, align 8, !tbaa !9
  %114 = call i32 @strcmp(ptr noundef %113, ptr noundef @.str.16) #7
  %115 = icmp eq i32 %114, 0
  br i1 %115, label %116, label %117

116:                                              ; preds = %112
  store i32 0, ptr @affinity, align 4, !tbaa !5
  br label %136

117:                                              ; preds = %112
  %118 = load ptr, ptr @affinityPolicyName, align 8, !tbaa !9
  %119 = call i32 @strcmp(ptr noundef %118, ptr noundef @.str.17) #7
  %120 = icmp eq i32 %119, 0
  br i1 %120, label %121, label %122

121:                                              ; preds = %117
  store i32 1, ptr @affinity, align 4, !tbaa !5
  br label %135

122:                                              ; preds = %117
  %123 = load ptr, ptr @affinityPolicyName, align 8, !tbaa !9
  %124 = call i32 @strcmp(ptr noundef %123, ptr noundef @.str) #7
  %125 = icmp eq i32 %124, 0
  br i1 %125, label %126, label %127

126:                                              ; preds = %122
  store i32 3, ptr @affinity, align 4, !tbaa !5
  br label %134

127:                                              ; preds = %122
  %128 = load ptr, ptr @affinityPolicyName, align 8, !tbaa !9
  %129 = call i32 @strcmp(ptr noundef %128, ptr noundef @.str.18) #7
  %130 = icmp eq i32 %129, 0
  br i1 %130, label %131, label %132

131:                                              ; preds = %127
  store i32 2, ptr @affinity, align 4, !tbaa !5
  br label %133

132:                                              ; preds = %127
  call void @PrintHelp()
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %137

133:                                              ; preds = %131
  br label %134

134:                                              ; preds = %133, %126
  br label %135

135:                                              ; preds = %134, %121
  br label %136

136:                                              ; preds = %135, %116
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %137

137:                                              ; preds = %136, %132, %110, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %138

138:                                              ; preds = %137, %56, %12
  %139 = load i32, ptr %3, align 4
  ret i32 %139

140:                                              ; preds = %56
  unreachable
}

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

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

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

declare i32 @fflush(ptr noundef) #2

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 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 = { 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 #6 = { nounwind }
attributes #7 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


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

@modelPath = external dso_local local_unnamed_addr global ptr, align 8
@inputDataPath = external dso_local local_unnamed_addr global ptr, align 8
@affinity = external dso_local local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@affinityPolicyName = external dso_local local_unnamed_addr global ptr, align 8
@algorithmMapPath = external dso_local local_unnamed_addr global ptr, align 8
@loopTime = external dso_local local_unnamed_addr global i32, align 4
@warmUp = external dso_local local_unnamed_addr global i32, align 4
@threadsNum = external dso_local local_unnamed_addr global i32, align 4
@useFileStream = external dso_local local_unnamed_addr global i32, align 4
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [44 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [44 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @PrintHelp() 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 @ParseOptions(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = icmp slt i32 %0, 2
  br i1 %3, label %4, label %.preheader23.preheader

.preheader23.preheader:                           ; preds = %2
  %wide.trip.count = zext nneg i32 %0 to i64
  br label %.preheader23

4:                                                ; preds = %2
  tail call void @PrintHelp()
  br label %82

5:                                                ; preds = %16
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader, label %.preheader23, !llvm.loop !5

.preheader23:                                     ; preds = %.preheader23.preheader, %5
  %indvars.iv = phi i64 [ 1, %.preheader23.preheader ], [ %indvars.iv.next, %5 ]
  %6 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv
  %7 = load ptr, ptr %6, align 8, !tbaa !7
  %8 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.2) #5
  %9 = icmp eq i32 %8, 0
  br i1 %9, label %.thread, label %10

10:                                               ; preds = %.preheader23
  %11 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.3) #5
  %12 = icmp eq i32 %11, 0
  br i1 %12, label %.thread, label %13

13:                                               ; preds = %10
  %14 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.4) #5
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %.thread, label %16

16:                                               ; preds = %13
  %17 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.5) #5
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %.thread, label %5

.thread:                                          ; preds = %.preheader23, %10, %13, %16
  tail call void @PrintHelp()
  br label %82

.preheader:                                       ; preds = %5, %.preheader.backedge
  %19 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.6) #6
  switch i32 %19, label %56 [
    i32 -1, label %57
    i32 109, label %20
    i32 105, label %24
    i32 97, label %28
    i32 108, label %32
    i32 119, label %37
    i32 116, label %42
    i32 112, label %47
    i32 102, label %51
  ]

20:                                               ; preds = %.preheader
  %21 = load ptr, ptr @optarg, align 8, !tbaa !7
  %22 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef %21)
  %23 = load ptr, ptr @optarg, align 8, !tbaa !7
  store ptr %23, ptr @modelPath, align 8, !tbaa !7
  br label %.preheader.backedge

24:                                               ; preds = %.preheader
  %25 = load ptr, ptr @optarg, align 8, !tbaa !7
  %26 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, ptr noundef %25)
  %27 = load ptr, ptr @optarg, align 8, !tbaa !7
  store ptr %27, ptr @inputDataPath, align 8, !tbaa !7
  br label %.preheader.backedge

28:                                               ; preds = %.preheader
  %29 = load ptr, ptr @optarg, align 8, !tbaa !7
  %30 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef %29)
  %31 = load ptr, ptr @optarg, align 8, !tbaa !7
  store ptr %31, ptr @affinityPolicyName, align 8, !tbaa !7
  br label %.preheader.backedge

32:                                               ; preds = %.preheader
  %33 = load ptr, ptr @optarg, align 8, !tbaa !7
  %34 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, ptr noundef %33)
  %35 = load ptr, ptr @optarg, align 8, !tbaa !7
  %36 = tail call i32 @atoi(ptr nocapture noundef %35) #5
  store i32 %36, ptr @loopTime, align 4, !tbaa !11
  br label %.preheader.backedge

37:                                               ; preds = %.preheader
  %38 = load ptr, ptr @optarg, align 8, !tbaa !7
  %39 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef %38)
  %40 = load ptr, ptr @optarg, align 8, !tbaa !7
  %41 = tail call i32 @atoi(ptr nocapture noundef %40) #5
  store i32 %41, ptr @warmUp, align 4, !tbaa !11
  br label %.preheader.backedge

42:                                               ; preds = %.preheader
  %43 = load ptr, ptr @optarg, align 8, !tbaa !7
  %44 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, ptr noundef %43)
  %45 = load ptr, ptr @optarg, align 8, !tbaa !7
  %46 = tail call i32 @atoi(ptr nocapture noundef %45) #5
  store i32 %46, ptr @threadsNum, align 4, !tbaa !11
  br label %.preheader.backedge

47:                                               ; preds = %.preheader
  %48 = load ptr, ptr @optarg, align 8, !tbaa !7
  %49 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, ptr noundef %48)
  %50 = load ptr, ptr @optarg, align 8, !tbaa !7
  store ptr %50, ptr @algorithmMapPath, align 8, !tbaa !7
  br label %.preheader.backedge

51:                                               ; preds = %.preheader
  %52 = load ptr, ptr @optarg, align 8, !tbaa !7
  %53 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, ptr noundef %52)
  %54 = load ptr, ptr @optarg, align 8, !tbaa !7
  %55 = tail call i32 @atoi(ptr nocapture noundef %54) #5
  store i32 %55, ptr @useFileStream, align 4, !tbaa !11
  br label %.preheader.backedge

.preheader.backedge:                              ; preds = %51, %47, %42, %37, %32, %28, %24, %20
  br label %.preheader, !llvm.loop !13

56:                                               ; preds = %.preheader
  tail call void @PrintHelp()
  br label %82

57:                                               ; preds = %.preheader
  %58 = load ptr, ptr @stdout, align 8, !tbaa !7
  %59 = tail call i32 @fflush(ptr noundef %58)
  %60 = load ptr, ptr @modelPath, align 8, !tbaa !7
  %61 = icmp eq ptr %60, null
  br i1 %61, label %62, label %64

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

64:                                               ; preds = %57
  %65 = load ptr, ptr @affinityPolicyName, align 8, !tbaa !7
  %66 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %65, ptr noundef nonnull dereferenceable(1) @.str.16) #5
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %68, label %69

68:                                               ; preds = %64
  store i32 0, ptr @affinity, align 4, !tbaa !11
  br label %82

69:                                               ; preds = %64
  %70 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %65, ptr noundef nonnull dereferenceable(1) @.str.17) #5
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %72, label %73

72:                                               ; preds = %69
  store i32 1, ptr @affinity, align 4, !tbaa !11
  br label %82

73:                                               ; preds = %69
  %74 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %65, ptr noundef nonnull dereferenceable(1) @.str) #5
  %75 = icmp eq i32 %74, 0
  br i1 %75, label %76, label %77

76:                                               ; preds = %73
  store i32 3, ptr @affinity, align 4, !tbaa !11
  br label %82

77:                                               ; preds = %73
  %78 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %65, ptr noundef nonnull dereferenceable(1) @.str.18) #5
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %80, label %81

80:                                               ; preds = %77
  store i32 2, ptr @affinity, align 4, !tbaa !11
  br label %82

81:                                               ; preds = %77
  tail call void @PrintHelp()
  br label %82

82:                                               ; preds = %.thread, %56, %62, %81, %72, %80, %76, %68, %4
  %.2 = phi i32 [ 1, %4 ], [ 1, %56 ], [ 1, %62 ], [ 1, %81 ], [ 0, %72 ], [ 0, %80 ], [ 0, %76 ], [ 0, %68 ], [ 1, %.thread ]
  ret i32 %.2
}

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #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 = { 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 = { 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 = { 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 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 #5 = { nounwind willreturn memory(read) }
attributes #6 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = distinct !{!13, !6}


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