; LLVM IR from buresjan/optim_lbm :: nomad/src/Eval/Eval.ll (ZNK9NOMAD_4_34Eval6compMOERKS0_bNS_11ComputeTypeE)

; 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.NOMAD_4_3::Double" = type <{ ptr, double, i8, [7 x i8] }>
%"class.NOMAD_4_3::ArrayOfDouble" = type { ptr, i64, ptr }

@_ZN9NOMAD_4_3L3INFE = external hidden constant double, align 8

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nounwind
declare void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK9NOMAD_4_34Eval10isFeasibleENS_11ComputeTypeE(ptr noundef nonnull align 8 dereferenceable(105), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK9NOMAD_4_34Eval4getHENS_11ComputeTypeE(ptr dead_on_unwind noalias writable sret(%"class.NOMAD_4_3::Double") align 8, ptr noundef nonnull align 8 dereferenceable(105), i32 noundef) #2 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17)) #3

; Function Attrs: nounwind
declare void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17)) unnamed_addr #1

declare void @_ZN9NOMAD_4_36DoubleC1ERKd(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK9NOMAD_4_34Eval5getFsENS_11ComputeTypeE(ptr dead_on_unwind noalias writable sret(%"class.NOMAD_4_3::ArrayOfDouble") align 8, ptr noundef nonnull align 8 dereferenceable(105), i32 noundef) #2 align 2

declare noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK9NOMAD_4_34Eval6compMOERKS0_bNS_11ComputeTypeE(ptr noundef nonnull align 8 dereferenceable(105) %0, ptr noundef nonnull align 8 dereferenceable(105) %1, i1 noundef zeroext %2, i32 noundef %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.NOMAD_4_3::ArrayOfDouble", align 8
  %12 = alloca %"class.NOMAD_4_3::Double", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.NOMAD_4_3::ArrayOfDouble", align 8
  %16 = alloca %"class.NOMAD_4_3::Double", align 8
  %17 = alloca i32, align 4
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  %20 = alloca i64, align 8
  %21 = alloca %"class.NOMAD_4_3::Double", align 8
  %22 = alloca i8, align 1
  %23 = alloca i8, align 1
  %24 = alloca i64, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  %25 = zext i1 %2 to i8
  store i8 %25, ptr %8, align 1, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !11
  %26 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 4, ptr %10, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #6
  %27 = load i32, ptr %9, align 4, !tbaa !11
  call void @_ZNK9NOMAD_4_34Eval5getFsENS_11ComputeTypeE(ptr dead_on_unwind writable sret(%"class.NOMAD_4_3::ArrayOfDouble") align 8 %11, ptr noundef nonnull align 8 dereferenceable(105) %26, i32 noundef %27)
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #6
  %28 = load i32, ptr %9, align 4, !tbaa !11
  invoke void @_ZNK9NOMAD_4_34Eval4getHENS_11ComputeTypeE(ptr dead_on_unwind writable sret(%"class.NOMAD_4_3::Double") align 8 %12, ptr noundef nonnull align 8 dereferenceable(105) %26, i32 noundef %28)
          to label %29 unwind label %43

29:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = load i32, ptr %9, align 4, !tbaa !11
  invoke void @_ZNK9NOMAD_4_34Eval5getFsENS_11ComputeTypeE(ptr dead_on_unwind writable sret(%"class.NOMAD_4_3::ArrayOfDouble") align 8 %15, ptr noundef nonnull align 8 dereferenceable(105) %30, i32 noundef %31)
          to label %32 unwind label %47

32:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #6
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = load i32, ptr %9, align 4, !tbaa !11
  invoke void @_ZNK9NOMAD_4_34Eval4getHENS_11ComputeTypeE(ptr dead_on_unwind writable sret(%"class.NOMAD_4_3::Double") align 8 %16, ptr noundef nonnull align 8 dereferenceable(105) %33, i32 noundef %34)
          to label %35 unwind label %51

35:                                               ; preds = %32
  %36 = invoke noundef i64 @_ZNK9NOMAD_4_313ArrayOfDouble4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %37 unwind label %55

37:                                               ; preds = %35
  %38 = invoke noundef i64 @_ZNK9NOMAD_4_313ArrayOfDouble4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %39 unwind label %55

39:                                               ; preds = %37
  %40 = icmp ne i64 %36, %38
  br i1 %40, label %41, label %59

41:                                               ; preds = %39
  %42 = load i32, ptr %10, align 4, !tbaa !13
  store i32 %42, ptr %5, align 4
  store i32 1, ptr %17, align 4
  br label %251

43:                                               ; preds = %4
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %13, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %14, align 4
  br label %256

47:                                               ; preds = %29
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %13, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %14, align 4
  br label %255

51:                                               ; preds = %32
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %13, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %14, align 4
  br label %254

55:                                               ; preds = %139, %135, %63, %59, %37, %35
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %13, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %14, align 4
  br label %253

59:                                               ; preds = %39
  %60 = load i32, ptr %9, align 4, !tbaa !11
  %61 = invoke noundef zeroext i1 @_ZNK9NOMAD_4_34Eval10isFeasibleENS_11ComputeTypeE(ptr noundef nonnull align 8 dereferenceable(105) %26, i32 noundef %60)
          to label %62 unwind label %55

62:                                               ; preds = %59
  br i1 %61, label %63, label %135

63:                                               ; preds = %62
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = load i32, ptr %9, align 4, !tbaa !11
  %66 = invoke noundef zeroext i1 @_ZNK9NOMAD_4_34Eval10isFeasibleENS_11ComputeTypeE(ptr noundef nonnull align 8 dereferenceable(105) %64, i32 noundef %65)
          to label %67 unwind label %55

67:                                               ; preds = %63
  br i1 %66, label %68, label %135

68:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #6
  store i8 0, ptr %18, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  store i8 0, ptr %19, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  store i64 0, ptr %20, align 8, !tbaa !15
  br label %69

69:                                               ; preds = %117, %68
  %70 = load i64, ptr %20, align 8, !tbaa !15
  %71 = invoke noundef i64 @_ZNK9NOMAD_4_313ArrayOfDouble4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %72 unwind label %75

72:                                               ; preds = %69
  %73 = icmp ult i64 %70, %71
  br i1 %73, label %79, label %74

74:                                               ; preds = %72
  store i32 2, ptr %17, align 4
  br label %120

75:                                               ; preds = %103, %99, %97, %94, %88, %84, %82, %79, %69
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %13, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  br label %253

79:                                               ; preds = %72
  %80 = load i64, ptr %20, align 8, !tbaa !15
  %81 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %80)
          to label %82 unwind label %75

82:                                               ; preds = %79
  %83 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17) %81)
          to label %84 unwind label %75

