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

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

@gevLogStatPChar = external global ptr, align 8
@gmoModelStatSet = external global ptr, align 8
@gmoSolveStatSet = external global ptr, align 8
@.str.21 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [69 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

declare void @rhp_mdl_free(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @rhpCallSolver(ptr noundef %0) #3 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca [256 x i8], align 16
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %9, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 256, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store ptr null, ptr %7, align 8, !tbaa !5
  %10 = load ptr, ptr @gmoModelStatSet, align 8, !tbaa !5
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.rhpRec, ptr %11, i32 0, i32 1
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  call void %10(ptr noundef %13, i32 noundef 13)
  %14 = load ptr, ptr @gmoSolveStatSet, align 8, !tbaa !5
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.rhpRec, ptr %15, i32 0, i32 1
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  call void %14(ptr noundef %17, i32 noundef 9)
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = call i32 @opt_pushtosolver(ptr noundef %18)
  store i32 %19, ptr %5, align 4, !tbaa !12
  %20 = load i32, ptr %5, align 4, !tbaa !12
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %22, label %34

22:                                               ; preds = %1
  %23 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  %24 = load i32, ptr %5, align 4, !tbaa !12
  %25 = call ptr @rhp_status_descr(i32 noundef %24)
  %26 = load i32, ptr %5, align 4, !tbaa !12
  %27 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %23, i64 noundef 256, ptr noundef @.str.21, ptr noundef %25, i32 noundef %26) #4
  %28 = load ptr, ptr @gevLogStatPChar, align 8, !tbaa !5
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.rhpRec, ptr %29, i32 0, i32 2
  %31 = load ptr, ptr %30, align 8, !tbaa !13
  %32 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  call void %28(ptr noundef %31, ptr noundef %32)
  %33 = load i32, ptr %5, align 4, !tbaa !12
  store i32 %33, ptr %2, align 4
  store i32 1, ptr %8, align 4
  br label %140

34:                                               ; preds = %1
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.rhpRec, ptr %35, i32 0, i32 6
  %37 = load ptr, ptr %36, align 8, !tbaa !14
  %38 = call i32 @rhp_gms_readempinfo(ptr noundef %37, ptr noundef null)
  store i32 %38, ptr %5, align 4, !tbaa !12
  %39 = load i32, ptr %5, align 4, !tbaa !12
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %52

41:                                               ; preds = %34
  %42 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  %43 = load i32, ptr %5, align 4, !tbaa !12
  %44 = call ptr @rhp_status_descr(i32 noundef %43)
  %45 = load i32, ptr %5, align 4, !tbaa !12
  %46 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %42, i64 noundef 256, ptr noundef @.str.22, ptr noundef %44, i32 noundef %45) #4
  %47 = load ptr, ptr @gevLogStatPChar, align 8, !tbaa !5
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.rhpRec, ptr %48, i32 0, i32 2
  %50 = load ptr, ptr %49, align 8, !tbaa !13
  %51 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  call void %47(ptr noundef %50, ptr noundef %51)
  br label %119

52:                                               ; preds = %34
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.rhpRec, ptr %53, i32 0, i32 6
  %55 = load ptr, ptr %54, align 8, !tbaa !14
  %56 = call noalias ptr @rhp_newsolvermdl(ptr noundef %55)
  store ptr %56, ptr %7, align 8, !tbaa !5
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = icmp ne ptr %57, null
  br i1 %58, label %67, label %59

59:                                               ; preds = %52
  %60 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  %61 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %60, i64 noundef 256, ptr noundef @.str.23) #4
  %62 = load ptr, ptr @gevLogStatPChar, align 8, !tbaa !5
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.rhpRec, ptr %63, i32 0, i32 2
  %65 = load ptr, ptr %64, align 8, !tbaa !13
  %66 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  call void %62(ptr noundef %65, ptr noundef %66)
  br label %119

67:                                               ; preds = %52
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.rhpRec, ptr %68, i32 0, i32 6
  %70 = load ptr, ptr %69, align 8, !tbaa !14
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = call i32 @rhp_process(ptr noundef %70, ptr noundef %71)
  store i32 %72, ptr %5, align 4, !tbaa !12
  %73 = load i32, ptr %5, align 4, !tbaa !12
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %86

75:                                               ; preds = %67
  %76 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  %77 = load i32, ptr %5, align 4, !tbaa !12
  %78 = call ptr @rhp_status_descr(i32 noundef %77)
  %79 = load i32, ptr %5, align 4, !tbaa !12
  %80 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %76, i64 noundef 256, ptr noundef @.str.24, ptr noundef %78, i32 noundef %79) #4
  %81 = load ptr, ptr @gevLogStatPChar, align 8, !tbaa !5
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.rhpRec, ptr %82, i32 0, i32 2
  %84 = load ptr, ptr %83, align 8, !tbaa !13
  %85 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  call void %81(ptr noundef %84, ptr noundef %85)
  br label %119

86:                                               ; preds = %67
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = call i32 @rhp_solve(ptr noundef %87)
  store i32 %88, ptr %5, align 4, !tbaa !12
  %89 = load i32, ptr %5, align 4, !tbaa !12
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %102

91:                                               ; preds = %86
  %92 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  %93 = load i32, ptr %5, align 4, !tbaa !12
  %94 = call ptr @rhp_status_descr(i32 noundef %93)
  %95 = load i32, ptr %5, align 4, !tbaa !12
  %96 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %92, i64 noundef 256, ptr noundef @.str.25, ptr noundef %94, i32 noundef %95) #4
  %97 = load ptr, ptr @gevLogStatPChar, align 8, !tbaa !5
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.rhpRec, ptr %98, i32 0, i32 2
  %100 = load ptr, ptr %99, align 8, !tbaa !13
  %101 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  call void %97(ptr noundef %100, ptr noundef %101)
  br label %119

102:                                              ; preds = %86
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  %104 = call i32 @rhp_postprocess(ptr noundef %103)
  store i32 %104, ptr %5, align 4, !tbaa !12
  %105 = load i32, ptr %5, align 4, !tbaa !12
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %118

107:                                              ; preds = %102
  %108 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  %109 = load i32, ptr %5, align 4, !tbaa !12
  %110 = call ptr @rhp_status_descr(i32 noundef %109)
  %111 = load i32, ptr %5, align 4, !tbaa !12
  %112 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %108, i64 noundef 256, ptr noundef @.str.26, ptr noundef %110, i32 noundef %111) #4
  %113 = load ptr, ptr @gevLogStatPChar, align 8, !tbaa !5
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.rhpRec, ptr %114, i32 0, i32 2
  %116 = load ptr, ptr %115, align 8, !tbaa !13
  %117 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  call void %113(ptr noundef %116, ptr noundef %117)
  br label %119

118:                                              ; preds = %102
  br label %119

119:                                              ; preds = %118, %107, %91, %75, %59, %41
  %120 = load i32, ptr %5, align 4, !tbaa !12
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %122, label %137

122:                                              ; preds = %119
  %123 = load ptr, ptr @gmoModelStatSet, align 8, !tbaa !5
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.rhpRec, ptr %124, i32 0, i32 1
  %126 = load ptr, ptr %125, align 8, !tbaa !9
  call void %123(ptr noundef %126, i32 noundef 13)
  %127 = load ptr, ptr @gmoSolveStatSet, align 8, !tbaa !5
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.rhpRec, ptr %128, i32 0, i32 1
  %130 = load ptr, ptr %129, align 8, !tbaa !9
  %131 = load i32, ptr %5, align 4, !tbaa !12
  %132 = call i32 @rhp_rc2gmosolvestat(i32 noundef %131)
  call void %127(ptr noundef %130, i32 noundef %132)
  %133 = load i32, ptr %5, align 4, !tbaa !12
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.rhpRec, ptr %134, i32 0, i32 2
  %136 = load ptr, ptr %135, align 8, !tbaa !13
  call void @rhp_printrcmsg(i32 noundef %133, ptr noundef %136)
  br label %137

