; LLVM IR from cvanaret/Uno :: uno/ingredients/constraint_relaxation_strategies (l1RelaxedProblem)

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

%"class.uno::Range" = type { %"class.uno::Collection", i64, i64 }
%"class.uno::Collection" = type { ptr }
%"class.uno::Model" = type { ptr, %"class.std::__cxx11::basic_string", i64, i64, double }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.uno::l1RelaxedProblem" = type { %"class.uno::OptimizationProblem", i64, double, double, double, ptr, %"class.uno::Concatenation", %"class.uno::Concatenation" }
%"class.uno::OptimizationProblem" = type { ptr, ptr, i64, i64 }
%"class.uno::Concatenation" = type { %"class.uno::Collection", ptr, %"class.uno::Range" }

@_ZTVN3uno16l1RelaxedProblemE = external dso_local unnamed_addr constant { [23 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3uno16l1RelaxedProblemC2ERKNS_5ModelEdddPKd(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull align 8 dereferenceable(64) %1, double noundef %2, double noundef %3, double noundef %4, ptr noundef %5) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.uno::Range", align 8
  %16 = alloca %"class.uno::Range", align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store double %2, ptr %9, align 8, !tbaa !9
  store double %3, ptr %10, align 8, !tbaa !9
  store double %4, ptr %11, align 8, !tbaa !9
  store ptr %5, ptr %12, align 8, !tbaa !5
  %17 = load ptr, ptr %7, align 8
  %18 = load ptr, ptr %8, align 8, !tbaa !5
  %19 = load ptr, ptr %8, align 8, !tbaa !5
  %20 = getelementptr inbounds %"class.uno::Model", ptr %19, i32 0, i32 2
  %21 = load i64, ptr %20, align 8, !tbaa !11
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = load ptr, ptr %22, align 8, !tbaa !16
  %24 = getelementptr inbounds ptr, ptr %23, i64 23
  %25 = load ptr, ptr %24, align 8
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr %25(ptr noundef nonnull align 8 dereferenceable(64) %22)
  %27 = load ptr, ptr %26, align 8, !tbaa !16
  %28 = getelementptr inbounds ptr, ptr %27, i64 2
  %29 = load ptr, ptr %28, align 8
  %30 = call noundef i64 %29(ptr noundef nonnull align 8 dereferenceable(8) %26)
  %31 = add i64 %21, %30
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = load ptr, ptr %32, align 8, !tbaa !16
  %34 = getelementptr inbounds ptr, ptr %33, i64 22
  %35 = load ptr, ptr %34, align 8
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr %35(ptr noundef nonnull align 8 dereferenceable(64) %32)
  %37 = load ptr, ptr %36, align 8, !tbaa !16
  %38 = getelementptr inbounds ptr, ptr %37, i64 2
  %39 = load ptr, ptr %38, align 8
  %40 = call noundef i64 %39(ptr noundef nonnull align 8 dereferenceable(8) %36)
  %41 = mul i64 2, %40
  %42 = add i64 %31, %41
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = getelementptr inbounds %"class.uno::Model", ptr %43, i32 0, i32 3
  %45 = load i64, ptr %44, align 8, !tbaa !18
  call void @_ZN3uno19OptimizationProblemC2ERKNS_5ModelEmm(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(64) %18, i64 noundef %42, i64 noundef %45)
  store ptr getelementptr inbounds inrange(-16, 168) ({ [23 x ptr] }, ptr @_ZTVN3uno16l1RelaxedProblemE, i32 0, i32 0, i32 2), ptr %17, align 8, !tbaa !16
  %46 = getelementptr inbounds %"class.uno::l1RelaxedProblem", ptr %17, i32 0, i32 1
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = load ptr, ptr %47, align 8, !tbaa !16
  %49 = getelementptr inbounds ptr, ptr %48, i64 23
  %50 = load ptr, ptr %49, align 8
  %51 = invoke noundef nonnull align 8 dereferenceable(8) ptr %50(ptr noundef nonnull align 8 dereferenceable(64) %47)
          to label %52 unwind label %109

52:                                               ; preds = %6
  %53 = load ptr, ptr %51, align 8, !tbaa !16
  %54 = getelementptr inbounds ptr, ptr %53, i64 2
  %55 = load ptr, ptr %54, align 8
  %56 = invoke noundef i64 %55(ptr noundef nonnull align 8 dereferenceable(8) %51)
          to label %57 unwind label %109

57:                                               ; preds = %52
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = load ptr, ptr %58, align 8, !tbaa !16
  %60 = getelementptr inbounds ptr, ptr %59, i64 22
  %61 = load ptr, ptr %60, align 8
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr %61(ptr noundef nonnull align 8 dereferenceable(64) %58)
          to label %63 unwind label %109

63:                                               ; preds = %57
  %64 = load ptr, ptr %62, align 8, !tbaa !16
  %65 = getelementptr inbounds ptr, ptr %64, i64 2
  %66 = load ptr, ptr %65, align 8
  %67 = invoke noundef i64 %66(ptr noundef nonnull align 8 dereferenceable(8) %62)
          to label %68 unwind label %109

68:                                               ; preds = %63
  %69 = mul i64 2, %67
  %70 = add i64 %56, %69
  store i64 %70, ptr %46, align 8, !tbaa !19
  %71 = getelementptr inbounds %"class.uno::l1RelaxedProblem", ptr %17, i32 0, i32 2
  %72 = load double, ptr %9, align 8, !tbaa !9
  store double %72, ptr %71, align 8, !tbaa !25
  %73 = getelementptr inbounds %"class.uno::l1RelaxedProblem", ptr %17, i32 0, i32 3
  %74 = load double, ptr %10, align 8, !tbaa !9
  store double %74, ptr %73, align 8, !tbaa !26
  %75 = getelementptr inbounds %"class.uno::l1RelaxedProblem", ptr %17, i32 0, i32 4
  %76 = load double, ptr %11, align 8, !tbaa !9
  store double %76, ptr %75, align 8, !tbaa !27
  %77 = getelementptr inbounds %"class.uno::l1RelaxedProblem", ptr %17, i32 0, i32 5
  %78 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %78, ptr %77, align 8, !tbaa !28
  %79 = getelementptr inbounds %"class.uno::l1RelaxedProblem", ptr %17, i32 0, i32 6
  %80 = getelementptr inbounds %"class.uno::OptimizationProblem", ptr %17, i32 0, i32 1
  %81 = load ptr, ptr %80, align 8, !tbaa !29
  %82 = load ptr, ptr %81, align 8, !tbaa !16
  %83 = getelementptr inbounds ptr, ptr %82, i64 12
  %84 = load ptr, ptr %83, align 8
  %85 = invoke noundef nonnull align 8 dereferenceable(8) ptr %84(ptr noundef nonnull align 8 dereferenceable(64) %81)
          to label %86 unwind label %109

86:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = getelementptr inbounds %"class.uno::Model", ptr %87, i32 0, i32 2
  %89 = load i64, ptr %88, align 8, !tbaa !11
  %90 = getelementptr inbounds %"class.uno::OptimizationProblem", ptr %17, i32 0, i32 2
  %91 = load i64, ptr %90, align 8, !tbaa !30
  invoke void @_ZN3uno5RangeILNS_14RangeDirectionE0EEC2Emm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %89, i64 noundef %91)
          to label %92 unwind label %113

92:                                               ; preds = %86
  invoke void @_ZN3uno11concatenateIRKNS_10CollectionImEENS_5RangeILNS_14RangeDirectionE0EEEEENS_13ConcatenationIT_T0_EEOS9_OSA_(ptr dead_on_unwind writable sret(%"class.uno::Concatenation") align 8 %79, ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %93 unwind label %117

93:                                               ; preds = %92
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  %94 = getelementptr inbounds %"class.uno::l1RelaxedProblem", ptr %17, i32 0, i32 7
  %95 = getelementptr inbounds %"class.uno::OptimizationProblem", ptr %17, i32 0, i32 1
  %96 = load ptr, ptr %95, align 8, !tbaa !29
  %97 = load ptr, ptr %96, align 8, !tbaa !16
  %98 = getelementptr inbounds ptr, ptr %97, i64 15
  %99 = load ptr, ptr %98, align 8
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr %99(ptr noundef nonnull align 8 dereferenceable(64) %96)
          to label %101 unwind label %122

101:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #6
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = getelementptr inbounds %"class.uno::Model", ptr %102, i32 0, i32 2
  %104 = load i64, ptr %103, align 8, !tbaa !11
  %105 = getelementptr inbounds %"class.uno::OptimizationProblem", ptr %17, i32 0, i32 2
  %106 = load i64, ptr %105, align 8, !tbaa !30
  invoke void @_ZN3uno5RangeILNS_14RangeDirectionE0EEC2Emm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %104, i64 noundef %106)
          to label %107 unwind label %126

107:                                              ; preds = %101
  invoke void @_ZN3uno11concatenateIRKNS_10CollectionImEENS_5RangeILNS_14RangeDirectionE0EEEEENS_13ConcatenationIT_T0_EEOS9_OSA_(ptr dead_on_unwind writable sret(%"class.uno::Concatenation") align 8 %94, ptr noundef nonnull align 8 dereferenceable(8) %100, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %108 unwind label %130

108:                                              ; preds = %107
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  ret void

109:                                              ; preds = %68, %63, %57, %52, %6
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %13, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %14, align 4
  br label %136

113:                                              ; preds = %86
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %13, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %14, align 4
  br label %121

117:                                              ; preds = %92
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %13, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %14, align 4
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  br label %121

121:                                              ; preds = %117, %113
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  br label %136

122:                                              ; preds = %93
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %13, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %14, align 4
  br label %135

126:                                              ; preds = %101
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %13, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %14, align 4
  br label %134

130:                                              ; preds = %107
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %13, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %14, align 4
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  br label %134

134:                                              ; preds = %130, %126
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  br label %135

135:                                              ; preds = %134, %122
  call void @_ZN3uno13ConcatenationIRKNS_10CollectionImEENS_5RangeILNS_14RangeDirectionE0EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %79) #6
  br label %136

136:                                              ; preds = %135, %121, %109
  call void @_ZN3uno19OptimizationProblemD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  br label %137

137:                                              ; preds = %136
  %138 = load ptr, ptr %13, align 8
  %139 = load i32, ptr %14, align 4
  %140 = insertvalue { ptr, i32 } poison, ptr %138, 0
  %141 = insertvalue { ptr, i32 } %140, i32 %139, 1
  resume { ptr, i32 } %141
}