84:                                               ; preds = %82
  %85 = load double, ptr %83, align 8, !tbaa !17
  %86 = load i64, ptr %20, align 8, !tbaa !15
  %87 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %86)
          to label %88 unwind label %75

88:                                               ; preds = %84
  %89 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17) %87)
          to label %90 unwind label %75

90:                                               ; preds = %88
  %91 = load double, ptr %89, align 8, !tbaa !17
  %92 = fcmp olt double %85, %91
  br i1 %92, label %93, label %94

93:                                               ; preds = %90
  store i8 1, ptr %18, align 1, !tbaa !9
  br label %94

94:                                               ; preds = %93, %90
  %95 = load i64, ptr %20, align 8, !tbaa !15
  %96 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %95)
          to label %97 unwind label %75

97:                                               ; preds = %94
  %98 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17) %96)
          to label %99 unwind label %75

99:                                               ; preds = %97
  %100 = load double, ptr %98, align 8, !tbaa !17
  %101 = load i64, ptr %20, align 8, !tbaa !15
  %102 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %101)
          to label %103 unwind label %75

103:                                              ; preds = %99
  %104 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17) %102)
          to label %105 unwind label %75

105:                                              ; preds = %103
  %106 = load double, ptr %104, align 8, !tbaa !17
  %107 = fcmp olt double %100, %106
  br i1 %107, label %108, label %109

108:                                              ; preds = %105
  store i8 1, ptr %19, align 1, !tbaa !9
  br label %109

109:                                              ; preds = %108, %105
  %110 = load i8, ptr %19, align 1, !tbaa !9, !range !19, !noundef !20
  %111 = trunc i8 %110 to i1
  br i1 %111, label %112, label %116

112:                                              ; preds = %109
  %113 = load i8, ptr %18, align 1, !tbaa !9, !range !19, !noundef !20
  %114 = trunc i8 %113 to i1
  br i1 %114, label %115, label %116

115:                                              ; preds = %112
  store i32 2, ptr %17, align 4
  br label %120

116:                                              ; preds = %112, %109
  br label %117