137:                                              ; preds = %122, %119
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  call void @rhp_mdl_free(ptr noundef %138)
  %139 = load i32, ptr %5, align 4, !tbaa !12
  store i32 %139, ptr %2, align 4
  store i32 1, ptr %8, align 4
  br label %140

140:                                              ; preds = %137, %22
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 256, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  %141 = load i32, ptr %2, align 4
  ret i32 %141
}

declare i32 @opt_pushtosolver(ptr noundef) #1

declare ptr @rhp_status_descr(i32 noundef) #1

declare i32 @rhp_gms_readempinfo(ptr noundef, ptr noundef) #1

declare noalias ptr @rhp_newsolvermdl(ptr noundef) #1

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

declare i32 @rhp_solve(ptr noundef) #1

declare i32 @rhp_postprocess(ptr noundef) #1

declare i32 @rhp_rc2gmosolvestat(i32 noundef) #1

declare void @rhp_printrcmsg(i32 noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 = { 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 #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 8}
!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 = !{!10, !6, i64 48}


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

@gevLogStatPChar = external local_unnamed_addr global ptr, align 8
@gmoModelStatSet = external local_unnamed_addr global ptr, align 8
@gmoSolveStatSet = external local_unnamed_addr global ptr, align 8
@.str.21 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [69 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

declare void @rhp_mdl_free(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @rhpCallSolver(ptr noundef %0) local_unnamed_addr #3 {
  %2 = alloca [256 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %2) #4
  %3 = load ptr, ptr @gmoModelStatSet, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  %5 = load ptr, ptr %4, align 8, !tbaa !9
  tail call void %3(ptr noundef %5, i32 noundef 13) #4
  %6 = load ptr, ptr @gmoSolveStatSet, align 8, !tbaa !5
  %7 = load ptr, ptr %4, align 8, !tbaa !9
  tail call void %6(ptr noundef %7, i32 noundef 9) #4
  %8 = tail call i32 @opt_pushtosolver(ptr noundef %0) #4
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %15, label %9

9:                                                ; preds = %1
  %10 = tail call ptr @rhp_status_descr(i32 noundef %8) #4
  %11 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 256, ptr noundef nonnull @.str.21, ptr noundef %10, i32 noundef %8) #4
  %12 = load ptr, ptr @gevLogStatPChar, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %0, i64 16
  %14 = load ptr, ptr %13, align 8, !tbaa !12
  call void %12(ptr noundef %14, ptr noundef nonnull %2) #4
  br label %58

15:                                               ; preds = %1
  %16 = getelementptr inbounds i8, ptr %0, i64 48
  %17 = load ptr, ptr %16, align 8, !tbaa !13
  %18 = tail call i32 @rhp_gms_readempinfo(ptr noundef %17, ptr noundef null) #4
  %.not51 = icmp eq i32 %18, 0
  br i1 %.not51, label %22, label %19

19:                                               ; preds = %15
  %20 = tail call ptr @rhp_status_descr(i32 noundef %18) #4
  %21 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 256, ptr noundef nonnull @.str.22, ptr noundef %20, i32 noundef %18) #4
  br label %46

22:                                               ; preds = %15
  %23 = load ptr, ptr %16, align 8, !tbaa !13
  %24 = tail call noalias ptr @rhp_newsolvermdl(ptr noundef %23) #4
  %.not52 = icmp eq ptr %24, null
  br i1 %.not52, label %25, label %30

25:                                               ; preds = %22
  %26 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 256, ptr noundef nonnull @.str.23) #4
  %27 = load ptr, ptr @gevLogStatPChar, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %0, i64 16
  %29 = load ptr, ptr %28, align 8, !tbaa !12
  call void %27(ptr noundef %29, ptr noundef nonnull %2) #4
  br label %57

30:                                               ; preds = %22
  %31 = load ptr, ptr %16, align 8, !tbaa !13
  %32 = tail call i32 @rhp_process(ptr noundef %31, ptr noundef nonnull %24) #4
  %.not53 = icmp eq i32 %32, 0
  br i1 %.not53, label %36, label %33

33:                                               ; preds = %30
  %34 = tail call ptr @rhp_status_descr(i32 noundef %32) #4
  %35 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 256, ptr noundef nonnull @.str.24, ptr noundef %34, i32 noundef %32) #4
  br label %46

36:                                               ; preds = %30
  %37 = tail call i32 @rhp_solve(ptr noundef nonnull %24) #4
  %.not54 = icmp eq i32 %37, 0
  br i1 %.not54, label %41, label %38

38:                                               ; preds = %36
  %39 = tail call ptr @rhp_status_descr(i32 noundef %37) #4
  %40 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 256, ptr noundef nonnull @.str.25, ptr noundef %39, i32 noundef %37) #4
  br label %46

41:                                               ; preds = %36
  %42 = tail call i32 @rhp_postprocess(ptr noundef nonnull %24) #4
  %.not55 = icmp eq i32 %42, 0
  br i1 %.not55, label %57, label %43

43:                                               ; preds = %41
  %44 = tail call ptr @rhp_status_descr(i32 noundef %42) #4
  %45 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 256, ptr noundef nonnull @.str.26, ptr noundef %44, i32 noundef %42) #4
  br label %46

46:                                               ; preds = %19, %33, %38, %43
  %.041.ph = phi i32 [ %42, %43 ], [ %37, %38 ], [ %32, %33 ], [ %18, %19 ]
  %.0.ph = phi ptr [ %24, %43 ], [ %24, %38 ], [ %24, %33 ], [ null, %19 ]
  %47 = load ptr, ptr @gevLogStatPChar, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %0, i64 16
  %49 = load ptr, ptr %48, align 8, !tbaa !12
  call void %47(ptr noundef %49, ptr noundef nonnull %2) #4
  %50 = load ptr, ptr @gmoModelStatSet, align 8, !tbaa !5
  %51 = load ptr, ptr %4, align 8, !tbaa !9
  call void %50(ptr noundef %51, i32 noundef 13) #4
  %52 = load ptr, ptr @gmoSolveStatSet, align 8, !tbaa !5
  %53 = load ptr, ptr %4, align 8, !tbaa !9
  %54 = call i32 @rhp_rc2gmosolvestat(i32 noundef %.041.ph) #4
  call void %52(ptr noundef %53, i32 noundef %54) #4
  %55 = getelementptr inbounds i8, ptr %0, i64 16
  %56 = load ptr, ptr %55, align 8, !tbaa !12
  call void @rhp_printrcmsg(i32 noundef %.041.ph, ptr noundef %56) #4
  br label %57

57:                                               ; preds = %25, %41, %46
  %.063 = phi ptr [ %.0.ph, %46 ], [ %24, %41 ], [ null, %25 ]
  %.04161 = phi i32 [ %.041.ph, %46 ], [ 0, %41 ], [ 0, %25 ]
  call void @rhp_mdl_free(ptr noundef %.063) #4
  br label %58

58:                                               ; preds = %57, %9
  %.042 = phi i32 [ %8, %9 ], [ %.04161, %57 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %2) #4
  ret i32 %.042
}

declare i32 @opt_pushtosolver(ptr noundef) local_unnamed_addr #1

declare ptr @rhp_status_descr(i32 noundef) local_unnamed_addr #1

declare i32 @rhp_gms_readempinfo(ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

declare i32 @rhp_solve(ptr noundef) local_unnamed_addr #1

declare i32 @rhp_postprocess(ptr noundef) local_unnamed_addr #1

declare i32 @rhp_rc2gmosolvestat(i32 noundef) local_unnamed_addr #1

declare void @rhp_printrcmsg(i32 noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #3 = { 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 #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 8}
!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 = !{!10, !6, i64 16}
!13 = !{!10, !6, i64 48}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass