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

@gevStatC = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1
@optCount = external global ptr, align 8
@optGetInfoNr = external global ptr, align 8
@optGetNameNr = external global ptr, align 8
@optGetIntNr = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [71 x i8], align 1
@gevLogStatPChar = external global ptr, align 8
@optGetDblNr = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [71 x i8], align 1
@optGetStrNr = external global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [71 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
define dso_local i32 @opt_pushtosolver(ptr noundef %0) #1 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [256 x i8], align 16
  %6 = alloca [512 x i8], align 16
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca [1024 x i8], align 16
  %21 = alloca i32, align 4
  %22 = alloca [1024 x i8], align 16
  %23 = alloca i32, align 4
  %24 = alloca [1024 x i8], align 16
  %25 = alloca i32, align 4
  %26 = alloca [1024 x i8], align 16
  %27 = alloca i32, align 4
  %28 = alloca [1024 x i8], align 16
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.rhpRec, ptr %29, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !9
  store ptr %31, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 512, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !12
  %32 = load ptr, ptr @gevStatC, align 8, !tbaa !5
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.rhpRec, ptr %33, i32 0, i32 2
  %35 = load ptr, ptr %34, align 8, !tbaa !13
  call void %32(ptr noundef %35, ptr noundef @.str.2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 1, ptr %14, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %36 = load ptr, ptr @optCount, align 8, !tbaa !5
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = call i32 %36(ptr noundef %37)
  store i32 %38, ptr %15, align 4, !tbaa !12
  br label %39

39:                                               ; preds = %208, %1
  %40 = load i32, ptr %14, align 4, !tbaa !12
  %41 = load i32, ptr %15, align 4, !tbaa !12
  %42 = icmp sle i32 %40, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %39
  store i32 2, ptr %16, align 4
  br label %211

44:                                               ; preds = %39
  %45 = load ptr, ptr @optGetInfoNr, align 8, !tbaa !5
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = load i32, ptr %14, align 4, !tbaa !12
  %48 = call i32 %45(ptr noundef %46, i32 noundef %47, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12)
  %49 = load i32, ptr %9, align 4, !tbaa !12
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %51, label %207

51:                                               ; preds = %44
  %52 = load i32, ptr %7, align 4, !tbaa !12
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %207

54:                                               ; preds = %51
  %55 = load ptr, ptr @optGetNameNr, align 8, !tbaa !5
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = load i32, ptr %14, align 4, !tbaa !12
  %58 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %59 = call i32 %55(ptr noundef %56, i32 noundef %57, ptr noundef %58)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %60 = load i32, ptr %11, align 4, !tbaa !12
  switch i32 %60, label %202 [
    i32 0, label %61
    i32 1, label %88
    i32 2, label %115
    i32 4, label %143
    i32 3, label %171
  ]

61:                                               ; preds = %54
  %62 = load ptr, ptr @optGetIntNr, align 8, !tbaa !5
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = load i32, ptr %14, align 4, !tbaa !12
  %65 = call i32 %62(ptr noundef %63, i32 noundef %64, ptr noundef %17)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %66 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %67 = load i32, ptr %17, align 4, !tbaa !12
  %68 = call i32 @rhp_opt_seti(ptr noundef %66, i32 noundef %67)
  store i32 %68, ptr %19, align 4, !tbaa !12
  %69 = load i32, ptr %19, align 4, !tbaa !12
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %71, label %84

71:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 1024, ptr %20) #4
  %72 = getelementptr inbounds [1024 x i8], ptr %20, i64 0, i64 0
  %73 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %74 = load i32, ptr %19, align 4, !tbaa !12
  %75 = call ptr @rhp_status_descr(i32 noundef %74)
  %76 = load i32, ptr %19, align 4, !tbaa !12
  %77 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %72, i64 noundef 1024, ptr noundef @.str.3, ptr noundef %73, ptr noundef %75, i32 noundef %76) #4
  %78 = load ptr, ptr @gevLogStatPChar, align 8, !tbaa !5
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.rhpRec, ptr %79, i32 0, i32 2
  %81 = load ptr, ptr %80, align 8, !tbaa !13
  %82 = getelementptr inbounds [1024 x i8], ptr %20, i64 0, i64 0
  call void %78(ptr noundef %81, ptr noundef %82)
  %83 = load i32, ptr %19, align 4, !tbaa !12
  store i32 %83, ptr %13, align 4, !tbaa !12
  store i32 6, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 1024, ptr %20) #4
  br label %85

84:                                               ; preds = %61
  store i32 0, ptr %16, align 4
  br label %85

85:                                               ; preds = %84, %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  %86 = load i32, ptr %16, align 4
  switch i32 %86, label %204 [
    i32 0, label %87
  ]

87:                                               ; preds = %85
  br label %203

88:                                               ; preds = %54
  %89 = load ptr, ptr @optGetDblNr, align 8, !tbaa !5
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = load i32, ptr %14, align 4, !tbaa !12
  %92 = call i32 %89(ptr noundef %90, i32 noundef %91, ptr noundef %18)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %93 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %94 = load double, ptr %18, align 8, !tbaa !14
  %95 = call i32 @rhp_opt_setd(ptr noundef %93, double noundef %94)
  store i32 %95, ptr %21, align 4, !tbaa !12
  %96 = load i32, ptr %21, align 4, !tbaa !12
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %111

98:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 1024, ptr %22) #4
  %99 = getelementptr inbounds [1024 x i8], ptr %22, i64 0, i64 0
  %100 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %101 = load i32, ptr %21, align 4, !tbaa !12
  %102 = call ptr @rhp_status_descr(i32 noundef %101)
  %103 = load i32, ptr %21, align 4, !tbaa !12
  %104 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %99, i64 noundef 1024, ptr noundef @.str.4, ptr noundef %100, ptr noundef %102, i32 noundef %103) #4
  %105 = load ptr, ptr @gevLogStatPChar, align 8, !tbaa !5
  %106 = load ptr, ptr %3, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.rhpRec, ptr %106, i32 0, i32 2
  %108 = load ptr, ptr %107, align 8, !tbaa !13
  %109 = getelementptr inbounds [1024 x i8], ptr %22, i64 0, i64 0
  call void %105(ptr noundef %108, ptr noundef %109)
  %110 = load i32, ptr %21, align 4, !tbaa !12
  store i32 %110, ptr %13, align 4, !tbaa !12
  store i32 6, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 1024, ptr %22) #4
  br label %112

111:                                              ; preds = %88
  store i32 0, ptr %16, align 4
  br label %112

112:                                              ; preds = %111, %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  %113 = load i32, ptr %16, align 4
  switch i32 %113, label %204 [
    i32 0, label %114
  ]

114:                                              ; preds = %112
  br label %203

115:                                              ; preds = %54
  %116 = load ptr, ptr @optGetStrNr, align 8, !tbaa !5
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = load i32, ptr %14, align 4, !tbaa !12
  %119 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
  %120 = call i32 %116(ptr noundef %117, i32 noundef %118, ptr noundef %119)
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  %121 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %122 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
  %123 = call i32 @rhp_opt_sets(ptr noundef %121, ptr noundef %122)
  store i32 %123, ptr %23, align 4, !tbaa !12
  %124 = load i32, ptr %23, align 4, !tbaa !12
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %126, label %139

126:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 1024, ptr %24) #4
  %127 = getelementptr inbounds [1024 x i8], ptr %24, i64 0, i64 0
  %128 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %129 = load i32, ptr %23, align 4, !tbaa !12
  %130 = call ptr @rhp_status_descr(i32 noundef %129)
  %131 = load i32, ptr %23, align 4, !tbaa !12
  %132 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %127, i64 noundef 1024, ptr noundef @.str.5, ptr noundef %128, ptr noundef %130, i32 noundef %131) #4
  %133 = load ptr, ptr @gevLogStatPChar, align 8, !tbaa !5
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.rhpRec, ptr %134, i32 0, i32 2
  %136 = load ptr, ptr %135, align 8, !tbaa !13
  %137 = getelementptr inbounds [1024 x i8], ptr %24, i64 0, i64 0
  call void %133(ptr noundef %136, ptr noundef %137)
  %138 = load i32, ptr %23, align 4, !tbaa !12
  store i32 %138, ptr %13, align 4, !tbaa !12
  store i32 6, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 1024, ptr %24) #4
  br label %140

139:                                              ; preds = %115
  store i32 0, ptr %16, align 4
  br label %140

140:                                              ; preds = %139, %126
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  %141 = load i32, ptr %16, align 4
  switch i32 %141, label %204 [
    i32 0, label %142
  ]

142:                                              ; preds = %140
  br label %203

143:                                              ; preds = %54
  %144 = load ptr, ptr @optGetStrNr, align 8, !tbaa !5
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = load i32, ptr %14, align 4, !tbaa !12
  %147 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
  %148 = call i32 %144(ptr noundef %145, i32 noundef %146, ptr noundef %147)
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  %149 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %150 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
  %151 = call i32 @rhp_opt_setc(ptr noundef %149, ptr noundef %150)
  store i32 %151, ptr %25, align 4, !tbaa !12
  %152 = load i32, ptr %25, align 4, !tbaa !12
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %154, label %167

154:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 1024, ptr %26) #4
  %155 = getelementptr inbounds [1024 x i8], ptr %26, i64 0, i64 0
  %156 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %157 = load i32, ptr %25, align 4, !tbaa !12
  %158 = call ptr @rhp_status_descr(i32 noundef %157)
  %159 = load i32, ptr %25, align 4, !tbaa !12
  %160 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %155, i64 noundef 1024, ptr noundef @.str.6, ptr noundef %156, ptr noundef %158, i32 noundef %159) #4
  %161 = load ptr, ptr @gevLogStatPChar, align 8, !tbaa !5
  %162 = load ptr, ptr %3, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.rhpRec, ptr %162, i32 0, i32 2
  %164 = load ptr, ptr %163, align 8, !tbaa !13
  %165 = getelementptr inbounds [1024 x i8], ptr %26, i64 0, i64 0
  call void %161(ptr noundef %164, ptr noundef %165)
  %166 = load i32, ptr %25, align 4, !tbaa !12
  store i32 %166, ptr %13, align 4, !tbaa !12
  store i32 6, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 1024, ptr %26) #4
  br label %168

167:                                              ; preds = %143
  store i32 0, ptr %16, align 4
  br label %168

168:                                              ; preds = %167, %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  %169 = load i32, ptr %16, align 4
  switch i32 %169, label %204 [
    i32 0, label %170
  ]

170:                                              ; preds = %168
  br label %203

171:                                              ; preds = %54
  %172 = load ptr, ptr @optGetIntNr, align 8, !tbaa !5
  %173 = load ptr, ptr %4, align 8, !tbaa !5
  %174 = load i32, ptr %14, align 4, !tbaa !12
  %175 = call i32 %172(ptr noundef %173, i32 noundef %174, ptr noundef %17)
  %176 = load i32, ptr %17, align 4, !tbaa !12
  %177 = icmp ne i32 %176, 0
  %178 = zext i1 %177 to i64
  %179 = select i1 %177, i32 1, i32 0
  store i32 %179, ptr %17, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  %180 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %181 = load i32, ptr %17, align 4, !tbaa !12
  %182 = call i32 @rhp_opt_setb(ptr noundef %180, i32 noundef %181)
  store i32 %182, ptr %27, align 4, !tbaa !12
  %183 = load i32, ptr %27, align 4, !tbaa !12
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %185, label %198

185:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 1024, ptr %28) #4
  %186 = getelementptr inbounds [1024 x i8], ptr %28, i64 0, i64 0
  %187 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %188 = load i32, ptr %27, align 4, !tbaa !12
  %189 = call ptr @rhp_status_descr(i32 noundef %188)
  %190 = load i32, ptr %27, align 4, !tbaa !12
  %191 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %186, i64 noundef 1024, ptr noundef @.str.7, ptr noundef %187, ptr noundef %189, i32 noundef %190) #4
  %192 = load ptr, ptr @gevLogStatPChar, align 8, !tbaa !5
  %193 = load ptr, ptr %3, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.rhpRec, ptr %193, i32 0, i32 2
  %195 = load ptr, ptr %194, align 8, !tbaa !13
  %196 = getelementptr inbounds [1024 x i8], ptr %28, i64 0, i64 0
  call void %192(ptr noundef %195, ptr noundef %196)
  %197 = load i32, ptr %27, align 4, !tbaa !12
  store i32 %197, ptr %13, align 4, !tbaa !12
  store i32 6, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 1024, ptr %28) #4
  br label %199

198:                                              ; preds = %171
  store i32 0, ptr %16, align 4
  br label %199

199:                                              ; preds = %198, %185
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  %200 = load i32, ptr %16, align 4
  switch i32 %200, label %204 [
    i32 0, label %201
  ]

201:                                              ; preds = %199
  br label %203

202:                                              ; preds = %54
  br label %203

203:                                              ; preds = %202, %201, %170, %142, %114, %87
  store i32 0, ptr %16, align 4
  br label %204

204:                                              ; preds = %203, %199, %168, %140, %112, %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  %205 = load i32, ptr %16, align 4
  switch i32 %205, label %211 [
    i32 0, label %206
  ]

206:                                              ; preds = %204
  br label %207

207:                                              ; preds = %206, %51, %44
  br label %208

208:                                              ; preds = %207
  %209 = load i32, ptr %14, align 4, !tbaa !12
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr %14, align 4, !tbaa !12
  br label %39, !llvm.loop !16

211:                                              ; preds = %204, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  %212 = load i32, ptr %16, align 4
  switch i32 %212, label %216 [
    i32 2, label %213
    i32 6, label %214
  ]

213:                                              ; preds = %211
  br label %214

214:                                              ; preds = %213, %211
  %215 = load i32, ptr %13, align 4, !tbaa !12
  store i32 %215, ptr %2, align 4
  store i32 1, ptr %16, align 4
  br label %216

216:                                              ; preds = %214, %211
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 512, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 256, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  %217 = load i32, ptr %2, align 4
  ret i32 %217
}

declare i32 @rhp_opt_seti(ptr noundef, i32 noundef) #2

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

declare ptr @rhp_status_descr(i32 noundef) #2

declare i32 @rhp_opt_setd(ptr noundef, double noundef) #2

declare i32 @rhp_opt_sets(ptr noundef, ptr noundef) #2

declare i32 @rhp_opt_setc(ptr noundef, ptr noundef) #2

declare i32 @rhp_opt_setb(ptr noundef, i32 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 "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 }

!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, !6, i64 0}
!10 = !{!"rhpRec", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !11, i64 40, !6, i64 48}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !6, i64 16}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"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"

@gevStatC = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1
@optCount = external local_unnamed_addr global ptr, align 8
@optGetInfoNr = external local_unnamed_addr global ptr, align 8
@optGetNameNr = external local_unnamed_addr global ptr, align 8
@optGetIntNr = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [71 x i8], align 1
@gevLogStatPChar = external local_unnamed_addr global ptr, align 8
@optGetDblNr = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [71 x i8], align 1
@optGetStrNr = external local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [71 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @opt_pushtosolver(ptr nocapture noundef readonly %0) local_unnamed_addr #1 {
  %2 = alloca [256 x i8], align 16
  %3 = alloca [512 x i8], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca double, align 8
  %12 = alloca [1024 x i8], align 16
  %13 = alloca [1024 x i8], align 16
  %14 = alloca [1024 x i8], align 16
  %15 = alloca [1024 x i8], align 16
  %16 = alloca [1024 x i8], align 16
  %17 = load ptr, ptr %0, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  %18 = load ptr, ptr @gevStatC, align 8, !tbaa !11
  %19 = getelementptr inbounds i8, ptr %0, i64 16
  %20 = load ptr, ptr %19, align 8, !tbaa !12
  tail call void %18(ptr noundef %20, ptr noundef nonnull @.str.2) #4
  %21 = load ptr, ptr @optCount, align 8, !tbaa !11
  %22 = tail call i32 %21(ptr noundef %17) #4
  %.not100 = icmp slt i32 %22, 1
  br i1 %.not100, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %1, %83
  %.060101 = phi i32 [ %84, %83 ], [ 1, %1 ]
  %23 = load ptr, ptr @optGetInfoNr, align 8, !tbaa !11
  %24 = call i32 %23(ptr noundef %17, i32 noundef %.060101, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9) #4
  %25 = load i32, ptr %6, align 4, !tbaa !13
  %26 = icmp eq i32 %25, 0
  %27 = load i32, ptr %4, align 4
  %28 = icmp ne i32 %27, 0
  %or.cond = select i1 %26, i1 %28, i1 false
  br i1 %or.cond, label %29, label %83

29:                                               ; preds = %.lr.ph
  %30 = load ptr, ptr @optGetNameNr, align 8, !tbaa !11
  %31 = call i32 %30(ptr noundef %17, i32 noundef %.060101, ptr noundef nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  %32 = load i32, ptr %8, align 4, !tbaa !13
  switch i32 %32, label %.thread92 [
    i32 0, label %33
    i32 1, label %43
    i32 2, label %53
    i32 4, label %62
    i32 3, label %71
  ]

33:                                               ; preds = %29
  %34 = load ptr, ptr @optGetIntNr, align 8, !tbaa !11
  %35 = call i32 %34(ptr noundef %17, i32 noundef %.060101, ptr noundef nonnull %10) #4
  %36 = load i32, ptr %10, align 4, !tbaa !13
  %37 = call i32 @rhp_opt_seti(ptr noundef nonnull %2, i32 noundef %36) #4
  %.not77 = icmp eq i32 %37, 0
  br i1 %.not77, label %.thread92, label %38

38:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %12) #4
  %39 = call ptr @rhp_status_descr(i32 noundef %37) #4
  %40 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %12, i64 noundef 1024, ptr noundef nonnull @.str.3, ptr noundef nonnull %2, ptr noundef %39, i32 noundef %37) #4
  %41 = load ptr, ptr @gevLogStatPChar, align 8, !tbaa !11
  %42 = load ptr, ptr %19, align 8, !tbaa !12
  call void %41(ptr noundef %42, ptr noundef nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %12) #4
  br label %82

43:                                               ; preds = %29
  %44 = load ptr, ptr @optGetDblNr, align 8, !tbaa !11
  %45 = call i32 %44(ptr noundef %17, i32 noundef %.060101, ptr noundef nonnull %11) #4
  %46 = load double, ptr %11, align 8, !tbaa !14
  %47 = call i32 @rhp_opt_setd(ptr noundef nonnull %2, double noundef %46) #4
  %.not76 = icmp eq i32 %47, 0
  br i1 %.not76, label %.thread92, label %48

48:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %13) #4
  %49 = call ptr @rhp_status_descr(i32 noundef %47) #4
  %50 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %13, i64 noundef 1024, ptr noundef nonnull @.str.4, ptr noundef nonnull %2, ptr noundef %49, i32 noundef %47) #4
  %51 = load ptr, ptr @gevLogStatPChar, align 8, !tbaa !11
  %52 = load ptr, ptr %19, align 8, !tbaa !12
  call void %51(ptr noundef %52, ptr noundef nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %13) #4
  br label %82

53:                                               ; preds = %29
  %54 = load ptr, ptr @optGetStrNr, align 8, !tbaa !11
  %55 = call i32 %54(ptr noundef %17, i32 noundef %.060101, ptr noundef nonnull %3) #4
  %56 = call i32 @rhp_opt_sets(ptr noundef nonnull %2, ptr noundef nonnull %3) #4
  %.not75 = icmp eq i32 %56, 0
  br i1 %.not75, label %.thread92, label %57

57:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %14) #4
  %58 = call ptr @rhp_status_descr(i32 noundef %56) #4
  %59 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %14, i64 noundef 1024, ptr noundef nonnull @.str.5, ptr noundef nonnull %2, ptr noundef %58, i32 noundef %56) #4
  %60 = load ptr, ptr @gevLogStatPChar, align 8, !tbaa !11
  %61 = load ptr, ptr %19, align 8, !tbaa !12
  call void %60(ptr noundef %61, ptr noundef nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %14) #4
  br label %82

62:                                               ; preds = %29
  %63 = load ptr, ptr @optGetStrNr, align 8, !tbaa !11
  %64 = call i32 %63(ptr noundef %17, i32 noundef %.060101, ptr noundef nonnull %3) #4
  %65 = call i32 @rhp_opt_setc(ptr noundef nonnull %2, ptr noundef nonnull %3) #4
  %.not74 = icmp eq i32 %65, 0
  br i1 %.not74, label %.thread92, label %66

66:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %15) #4
  %67 = call ptr @rhp_status_descr(i32 noundef %65) #4
  %68 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %15, i64 noundef 1024, ptr noundef nonnull @.str.6, ptr noundef nonnull %2, ptr noundef %67, i32 noundef %65) #4
  %69 = load ptr, ptr @gevLogStatPChar, align 8, !tbaa !11
  %70 = load ptr, ptr %19, align 8, !tbaa !12
  call void %69(ptr noundef %70, ptr noundef nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %15) #4
  br label %82

71:                                               ; preds = %29
  %72 = load ptr, ptr @optGetIntNr, align 8, !tbaa !11
  %73 = call i32 %72(ptr noundef %17, i32 noundef %.060101, ptr noundef nonnull %10) #4
  %74 = load i32, ptr %10, align 4, !tbaa !13
  %.not72 = icmp ne i32 %74, 0
  %75 = zext i1 %.not72 to i32
  store i32 %75, ptr %10, align 4, !tbaa !13
  %76 = call i32 @rhp_opt_setb(ptr noundef nonnull %2, i32 noundef %75) #4
  %.not73 = icmp eq i32 %76, 0
  br i1 %.not73, label %.thread92, label %77

77:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %16) #4
  %78 = call ptr @rhp_status_descr(i32 noundef %76) #4
  %79 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %16, i64 noundef 1024, ptr noundef nonnull @.str.7, ptr noundef nonnull %2, ptr noundef %78, i32 noundef %76) #4
  %80 = load ptr, ptr @gevLogStatPChar, align 8, !tbaa !11
  %81 = load ptr, ptr %19, align 8, !tbaa !12
  call void %80(ptr noundef %81, ptr noundef nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %16) #4
  br label %82

.thread92:                                        ; preds = %29, %33, %43, %53, %62, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  br label %83

82:                                               ; preds = %77, %66, %57, %48, %38
  %.7 = phi i32 [ %76, %77 ], [ %65, %66 ], [ %56, %57 ], [ %47, %48 ], [ %37, %38 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  br label %.loopexit

83:                                               ; preds = %.thread92, %.lr.ph
  %84 = add nuw i32 %.060101, 1
  %exitcond.not = icmp eq i32 %.060101, %22
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !16

.loopexit:                                        ; preds = %83, %1, %82
  %.9 = phi i32 [ %.7, %82 ], [ 0, %1 ], [ 0, %83 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %2) #4
  ret i32 %.9
}

declare i32 @rhp_opt_seti(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

declare ptr @rhp_status_descr(i32 noundef) local_unnamed_addr #2

declare i32 @rhp_opt_setd(ptr noundef, double noundef) local_unnamed_addr #2

declare i32 @rhp_opt_sets(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @rhp_opt_setc(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @rhp_opt_setb(ptr noundef, i32 noundef) local_unnamed_addr #2

attributes #0 = { mustprogress 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 = { 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 #4 = { 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 0}
!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 = !{!7, !7, i64 0}
!12 = !{!6, !7, i64 16}
!13 = !{!10, !10, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !8, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass