; LLVM IR from xhub/reshop :: common (reshop_gams_optfile)

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

@gevGetIntOpt = external global ptr, align 8
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@gevId2Solver = external global ptr, align 8
@cfgDefFileName = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@optReadDefinition = external global ptr, align 8
@gevLogStat = external global ptr, align 8
@gevStatCon = external global ptr, align 8
@optMessageCount = external global ptr, align 8
@optGetMessage = external global ptr, align 8
@gevStatC = external global ptr, align 8
@gevStatCoff = external global ptr, align 8
@optClearMessages = external global ptr, align 8
@optResetAll = external global ptr, align 8
@gmoNameOptFile = external global ptr, align 8
@gmoOptFile = external global ptr, align 8
@optEchoSet = external global ptr, align 8
@optRecentEnabledSet = external global ptr, align 8
@optReadParameterFile = external global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @opt_process(ptr noundef %0, i1 noundef zeroext %1, ptr noundef %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca [256 x i8], align 16
  %11 = alloca [256 x i8], align 16
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  %21 = zext i1 %1 to i8
  store i8 %21, ptr %6, align 1, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 256, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 256, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.rhpRec, ptr %22, i32 0, i32 2
  %24 = load ptr, ptr %23, align 8, !tbaa !11
  store ptr %24, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.rhpRec, ptr %25, i32 0, i32 1
  %27 = load ptr, ptr %26, align 8, !tbaa !14
  store ptr %27, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.rhpRec, ptr %28, i32 0, i32 0
  %30 = load ptr, ptr %29, align 8, !tbaa !15
  store ptr %30, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.rhpRec, ptr %31, i32 0, i32 4
  %33 = load ptr, ptr %32, align 8, !tbaa !16
  store ptr %33, ptr %15, align 8, !tbaa !5
  %34 = load i8, ptr %6, align 1, !tbaa !9, !range !17, !noundef !18
  %35 = trunc i8 %34 to i1
  br i1 %35, label %36, label %135

36:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %37 = load ptr, ptr @gevGetIntOpt, align 8, !tbaa !5
  %38 = load ptr, ptr %12, align 8, !tbaa !5
  %39 = call i32 %37(ptr noundef %38, ptr noundef @.str)
  store i32 %39, ptr %16, align 4, !tbaa !19
  %40 = load ptr, ptr @gevId2Solver, align 8, !tbaa !5
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  %42 = load i32, ptr %16, align 4, !tbaa !19
  %43 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 0
  %44 = call ptr %40(ptr noundef %41, i32 noundef %42, ptr noundef %43)
  %45 = load ptr, ptr @cfgDefFileName, align 8, !tbaa !5
  %46 = load ptr, ptr %15, align 8, !tbaa !5
  %47 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 0
  %48 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
  %49 = call i32 %45(ptr noundef %46, ptr noundef %47, ptr noundef %48)
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %61, label %51

51:                                               ; preds = %36
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
  %55 = call i32 @concat(ptr noundef %52, ptr noundef %53, ptr noundef @.str.1, ptr noundef %54)
  store i32 %55, ptr %9, align 4, !tbaa !19
  %56 = load i32, ptr %9, align 4, !tbaa !19
  %57 = icmp sgt i32 %56, 0
  br i1 %57, label %58, label %60

58:                                               ; preds = %51
  %59 = load i32, ptr %9, align 4, !tbaa !19
  store i32 %59, ptr %4, align 4
  store i32 1, ptr %17, align 4
  br label %132

60:                                               ; preds = %51
  br label %71

61:                                               ; preds = %36
  %62 = load ptr, ptr %12, align 8, !tbaa !5
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
  %65 = call i32 @get_deffile(ptr noundef %62, ptr noundef %63, ptr noundef %64)
  store i32 %65, ptr %9, align 4, !tbaa !19
  %66 = load i32, ptr %9, align 4, !tbaa !19
  %67 = icmp sgt i32 %66, 0
  br i1 %67, label %68, label %70

68:                                               ; preds = %61
  %69 = load i32, ptr %9, align 4, !tbaa !19
  store i32 %69, ptr %4, align 4
  store i32 1, ptr %17, align 4
  br label %132

70:                                               ; preds = %61
  br label %71

71:                                               ; preds = %70, %60
  %72 = load ptr, ptr @optReadDefinition, align 8, !tbaa !5
  %73 = load ptr, ptr %14, align 8, !tbaa !5
  %74 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
  %75 = call i32 %72(ptr noundef %73, ptr noundef %74)
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %77, label %106

77:                                               ; preds = %71
  %78 = load ptr, ptr @gevLogStat, align 8, !tbaa !5
  %79 = load ptr, ptr %12, align 8, !tbaa !5
  %80 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
  call void %78(ptr noundef %79, ptr noundef %80)
  %81 = load ptr, ptr @gevStatCon, align 8, !tbaa !5
  %82 = load ptr, ptr %12, align 8, !tbaa !5
  call void %81(ptr noundef %82)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  store i32 1, ptr %18, align 4, !tbaa !19
  br label %83

83:                                               ; preds = %98, %77
  %84 = load i32, ptr %18, align 4, !tbaa !19
  %85 = load ptr, ptr @optMessageCount, align 8, !tbaa !5
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  %87 = call i32 %85(ptr noundef %86)
  %88 = icmp sle i32 %84, %87
  br i1 %88, label %90, label %89

89:                                               ; preds = %83
  store i32 2, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  br label %101

90:                                               ; preds = %83
  %91 = load ptr, ptr @optGetMessage, align 8, !tbaa !5
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = load i32, ptr %18, align 4, !tbaa !19
  %94 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
  call void %91(ptr noundef %92, i32 noundef %93, ptr noundef %94, ptr noundef %8)
  %95 = load ptr, ptr @gevStatC, align 8, !tbaa !5
  %96 = load ptr, ptr %12, align 8, !tbaa !5
  %97 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
  call void %95(ptr noundef %96, ptr noundef %97)
  br label %98

98:                                               ; preds = %90
  %99 = load i32, ptr %18, align 4, !tbaa !19
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %18, align 4, !tbaa !19
  br label %83, !llvm.loop !20

101:                                              ; preds = %89
  %102 = load ptr, ptr @gevStatCoff, align 8, !tbaa !5
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  call void %102(ptr noundef %103)
  %104 = load ptr, ptr @optClearMessages, align 8, !tbaa !5
  %105 = load ptr, ptr %14, align 8, !tbaa !5
  call void %104(ptr noundef %105)
  store i32 1, ptr %4, align 4
  store i32 1, ptr %17, align 4
  br label %132

106:                                              ; preds = %71
  %107 = load ptr, ptr @gevStatCon, align 8, !tbaa !5
  %108 = load ptr, ptr %12, align 8, !tbaa !5
  call void %107(ptr noundef %108)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  store i32 1, ptr %19, align 4, !tbaa !19
  br label %109

109:                                              ; preds = %124, %106
  %110 = load i32, ptr %19, align 4, !tbaa !19
  %111 = load ptr, ptr @optMessageCount, align 8, !tbaa !5
  %112 = load ptr, ptr %14, align 8, !tbaa !5
  %113 = call i32 %111(ptr noundef %112)
  %114 = icmp sle i32 %110, %113
  br i1 %114, label %116, label %115

115:                                              ; preds = %109
  store i32 5, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  br label %127

116:                                              ; preds = %109
  %117 = load ptr, ptr @optGetMessage, align 8, !tbaa !5
  %118 = load ptr, ptr %14, align 8, !tbaa !5
  %119 = load i32, ptr %19, align 4, !tbaa !19
  %120 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
  call void %117(ptr noundef %118, i32 noundef %119, ptr noundef %120, ptr noundef %8)
  %121 = load ptr, ptr @gevStatC, align 8, !tbaa !5
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  %123 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
  call void %121(ptr noundef %122, ptr noundef %123)
  br label %124

124:                                              ; preds = %116
  %125 = load i32, ptr %19, align 4, !tbaa !19
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %19, align 4, !tbaa !19
  br label %109, !llvm.loop !22

127:                                              ; preds = %115
  %128 = load ptr, ptr @gevStatCoff, align 8, !tbaa !5
  %129 = load ptr, ptr %12, align 8, !tbaa !5
  call void %128(ptr noundef %129)
  %130 = load ptr, ptr @optClearMessages, align 8, !tbaa !5
  %131 = load ptr, ptr %14, align 8, !tbaa !5
  call void %130(ptr noundef %131)
  store i32 0, ptr %17, align 4
  br label %132

132:                                              ; preds = %127, %101, %68, %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  %133 = load i32, ptr %17, align 4
  switch i32 %133, label %197 [
    i32 0, label %134
  ]

134:                                              ; preds = %132
  br label %138

135:                                              ; preds = %3
  %136 = load ptr, ptr @optResetAll, align 8, !tbaa !5
  %137 = load ptr, ptr %14, align 8, !tbaa !5
  call void %136(ptr noundef %137)
  br label %138

138:                                              ; preds = %135, %134
  %139 = load ptr, ptr @gmoNameOptFile, align 8, !tbaa !5
  %140 = load ptr, ptr %13, align 8, !tbaa !5
  %141 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
  %142 = call ptr %139(ptr noundef %140, ptr noundef %141)
  %143 = load ptr, ptr @gmoOptFile, align 8, !tbaa !5
  %144 = load ptr, ptr %13, align 8, !tbaa !5
  %145 = call i32 %143(ptr noundef %144)
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %147, label %196

147:                                              ; preds = %138
  %148 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
  %149 = call i64 @strlen(ptr noundef %148) #4
  %150 = icmp ne i64 %149, 0
  br i1 %150, label %151, label %196

151:                                              ; preds = %147
  %152 = load ptr, ptr @optEchoSet, align 8, !tbaa !5
  %153 = load ptr, ptr %14, align 8, !tbaa !5
  call void %152(ptr noundef %153, i32 noundef 1)
  %154 = load ptr, ptr @optRecentEnabledSet, align 8, !tbaa !5
  %155 = load ptr, ptr %14, align 8, !tbaa !5
  call void %154(ptr noundef %155, i32 noundef 1)
  %156 = load ptr, ptr @optReadParameterFile, align 8, !tbaa !5
  %157 = load ptr, ptr %14, align 8, !tbaa !5
  %158 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
  %159 = call i32 %156(ptr noundef %157, ptr noundef %158)
  %160 = load ptr, ptr @gevStatCon, align 8, !tbaa !5
  %161 = load ptr, ptr %12, align 8, !tbaa !5
  call void %160(ptr noundef %161)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  store i32 1, ptr %20, align 4, !tbaa !19
  br label %162

162:                                              ; preds = %184, %151
  %163 = load i32, ptr %20, align 4, !tbaa !19
  %164 = load ptr, ptr @optMessageCount, align 8, !tbaa !5
  %165 = load ptr, ptr %14, align 8, !tbaa !5
  %166 = call i32 %164(ptr noundef %165)
  %167 = icmp sle i32 %163, %166
  br i1 %167, label %169, label %168

168:                                              ; preds = %162
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  br label %187

169:                                              ; preds = %162
  %170 = load ptr, ptr @optGetMessage, align 8, !tbaa !5
  %171 = load ptr, ptr %14, align 8, !tbaa !5
  %172 = load i32, ptr %20, align 4, !tbaa !19
  %173 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
  call void %170(ptr noundef %171, i32 noundef %172, ptr noundef %173, ptr noundef %8)
  %174 = load i32, ptr %8, align 4, !tbaa !19
  %175 = icmp sle i32 %174, 7
  br i1 %175, label %179, label %176

176:                                              ; preds = %169
  %177 = load i32, ptr %8, align 4, !tbaa !19
  %178 = icmp eq i32 %177, 9
  br i1 %178, label %179, label %183

179:                                              ; preds = %176, %169
  %180 = load ptr, ptr @gevLogStat, align 8, !tbaa !5
  %181 = load ptr, ptr %12, align 8, !tbaa !5
  %182 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
  call void %180(ptr noundef %181, ptr noundef %182)
  br label %183

183:                                              ; preds = %179, %176
  br label %184

184:                                              ; preds = %183
  %185 = load i32, ptr %20, align 4, !tbaa !19
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %20, align 4, !tbaa !19
  br label %162, !llvm.loop !23

187:                                              ; preds = %168
  %188 = load ptr, ptr @optClearMessages, align 8, !tbaa !5
  %189 = load ptr, ptr %14, align 8, !tbaa !5
  call void %188(ptr noundef %189)
  %190 = load ptr, ptr @gevStatCoff, align 8, !tbaa !5
  %191 = load ptr, ptr %12, align 8, !tbaa !5
  call void %190(ptr noundef %191)
  %192 = load ptr, ptr @optRecentEnabledSet, align 8, !tbaa !5
  %193 = load ptr, ptr %14, align 8, !tbaa !5
  call void %192(ptr noundef %193, i32 noundef 0)
  %194 = load ptr, ptr @optEchoSet, align 8, !tbaa !5
  %195 = load ptr, ptr %14, align 8, !tbaa !5
  call void %194(ptr noundef %195, i32 noundef 0)
  br label %196

196:                                              ; preds = %187, %147, %138
  store i32 0, ptr %4, align 4
  store i32 1, ptr %17, align 4
  br label %197

197:                                              ; preds = %196, %132
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 256, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 256, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  %198 = load i32, ptr %4, align 4
  ret i32 %198
}

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