117:                                              ; preds = %116
  %118 = load i64, ptr %20, align 8, !tbaa !15
  %119 = add i64 %118, 1
  store i64 %119, ptr %20, align 8, !tbaa !15
  br label %69, !llvm.loop !21

120:                                              ; preds = %115, %74
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %121

121:                                              ; preds = %120
  %122 = load i8, ptr %19, align 1, !tbaa !9, !range !19, !noundef !20
  %123 = trunc i8 %122 to i1
  br i1 %123, label %124, label %129

124:                                              ; preds = %121
  %125 = load i8, ptr %18, align 1, !tbaa !9, !range !19, !noundef !20
  %126 = trunc i8 %125 to i1
  %127 = zext i1 %126 to i64
  %128 = select i1 %126, i32 1, i32 2
  store i32 %128, ptr %10, align 4, !tbaa !13
  br label %134

129:                                              ; preds = %121
  %130 = load i8, ptr %18, align 1, !tbaa !9, !range !19, !noundef !20
  %131 = trunc i8 %130 to i1
  %132 = zext i1 %131 to i64
  %133 = select i1 %131, i32 3, i32 0
  store i32 %133, ptr %10, align 4, !tbaa !13
  br label %134

134:                                              ; preds = %129, %124
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  br label %249

135:                                              ; preds = %67, %62
  %136 = load i32, ptr %9, align 4, !tbaa !11
  %137 = invoke noundef zeroext i1 @_ZNK9NOMAD_4_34Eval10isFeasibleENS_11ComputeTypeE(ptr noundef nonnull align 8 dereferenceable(105) %26, i32 noundef %136)
          to label %138 unwind label %55

138:                                              ; preds = %135
  br i1 %137, label %248, label %139

139:                                              ; preds = %138
  %140 = load ptr, ptr %7, align 8, !tbaa !5
  %141 = load i32, ptr %9, align 4, !tbaa !11
  %142 = invoke noundef zeroext i1 @_ZNK9NOMAD_4_34Eval10isFeasibleENS_11ComputeTypeE(ptr noundef nonnull align 8 dereferenceable(105) %140, i32 noundef %141)
          to label %143 unwind label %55

143:                                              ; preds = %139
  br i1 %142, label %248, label %144

144:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #6
  invoke void @_ZN9NOMAD_4_36DoubleC1ERKd(ptr noundef nonnull align 8 dereferenceable(17) %21, ptr noundef nonnull align 8 dereferenceable(8) @_ZN9NOMAD_4_3L3INFE)
          to label %145 unwind label %155

145:                                              ; preds = %144
  %146 = invoke noundef zeroext i1 @_ZN9NOMAD_4_3neERKNS_6DoubleES2_(ptr noundef nonnull align 8 dereferenceable(17) %12, ptr noundef nonnull align 8 dereferenceable(17) %21)
          to label %147 unwind label %159

147:                                              ; preds = %145
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %21) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  br i1 %146, label %148, label %247

148:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #6
  store i8 0, ptr %22, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #6
  store i8 0, ptr %23, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  store i64 0, ptr %24, align 8, !tbaa !15
  br label %149

149:                                              ; preds = %206, %148
  %150 = load i64, ptr %24, align 8, !tbaa !15
  %151 = invoke noundef i64 @_ZNK9NOMAD_4_313ArrayOfDouble4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %152 unwind label %164

152:                                              ; preds = %149
  %153 = icmp ult i64 %150, %151
  br i1 %153, label %168, label %154

154:                                              ; preds = %152
  store i32 5, ptr %17, align 4
  br label %209

155:                                              ; preds = %144
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %13, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %14, align 4
  br label %163

159:                                              ; preds = %145
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %13, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %14, align 4
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %21) #6
  br label %163

163:                                              ; preds = %159, %155
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  br label %253

164:                                              ; preds = %192, %188, %186, %183, %177, %173, %171, %168, %149
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %13, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %246

168:                                              ; preds = %152
  %169 = load i64, ptr %24, align 8, !tbaa !15
  %170 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %169)
          to label %171 unwind label %164

171:                                              ; preds = %168
  %172 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17) %170)
          to label %173 unwind label %164

173:                                              ; preds = %171
  %174 = load double, ptr %172, align 8, !tbaa !17
  %175 = load i64, ptr %24, align 8, !tbaa !15
  %176 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %175)
          to label %177 unwind label %164

177:                                              ; preds = %173
  %178 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17) %176)
          to label %179 unwind label %164

179:                                              ; preds = %177
  %180 = load double, ptr %178, align 8, !tbaa !17
  %181 = fcmp olt double %174, %180
  br i1 %181, label %182, label %183

182:                                              ; preds = %179
  store i8 1, ptr %22, align 1, !tbaa !9
  br label %183

183:                                              ; preds = %182, %179
  %184 = load i64, ptr %24, align 8, !tbaa !15
  %185 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %184)
          to label %186 unwind label %164

186:                                              ; preds = %183
  %187 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17) %185)
          to label %188 unwind label %164

188:                                              ; preds = %186
  %189 = load double, ptr %187, align 8, !tbaa !17
  %190 = load i64, ptr %24, align 8, !tbaa !15
  %191 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %190)
          to label %192 unwind label %164

192:                                              ; preds = %188
  %193 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17) %191)
          to label %194 unwind label %164

194:                                              ; preds = %192
  %195 = load double, ptr %193, align 8, !tbaa !17
  %196 = fcmp olt double %189, %195
  br i1 %196, label %197, label %198

197:                                              ; preds = %194
  store i8 1, ptr %23, align 1, !tbaa !9
  br label %198

198:                                              ; preds = %197, %194
  %199 = load i8, ptr %23, align 1, !tbaa !9, !range !19, !noundef !20
  %200 = trunc i8 %199 to i1
  br i1 %200, label %201, label %205

201:                                              ; preds = %198
  %202 = load i8, ptr %22, align 1, !tbaa !9, !range !19, !noundef !20
  %203 = trunc i8 %202 to i1
  br i1 %203, label %204, label %205

204:                                              ; preds = %201
  store i32 5, ptr %17, align 4
  br label %209

205:                                              ; preds = %201, %198
  br label %206

206:                                              ; preds = %205
  %207 = load i64, ptr %24, align 8, !tbaa !15
  %208 = add i64 %207, 1
  store i64 %208, ptr %24, align 8, !tbaa !15
  br label %149, !llvm.loop !23

209:                                              ; preds = %204, %154
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %210

210:                                              ; preds = %209
  %211 = load i8, ptr %23, align 1, !tbaa !9, !range !19, !noundef !20
  %212 = trunc i8 %211 to i1
  br i1 %212, label %213, label %216

213:                                              ; preds = %210
  %214 = load i8, ptr %22, align 1, !tbaa !9, !range !19, !noundef !20
  %215 = trunc i8 %214 to i1
  br i1 %215, label %232, label %216

216:                                              ; preds = %213, %210
  %217 = load i8, ptr %8, align 1, !tbaa !9, !range !19, !noundef !20
  %218 = trunc i8 %217 to i1
  br i1 %218, label %232, label %219

219:                                              ; preds = %216
  %220 = invoke noundef zeroext i1 @_ZN9NOMAD_4_3ltERKNS_6DoubleES2_(ptr noundef nonnull align 8 dereferenceable(17) %12, ptr noundef nonnull align 8 dereferenceable(17) %16)
          to label %221 unwind label %223

221:                                              ; preds = %219
  br i1 %220, label %222, label %227

222:                                              ; preds = %221
  store i8 1, ptr %22, align 1, !tbaa !9
  br label %227

223:                                              ; preds = %227, %219
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %13, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %14, align 4
  br label %246

227:                                              ; preds = %222, %221
  %228 = invoke noundef zeroext i1 @_ZN9NOMAD_4_3ltERKNS_6DoubleES2_(ptr noundef nonnull align 8 dereferenceable(17) %16, ptr noundef nonnull align 8 dereferenceable(17) %12)
          to label %229 unwind label %223

229:                                              ; preds = %227
  br i1 %228, label %230, label %231

230:                                              ; preds = %229
  store i8 1, ptr %23, align 1, !tbaa !9
  br label %231

231:                                              ; preds = %230, %229
  br label %232

232:                                              ; preds = %231, %216, %213
  %233 = load i8, ptr %23, align 1, !tbaa !9, !range !19, !noundef !20
  %234 = trunc i8 %233 to i1
  br i1 %234, label %235, label %240

235:                                              ; preds = %232
  %236 = load i8, ptr %22, align 1, !tbaa !9, !range !19, !noundef !20
  %237 = trunc i8 %236 to i1
  %238 = zext i1 %237 to i64
  %239 = select i1 %237, i32 1, i32 2
  store i32 %239, ptr %10, align 4, !tbaa !13
  br label %245

240:                                              ; preds = %232
  %241 = load i8, ptr %22, align 1, !tbaa !9, !range !19, !noundef !20
  %242 = trunc i8 %241 to i1
  %243 = zext i1 %242 to i64
  %244 = select i1 %242, i32 3, i32 0
  store i32 %244, ptr %10, align 4, !tbaa !13
  br label %245

245:                                              ; preds = %240, %235
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  br label %247

246:                                              ; preds = %223, %164
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  br label %253

247:                                              ; preds = %245, %147
  br label %248

248:                                              ; preds = %247, %143, %138
  br label %249

249:                                              ; preds = %248, %134
  %250 = load i32, ptr %10, align 4, !tbaa !13
  store i32 %250, ptr %5, align 4
  store i32 1, ptr %17, align 4
  br label %251

251:                                              ; preds = %249, %41
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  call void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  %252 = load i32, ptr %5, align 4
  ret i32 %252

253:                                              ; preds = %246, %163, %75, %55
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %16) #6
  br label %254

254:                                              ; preds = %253, %51
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  call void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  br label %255

255:                                              ; preds = %254, %47
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %12) #6
  br label %256

256:                                              ; preds = %255, %43
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %257

257:                                              ; preds = %256
  %258 = load ptr, ptr %13, align 8
  %259 = load i32, ptr %14, align 4
  %260 = insertvalue { ptr, i32 } poison, ptr %258, 0
  %261 = insertvalue { ptr, i32 } %260, i32 %259, 1
  resume { ptr, i32 } %261
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK9NOMAD_4_313ArrayOfDouble4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN9NOMAD_4_3neERKNS_6DoubleES2_(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(17)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN9NOMAD_4_3ltERKNS_6DoubleES2_(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(17)) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { 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 = { 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 #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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN9NOMAD_4_311ComputeTypeE", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTSN9NOMAD_4_311CompareTypeE", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}


; 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.NOMAD_4_3::Double" = type <{ ptr, double, i8, [7 x i8] }>
%"class.NOMAD_4_3::ArrayOfDouble" = type { ptr, i64, ptr }

@_ZN9NOMAD_4_3L3INFE = external hidden constant double, align 8

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nounwind
declare void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK9NOMAD_4_34Eval10isFeasibleENS_11ComputeTypeE(ptr noundef nonnull align 8 dereferenceable(105), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK9NOMAD_4_34Eval4getHENS_11ComputeTypeE(ptr dead_on_unwind noalias writable sret(%"class.NOMAD_4_3::Double") align 8, ptr noundef nonnull align 8 dereferenceable(105), i32 noundef) local_unnamed_addr #2 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17)) local_unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17)) unnamed_addr #1

declare void @_ZN9NOMAD_4_36DoubleC1ERKd(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK9NOMAD_4_34Eval5getFsENS_11ComputeTypeE(ptr dead_on_unwind noalias writable sret(%"class.NOMAD_4_3::ArrayOfDouble") align 8, ptr noundef nonnull align 8 dereferenceable(105), i32 noundef) local_unnamed_addr #2 align 2

declare noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 5) i32 @_ZNK9NOMAD_4_34Eval6compMOERKS0_bNS_11ComputeTypeE(ptr noundef nonnull align 8 dereferenceable(105) %0, ptr noundef nonnull align 8 dereferenceable(105) %1, i1 noundef zeroext %2, i32 noundef %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.NOMAD_4_3::ArrayOfDouble", align 8
  %6 = alloca %"class.NOMAD_4_3::Double", align 8
  %7 = alloca %"class.NOMAD_4_3::ArrayOfDouble", align 8
  %8 = alloca %"class.NOMAD_4_3::Double", align 8
  %9 = alloca %"class.NOMAD_4_3::Double", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNK9NOMAD_4_34Eval5getFsENS_11ComputeTypeE(ptr dead_on_unwind nonnull writable sret(%"class.NOMAD_4_3::ArrayOfDouble") align 8 %5, ptr noundef nonnull align 8 dereferenceable(105) %0, i32 noundef %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  invoke void @_ZNK9NOMAD_4_34Eval4getHENS_11ComputeTypeE(ptr dead_on_unwind nonnull writable sret(%"class.NOMAD_4_3::Double") align 8 %6, ptr noundef nonnull align 8 dereferenceable(105) %0, i32 noundef %3)
          to label %10 unwind label %15

10:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  invoke void @_ZNK9NOMAD_4_34Eval5getFsENS_11ComputeTypeE(ptr dead_on_unwind nonnull writable sret(%"class.NOMAD_4_3::ArrayOfDouble") align 8 %7, ptr noundef nonnull align 8 dereferenceable(105) %1, i32 noundef %3)
          to label %11 unwind label %17

11:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  invoke void @_ZNK9NOMAD_4_34Eval4getHENS_11ComputeTypeE(ptr dead_on_unwind nonnull writable sret(%"class.NOMAD_4_3::Double") align 8 %8, ptr noundef nonnull align 8 dereferenceable(105) %1, i32 noundef %3)
          to label %12 unwind label %19

12:                                               ; preds = %11
  %13 = call noundef i64 @_ZNK9NOMAD_4_313ArrayOfDouble4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %14 = call noundef i64 @_ZNK9NOMAD_4_313ArrayOfDouble4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  %.not = icmp eq i64 %13, %14
  br i1 %.not, label %23, label %.thread111

15:                                               ; preds = %4
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %131

17:                                               ; preds = %10
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %130

19:                                               ; preds = %11
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %129

21:                                               ; preds = %66, %63, %26, %23
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %128

23:                                               ; preds = %12
  %24 = invoke noundef zeroext i1 @_ZNK9NOMAD_4_34Eval10isFeasibleENS_11ComputeTypeE(ptr noundef nonnull align 8 dereferenceable(105) %0, i32 noundef %3)
          to label %25 unwind label %21

25:                                               ; preds = %23
  br i1 %24, label %26, label %63

26:                                               ; preds = %25
  %27 = invoke noundef zeroext i1 @_ZNK9NOMAD_4_34Eval10isFeasibleENS_11ComputeTypeE(ptr noundef nonnull align 8 dereferenceable(105) %1, i32 noundef %3)
          to label %28 unwind label %21

28:                                               ; preds = %26
  br i1 %27, label %.preheader, label %63

.preheader:                                       ; preds = %28
  %29 = call noundef i64 @_ZNK9NOMAD_4_313ArrayOfDouble4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %.not97 = icmp eq i64 %29, 0
  br i1 %.not97, label %.thread111, label %.lr.ph89

30:                                               ; preds = %49, %46, %44, %40, %38, %35, %33, %.lr.ph89
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %128

.lr.ph89:                                         ; preds = %.preheader, %57
  %.04788 = phi i64 [ %58, %57 ], [ 0, %.preheader ]
  %.04887 = phi i8 [ %.149, %57 ], [ 0, %.preheader ]
  %.05186 = phi i8 [ %.152, %57 ], [ 0, %.preheader ]
  %32 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.04788)
          to label %33 unwind label %30

33:                                               ; preds = %.lr.ph89
  %34 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17) %32)
          to label %35 unwind label %30

35:                                               ; preds = %33
  %36 = load double, ptr %34, align 8, !tbaa !5
  %37 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.04788)
          to label %38 unwind label %30

38:                                               ; preds = %35
  %39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17) %37)
          to label %40 unwind label %30

40:                                               ; preds = %38
  %41 = load double, ptr %39, align 8, !tbaa !5
  %42 = fcmp olt double %36, %41
  %.fr = freeze i1 %42
  %.152 = select i1 %.fr, i8 1, i8 %.05186
  %43 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.04788)
          to label %44 unwind label %30

44:                                               ; preds = %40
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17) %43)
          to label %46 unwind label %30

46:                                               ; preds = %44
  %47 = load double, ptr %45, align 8, !tbaa !5
  %48 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.04788)
          to label %49 unwind label %30

49:                                               ; preds = %46
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17) %48)
          to label %51 unwind label %30

51:                                               ; preds = %49
  %52 = load double, ptr %50, align 8, !tbaa !5
  %53 = fcmp olt double %47, %52
  %.fr128 = freeze i1 %53
  %.149 = select i1 %.fr128, i8 1, i8 %.04887
  %54 = trunc nuw i8 %.149 to i1
  br i1 %54, label %55, label %57

55:                                               ; preds = %51
  %56 = trunc nuw i8 %.152 to i1
  br i1 %56, label %._crit_edge90, label %57

57:                                               ; preds = %51, %55
  %58 = add nuw i64 %.04788, 1
  %59 = call noundef i64 @_ZNK9NOMAD_4_313ArrayOfDouble4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %60 = icmp ult i64 %58, %59
  br i1 %60, label %.lr.ph89, label %._crit_edge90, !llvm.loop !9

._crit_edge90:                                    ; preds = %57, %55
  %61 = trunc i8 %.149 to i1
  %62 = trunc i8 %.152 to i1
  %. = select i1 %62, i32 1, i32 2
  %.129 = select i1 %62, i32 3, i32 0
  %spec.select = select i1 %61, i32 %., i32 %.129
  br label %.thread111

63:                                               ; preds = %28, %25
  %64 = invoke noundef zeroext i1 @_ZNK9NOMAD_4_34Eval10isFeasibleENS_11ComputeTypeE(ptr noundef nonnull align 8 dereferenceable(105) %0, i32 noundef %3)
          to label %65 unwind label %21

65:                                               ; preds = %63
  br i1 %64, label %.thread111, label %66

66:                                               ; preds = %65
  %67 = invoke noundef zeroext i1 @_ZNK9NOMAD_4_34Eval10isFeasibleENS_11ComputeTypeE(ptr noundef nonnull align 8 dereferenceable(105) %1, i32 noundef %3)
          to label %68 unwind label %21

68:                                               ; preds = %66
  br i1 %67, label %.thread111, label %69

69:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  invoke void @_ZN9NOMAD_4_36DoubleC1ERKd(ptr noundef nonnull align 8 dereferenceable(17) %9, ptr noundef nonnull align 8 dereferenceable(8) @_ZN9NOMAD_4_3L3INFE)
          to label %70 unwind label %74

70:                                               ; preds = %69
  %71 = invoke noundef zeroext i1 @_ZN9NOMAD_4_3neERKNS_6DoubleES2_(ptr noundef nonnull align 8 dereferenceable(17) %6, ptr noundef nonnull align 8 dereferenceable(17) %9)
          to label %72 unwind label %76

72:                                               ; preds = %70
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  br i1 %71, label %.preheader78, label %.thread111

.preheader78:                                     ; preds = %72
  %73 = call noundef i64 @_ZNK9NOMAD_4_313ArrayOfDouble4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %.not96 = icmp eq i64 %73, 0
  br i1 %.not96, label %._crit_edge.thread, label %.lr.ph

74:                                               ; preds = %69
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %78

76:                                               ; preds = %70
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %9) #6
  br label %78

78:                                               ; preds = %76, %74
  %.pn = phi { ptr, i32 } [ %77, %76 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  br label %128

79:                                               ; preds = %98, %95, %93, %89, %87, %84, %82, %.lr.ph
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %128

.lr.ph:                                           ; preds = %.preheader78, %106
  %.081 = phi i64 [ %107, %106 ], [ 0, %.preheader78 ]
  %.04280 = phi i8 [ %.1, %106 ], [ 0, %.preheader78 ]
  %.04379 = phi i8 [ %.144, %106 ], [ 0, %.preheader78 ]
  %81 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.081)
          to label %82 unwind label %79

82:                                               ; preds = %.lr.ph
  %83 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17) %81)
          to label %84 unwind label %79

84:                                               ; preds = %82
  %85 = load double, ptr %83, align 8, !tbaa !5
  %86 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.081)
          to label %87 unwind label %79

87:                                               ; preds = %84
  %88 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17) %86)
          to label %89 unwind label %79

89:                                               ; preds = %87
  %90 = load double, ptr %88, align 8, !tbaa !5
  %91 = fcmp olt double %85, %90
  %.144 = select i1 %91, i8 1, i8 %.04379
  %92 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.081)
          to label %93 unwind label %79

93:                                               ; preds = %89
  %94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17) %92)
          to label %95 unwind label %79

95:                                               ; preds = %93
  %96 = load double, ptr %94, align 8, !tbaa !5
  %97 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9NOMAD_4_313ArrayOfDoubleixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.081)
          to label %98 unwind label %79

98:                                               ; preds = %95
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9NOMAD_4_36Double8todoubleEv(ptr noundef nonnull align 8 dereferenceable(17) %97)
          to label %100 unwind label %79

100:                                              ; preds = %98
  %101 = load double, ptr %99, align 8, !tbaa !5
  %102 = fcmp olt double %96, %101
  %.1 = select i1 %102, i8 1, i8 %.04280
  %103 = trunc nuw i8 %.1 to i1
  br i1 %103, label %104, label %106

104:                                              ; preds = %100
  %105 = trunc nuw i8 %.144 to i1
  br i1 %105, label %._crit_edge, label %106

106:                                              ; preds = %100, %104
  %107 = add nuw i64 %.081, 1
  %108 = call noundef i64 @_ZNK9NOMAD_4_313ArrayOfDouble4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %109 = icmp ult i64 %107, %108
  br i1 %109, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %106, %104
  %110 = trunc nuw i8 %.1 to i1
  br i1 %110, label %111, label %._crit_edge.thread

111:                                              ; preds = %._crit_edge
  %112 = trunc nuw i8 %.144 to i1
  %brmerge = or i1 %112, %2
  br i1 %brmerge, label %.thread121, label %117

.thread121:                                       ; preds = %111
  %113 = trunc nuw i8 %.144 to i1
  %114 = select i1 %113, i32 1, i32 2
  br label %.thread111

._crit_edge.thread:                               ; preds = %.preheader78, %._crit_edge
  %.245118 = phi i8 [ %.144, %._crit_edge ], [ 0, %.preheader78 ]
  br i1 %2, label %.thread124, label %117

.thread124:                                       ; preds = %._crit_edge.thread
  %115 = trunc nuw i8 %.245118 to i1
  %116 = select i1 %115, i32 3, i32 0
  br label %.thread111

117:                                              ; preds = %111, %._crit_edge.thread
  %.2119 = phi i1 [ true, %111 ], [ false, %._crit_edge.thread ]
  %.245117 = phi i8 [ %.144, %111 ], [ %.245118, %._crit_edge.thread ]
  %118 = invoke noundef zeroext i1 @_ZN9NOMAD_4_3ltERKNS_6DoubleES2_(ptr noundef nonnull align 8 dereferenceable(17) %6, ptr noundef nonnull align 8 dereferenceable(17) %8)
          to label %119 unwind label %121

119:                                              ; preds = %117
  %120 = invoke noundef zeroext i1 @_ZN9NOMAD_4_3ltERKNS_6DoubleES2_(ptr noundef nonnull align 8 dereferenceable(17) %8, ptr noundef nonnull align 8 dereferenceable(17) %6)
          to label %123 unwind label %121

121:                                              ; preds = %119, %117
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %128

123:                                              ; preds = %119
  %124 = trunc nuw i8 %.245117 to i1
  %.pre = or i1 %120, %.2119
  %125 = select i1 %118, i1 true, i1 %124
  %126 = select i1 %125, i32 1, i32 2
  %127 = select i1 %125, i32 3, i32 0
  %spec.select127 = select i1 %.pre, i32 %126, i32 %127
  br label %.thread111

.thread111:                                       ; preds = %._crit_edge90, %123, %.preheader, %.thread124, %.thread121, %72, %68, %65, %12
  %.068 = phi i32 [ 4, %12 ], [ 4, %65 ], [ 4, %68 ], [ 4, %72 ], [ %116, %.thread124 ], [ %114, %.thread121 ], [ 0, %.preheader ], [ %spec.select127, %123 ], [ %spec.select, %._crit_edge90 ]
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  call void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  ret i32 %.068

128:                                              ; preds = %79, %121, %78, %30, %21
  %.pn72 = phi { ptr, i32 } [ %31, %30 ], [ %.pn, %78 ], [ %22, %21 ], [ %122, %121 ], [ %80, %79 ]
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %8) #6
  br label %129

129:                                              ; preds = %128, %19
  %.pn72.pn = phi { ptr, i32 } [ %.pn72, %128 ], [ %20, %19 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  call void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  br label %130

130:                                              ; preds = %129, %17
  %.pn72.pn.pn = phi { ptr, i32 } [ %.pn72.pn, %129 ], [ %18, %17 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %6) #6
  br label %131

131:                                              ; preds = %130, %15
  %.pn72.pn.pn.pn = phi { ptr, i32 } [ %.pn72.pn.pn, %130 ], [ %16, %15 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @_ZN9NOMAD_4_313ArrayOfDoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  resume { ptr, i32 } %.pn72.pn.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK9NOMAD_4_313ArrayOfDouble4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN9NOMAD_4_3neERKNS_6DoubleES2_(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(17)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN9NOMAD_4_3ltERKNS_6DoubleES2_(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(17)) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { 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 = { 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 #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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass