; LLVM IR from xhub/reshop :: gams_link (gmsrhp_ux)

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

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@stdout = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@stderr = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [55 x i8], align 1
@gevLogStatPChar = external global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [32 x i8], align 1
@gmoSolveStatSet = external global ptr, align 8
@gmoModelStatSet = external global ptr, align 8
@gmoUnloadSolutionLegacy = external global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca [256 x i8], align 16
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i8, align 1
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store ptr null, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store ptr null, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 256, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store ptr null, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %26 = call ptr @getenv(ptr noundef @.str) #6
  store ptr %26, ptr %11, align 8, !tbaa !9
  %27 = load ptr, ptr %11, align 8, !tbaa !9
  %28 = icmp ne ptr %27, null
  br i1 %28, label %29, label %33

29:                                               ; preds = %2
  %30 = load ptr, ptr @stdout, align 8, !tbaa !9
  %31 = call ptr @rhp_version()
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef @.str.1, ptr noundef %31) #6
  br label %33

33:                                               ; preds = %29, %2
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = icmp slt i32 %34, 2
  br i1 %35, label %36, label %41

36:                                               ; preds = %33
  %37 = load ptr, ptr %5, align 8, !tbaa !9
  %38 = getelementptr inbounds ptr, ptr %37, i64 0
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  %40 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %39)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %300

41:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %42 = call ptr @getenv(ptr noundef @.str.3) #6
  store ptr %42, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  %43 = load ptr, ptr %13, align 8, !tbaa !9
  %44 = icmp ne ptr %43, null
  %45 = zext i1 %44 to i8
  store i8 %45, ptr %14, align 1, !tbaa !11
  %46 = load ptr, ptr %5, align 8, !tbaa !9
  %47 = getelementptr inbounds ptr, ptr %46, i64 1
  %48 = load ptr, ptr %47, align 8, !tbaa !9
  %49 = call i32 @rhp_gms_newfromcntr(ptr noundef %48, ptr noundef %6)
  store i32 %49, ptr %8, align 4, !tbaa !5
  %50 = load ptr, ptr %6, align 8, !tbaa !9
  %51 = icmp ne ptr %50, null
  br i1 %51, label %62, label %52

52:                                               ; preds = %41
  %53 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %54 = trunc i8 %53 to i1
  br i1 %54, label %61, label %55

55:                                               ; preds = %52
  %56 = load ptr, ptr @stderr, align 8, !tbaa !9
  %57 = load ptr, ptr %5, align 8, !tbaa !9
  %58 = getelementptr inbounds ptr, ptr %57, i64 1
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef @.str.4, ptr noundef %59) #6
  br label %61

61:                                               ; preds = %55, %52
  br label %258

62:                                               ; preds = %41
  %63 = load ptr, ptr %6, align 8, !tbaa !9
  %64 = call ptr @rhp_gms_getgmo(ptr noundef %63)
  store ptr %64, ptr %10, align 8, !tbaa !9
  %65 = load ptr, ptr %6, align 8, !tbaa !9
  %66 = call ptr @rhp_gms_getgev(ptr noundef %65)
  store ptr %66, ptr %15, align 8, !tbaa !9
  %67 = load ptr, ptr %6, align 8, !tbaa !9
  %68 = call ptr @rhp_gms_getsysdir(ptr noundef %67)
  store ptr %68, ptr %16, align 8, !tbaa !9
  %69 = load ptr, ptr %16, align 8, !tbaa !9
  %70 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
  %71 = call i32 @gmoGetReadyD(ptr noundef %69, ptr noundef %70, i32 noundef 256)
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %73, label %78

73:                                               ; preds = %62
  %74 = load ptr, ptr %16, align 8, !tbaa !9
  %75 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
  %76 = call i32 @gevGetReadyD(ptr noundef %74, ptr noundef %75, i32 noundef 256)
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %82, label %78

78:                                               ; preds = %73, %62
  %79 = load ptr, ptr @stderr, align 8, !tbaa !9
  %80 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef @.str.5, ptr noundef %80) #6
  br label %258

82:                                               ; preds = %73
  %83 = load i32, ptr %8, align 4, !tbaa !5
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %95

85:                                               ; preds = %82
  %86 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %87 = trunc i8 %86 to i1
  br i1 %87, label %94, label %88

88:                                               ; preds = %85
  %89 = load ptr, ptr @stderr, align 8, !tbaa !9
  %90 = load ptr, ptr %5, align 8, !tbaa !9
  %91 = getelementptr inbounds ptr, ptr %90, i64 1
  %92 = load ptr, ptr %91, align 8, !tbaa !9
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef @.str.6, ptr noundef %92) #6
  br label %94