; Function Attrs: nounwind uwtable
declare hidden i32 @concat(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @get_deffile(ptr noundef, ptr noundef, ptr noundef) #0

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

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

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 }
attributes #4 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_Bool", !7, i64 0}
!11 = !{!12, !6, i64 16}
!12 = !{!"rhpRec", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !13, i64 40, !6, i64 48}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !6, i64 8}
!15 = !{!12, !6, i64 0}
!16 = !{!12, !6, i64 32}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!13, !13, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}


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

@gevGetIntOpt = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@gevId2Solver = external local_unnamed_addr global ptr, align 8
@cfgDefFileName = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@optReadDefinition = external local_unnamed_addr global ptr, align 8
@gevLogStat = external local_unnamed_addr global ptr, align 8
@gevStatCon = external local_unnamed_addr global ptr, align 8
@optMessageCount = external local_unnamed_addr global ptr, align 8
@optGetMessage = external local_unnamed_addr global ptr, align 8
@gevStatC = external local_unnamed_addr global ptr, align 8
@gevStatCoff = external local_unnamed_addr global ptr, align 8
@optClearMessages = external local_unnamed_addr global ptr, align 8
@optResetAll = external local_unnamed_addr global ptr, align 8
@gmoNameOptFile = external local_unnamed_addr global ptr, align 8
@gmoOptFile = external local_unnamed_addr global ptr, align 8
@optEchoSet = external local_unnamed_addr global ptr, align 8
@optRecentEnabledSet = external local_unnamed_addr global ptr, align 8
@optReadParameterFile = external local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @opt_process(ptr nocapture noundef readonly %0, i1 noundef zeroext %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = alloca i32, align 4
  %5 = alloca [256 x i8], align 16
  %6 = alloca [256 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #2
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %5) #2
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %6) #2
  %7 = getelementptr inbounds i8, ptr %0, i64 16
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !11
  %11 = load ptr, ptr %0, align 8, !tbaa !12
  br i1 %1, label %12, label %53

12:                                               ; preds = %3
  %13 = getelementptr inbounds i8, ptr %0, i64 32
  %14 = load ptr, ptr %13, align 8, !tbaa !13
  %15 = load ptr, ptr @gevGetIntOpt, align 8, !tbaa !14
  %16 = tail call i32 %15(ptr noundef %8, ptr noundef nonnull @.str) #2
  %17 = load ptr, ptr @gevId2Solver, align 8, !tbaa !14
  %18 = call ptr %17(ptr noundef %8, i32 noundef %16, ptr noundef nonnull %6) #2
  %19 = load ptr, ptr @cfgDefFileName, align 8, !tbaa !14
  %20 = call i32 %19(ptr noundef %14, ptr noundef nonnull %6, ptr noundef nonnull %5) #2
  %.not = icmp eq i32 %20, 0
  br i1 %.not, label %21, label %24

21:                                               ; preds = %12
  %22 = call i32 @concat(ptr noundef %8, ptr noundef %2, ptr noundef nonnull @.str.1, ptr noundef nonnull %5)
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.thread, label %27

24:                                               ; preds = %12
  %25 = call i32 @get_deffile(ptr noundef %8, ptr noundef %2, ptr noundef nonnull %5)
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %.thread, label %27

27:                                               ; preds = %24, %21
  %28 = load ptr, ptr @optReadDefinition, align 8, !tbaa !14
  %29 = call i32 %28(ptr noundef %11, ptr noundef nonnull %5) #2
  %.not62 = icmp eq i32 %29, 0
  br i1 %.not62, label %42, label %30

30:                                               ; preds = %27
  %31 = load ptr, ptr @gevLogStat, align 8, !tbaa !14
  call void %31(ptr noundef %8, ptr noundef nonnull %5) #2
  %32 = load ptr, ptr @gevStatCon, align 8, !tbaa !14
  call void %32(ptr noundef %8) #2
  %33 = load ptr, ptr @optMessageCount, align 8, !tbaa !14
  %34 = call i32 %33(ptr noundef %11) #2
  %.not6471 = icmp slt i32 %34, 1
  br i1 %.not6471, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %30
  %35 = load ptr, ptr @gevStatCoff, align 8, !tbaa !14
  call void %35(ptr noundef %8) #2
  %36 = load ptr, ptr @optClearMessages, align 8, !tbaa !14
  call void %36(ptr noundef %11) #2
  br label %.thread

.lr.ph:                                           ; preds = %30, %.lr.ph
  %.05772 = phi i32 [ %39, %.lr.ph ], [ 1, %30 ]
  %37 = load ptr, ptr @optGetMessage, align 8, !tbaa !14
  call void %37(ptr noundef %11, i32 noundef %.05772, ptr noundef nonnull %5, ptr noundef nonnull %4) #2
  %38 = load ptr, ptr @gevStatC, align 8, !tbaa !14
  call void %38(ptr noundef %8, ptr noundef nonnull %5) #2
  %39 = add nuw nsw i32 %.05772, 1
  %40 = load ptr, ptr @optMessageCount, align 8, !tbaa !14
  %41 = call i32 %40(ptr noundef %11) #2
  %.not64.not = icmp slt i32 %.05772, %41
  br i1 %.not64.not, label %.lr.ph, label %._crit_edge, !llvm.loop !15

42:                                               ; preds = %27
  %43 = load ptr, ptr @gevStatCon, align 8, !tbaa !14
  call void %43(ptr noundef %8) #2
  %44 = load ptr, ptr @optMessageCount, align 8, !tbaa !14
  %45 = call i32 %44(ptr noundef %11) #2
  %.not6373 = icmp slt i32 %45, 1
  br i1 %.not6373, label %._crit_edge77, label %.lr.ph76

.lr.ph76:                                         ; preds = %42, %.lr.ph76
  %.05674 = phi i32 [ %48, %.lr.ph76 ], [ 1, %42 ]
  %46 = load ptr, ptr @optGetMessage, align 8, !tbaa !14
  call void %46(ptr noundef %11, i32 noundef %.05674, ptr noundef nonnull %5, ptr noundef nonnull %4) #2
  %47 = load ptr, ptr @gevStatC, align 8, !tbaa !14
  call void %47(ptr noundef %8, ptr noundef nonnull %5) #2
  %48 = add nuw nsw i32 %.05674, 1
  %49 = load ptr, ptr @optMessageCount, align 8, !tbaa !14
  %50 = call i32 %49(ptr noundef %11) #2
  %.not63.not = icmp slt i32 %.05674, %50
  br i1 %.not63.not, label %.lr.ph76, label %._crit_edge77, !llvm.loop !17

._crit_edge77:                                    ; preds = %.lr.ph76, %42
  %51 = load ptr, ptr @gevStatCoff, align 8, !tbaa !14
  call void %51(ptr noundef %8) #2
  %52 = load ptr, ptr @optClearMessages, align 8, !tbaa !14
  call void %52(ptr noundef %11) #2
  br label %55

53:                                               ; preds = %3
  %54 = load ptr, ptr @optResetAll, align 8, !tbaa !14
  tail call void %54(ptr noundef %11) #2
  br label %55

55:                                               ; preds = %._crit_edge77, %53
  %56 = load ptr, ptr @gmoNameOptFile, align 8, !tbaa !14
  %57 = call ptr %56(ptr noundef %10, ptr noundef nonnull %5) #2
  %58 = load ptr, ptr @gmoOptFile, align 8, !tbaa !14
  %59 = call i32 %58(ptr noundef %10) #2
  %.not65 = icmp eq i32 %59, 0
  %char0 = load i8, ptr %5, align 16
  %.not66 = icmp eq i8 %char0, 0
  %or.cond68 = select i1 %.not65, i1 true, i1 %.not66
  br i1 %or.cond68, label %.thread, label %60

60:                                               ; preds = %55
  %61 = load ptr, ptr @optEchoSet, align 8, !tbaa !14
  call void %61(ptr noundef %11, i32 noundef 1) #2
  %62 = load ptr, ptr @optRecentEnabledSet, align 8, !tbaa !14
  call void %62(ptr noundef %11, i32 noundef 1) #2
  %63 = load ptr, ptr @optReadParameterFile, align 8, !tbaa !14
  %64 = call i32 %63(ptr noundef %11, ptr noundef nonnull %5) #2
  %65 = load ptr, ptr @gevStatCon, align 8, !tbaa !14
  call void %65(ptr noundef %8) #2
  %66 = load ptr, ptr @optMessageCount, align 8, !tbaa !14
  %67 = call i32 %66(ptr noundef %11) #2
  %.not6778 = icmp slt i32 %67, 1
  br i1 %.not6778, label %._crit_edge82, label %.lr.ph81

._crit_edge82:                                    ; preds = %78, %60
  %68 = load ptr, ptr @optClearMessages, align 8, !tbaa !14
  call void %68(ptr noundef %11) #2
  %69 = load ptr, ptr @gevStatCoff, align 8, !tbaa !14
  call void %69(ptr noundef %8) #2
  %70 = load ptr, ptr @optRecentEnabledSet, align 8, !tbaa !14
  call void %70(ptr noundef %11, i32 noundef 0) #2
  %71 = load ptr, ptr @optEchoSet, align 8, !tbaa !14
  call void %71(ptr noundef %11, i32 noundef 0) #2
  br label %.thread

.lr.ph81:                                         ; preds = %60, %78
  %.079 = phi i32 [ %79, %78 ], [ 1, %60 ]
  %72 = load ptr, ptr @optGetMessage, align 8, !tbaa !14
  call void %72(ptr noundef %11, i32 noundef %.079, ptr noundef nonnull %5, ptr noundef nonnull %4) #2
  %73 = load i32, ptr %4, align 4
  %74 = icmp slt i32 %73, 8
  %75 = icmp eq i32 %73, 9
  %or.cond = or i1 %74, %75
  br i1 %or.cond, label %76, label %78

76:                                               ; preds = %.lr.ph81
  %77 = load ptr, ptr @gevLogStat, align 8, !tbaa !14
  call void %77(ptr noundef %8, ptr noundef nonnull %5) #2
  br label %78

78:                                               ; preds = %76, %.lr.ph81
  %79 = add nuw nsw i32 %.079, 1
  %80 = load ptr, ptr @optMessageCount, align 8, !tbaa !14
  %81 = call i32 %80(ptr noundef %11) #2
  %.not67.not = icmp slt i32 %.079, %81
  br i1 %.not67.not, label %.lr.ph81, label %._crit_edge82, !llvm.loop !18

.thread:                                          ; preds = %24, %21, %._crit_edge, %55, %._crit_edge82
  %.1 = phi i32 [ 0, %._crit_edge82 ], [ 0, %55 ], [ %25, %24 ], [ %22, %21 ], [ 1, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %6) #2
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %5) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #2
  ret i32 %.1
}

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

; Function Attrs: nounwind uwtable
declare hidden i32 @concat(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @get_deffile(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; 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 = { 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, !7, i64 16}
!6 = !{!"rhpRec", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !7, i64 48}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 8}
!12 = !{!6, !7, i64 0}
!13 = !{!6, !7, i64 32}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}


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