declare void @_ZN3uno19OptimizationProblemC2ERKNS_5ModelEmm(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(64), i64 noundef, i64 noundef) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3uno11concatenateIRKNS_10CollectionImEENS_5RangeILNS_14RangeDirectionE0EEEEENS_13ConcatenationIT_T0_EEOS9_OSA_(ptr dead_on_unwind noalias writable sret(%"class.uno::Concatenation") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24)) #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3uno5RangeILNS_14RangeDirectionE0EEC2Emm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, i64 noundef) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3uno13ConcatenationIRKNS_10CollectionImEENS_5RangeILNS_14RangeDirectionE0EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3uno19OptimizationProblemD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5 align 2

attributes #0 = { mustprogress 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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress 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 = { inlinehint mustprogress 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 #5 = { mustprogress 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 #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !15, i64 40}
!12 = !{!"_ZTSN3uno5ModelE", !13, i64 8, !15, i64 40, !15, i64 48, !10, i64 56}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !15, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"vtable pointer", !8, i64 0}
!18 = !{!12, !15, i64 48}
!19 = !{!20, !15, i64 32}
!20 = !{!"_ZTSN3uno16l1RelaxedProblemE", !21, i64 0, !15, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !6, i64 64, !22, i64 72, !22, i64 112}
!21 = !{!"_ZTSN3uno19OptimizationProblemE", !6, i64 8, !15, i64 16, !15, i64 24}
!22 = !{!"_ZTSN3uno13ConcatenationIRKNS_10CollectionImEENS_5RangeILNS_14RangeDirectionE0EEEEE", !23, i64 0, !6, i64 8, !24, i64 16}
!23 = !{!"_ZTSN3uno10CollectionImEE"}
!24 = !{!"_ZTSN3uno5RangeILNS_14RangeDirectionE0EEE", !23, i64 0, !15, i64 8, !15, i64 16}
!25 = !{!20, !10, i64 40}
!26 = !{!20, !10, i64 48}
!27 = !{!20, !10, i64 56}
!28 = !{!20, !6, i64 64}
!29 = !{!21, !6, i64 8}
!30 = !{!21, !15, i64 16}


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

%"class.uno::Range" = type { %"class.uno::Collection", i64, i64 }
%"class.uno::Collection" = type { ptr }
%"class.uno::Concatenation" = type { %"class.uno::Collection", ptr, %"class.uno::Range" }

@_ZTVN3uno16l1RelaxedProblemE = external dso_local unnamed_addr constant { [23 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3uno16l1RelaxedProblemC2ERKNS_5ModelEdddPKd(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull align 8 dereferenceable(64) %1, double noundef %2, double noundef %3, double noundef %4, ptr noundef %5) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.uno::Range", align 8
  %8 = alloca %"class.uno::Range", align 8
  %9 = getelementptr inbounds i8, ptr %1, i64 40
  %10 = load i64, ptr %9, align 8, !tbaa !5
  %11 = load ptr, ptr %1, align 8, !tbaa !14
  %12 = getelementptr inbounds i8, ptr %11, i64 184
  %13 = load ptr, ptr %12, align 8
  %14 = tail call noundef nonnull align 8 dereferenceable(8) ptr %13(ptr noundef nonnull align 8 dereferenceable(64) %1)
  %15 = load ptr, ptr %14, align 8, !tbaa !14
  %16 = getelementptr inbounds i8, ptr %15, i64 16
  %17 = load ptr, ptr %16, align 8
  %18 = tail call noundef i64 %17(ptr noundef nonnull align 8 dereferenceable(8) %14)
  %19 = add i64 %18, %10
  %20 = load ptr, ptr %1, align 8, !tbaa !14
  %21 = getelementptr inbounds i8, ptr %20, i64 176
  %22 = load ptr, ptr %21, align 8
  %23 = tail call noundef nonnull align 8 dereferenceable(8) ptr %22(ptr noundef nonnull align 8 dereferenceable(64) %1)
  %24 = load ptr, ptr %23, align 8, !tbaa !14
  %25 = getelementptr inbounds i8, ptr %24, i64 16
  %26 = load ptr, ptr %25, align 8
  %27 = tail call noundef i64 %26(ptr noundef nonnull align 8 dereferenceable(8) %23)
  %28 = shl i64 %27, 1
  %29 = add i64 %19, %28
  %30 = getelementptr inbounds i8, ptr %1, i64 48
  %31 = load i64, ptr %30, align 8, !tbaa !16
  tail call void @_ZN3uno19OptimizationProblemC2ERKNS_5ModelEmm(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 noundef %29, i64 noundef %31)
  store ptr getelementptr inbounds inrange(-16, 168) (i8, ptr @_ZTVN3uno16l1RelaxedProblemE, i64 16), ptr %0, align 8, !tbaa !14
  %32 = getelementptr inbounds i8, ptr %0, i64 32
  %33 = load ptr, ptr %1, align 8, !tbaa !14
  %34 = getelementptr inbounds i8, ptr %33, i64 184
  %35 = load ptr, ptr %34, align 8
  %36 = invoke noundef nonnull align 8 dereferenceable(8) ptr %35(ptr noundef nonnull align 8 dereferenceable(64) %1)
          to label %37 unwind label %83

37:                                               ; preds = %6
  %38 = load ptr, ptr %36, align 8, !tbaa !14
  %39 = getelementptr inbounds i8, ptr %38, i64 16
  %40 = load ptr, ptr %39, align 8
  %41 = invoke noundef i64 %40(ptr noundef nonnull align 8 dereferenceable(8) %36)
          to label %42 unwind label %83

42:                                               ; preds = %37
  %43 = load ptr, ptr %1, align 8, !tbaa !14
  %44 = getelementptr inbounds i8, ptr %43, i64 176
  %45 = load ptr, ptr %44, align 8
  %46 = invoke noundef nonnull align 8 dereferenceable(8) ptr %45(ptr noundef nonnull align 8 dereferenceable(64) %1)
          to label %47 unwind label %83

47:                                               ; preds = %42
  %48 = load ptr, ptr %46, align 8, !tbaa !14
  %49 = getelementptr inbounds i8, ptr %48, i64 16
  %50 = load ptr, ptr %49, align 8
  %51 = invoke noundef i64 %50(ptr noundef nonnull align 8 dereferenceable(8) %46)
          to label %52 unwind label %83

52:                                               ; preds = %47
  %53 = shl i64 %51, 1
  %54 = add i64 %53, %41
  store i64 %54, ptr %32, align 8, !tbaa !17
  %55 = getelementptr inbounds i8, ptr %0, i64 40
  store double %2, ptr %55, align 8, !tbaa !23
  %56 = getelementptr inbounds i8, ptr %0, i64 48
  store double %3, ptr %56, align 8, !tbaa !24
  %57 = getelementptr inbounds i8, ptr %0, i64 56
  store double %4, ptr %57, align 8, !tbaa !25
  %58 = getelementptr inbounds i8, ptr %0, i64 64
  store ptr %5, ptr %58, align 8, !tbaa !26
  %59 = getelementptr inbounds i8, ptr %0, i64 72
  %60 = getelementptr inbounds i8, ptr %0, i64 8
  %61 = load ptr, ptr %60, align 8, !tbaa !27
  %62 = load ptr, ptr %61, align 8, !tbaa !14
  %63 = getelementptr inbounds i8, ptr %62, i64 96
  %64 = load ptr, ptr %63, align 8
  %65 = invoke noundef nonnull align 8 dereferenceable(8) ptr %64(ptr noundef nonnull align 8 dereferenceable(64) %61)
          to label %66 unwind label %83

66:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  %67 = load i64, ptr %9, align 8, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %0, i64 16
  %69 = load i64, ptr %68, align 8, !tbaa !28
  invoke void @_ZN3uno5RangeILNS_14RangeDirectionE0EEC2Emm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %67, i64 noundef %69)
          to label %70 unwind label %85

70:                                               ; preds = %66
  invoke void @_ZN3uno11concatenateIRKNS_10CollectionImEENS_5RangeILNS_14RangeDirectionE0EEEEENS_13ConcatenationIT_T0_EEOS9_OSA_(ptr dead_on_unwind nonnull writable sret(%"class.uno::Concatenation") align 8 %59, ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %71 unwind label %87

71:                                               ; preds = %70
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  %72 = getelementptr inbounds i8, ptr %0, i64 112
  %73 = load ptr, ptr %60, align 8, !tbaa !27
  %74 = load ptr, ptr %73, align 8, !tbaa !14
  %75 = getelementptr inbounds i8, ptr %74, i64 120
  %76 = load ptr, ptr %75, align 8
  %77 = invoke noundef nonnull align 8 dereferenceable(8) ptr %76(ptr noundef nonnull align 8 dereferenceable(64) %73)
          to label %78 unwind label %90

78:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  %79 = load i64, ptr %9, align 8, !tbaa !5
  %80 = load i64, ptr %68, align 8, !tbaa !28
  invoke void @_ZN3uno5RangeILNS_14RangeDirectionE0EEC2Emm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %79, i64 noundef %80)
          to label %81 unwind label %92

81:                                               ; preds = %78
  invoke void @_ZN3uno11concatenateIRKNS_10CollectionImEENS_5RangeILNS_14RangeDirectionE0EEEEENS_13ConcatenationIT_T0_EEOS9_OSA_(ptr dead_on_unwind nonnull writable sret(%"class.uno::Concatenation") align 8 %72, ptr noundef nonnull align 8 dereferenceable(8) %77, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %82 unwind label %94

82:                                               ; preds = %81
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  ret void

83:                                               ; preds = %52, %47, %42, %37, %6
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %98

85:                                               ; preds = %66
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %89

87:                                               ; preds = %70
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  br label %89

89:                                               ; preds = %87, %85
  %.pn = phi { ptr, i32 } [ %88, %87 ], [ %86, %85 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  br label %98

90:                                               ; preds = %71
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %97

92:                                               ; preds = %78
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %96

94:                                               ; preds = %81
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  br label %96

96:                                               ; preds = %94, %92
  %.pn20 = phi { ptr, i32 } [ %95, %94 ], [ %93, %92 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  br label %97

97:                                               ; preds = %96, %90
  %.pn20.pn = phi { ptr, i32 } [ %.pn20, %96 ], [ %91, %90 ]
  call void @_ZN3uno13ConcatenationIRKNS_10CollectionImEENS_5RangeILNS_14RangeDirectionE0EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %59) #6
  br label %98

98:                                               ; preds = %97, %89, %83
  %.pn20.pn.pn = phi { ptr, i32 } [ %.pn20.pn, %97 ], [ %.pn, %89 ], [ %84, %83 ]
  call void @_ZN3uno19OptimizationProblemD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  resume { ptr, i32 } %.pn20.pn.pn
}

declare void @_ZN3uno19OptimizationProblemC2ERKNS_5ModelEmm(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(64), i64 noundef, i64 noundef) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3uno11concatenateIRKNS_10CollectionImEENS_5RangeILNS_14RangeDirectionE0EEEEENS_13ConcatenationIT_T0_EEOS9_OSA_(ptr dead_on_unwind noalias writable sret(%"class.uno::Concatenation") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3uno5RangeILNS_14RangeDirectionE0EEC2Emm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, i64 noundef) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3uno13ConcatenationIRKNS_10CollectionImEENS_5RangeILNS_14RangeDirectionE0EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3uno19OptimizationProblemD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5 align 2

attributes #0 = { mustprogress 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress 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 = { inlinehint mustprogress 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 #5 = { mustprogress 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 #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !12, i64 40}
!6 = !{!"_ZTSN3uno5ModelE", !7, i64 8, !12, i64 40, !12, i64 48, !13, i64 56}
!7 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !8, i64 0, !12, i64 8, !10, i64 16}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"double", !10, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"vtable pointer", !11, i64 0}
!16 = !{!6, !12, i64 48}
!17 = !{!18, !12, i64 32}
!18 = !{!"_ZTSN3uno16l1RelaxedProblemE", !19, i64 0, !12, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !9, i64 64, !20, i64 72, !20, i64 112}
!19 = !{!"_ZTSN3uno19OptimizationProblemE", !9, i64 8, !12, i64 16, !12, i64 24}
!20 = !{!"_ZTSN3uno13ConcatenationIRKNS_10CollectionImEENS_5RangeILNS_14RangeDirectionE0EEEEE", !21, i64 0, !9, i64 8, !22, i64 16}
!21 = !{!"_ZTSN3uno10CollectionImEE"}
!22 = !{!"_ZTSN3uno5RangeILNS_14RangeDirectionE0EEE", !21, i64 0, !12, i64 8, !12, i64 16}
!23 = !{!18, !13, i64 40}
!24 = !{!18, !13, i64 48}
!25 = !{!18, !13, i64 56}
!26 = !{!18, !9, i64 64}
!27 = !{!19, !9, i64 8}
!28 = !{!19, !12, i64 16}


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