94:                                               ; preds = %88, %85
  br label %258

95:                                               ; preds = %82
  %96 = call ptr @getenv(ptr noundef @.str.7) #6
  %97 = icmp ne ptr %96, null
  br i1 %97, label %98, label %139

98:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %99 = call ptr @getenv(ptr noundef @.str.8) #6
  store ptr %99, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store ptr null, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %100 = load ptr, ptr %16, align 8, !tbaa !9
  %101 = call i64 @strlen(ptr noundef %100) #7
  store i64 %101, ptr %19, align 8, !tbaa !15
  %102 = load ptr, ptr %17, align 8, !tbaa !9
  %103 = icmp ne ptr %102, null
  br i1 %103, label %104, label %132

104:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %105 = load ptr, ptr %17, align 8, !tbaa !9
  %106 = call i64 @strlen(ptr noundef %105) #7
  store i64 %106, ptr %20, align 8, !tbaa !15
  %107 = load i64, ptr %20, align 8, !tbaa !15
  %108 = add i64 %107, 2
  %109 = load i64, ptr %19, align 8, !tbaa !15
  %110 = add i64 %108, %109
  %111 = mul i64 1, %110
  %112 = call noalias ptr @malloc(i64 noundef %111) #8
  store ptr %112, ptr %18, align 8, !tbaa !9
  %113 = load ptr, ptr %18, align 8, !tbaa !9
  %114 = icmp ne ptr %113, null
  br i1 %114, label %118, label %115

115:                                              ; preds = %104
  %116 = load ptr, ptr @stderr, align 8, !tbaa !9
  %117 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %116, ptr noundef @.str.9) #6
  store i32 2, ptr %12, align 4
  br label %129

118:                                              ; preds = %104
  %119 = load ptr, ptr %18, align 8, !tbaa !9
  %120 = load ptr, ptr %17, align 8, !tbaa !9
  %121 = call ptr @strcpy(ptr noundef %119, ptr noundef %120) #6
  %122 = load ptr, ptr %18, align 8, !tbaa !9
  %123 = call ptr @strcat(ptr noundef %122, ptr noundef @.str.10) #6
  %124 = load ptr, ptr %18, align 8, !tbaa !9
  %125 = load ptr, ptr %16, align 8, !tbaa !9
  %126 = call ptr @strcat(ptr noundef %124, ptr noundef %125) #6
  %127 = load ptr, ptr %18, align 8, !tbaa !9
  %128 = call i32 @setenv(ptr noundef @.str.8, ptr noundef %127, i32 noundef 1) #6
  store i32 0, ptr %12, align 4
  br label %129

129:                                              ; preds = %118, %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  %130 = load i32, ptr %12, align 4
  switch i32 %130, label %136 [
    i32 0, label %131
  ]

131:                                              ; preds = %129
  br label %135

132:                                              ; preds = %98
  %133 = load ptr, ptr %16, align 8, !tbaa !9
  %134 = call i32 @setenv(ptr noundef @.str.8, ptr noundef %133, i32 noundef 1) #6
  br label %135

135:                                              ; preds = %132, %131
  store i32 0, ptr %12, align 4
  br label %136

136:                                              ; preds = %135, %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  %137 = load i32, ptr %12, align 4
  switch i32 %137, label %299 [
    i32 0, label %138
    i32 2, label %258
  ]

138:                                              ; preds = %136
  br label %139

139:                                              ; preds = %138, %95
  %140 = call ptr @getenv(ptr noundef @.str.11) #6
  store ptr %140, ptr %21, align 8, !tbaa !9
  %141 = load ptr, ptr %21, align 8, !tbaa !9
  %142 = icmp ne ptr %141, null
  br i1 %142, label %143, label %185

143:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %144 = call ptr @getenv(ptr noundef @.str.8) #6
  store ptr %144, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  store ptr null, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %145 = load ptr, ptr %21, align 8, !tbaa !9
  %146 = call i64 @strlen(ptr noundef %145) #7
  store i64 %146, ptr %24, align 8, !tbaa !15
  %147 = load ptr, ptr %22, align 8, !tbaa !9
  %148 = icmp ne ptr %147, null
  br i1 %148, label %149, label %177

149:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %150 = load ptr, ptr %22, align 8, !tbaa !9
  %151 = call i64 @strlen(ptr noundef %150) #7
  store i64 %151, ptr %25, align 8, !tbaa !15
  %152 = load i64, ptr %25, align 8, !tbaa !15
  %153 = add i64 %152, 2
  %154 = load i64, ptr %24, align 8, !tbaa !15
  %155 = add i64 %153, %154
  %156 = mul i64 1, %155
  %157 = call noalias ptr @malloc(i64 noundef %156) #8
  store ptr %157, ptr %23, align 8, !tbaa !9
  %158 = load ptr, ptr %23, align 8, !tbaa !9
  %159 = icmp ne ptr %158, null
  br i1 %159, label %163, label %160

160:                                              ; preds = %149
  %161 = load ptr, ptr @stderr, align 8, !tbaa !9
  %162 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %161, ptr noundef @.str.9) #6
  store i32 2, ptr %12, align 4
  br label %174

163:                                              ; preds = %149
  %164 = load ptr, ptr %23, align 8, !tbaa !9
  %165 = load ptr, ptr %22, align 8, !tbaa !9
  %166 = call ptr @strcpy(ptr noundef %164, ptr noundef %165) #6
  %167 = load ptr, ptr %23, align 8, !tbaa !9
  %168 = call ptr @strcat(ptr noundef %167, ptr noundef @.str.10) #6
  %169 = load ptr, ptr %23, align 8, !tbaa !9
  %170 = load ptr, ptr %21, align 8, !tbaa !9
  %171 = call ptr @strcat(ptr noundef %169, ptr noundef %170) #6
  %172 = load ptr, ptr %23, align 8, !tbaa !9
  %173 = call i32 @setenv(ptr noundef @.str.8, ptr noundef %172, i32 noundef 1) #6
  store i32 0, ptr %12, align 4
  br label %174

174:                                              ; preds = %163, %160
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  %175 = load i32, ptr %12, align 4
  switch i32 %175, label %182 [
    i32 0, label %176
  ]

176:                                              ; preds = %174
  br label %180

177:                                              ; preds = %143
  %178 = load ptr, ptr %21, align 8, !tbaa !9
  %179 = call i32 @setenv(ptr noundef @.str.8, ptr noundef %178, i32 noundef 1) #6
  br label %180

180:                                              ; preds = %177, %176
  %181 = load ptr, ptr %23, align 8, !tbaa !9
  call void @free(ptr noundef %181) #6
  store i32 0, ptr %12, align 4
  br label %182

182:                                              ; preds = %180, %174
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  %183 = load i32, ptr %12, align 4
  switch i32 %183, label %299 [
    i32 0, label %184
    i32 2, label %258
  ]

184:                                              ; preds = %182
  br label %185

185:                                              ; preds = %184, %139
  %186 = load ptr, ptr %6, align 8, !tbaa !9
  %187 = call noalias ptr @rhp_newsolvermdl(ptr noundef %186)
  store ptr %187, ptr %7, align 8, !tbaa !9
  %188 = load ptr, ptr %7, align 8, !tbaa !9
  %189 = icmp ne ptr %188, null
  br i1 %189, label %200, label %190

190:                                              ; preds = %185
  %191 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %192 = trunc i8 %191 to i1
  br i1 %192, label %196, label %193

193:                                              ; preds = %190
  %194 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
  %195 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %194, i64 noundef 256, ptr noundef @.str.12) #6
  br label %196

196:                                              ; preds = %193, %190
  %197 = load ptr, ptr @gevLogStatPChar, align 8, !tbaa !9
  %198 = load ptr, ptr %15, align 8, !tbaa !9
  %199 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
  call void %197(ptr noundef %198, ptr noundef %199)
  br label %258

200:                                              ; preds = %185
  %201 = load ptr, ptr %6, align 8, !tbaa !9
  %202 = load ptr, ptr %7, align 8, !tbaa !9
  %203 = call i32 @rhp_process(ptr noundef %201, ptr noundef %202)
  store i32 %203, ptr %8, align 4, !tbaa !5
  %204 = load i32, ptr %8, align 4, !tbaa !5
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %206, label %219

206:                                              ; preds = %200
  %207 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %208 = trunc i8 %207 to i1
  br i1 %208, label %215, label %209

209:                                              ; preds = %206
  %210 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
  %211 = load i32, ptr %8, align 4, !tbaa !5
  %212 = call ptr @rhp_status_descr(i32 noundef %211)
  %213 = load i32, ptr %8, align 4, !tbaa !5
  %214 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %210, i64 noundef 256, ptr noundef @.str.13, ptr noundef %212, i32 noundef %213) #6
  br label %215

215:                                              ; preds = %209, %206
  %216 = load ptr, ptr @gevLogStatPChar, align 8, !tbaa !9
  %217 = load ptr, ptr %15, align 8, !tbaa !9
  %218 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
  call void %216(ptr noundef %217, ptr noundef %218)
  br label %258

219:                                              ; preds = %200
  %220 = load ptr, ptr %7, align 8, !tbaa !9
  %221 = call i32 @rhp_gms_set_solvelink(ptr noundef %220, i32 noundef 2)
  %222 = load ptr, ptr %7, align 8, !tbaa !9
  %223 = call i32 @rhp_solve(ptr noundef %222)
  store i32 %223, ptr %8, align 4, !tbaa !5
  %224 = load i32, ptr %8, align 4, !tbaa !5
  %225 = icmp ne i32 %224, 0
  br i1 %225, label %226, label %239

226:                                              ; preds = %219
  %227 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %228 = trunc i8 %227 to i1
  br i1 %228, label %235, label %229

229:                                              ; preds = %226
  %230 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
  %231 = load i32, ptr %8, align 4, !tbaa !5
  %232 = call ptr @rhp_status_descr(i32 noundef %231)
  %233 = load i32, ptr %8, align 4, !tbaa !5
  %234 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %230, i64 noundef 256, ptr noundef @.str.14, ptr noundef %232, i32 noundef %233) #6
  br label %235

235:                                              ; preds = %229, %226
  %236 = load ptr, ptr @gevLogStatPChar, align 8, !tbaa !9
  %237 = load ptr, ptr %15, align 8, !tbaa !9
  %238 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
  call void %236(ptr noundef %237, ptr noundef %238)
  br label %258

239:                                              ; preds = %219
  %240 = load ptr, ptr %7, align 8, !tbaa !9
  %241 = call i32 @rhp_postprocess(ptr noundef %240)
  store i32 %241, ptr %8, align 4, !tbaa !5
  %242 = load i32, ptr %8, align 4, !tbaa !5
  %243 = icmp ne i32 %242, 0
  br i1 %243, label %244, label %257

244:                                              ; preds = %239
  %245 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %246 = trunc i8 %245 to i1
  br i1 %246, label %253, label %247

247:                                              ; preds = %244
  %248 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
  %249 = load i32, ptr %8, align 4, !tbaa !5
  %250 = call ptr @rhp_status_descr(i32 noundef %249)
  %251 = load i32, ptr %8, align 4, !tbaa !5
  %252 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %248, i64 noundef 256, ptr noundef @.str.15, ptr noundef %250, i32 noundef %251) #6
  br label %253

253:                                              ; preds = %247, %244
  %254 = load ptr, ptr @gevLogStatPChar, align 8, !tbaa !9
  %255 = load ptr, ptr %15, align 8, !tbaa !9
  %256 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
  call void %254(ptr noundef %255, ptr noundef %256)
  br label %258

257:                                              ; preds = %239
  br label %258

258:                                              ; preds = %257, %253, %235, %215, %196, %182, %136, %94, %78, %61
  %259 = load i32, ptr %8, align 4, !tbaa !5
  %260 = icmp ne i32 %259, 0
  br i1 %260, label %261, label %269

261:                                              ; preds = %258
  %262 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %263 = trunc i8 %262 to i1
  br i1 %263, label %268, label %264

264:                                              ; preds = %261
  %265 = load ptr, ptr @stderr, align 8, !tbaa !9
  %266 = load i32, ptr %8, align 4, !tbaa !5
  %267 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %265, ptr noundef @.str.16, i32 noundef %266) #6
  br label %268

268:                                              ; preds = %264, %261
  br label %269

269:                                              ; preds = %268, %258
  %270 = load i32, ptr %8, align 4, !tbaa !5
  %271 = icmp ne i32 %270, 0
  br i1 %271, label %272, label %280

272:                                              ; preds = %269
  %273 = load ptr, ptr %10, align 8, !tbaa !9
  %274 = icmp ne ptr %273, null
  br i1 %274, label %275, label %280

275:                                              ; preds = %272
  %276 = load ptr, ptr @gmoSolveStatSet, align 8, !tbaa !9
  %277 = load ptr, ptr %10, align 8, !tbaa !9
  call void %276(ptr noundef %277, i32 noundef 11)
  %278 = load ptr, ptr @gmoModelStatSet, align 8, !tbaa !9
  %279 = load ptr, ptr %10, align 8, !tbaa !9
  call void %278(ptr noundef %279, i32 noundef 13)
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %280

280:                                              ; preds = %275, %272, %269
  %281 = load ptr, ptr %10, align 8, !tbaa !9
  %282 = icmp ne ptr %281, null
  br i1 %282, label %283, label %287

283:                                              ; preds = %280
  %284 = load ptr, ptr @gmoUnloadSolutionLegacy, align 8, !tbaa !9
  %285 = load ptr, ptr %10, align 8, !tbaa !9
  %286 = call i32 %284(ptr noundef %285)
  br label %287

287:                                              ; preds = %283, %280
  %288 = load ptr, ptr %7, align 8, !tbaa !9
  %289 = icmp ne ptr %288, null
  br i1 %289, label %290, label %292

290:                                              ; preds = %287
  %291 = load ptr, ptr %7, align 8, !tbaa !9
  call void @rhp_mdl_free(ptr noundef %291)
  br label %292

292:                                              ; preds = %290, %287
  %293 = load ptr, ptr %6, align 8, !tbaa !9
  %294 = icmp ne ptr %293, null
  br i1 %294, label %295, label %297

295:                                              ; preds = %292
  %296 = load ptr, ptr %6, align 8, !tbaa !9
  call void @rhp_mdl_free(ptr noundef %296)
  br label %297

297:                                              ; preds = %295, %292
  %298 = load i32, ptr %8, align 4, !tbaa !5
  store i32 %298, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %299

299:                                              ; preds = %297, %182, %136
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %300

300:                                              ; preds = %299, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %301 = load i32, ptr %3, align 4
  ret i32 %301
}

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

; Function Attrs: nounwind
declare ptr @getenv(ptr noundef) #2

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

declare ptr @rhp_version() #3

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

declare i32 @rhp_gms_newfromcntr(ptr noundef, ptr noundef) #3

declare ptr @rhp_gms_getgmo(ptr noundef) #3

declare ptr @rhp_gms_getgev(ptr noundef) #3

declare ptr @rhp_gms_getsysdir(ptr noundef) #3

declare i32 @gmoGetReadyD(ptr noundef, ptr noundef, i32 noundef) #3

declare i32 @gevGetReadyD(ptr noundef, ptr noundef, i32 noundef) #3

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #5

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare ptr @strcat(ptr noundef, ptr noundef) #2

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

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #2

declare noalias ptr @rhp_newsolvermdl(ptr noundef) #3

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

declare i32 @rhp_process(ptr noundef, ptr noundef) #3

declare ptr @rhp_status_descr(i32 noundef) #3

declare i32 @rhp_gms_set_solvelink(ptr noundef, i32 noundef) #3

declare i32 @rhp_solve(ptr noundef) #3

declare i32 @rhp_postprocess(ptr noundef) #3

declare void @rhp_mdl_free(ptr noundef) #3

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 "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 = { "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 = { nounwind allocsize(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) }
attributes #8 = { nounwind allocsize(0) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_Bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}


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

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [55 x i8], align 1
@gevLogStatPChar = external local_unnamed_addr global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [32 x i8], align 1
@gmoSolveStatSet = external local_unnamed_addr global ptr, align 8
@gmoModelStatSet = external local_unnamed_addr global ptr, align 8
@gmoUnloadSolutionLegacy = external local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca ptr, align 8
  %4 = alloca [256 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #10
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %4) #10
  %5 = tail call ptr @getenv(ptr noundef nonnull @.str) #10
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %10, label %6

6:                                                ; preds = %2
  %7 = load ptr, ptr @stdout, align 8, !tbaa !5
  %8 = tail call ptr @rhp_version() #10
  %9 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.1, ptr noundef %8) #10
  br label %10

10:                                               ; preds = %6, %2
  %11 = icmp slt i32 %0, 2
  br i1 %11, label %12, label %15

12:                                               ; preds = %10
  %13 = load ptr, ptr %1, align 8, !tbaa !5
  %14 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %13)
  br label %135

15:                                               ; preds = %10
  %16 = tail call ptr @getenv(ptr noundef nonnull @.str.3) #10
  %.not102 = icmp eq ptr %16, null
  %17 = getelementptr inbounds i8, ptr %1, i64 8
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %19 = call i32 @rhp_gms_newfromcntr(ptr noundef %18, ptr noundef nonnull %3) #10
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %.not103 = icmp eq ptr %20, null
  br i1 %.not103, label %21, label %26

21:                                               ; preds = %15
  br i1 %.not102, label %22, label %.thread128

22:                                               ; preds = %21
  %23 = load ptr, ptr @stderr, align 8, !tbaa !5
  %24 = load ptr, ptr %17, align 8, !tbaa !5
  %25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str.4, ptr noundef %24) #11
  br label %116

26:                                               ; preds = %15
  %27 = call ptr @rhp_gms_getgmo(ptr noundef nonnull %20) #10
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = call ptr @rhp_gms_getgev(ptr noundef %28) #10
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = call ptr @rhp_gms_getsysdir(ptr noundef %30) #10
  %32 = call i32 @gmoGetReadyD(ptr noundef %31, ptr noundef nonnull %4, i32 noundef 256) #10
  %.not104 = icmp eq i32 %32, 0
  br i1 %.not104, label %35, label %33

33:                                               ; preds = %26
  %34 = call i32 @gevGetReadyD(ptr noundef %31, ptr noundef nonnull %4, i32 noundef 256) #10
  %.not105 = icmp eq i32 %34, 0
  br i1 %.not105, label %35, label %38

35:                                               ; preds = %33, %26
  %36 = load ptr, ptr @stderr, align 8, !tbaa !5
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.5, ptr noundef nonnull %4) #11
  br label %116

38:                                               ; preds = %33
  %.not106 = icmp eq i32 %19, 0
  br i1 %.not106, label %44, label %39

39:                                               ; preds = %38
  br i1 %.not102, label %40, label %.thread128

40:                                               ; preds = %39
  %41 = load ptr, ptr @stderr, align 8, !tbaa !5
  %42 = load ptr, ptr %17, align 8, !tbaa !5
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef nonnull @.str.6, ptr noundef %42) #11
  br label %116

44:                                               ; preds = %38
  %45 = call ptr @getenv(ptr noundef nonnull @.str.7) #10
  %.not107 = icmp eq ptr %45, null
  br i1 %.not107, label %.thread121, label %46

46:                                               ; preds = %44
  %47 = call ptr @getenv(ptr noundef nonnull @.str.8) #10
  %.not108 = icmp eq ptr %47, null
  br i1 %.not108, label %59, label %48

48:                                               ; preds = %46
  %49 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %31) #12
  %50 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %47) #12
  %51 = add i64 %49, 2
  %52 = add i64 %51, %50
  %53 = call noalias ptr @malloc(i64 noundef %52) #13
  %.not109.not = icmp eq ptr %53, null
  br i1 %.not109.not, label %61, label %54

54:                                               ; preds = %48
  %55 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %53, ptr noundef nonnull dereferenceable(1) %47) #10
  %56 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %53, ptr noundef nonnull dereferenceable(1) @.str.10) #10
  %57 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %53, ptr noundef nonnull dereferenceable(1) %31) #10
  %58 = call i32 @setenv(ptr noundef nonnull @.str.8, ptr noundef nonnull %53, i32 noundef 1) #10
  br label %.thread121

59:                                               ; preds = %46
  %60 = call i32 @setenv(ptr noundef nonnull @.str.8, ptr noundef %31, i32 noundef 1) #10
  br label %.thread121

61:                                               ; preds = %48
  %62 = load ptr, ptr @stderr, align 8, !tbaa !5
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef nonnull @.str.9) #11
  br label %.thread128

.thread121:                                       ; preds = %59, %54, %44
  %64 = call ptr @getenv(ptr noundef nonnull @.str.11) #10
  %.not110 = icmp eq ptr %64, null
  br i1 %.not110, label %81, label %65

65:                                               ; preds = %.thread121
  %66 = call ptr @getenv(ptr noundef nonnull @.str.8) #10
  %.not111 = icmp eq ptr %66, null
  br i1 %.not111, label %.thread125, label %67

67:                                               ; preds = %65
  %68 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %64) #12
  %69 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %66) #12
  %70 = add i64 %68, 2
  %71 = add i64 %70, %69
  %72 = call noalias ptr @malloc(i64 noundef %71) #13
  %.not112.not = icmp eq ptr %72, null
  br i1 %.not112.not, label %78, label %73

73:                                               ; preds = %67
  %74 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %72, ptr noundef nonnull dereferenceable(1) %66) #10
  %75 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %72, ptr noundef nonnull dereferenceable(1) @.str.10) #10
  %76 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %72, ptr noundef nonnull dereferenceable(1) %64) #10
  br label %.thread125

.thread125:                                       ; preds = %65, %73
  %.sink = phi ptr [ %72, %73 ], [ %64, %65 ]
  %.081 = phi ptr [ %72, %73 ], [ null, %65 ]
  %77 = call i32 @setenv(ptr noundef nonnull @.str.8, ptr noundef nonnull %.sink, i32 noundef 1) #10
  call void @free(ptr noundef %.081) #10
  br label %81

78:                                               ; preds = %67
  %79 = load ptr, ptr @stderr, align 8, !tbaa !5
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef nonnull @.str.9) #11
  br label %.thread128

81:                                               ; preds = %.thread125, %.thread121
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = call noalias ptr @rhp_newsolvermdl(ptr noundef %82) #10
  %.not113 = icmp eq ptr %83, null
  br i1 %.not113, label %84, label %89

84:                                               ; preds = %81
  br i1 %.not102, label %85, label %87

85:                                               ; preds = %84
  %86 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %4, i64 noundef 256, ptr noundef nonnull @.str.12) #10
  br label %87

87:                                               ; preds = %85, %84
  %88 = load ptr, ptr @gevLogStatPChar, align 8, !tbaa !5
  call void %88(ptr noundef %29, ptr noundef nonnull %4) #10
  br label %.thread128

89:                                               ; preds = %81
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = call i32 @rhp_process(ptr noundef %90, ptr noundef nonnull %83) #10
  %.not114 = icmp eq i32 %91, 0
  br i1 %.not114, label %98, label %92

92:                                               ; preds = %89
  br i1 %.not102, label %93, label %96

93:                                               ; preds = %92
  %94 = call ptr @rhp_status_descr(i32 noundef %91) #10
  %95 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %4, i64 noundef 256, ptr noundef nonnull @.str.13, ptr noundef %94, i32 noundef %91) #10
  br label %96

96:                                               ; preds = %93, %92
  %97 = load ptr, ptr @gevLogStatPChar, align 8, !tbaa !5
  call void %97(ptr noundef %29, ptr noundef nonnull %4) #10
  br label %116

98:                                               ; preds = %89
  %99 = call i32 @rhp_gms_set_solvelink(ptr noundef nonnull %83, i32 noundef 2) #10
  %100 = call i32 @rhp_solve(ptr noundef nonnull %83) #10
  %.not115 = icmp eq i32 %100, 0
  br i1 %.not115, label %107, label %101

101:                                              ; preds = %98
  br i1 %.not102, label %102, label %105

102:                                              ; preds = %101
  %103 = call ptr @rhp_status_descr(i32 noundef %100) #10
  %104 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %4, i64 noundef 256, ptr noundef nonnull @.str.14, ptr noundef %103, i32 noundef %100) #10
  br label %105

105:                                              ; preds = %102, %101
  %106 = load ptr, ptr @gevLogStatPChar, align 8, !tbaa !5
  call void %106(ptr noundef %29, ptr noundef nonnull %4) #10
  br label %116

107:                                              ; preds = %98
  %108 = call i32 @rhp_postprocess(ptr noundef nonnull %83) #10
  %.not116 = icmp eq i32 %108, 0
  br i1 %.not116, label %.thread128, label %109

109:                                              ; preds = %107
  br i1 %.not102, label %110, label %113

110:                                              ; preds = %109
  %111 = call ptr @rhp_status_descr(i32 noundef %108) #10
  %112 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %4, i64 noundef 256, ptr noundef nonnull @.str.15, ptr noundef %111, i32 noundef %108) #10
  br label %113

113:                                              ; preds = %110, %109
  %114 = load ptr, ptr @gevLogStatPChar, align 8, !tbaa !5
  call void %114(ptr noundef %29, ptr noundef nonnull %4) #10
  br label %116

.thread128:                                       ; preds = %61, %78, %107, %87, %39, %21
  %.084.ph = phi ptr [ null, %21 ], [ %27, %87 ], [ %27, %107 ], [ %27, %78 ], [ %27, %61 ], [ %27, %39 ]
  %.082.ph = phi i32 [ %19, %21 ], [ 0, %87 ], [ 0, %107 ], [ 0, %78 ], [ 0, %61 ], [ %19, %39 ]
  %.080.ph = phi ptr [ null, %21 ], [ null, %87 ], [ %83, %107 ], [ null, %78 ], [ null, %61 ], [ null, %39 ]
  %115 = icmp ne i32 %.082.ph, 0
  br label %121

116:                                              ; preds = %40, %22, %113, %105, %96, %35
  %.084 = phi ptr [ %27, %40 ], [ %27, %96 ], [ %27, %105 ], [ %27, %113 ], [ %27, %35 ], [ null, %22 ]
  %.082 = phi i32 [ %19, %40 ], [ %91, %96 ], [ %100, %105 ], [ %108, %113 ], [ %19, %35 ], [ %19, %22 ]
  %.080 = phi ptr [ null, %40 ], [ %83, %96 ], [ %83, %105 ], [ %83, %113 ], [ null, %35 ], [ null, %22 ]
  %117 = icmp ne i32 %.082, 0
  %brmerge.not = and i1 %.not102, %117
  br i1 %brmerge.not, label %118, label %121

118:                                              ; preds = %116
  %119 = load ptr, ptr @stderr, align 8, !tbaa !5
  %120 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %119, ptr noundef nonnull @.str.16, i32 noundef %.082) #11
  br label %121

121:                                              ; preds = %.thread128, %116, %118
  %122 = phi i1 [ %115, %.thread128 ], [ %117, %116 ], [ true, %118 ]
  %.080137 = phi ptr [ %.080.ph, %.thread128 ], [ %.080, %116 ], [ %.080, %118 ]
  %.082136 = phi i32 [ %.082.ph, %.thread128 ], [ %.082, %116 ], [ %.082, %118 ]
  %.084135 = phi ptr [ %.084.ph, %.thread128 ], [ %.084, %116 ], [ %.084, %118 ]
  %123 = icmp ne ptr %.084135, null
  %or.cond = select i1 %122, i1 %123, i1 false
  br i1 %or.cond, label %.thread138, label %126

.thread138:                                       ; preds = %121
  %124 = load ptr, ptr @gmoSolveStatSet, align 8, !tbaa !5
  call void %124(ptr noundef nonnull %.084135, i32 noundef 11) #10
  %125 = load ptr, ptr @gmoModelStatSet, align 8, !tbaa !5
  call void %125(ptr noundef nonnull %.084135, i32 noundef 13) #10
  br label %127

126:                                              ; preds = %121
  br i1 %123, label %127, label %130

127:                                              ; preds = %.thread138, %126
  %.183141 = phi i32 [ 0, %.thread138 ], [ %.082136, %126 ]
  %128 = load ptr, ptr @gmoUnloadSolutionLegacy, align 8, !tbaa !5
  %129 = call i32 %128(ptr noundef nonnull %.084135) #10
  br label %130

130:                                              ; preds = %127, %126
  %.183140 = phi i32 [ %.183141, %127 ], [ %.082136, %126 ]
  %.not117 = icmp eq ptr %.080137, null
  br i1 %.not117, label %132, label %131

131:                                              ; preds = %130
  call void @rhp_mdl_free(ptr noundef nonnull %.080137) #10
  br label %132

132:                                              ; preds = %131, %130
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  %.not118 = icmp eq ptr %133, null
  br i1 %.not118, label %135, label %134

134:                                              ; preds = %132
  call void @rhp_mdl_free(ptr noundef nonnull %133) #10
  br label %135

135:                                              ; preds = %134, %132, %12
  %.1 = phi i32 [ 1, %12 ], [ %.183140, %134 ], [ %.183140, %132 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #10
  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: nofree nounwind memory(read)
declare noundef ptr @getenv(ptr nocapture noundef) local_unnamed_addr #2

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

declare ptr @rhp_version() local_unnamed_addr #4

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

declare i32 @rhp_gms_newfromcntr(ptr noundef, ptr noundef) local_unnamed_addr #4

declare ptr @rhp_gms_getgmo(ptr noundef) local_unnamed_addr #4

declare ptr @rhp_gms_getgev(ptr noundef) local_unnamed_addr #4

declare ptr @rhp_gms_getsysdir(ptr noundef) local_unnamed_addr #4

declare i32 @gmoGetReadyD(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

declare i32 @gevGetReadyD(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #7

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcat(ptr noalias noundef returned, ptr noalias nocapture noundef readonly) local_unnamed_addr #7

; Function Attrs: nounwind
declare i32 @setenv(ptr noundef, ptr noundef, i32 noundef) 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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #9

declare noalias ptr @rhp_newsolvermdl(ptr noundef) local_unnamed_addr #4

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

declare i32 @rhp_process(ptr noundef, ptr noundef) local_unnamed_addr #4

declare ptr @rhp_status_descr(i32 noundef) local_unnamed_addr #4

declare i32 @rhp_gms_set_solvelink(ptr noundef, i32 noundef) local_unnamed_addr #4

declare i32 @rhp_solve(ptr noundef) local_unnamed_addr #4

declare i32 @rhp_postprocess(ptr noundef) local_unnamed_addr #4

declare void @rhp_mdl_free(ptr noundef) local_unnamed_addr #4

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 = { nofree nounwind 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 = { 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 = { "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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { 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 #8 = { 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 #9 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #10 = { nounwind }
attributes #11 = { cold nounwind }
attributes #12 = { nounwind willreturn memory(read) }
attributes #13 = { nounwind allocsize(0) }

!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"}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass