; LLVM IR from zhfkt/ComplexCi :: ComplexCi/ComplexCi.ll (ZN2ci15get_influencersEPNS_7varNodeElPPlii)

; 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.ci::Heap" = type { i64, ptr }
%"struct.ci::varNode" = type { i32, i64, i64 }
%"struct.ci::vertex" = type { i64, i64 }

@stdout = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1

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

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

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2ci7heapifyEPNS_4HeapElPl(ptr noundef, i64 noundef, ptr noundef) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2ci10build_heapEPNS_4HeapEPl(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN2ci6get_CIElPNS_7varNodeElPPliS2_S2_S2_(i64 noundef, ptr noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2ci20get_listNodeToUpdateElPNS_7varNodeElPPliS2_S2_S2_(i64 noundef, ptr noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN2ci12bigCompNodesEPNS_7varNodeEPPllS2_(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN2ci8reinsertEPNS_7varNodeElPllPS2_(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN2ci15get_influencersEPNS_7varNodeElPPlii(ptr noundef %0, i64 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) #3 {
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca %"struct.ci::Heap", align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca i64, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i64 %1, ptr %7, align 8, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !11
  store i32 %4, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %32 = load i64, ptr %7, align 8, !tbaa !9
  %33 = add nsw i64 %32, 1
  %34 = call noalias ptr @calloc(i64 noundef %33, i64 noundef 8) #7
  store ptr %34, ptr %21, align 8, !tbaa !5
  %35 = load i64, ptr %7, align 8, !tbaa !9
  %36 = add nsw i64 %35, 1
  %37 = call noalias ptr @calloc(i64 noundef %36, i64 noundef 8) #7
  store ptr %37, ptr %22, align 8, !tbaa !5
  %38 = load i32, ptr %9, align 4, !tbaa !11
  %39 = add nsw i32 %38, 1
  %40 = sext i32 %39 to i64
  %41 = call noalias ptr @calloc(i64 noundef %40, i64 noundef 8) #7
  store ptr %41, ptr %23, align 8, !tbaa !5
  %42 = load i32, ptr %9, align 4, !tbaa !11
  %43 = add nsw i32 %42, 2
  %44 = sext i32 %43 to i64
  %45 = call noalias ptr @calloc(i64 noundef %44, i64 noundef 8) #7
  store ptr %45, ptr %24, align 8, !tbaa !5
  %46 = load i64, ptr %7, align 8, !tbaa !9
  %47 = add nsw i64 %46, 1
  %48 = call noalias ptr @calloc(i64 noundef %47, i64 noundef 8) #7
  store ptr %48, ptr %25, align 8, !tbaa !5
  %49 = load i64, ptr %7, align 8, !tbaa !9
  %50 = add nsw i64 %49, 1
  %51 = call noalias ptr @calloc(i64 noundef %50, i64 noundef 8) #7
  store ptr %51, ptr %26, align 8, !tbaa !5
  %52 = load i64, ptr %7, align 8, !tbaa !9
  %53 = add nsw i64 %52, 1
  %54 = getelementptr inbounds %"struct.ci::Heap", ptr %28, i32 0, i32 0
  store i64 %53, ptr %54, align 8, !tbaa !13
  %55 = getelementptr inbounds %"struct.ci::Heap", ptr %28, i32 0, i32 0
  %56 = load i64, ptr %55, align 8, !tbaa !13
  %57 = call noalias ptr @calloc(i64 noundef %56, i64 noundef 16) #7
  %58 = getelementptr inbounds %"struct.ci::Heap", ptr %28, i32 0, i32 1
  store ptr %57, ptr %58, align 8, !tbaa !15
  %59 = getelementptr inbounds %"struct.ci::Heap", ptr %28, i32 0, i32 0
  %60 = load i64, ptr %59, align 8, !tbaa !13
  %61 = call noalias ptr @calloc(i64 noundef %60, i64 noundef 8) #7
  store ptr %61, ptr %20, align 8, !tbaa !5
  store i64 0, ptr %18, align 8, !tbaa !9
  store i64 1, ptr %11, align 8, !tbaa !9
  br label %62

62:                                               ; preds = %89, %5
  %63 = load i64, ptr %11, align 8, !tbaa !9
  %64 = load i64, ptr %7, align 8, !tbaa !9
  %65 = icmp sle i64 %63, %64
  br i1 %65, label %66, label %92

66:                                               ; preds = %62
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = load i64, ptr %11, align 8, !tbaa !9
  %69 = getelementptr inbounds %"struct.ci::varNode", ptr %67, i64 %68
  %70 = getelementptr inbounds %"struct.ci::varNode", ptr %69, i32 0, i32 0
  store i32 1, ptr %70, align 8, !tbaa !16
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = load i64, ptr %11, align 8, !tbaa !9
  %73 = getelementptr inbounds ptr, ptr %71, i64 %72
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = getelementptr inbounds i64, ptr %74, i64 0
  %76 = load i64, ptr %75, align 8, !tbaa !9
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = load i64, ptr %11, align 8, !tbaa !9
  %79 = getelementptr inbounds %"struct.ci::varNode", ptr %77, i64 %78
  %80 = getelementptr inbounds %"struct.ci::varNode", ptr %79, i32 0, i32 1
  store i64 %76, ptr %80, align 8, !tbaa !19
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = load i64, ptr %11, align 8, !tbaa !9
  %83 = getelementptr inbounds ptr, ptr %81, i64 %82
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  %85 = getelementptr inbounds i64, ptr %84, i64 0
  %86 = load i64, ptr %85, align 8, !tbaa !9
  %87 = load i64, ptr %18, align 8, !tbaa !9
  %88 = add nsw i64 %87, %86
  store i64 %88, ptr %18, align 8, !tbaa !9
  br label %89

89:                                               ; preds = %66
  %90 = load i64, ptr %11, align 8, !tbaa !9
  %91 = add nsw i64 %90, 1
  store i64 %91, ptr %11, align 8, !tbaa !9
  br label %62, !llvm.loop !20

92:                                               ; preds = %62
  store i64 0, ptr %19, align 8, !tbaa !9
  store i64 1, ptr %11, align 8, !tbaa !9
  br label %93

93:                                               ; preds = %130, %92
  %94 = load i64, ptr %11, align 8, !tbaa !9
  %95 = load i64, ptr %7, align 8, !tbaa !9
  %96 = icmp sle i64 %94, %95
  br i1 %96, label %97, label %133

97:                                               ; preds = %93
  %98 = load i64, ptr %11, align 8, !tbaa !9
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = load i64, ptr %7, align 8, !tbaa !9
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = load i32, ptr %9, align 4, !tbaa !11
  %103 = load ptr, ptr %21, align 8, !tbaa !5
  %104 = load ptr, ptr %22, align 8, !tbaa !5
  %105 = load ptr, ptr %23, align 8, !tbaa !5
  %106 = call noundef i64 @_ZN2ci6get_CIElPNS_7varNodeElPPliS2_S2_S2_(i64 noundef %98, ptr noundef %99, i64 noundef %100, ptr noundef %101, i32 noundef %102, ptr noundef %103, ptr noundef %104, ptr noundef %105)
  %107 = getelementptr inbounds %"struct.ci::Heap", ptr %28, i32 0, i32 1
  %108 = load ptr, ptr %107, align 8, !tbaa !15
  %109 = load i64, ptr %11, align 8, !tbaa !9
  %110 = getelementptr inbounds %"struct.ci::vertex", ptr %108, i64 %109
  %111 = getelementptr inbounds %"struct.ci::vertex", ptr %110, i32 0, i32 0
  store i64 %106, ptr %111, align 8, !tbaa !22
  %112 = load i64, ptr %11, align 8, !tbaa !9
  %113 = getelementptr inbounds %"struct.ci::Heap", ptr %28, i32 0, i32 1
  %114 = load ptr, ptr %113, align 8, !tbaa !15
  %115 = load i64, ptr %11, align 8, !tbaa !9
  %116 = getelementptr inbounds %"struct.ci::vertex", ptr %114, i64 %115
  %117 = getelementptr inbounds %"struct.ci::vertex", ptr %116, i32 0, i32 1
  store i64 %112, ptr %117, align 8, !tbaa !24
  %118 = load i64, ptr %11, align 8, !tbaa !9
  %119 = load ptr, ptr %20, align 8, !tbaa !5
  %120 = load i64, ptr %11, align 8, !tbaa !9
  %121 = getelementptr inbounds i64, ptr %119, i64 %120
  store i64 %118, ptr %121, align 8, !tbaa !9
  %122 = getelementptr inbounds %"struct.ci::Heap", ptr %28, i32 0, i32 1
  %123 = load ptr, ptr %122, align 8, !tbaa !15
  %124 = load i64, ptr %11, align 8, !tbaa !9
  %125 = getelementptr inbounds %"struct.ci::vertex", ptr %123, i64 %124
  %126 = getelementptr inbounds %"struct.ci::vertex", ptr %125, i32 0, i32 0
  %127 = load i64, ptr %126, align 8, !tbaa !22
  %128 = load i64, ptr %19, align 8, !tbaa !9
  %129 = add nsw i64 %128, %127
  store i64 %129, ptr %19, align 8, !tbaa !9
  br label %130

130:                                              ; preds = %97
  %131 = load i64, ptr %11, align 8, !tbaa !9
  %132 = add nsw i64 %131, 1
  store i64 %132, ptr %11, align 8, !tbaa !9
  br label %93, !llvm.loop !25

133:                                              ; preds = %93
  %134 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN2ci10build_heapEPNS_4HeapEPl(ptr noundef %28, ptr noundef %134)
  %135 = load i64, ptr %7, align 8, !tbaa !9
  %136 = icmp sge i64 %135, 1000
  br i1 %136, label %137, label %143

137:                                              ; preds = %133
  store double 1.000000e-02, ptr %30, align 8, !tbaa !26
  %138 = load double, ptr %30, align 8, !tbaa !26
  %139 = load i64, ptr %7, align 8, !tbaa !9
  %140 = sitofp i64 %139 to double
  %141 = fmul double %138, %140
  %142 = fptosi double %141 to i64
  store i64 %142, ptr %31, align 8, !tbaa !9
  br label %147

143:                                              ; preds = %133
  %144 = load i64, ptr %7, align 8, !tbaa !9
  %145 = sitofp i64 %144 to double
  %146 = fdiv double 1.000000e+00, %145
  store double %146, ptr %30, align 8, !tbaa !26
  store i64 1, ptr %31, align 8, !tbaa !9
  br label %147

147:                                              ; preds = %143, %137
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  %150 = load i64, ptr %7, align 8, !tbaa !9
  %151 = load ptr, ptr %21, align 8, !tbaa !5
  %152 = call noundef i64 @_ZN2ci12bigCompNodesEPNS_7varNodeEPPllS2_(ptr noundef %148, ptr noundef %149, i64 noundef %150, ptr noundef %151)
  %153 = sitofp i64 %152 to double
  %154 = load i64, ptr %7, align 8, !tbaa !9
  %155 = sitofp i64 %154 to double
  %156 = fdiv double %153, %155
  store double %156, ptr %29, align 8, !tbaa !26
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %157

157:                                              ; preds = %317, %147
  %158 = load double, ptr %29, align 8, !tbaa !26
  %159 = load double, ptr %30, align 8, !tbaa !26
  %160 = fcmp ogt double %158, %159
  br i1 %160, label %161, label %165

161:                                              ; preds = %157
  %162 = load i64, ptr %13, align 8, !tbaa !9
  %163 = load i64, ptr %7, align 8, !tbaa !9
  %164 = icmp slt i64 %162, %163
  br label %165

165:                                              ; preds = %161, %157
  %166 = phi i1 [ false, %157 ], [ %164, %161 ]
  br i1 %166, label %167, label %324

167:                                              ; preds = %165
  %168 = getelementptr inbounds %"struct.ci::Heap", ptr %28, i32 0, i32 1
  %169 = load ptr, ptr %168, align 8, !tbaa !15
  %170 = getelementptr inbounds %"struct.ci::vertex", ptr %169, i64 1
  %171 = getelementptr inbounds %"struct.ci::vertex", ptr %170, i32 0, i32 1
  %172 = load i64, ptr %171, align 8, !tbaa !24
  store i64 %172, ptr %14, align 8, !tbaa !9
  %173 = load ptr, ptr %6, align 8, !tbaa !5
  %174 = load i64, ptr %14, align 8, !tbaa !9
  %175 = getelementptr inbounds %"struct.ci::varNode", ptr %173, i64 %174
  %176 = getelementptr inbounds %"struct.ci::varNode", ptr %175, i32 0, i32 0
  store i32 0, ptr %176, align 8, !tbaa !16
  %177 = getelementptr inbounds %"struct.ci::Heap", ptr %28, i32 0, i32 1
  %178 = load ptr, ptr %177, align 8, !tbaa !15
  %179 = getelementptr inbounds %"struct.ci::vertex", ptr %178, i64 1
  %180 = getelementptr inbounds %"struct.ci::vertex", ptr %179, i32 0, i32 0
  %181 = load i64, ptr %180, align 8, !tbaa !22
  %182 = load i64, ptr %19, align 8, !tbaa !9
  %183 = sub nsw i64 %182, %181
  store i64 %183, ptr %19, align 8, !tbaa !9
  %184 = load ptr, ptr %20, align 8, !tbaa !5
  %185 = getelementptr inbounds %"struct.ci::Heap", ptr %28, i32 0, i32 1
  %186 = load ptr, ptr %185, align 8, !tbaa !15
  %187 = getelementptr inbounds %"struct.ci::Heap", ptr %28, i32 0, i32 0
  %188 = load i64, ptr %187, align 8, !tbaa !13
  %189 = sub nsw i64 %188, 1
  %190 = getelementptr inbounds %"struct.ci::vertex", ptr %186, i64 %189
  %191 = getelementptr inbounds %"struct.ci::vertex", ptr %190, i32 0, i32 1
  %192 = load i64, ptr %191, align 8, !tbaa !24
  %193 = getelementptr inbounds i64, ptr %184, i64 %192
  store i64 1, ptr %193, align 8, !tbaa !9
  %194 = getelementptr inbounds %"struct.ci::Heap", ptr %28, i32 0, i32 0
  %195 = load i64, ptr %194, align 8, !tbaa !13
  %196 = load ptr, ptr %20, align 8, !tbaa !5
  %197 = getelementptr inbounds %"struct.ci::Heap", ptr %28, i32 0, i32 1
  %198 = load ptr, ptr %197, align 8, !tbaa !15
  %199 = getelementptr inbounds %"struct.ci::vertex", ptr %198, i64 1
  %200 = getelementptr inbounds %"struct.ci::vertex", ptr %199, i32 0, i32 1
  %201 = load i64, ptr %200, align 8, !tbaa !24
  %202 = getelementptr inbounds i64, ptr %196, i64 %201
  store i64 %195, ptr %202, align 8, !tbaa !9
  %203 = getelementptr inbounds %"struct.ci::Heap", ptr %28, i32 0, i32 1
  %204 = load ptr, ptr %203, align 8, !tbaa !15
  %205 = getelementptr inbounds %"struct.ci::Heap", ptr %28, i32 0, i32 0
  %206 = load i64, ptr %205, align 8, !tbaa !13
  %207 = sub nsw i64 %206, 1
  %208 = getelementptr inbounds %"struct.ci::vertex", ptr %204, i64 %207
  %209 = getelementptr inbounds %"struct.ci::Heap", ptr %28, i32 0, i32 1
  %210 = load ptr, ptr %209, align 8, !tbaa !15
  %211 = getelementptr inbounds %"struct.ci::vertex", ptr %210, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %211, ptr align 8 %208, i64 16, i1 false), !tbaa.struct !28
  %212 = getelementptr inbounds %"struct.ci::Heap", ptr %28, i32 0, i32 0
  %213 = load i64, ptr %212, align 8, !tbaa !13
  %214 = add nsw i64 %213, -1
  store i64 %214, ptr %212, align 8, !tbaa !13
  %215 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN2ci7heapifyEPNS_4HeapElPl(ptr noundef %28, i64 noundef 1, ptr noundef %215)
  store i64 1, ptr %12, align 8, !tbaa !9
  br label %216

216:                                              ; preds = %238, %167
  %217 = load i64, ptr %12, align 8, !tbaa !9
  %218 = load ptr, ptr %8, align 8, !tbaa !5
  %219 = load i64, ptr %14, align 8, !tbaa !9
  %220 = getelementptr inbounds ptr, ptr %218, i64 %219
  %221 = load ptr, ptr %220, align 8, !tbaa !5
  %222 = getelementptr inbounds i64, ptr %221, i64 0
  %223 = load i64, ptr %222, align 8, !tbaa !9
  %224 = icmp sle i64 %217, %223
  br i1 %224, label %225, label %241

225:                                              ; preds = %216
  %226 = load ptr, ptr %6, align 8, !tbaa !5
  %227 = load ptr, ptr %8, align 8, !tbaa !5
  %228 = load i64, ptr %14, align 8, !tbaa !9
  %229 = getelementptr inbounds ptr, ptr %227, i64 %228
  %230 = load ptr, ptr %229, align 8, !tbaa !5
  %231 = load i64, ptr %12, align 8, !tbaa !9
  %232 = getelementptr inbounds i64, ptr %230, i64 %231
  %233 = load i64, ptr %232, align 8, !tbaa !9
  %234 = getelementptr inbounds %"struct.ci::varNode", ptr %226, i64 %233
  %235 = getelementptr inbounds %"struct.ci::varNode", ptr %234, i32 0, i32 1
  %236 = load i64, ptr %235, align 8, !tbaa !19
  %237 = add nsw i64 %236, -1
  store i64 %237, ptr %235, align 8, !tbaa !19
  br label %238

238:                                              ; preds = %225
  %239 = load i64, ptr %12, align 8, !tbaa !9
  %240 = add nsw i64 %239, 1
  store i64 %240, ptr %12, align 8, !tbaa !9
  br label %216, !llvm.loop !29

241:                                              ; preds = %216
  %242 = load i64, ptr %14, align 8, !tbaa !9
  %243 = load ptr, ptr %6, align 8, !tbaa !5
  %244 = load i64, ptr %7, align 8, !tbaa !9
  %245 = load ptr, ptr %8, align 8, !tbaa !5
  %246 = load i32, ptr %9, align 4, !tbaa !11
  %247 = add nsw i32 %246, 1
  %248 = load ptr, ptr %25, align 8, !tbaa !5
  %249 = load ptr, ptr %22, align 8, !tbaa !5
  %250 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN2ci20get_listNodeToUpdateElPNS_7varNodeElPPliS2_S2_S2_(i64 noundef %242, ptr noundef %243, i64 noundef %244, ptr noundef %245, i32 noundef %247, ptr noundef %248, ptr noundef %249, ptr noundef %250)
  %251 = load ptr, ptr %25, align 8, !tbaa !5
  %252 = getelementptr inbounds i64, ptr %251, i64 0
  %253 = load i64, ptr %252, align 8, !tbaa !9
  store i64 %253, ptr %17, align 8, !tbaa !9
  store i64 1, ptr %12, align 8, !tbaa !9
  br label %254

254:                                              ; preds = %299, %241
  %255 = load i64, ptr %12, align 8, !tbaa !9
  %256 = load i64, ptr %17, align 8, !tbaa !9
  %257 = icmp sle i64 %255, %256
  br i1 %257, label %258, label %302

258:                                              ; preds = %254
  %259 = load ptr, ptr %25, align 8, !tbaa !5
  %260 = load i64, ptr %12, align 8, !tbaa !9
  %261 = getelementptr inbounds i64, ptr %259, i64 %260
  %262 = load i64, ptr %261, align 8, !tbaa !9
  store i64 %262, ptr %15, align 8, !tbaa !9
  %263 = load ptr, ptr %20, align 8, !tbaa !5
  %264 = load i64, ptr %15, align 8, !tbaa !9
  %265 = getelementptr inbounds i64, ptr %263, i64 %264
  %266 = load i64, ptr %265, align 8, !tbaa !9
  store i64 %266, ptr %16, align 8, !tbaa !9
  %267 = getelementptr inbounds %"struct.ci::Heap", ptr %28, i32 0, i32 1
  %268 = load ptr, ptr %267, align 8, !tbaa !15
  %269 = load i64, ptr %16, align 8, !tbaa !9
  %270 = getelementptr inbounds %"struct.ci::vertex", ptr %268, i64 %269
  %271 = getelementptr inbounds %"struct.ci::vertex", ptr %270, i32 0, i32 0
  %272 = load i64, ptr %271, align 8, !tbaa !22
  %273 = load i64, ptr %19, align 8, !tbaa !9
  %274 = sub nsw i64 %273, %272
  store i64 %274, ptr %19, align 8, !tbaa !9
  %275 = load i64, ptr %15, align 8, !tbaa !9
  %276 = load ptr, ptr %6, align 8, !tbaa !5
  %277 = load i64, ptr %7, align 8, !tbaa !9
  %278 = load ptr, ptr %8, align 8, !tbaa !5
  %279 = load i32, ptr %9, align 4, !tbaa !11
  %280 = load ptr, ptr %21, align 8, !tbaa !5
  %281 = load ptr, ptr %22, align 8, !tbaa !5
  %282 = load ptr, ptr %23, align 8, !tbaa !5
  %283 = call noundef i64 @_ZN2ci6get_CIElPNS_7varNodeElPPliS2_S2_S2_(i64 noundef %275, ptr noundef %276, i64 noundef %277, ptr noundef %278, i32 noundef %279, ptr noundef %280, ptr noundef %281, ptr noundef %282)
  %284 = getelementptr inbounds %"struct.ci::Heap", ptr %28, i32 0, i32 1
  %285 = load ptr, ptr %284, align 8, !tbaa !15
  %286 = load i64, ptr %16, align 8, !tbaa !9
  %287 = getelementptr inbounds %"struct.ci::vertex", ptr %285, i64 %286
  %288 = getelementptr inbounds %"struct.ci::vertex", ptr %287, i32 0, i32 0
  store i64 %283, ptr %288, align 8, !tbaa !22
  %289 = getelementptr inbounds %"struct.ci::Heap", ptr %28, i32 0, i32 1
  %290 = load ptr, ptr %289, align 8, !tbaa !15
  %291 = load i64, ptr %16, align 8, !tbaa !9
  %292 = getelementptr inbounds %"struct.ci::vertex", ptr %290, i64 %291
  %293 = getelementptr inbounds %"struct.ci::vertex", ptr %292, i32 0, i32 0
  %294 = load i64, ptr %293, align 8, !tbaa !22
  %295 = load i64, ptr %19, align 8, !tbaa !9
  %296 = add nsw i64 %295, %294
  store i64 %296, ptr %19, align 8, !tbaa !9
  %297 = load i64, ptr %16, align 8, !tbaa !9
  %298 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN2ci7heapifyEPNS_4HeapElPl(ptr noundef %28, i64 noundef %297, ptr noundef %298)
  br label %299

299:                                              ; preds = %258
  %300 = load i64, ptr %12, align 8, !tbaa !9
  %301 = add nsw i64 %300, 1
  store i64 %301, ptr %12, align 8, !tbaa !9
  br label %254, !llvm.loop !30

302:                                              ; preds = %254
  %303 = load i64, ptr %13, align 8, !tbaa !9
  %304 = load i64, ptr %31, align 8, !tbaa !9
  %305 = srem i64 %303, %304
  %306 = icmp ne i64 %305, 0
  br i1 %306, label %317, label %307

307:                                              ; preds = %302
  %308 = load ptr, ptr %6, align 8, !tbaa !5
  %309 = load ptr, ptr %8, align 8, !tbaa !5
  %310 = load i64, ptr %7, align 8, !tbaa !9
  %311 = load ptr, ptr %21, align 8, !tbaa !5
  %312 = call noundef i64 @_ZN2ci12bigCompNodesEPNS_7varNodeEPPllS2_(ptr noundef %308, ptr noundef %309, i64 noundef %310, ptr noundef %311)
  %313 = sitofp i64 %312 to double
  %314 = load i64, ptr %7, align 8, !tbaa !9
  %315 = sitofp i64 %314 to double
  %316 = fdiv double %313, %315
  store double %316, ptr %29, align 8, !tbaa !26
  br label %317

317:                                              ; preds = %307, %302
  %318 = load i64, ptr %14, align 8, !tbaa !9
  %319 = load ptr, ptr %26, align 8, !tbaa !5
  %320 = load i64, ptr %13, align 8, !tbaa !9
  %321 = getelementptr inbounds i64, ptr %319, i64 %320
  store i64 %318, ptr %321, align 8, !tbaa !9
  %322 = load i64, ptr %13, align 8, !tbaa !9
  %323 = add nsw i64 %322, 1
  store i64 %323, ptr %13, align 8, !tbaa !9
  br label %157, !llvm.loop !31

324:                                              ; preds = %165
  %325 = load ptr, ptr @stdout, align 8, !tbaa !5
  %326 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %325, ptr noundef @.str.2) #6
  %327 = load i32, ptr %10, align 4, !tbaa !11
  %328 = icmp ne i32 %327, 0
  br i1 %328, label %329, label %336

329:                                              ; preds = %324
  %330 = load ptr, ptr %6, align 8, !tbaa !5
  %331 = load i64, ptr %13, align 8, !tbaa !9
  %332 = load ptr, ptr %26, align 8, !tbaa !5
  %333 = load i64, ptr %7, align 8, !tbaa !9
  %334 = load ptr, ptr %8, align 8, !tbaa !5
  %335 = call noundef ptr @_ZN2ci8reinsertEPNS_7varNodeElPllPS2_(ptr noundef %330, i64 noundef %331, ptr noundef %332, i64 noundef %333, ptr noundef %334)
  store ptr %335, ptr %27, align 8, !tbaa !5
  br label %360

336:                                              ; preds = %324
  %337 = load i64, ptr %13, align 8, !tbaa !9
  %338 = add nsw i64 %337, 1
  %339 = call noalias ptr @calloc(i64 noundef %338, i64 noundef 8) #7
  store ptr %339, ptr %27, align 8, !tbaa !5
  store i64 1, ptr %11, align 8, !tbaa !9
  br label %340

340:                                              ; preds = %353, %336
  %341 = load i64, ptr %11, align 8, !tbaa !9
  %342 = load i64, ptr %13, align 8, !tbaa !9
  %343 = icmp sle i64 %341, %342
  br i1 %343, label %344, label %356

344:                                              ; preds = %340
  %345 = load ptr, ptr %26, align 8, !tbaa !5
  %346 = load i64, ptr %11, align 8, !tbaa !9
  %347 = sub nsw i64 %346, 1
  %348 = getelementptr inbounds i64, ptr %345, i64 %347
  %349 = load i64, ptr %348, align 8, !tbaa !9
  %350 = load ptr, ptr %27, align 8, !tbaa !5
  %351 = load i64, ptr %11, align 8, !tbaa !9
  %352 = getelementptr inbounds i64, ptr %350, i64 %351
  store i64 %349, ptr %352, align 8, !tbaa !9
  br label %353

353:                                              ; preds = %344
  %354 = load i64, ptr %11, align 8, !tbaa !9
  %355 = add nsw i64 %354, 1
  store i64 %355, ptr %11, align 8, !tbaa !9
  br label %340, !llvm.loop !32

356:                                              ; preds = %340
  %357 = load i64, ptr %13, align 8, !tbaa !9
  %358 = load ptr, ptr %27, align 8, !tbaa !5
  %359 = getelementptr inbounds i64, ptr %358, i64 0
  store i64 %357, ptr %359, align 8, !tbaa !9
  br label %360

360:                                              ; preds = %356, %329
  %361 = load ptr, ptr %21, align 8, !tbaa !5
  call void @free(ptr noundef %361) #6
  %362 = load ptr, ptr %22, align 8, !tbaa !5
  call void @free(ptr noundef %362) #6
  %363 = load ptr, ptr %23, align 8, !tbaa !5
  call void @free(ptr noundef %363) #6
  %364 = load ptr, ptr %24, align 8, !tbaa !5
  call void @free(ptr noundef %364) #6
  %365 = load ptr, ptr %25, align 8, !tbaa !5
  call void @free(ptr noundef %365) #6
  %366 = load ptr, ptr %26, align 8, !tbaa !5
  call void @free(ptr noundef %366) #6
  %367 = getelementptr inbounds %"struct.ci::Heap", ptr %28, i32 0, i32 1
  %368 = load ptr, ptr %367, align 8, !tbaa !15
  call void @free(ptr noundef %368) #6
  %369 = load ptr, ptr %20, align 8, !tbaa !5
  call void @free(ptr noundef %369) #6
  %370 = load ptr, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  ret ptr %370
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind allocsize(0,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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 }
attributes #7 = { nounwind allocsize(0,1) }

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN2ci4HeapE", !10, i64 0, !6, i64 8}
!15 = !{!14, !6, i64 8}
!16 = !{!17, !18, i64 0}
!17 = !{!"_ZTSN2ci7varNodeE", !18, i64 0, !10, i64 8, !10, i64 16}
!18 = !{!"_ZTSN2ci6out_inE", !7, i64 0}
!19 = !{!17, !10, i64 8}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!23, !10, i64 0}
!23 = !{!"_ZTSN2ci6vertexE", !10, i64 0, !10, i64 8}
!24 = !{!23, !10, i64 8}
!25 = distinct !{!25, !21}
!26 = !{!27, !27, i64 0}
!27 = !{!"double", !7, i64 0}
!28 = !{i64 0, i64 8, !9, i64 8, i64 8, !9}
!29 = distinct !{!29, !21}
!30 = distinct !{!30, !21}
!31 = distinct !{!31, !21}
!32 = distinct !{!32, !21}


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

%"struct.ci::Heap" = type { i64, ptr }
%"struct.ci::varNode" = type { i32, i64, i64 }
%"struct.ci::vertex" = type { i64, i64 }

@stdout = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2ci7heapifyEPNS_4HeapElPl(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2ci10build_heapEPNS_4HeapEPl(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN2ci6get_CIElPNS_7varNodeElPPliS2_S2_S2_(i64 noundef, ptr noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2ci20get_listNodeToUpdateElPNS_7varNodeElPPliS2_S2_S2_(i64 noundef, ptr noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN2ci12bigCompNodesEPNS_7varNodeEPPllS2_(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN2ci8reinsertEPNS_7varNodeElPllPS2_(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN2ci15get_influencersEPNS_7varNodeElPPlii(ptr noundef %0, i64 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #3 {
  %6 = alloca %"struct.ci::Heap", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  %7 = add i64 %1, 1
  %8 = tail call noalias ptr @calloc(i64 noundef %7, i64 noundef 8) #8
  %9 = tail call noalias ptr @calloc(i64 noundef %7, i64 noundef 8) #8
  %10 = add nsw i32 %3, 1
  %11 = sext i32 %10 to i64
  %12 = tail call noalias ptr @calloc(i64 noundef %11, i64 noundef 8) #8
  %13 = add nsw i32 %3, 2
  %14 = sext i32 %13 to i64
  %15 = tail call noalias ptr @calloc(i64 noundef %14, i64 noundef 8) #8
  %16 = tail call noalias ptr @calloc(i64 noundef %7, i64 noundef 8) #8
  %17 = tail call noalias ptr @calloc(i64 noundef %7, i64 noundef 8) #8
  store i64 %7, ptr %6, align 8, !tbaa !5
  %18 = tail call noalias ptr @calloc(i64 noundef %7, i64 noundef 16) #8
  %19 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr %18, ptr %19, align 8, !tbaa !11
  %20 = tail call noalias ptr @calloc(i64 noundef %7, i64 noundef 8) #8
  %.not150 = icmp slt i64 %1, 1
  br i1 %.not150, label %._crit_edge.thread, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %5
  %xtraiter = and i64 %1, 1
  %21 = icmp eq i64 %1, 1
  br i1 %21, label %.preheader.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %1, 9223372036854775806
  br label %.lr.ph

.preheader.unr-lcssa:                             ; preds = %.lr.ph, %.lr.ph.preheader
  %.0134151.unr = phi i64 [ 1, %.lr.ph.preheader ], [ %38, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.preheader.unr-lcssa
  %22 = getelementptr inbounds %"struct.ci::varNode", ptr %0, i64 %.0134151.unr
  store i32 1, ptr %22, align 8, !tbaa !12
  %23 = getelementptr inbounds ptr, ptr %2, i64 %.0134151.unr
  %24 = load ptr, ptr %23, align 8, !tbaa !15
  %25 = load i64, ptr %24, align 8, !tbaa !16
  %26 = getelementptr inbounds i8, ptr %22, i64 8
  store i64 %25, ptr %26, align 8, !tbaa !17
  br label %.preheader

.preheader:                                       ; preds = %.preheader.unr-lcssa, %.lr.ph.epil
  br i1 %.not150, label %._crit_edge.thread, label %.lr.ph155

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %.0134151 = phi i64 [ 1, %.lr.ph.preheader.new ], [ %38, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %27 = getelementptr inbounds %"struct.ci::varNode", ptr %0, i64 %.0134151
  store i32 1, ptr %27, align 8, !tbaa !12
  %28 = getelementptr inbounds ptr, ptr %2, i64 %.0134151
  %29 = load ptr, ptr %28, align 8, !tbaa !15
  %30 = load i64, ptr %29, align 8, !tbaa !16
  %31 = getelementptr inbounds i8, ptr %27, i64 8
  store i64 %30, ptr %31, align 8, !tbaa !17
  %32 = add nuw i64 %.0134151, 1
  %33 = getelementptr inbounds %"struct.ci::varNode", ptr %0, i64 %32
  store i32 1, ptr %33, align 8, !tbaa !12
  %34 = getelementptr inbounds ptr, ptr %2, i64 %32
  %35 = load ptr, ptr %34, align 8, !tbaa !15
  %36 = load i64, ptr %35, align 8, !tbaa !16
  %37 = getelementptr inbounds i8, ptr %33, i64 8
  store i64 %36, ptr %37, align 8, !tbaa !17
  %38 = add nuw i64 %.0134151, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader.unr-lcssa, label %.lr.ph, !llvm.loop !18

.lr.ph155:                                        ; preds = %.preheader, %.lr.ph155
  %.1135154 = phi i64 [ %43, %.lr.ph155 ], [ 1, %.preheader ]
  %39 = tail call noundef i64 @_ZN2ci6get_CIElPNS_7varNodeElPPliS2_S2_S2_(i64 noundef %.1135154, ptr noundef %0, i64 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %8, ptr noundef %9, ptr noundef %12)
  %40 = getelementptr inbounds %"struct.ci::vertex", ptr %18, i64 %.1135154
  store i64 %39, ptr %40, align 8, !tbaa !20
  %41 = getelementptr inbounds %"struct.ci::vertex", ptr %18, i64 %.1135154, i32 1
  store i64 %.1135154, ptr %41, align 8, !tbaa !22
  %42 = getelementptr inbounds i64, ptr %20, i64 %.1135154
  store i64 %.1135154, ptr %42, align 8, !tbaa !16
  %43 = add nuw i64 %.1135154, 1
  %exitcond182.not = icmp eq i64 %.1135154, %1
  br i1 %exitcond182.not, label %._crit_edge, label %.lr.ph155, !llvm.loop !23

._crit_edge.thread:                               ; preds = %.preheader, %5
  call void @_ZN2ci10build_heapEPNS_4HeapEPl(ptr noundef nonnull %6, ptr noundef %20)
  br label %49

._crit_edge:                                      ; preds = %.lr.ph155
  call void @_ZN2ci10build_heapEPNS_4HeapEPl(ptr noundef nonnull %6, ptr noundef nonnull %20)
  %44 = icmp sgt i64 %1, 999
  br i1 %44, label %45, label %49

45:                                               ; preds = %._crit_edge
  %46 = uitofp nneg i64 %1 to double
  %47 = fmul double %46, 1.000000e-02
  %48 = fptosi double %47 to i64
  %.pre = uitofp nneg i64 %1 to double
  br label %52

49:                                               ; preds = %._crit_edge.thread, %._crit_edge
  %50 = sitofp i64 %1 to double
  %51 = fdiv double 1.000000e+00, %50
  br label %52

52:                                               ; preds = %49, %45
  %.pre-phi = phi double [ %50, %49 ], [ %.pre, %45 ]
  %.0131 = phi double [ %51, %49 ], [ 1.000000e-02, %45 ]
  %.0 = phi i64 [ 1, %49 ], [ %48, %45 ]
  %53 = call noundef i64 @_ZN2ci12bigCompNodesEPNS_7varNodeEPPllS2_(ptr noundef %0, ptr noundef %2, i64 noundef %1, ptr noundef %8)
  %54 = sitofp i64 %53 to double
  %55 = fdiv double %54, %.pre-phi
  %56 = fcmp ogt double %55, %.0131
  %57 = icmp sgt i64 %1, 0
  %58 = and i1 %56, %57
  br i1 %58, label %.lr.ph172, label %._crit_edge173

.lr.ph172:                                        ; preds = %52, %97
  %.0132170 = phi double [ %.1, %97 ], [ %55, %52 ]
  %.0138169 = phi i64 [ %99, %97 ], [ 0, %52 ]
  %59 = load ptr, ptr %19, align 8, !tbaa !11
  %60 = getelementptr inbounds i8, ptr %59, i64 24
  %61 = load i64, ptr %60, align 8, !tbaa !22
  %62 = getelementptr inbounds %"struct.ci::varNode", ptr %0, i64 %61
  store i32 0, ptr %62, align 8, !tbaa !12
  %63 = getelementptr inbounds i8, ptr %59, i64 16
  %64 = load i64, ptr %6, align 8, !tbaa !5
  %65 = getelementptr %"struct.ci::vertex", ptr %59, i64 %64
  %66 = getelementptr i8, ptr %65, i64 -8
  %67 = load i64, ptr %66, align 8, !tbaa !22
  %68 = getelementptr inbounds i64, ptr %20, i64 %67
  store i64 1, ptr %68, align 8, !tbaa !16
  %69 = load i64, ptr %60, align 8, !tbaa !22
  %70 = getelementptr inbounds i64, ptr %20, i64 %69
  store i64 %64, ptr %70, align 8, !tbaa !16
  %71 = getelementptr i8, ptr %65, i64 -16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %63, ptr noundef nonnull align 8 dereferenceable(16) %71, i64 16, i1 false), !tbaa.struct !24
  %72 = add nsw i64 %64, -1
  store i64 %72, ptr %6, align 8, !tbaa !5
  call void @_ZN2ci7heapifyEPNS_4HeapElPl(ptr noundef nonnull %6, i64 noundef 1, ptr noundef %20)
  %73 = getelementptr inbounds ptr, ptr %2, i64 %61
  %74 = load ptr, ptr %73, align 8, !tbaa !15
  %75 = load i64, ptr %74, align 8, !tbaa !16
  %.not147156 = icmp slt i64 %75, 1
  br i1 %.not147156, label %._crit_edge160, label %.lr.ph159

.lr.ph159:                                        ; preds = %.lr.ph172, %.lr.ph159
  %.0136157 = phi i64 [ %81, %.lr.ph159 ], [ 1, %.lr.ph172 ]
  %76 = getelementptr inbounds i64, ptr %74, i64 %.0136157
  %77 = load i64, ptr %76, align 8, !tbaa !16
  %78 = getelementptr inbounds %"struct.ci::varNode", ptr %0, i64 %77, i32 1
  %79 = load i64, ptr %78, align 8, !tbaa !17
  %80 = add nsw i64 %79, -1
  store i64 %80, ptr %78, align 8, !tbaa !17
  %81 = add nuw nsw i64 %.0136157, 1
  %82 = load i64, ptr %74, align 8, !tbaa !16
  %.not147.not = icmp slt i64 %.0136157, %82
  br i1 %.not147.not, label %.lr.ph159, label %._crit_edge160, !llvm.loop !25

._crit_edge160:                                   ; preds = %.lr.ph159, %.lr.ph172
  call void @_ZN2ci20get_listNodeToUpdateElPNS_7varNodeElPPliS2_S2_S2_(i64 noundef %61, ptr noundef nonnull %0, i64 noundef %1, ptr noundef nonnull %2, i32 noundef %10, ptr noundef %16, ptr noundef %9, ptr noundef %15)
  %83 = load i64, ptr %16, align 8, !tbaa !16
  %.not148161 = icmp slt i64 %83, 1
  br i1 %.not148161, label %._crit_edge166, label %.lr.ph165

.lr.ph165:                                        ; preds = %._crit_edge160, %.lr.ph165
  %.1137163 = phi i64 [ %91, %.lr.ph165 ], [ 1, %._crit_edge160 ]
  %84 = getelementptr inbounds i64, ptr %16, i64 %.1137163
  %85 = load i64, ptr %84, align 8, !tbaa !16
  %86 = getelementptr inbounds i64, ptr %20, i64 %85
  %87 = load i64, ptr %86, align 8, !tbaa !16
  %88 = call noundef i64 @_ZN2ci6get_CIElPNS_7varNodeElPPliS2_S2_S2_(i64 noundef %85, ptr noundef %0, i64 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %8, ptr noundef %9, ptr noundef %12)
  %89 = load ptr, ptr %19, align 8, !tbaa !11
  %90 = getelementptr inbounds %"struct.ci::vertex", ptr %89, i64 %87
  store i64 %88, ptr %90, align 8, !tbaa !20
  call void @_ZN2ci7heapifyEPNS_4HeapElPl(ptr noundef nonnull %6, i64 noundef %87, ptr noundef %20)
  %91 = add nuw i64 %.1137163, 1
  %exitcond183.not = icmp eq i64 %.1137163, %83
  br i1 %exitcond183.not, label %._crit_edge166, label %.lr.ph165, !llvm.loop !26

._crit_edge166:                                   ; preds = %.lr.ph165, %._crit_edge160
  %92 = srem i64 %.0138169, %.0
  %.not149 = icmp eq i64 %92, 0
  br i1 %.not149, label %93, label %97

93:                                               ; preds = %._crit_edge166
  %94 = call noundef i64 @_ZN2ci12bigCompNodesEPNS_7varNodeEPPllS2_(ptr noundef %0, ptr noundef %2, i64 noundef %1, ptr noundef %8)
  %95 = sitofp i64 %94 to double
  %96 = fdiv double %95, %.pre-phi
  br label %97

97:                                               ; preds = %93, %._crit_edge166
  %.1 = phi double [ %.0132170, %._crit_edge166 ], [ %96, %93 ]
  %98 = getelementptr inbounds i64, ptr %17, i64 %.0138169
  store i64 %61, ptr %98, align 8, !tbaa !16
  %99 = add nuw nsw i64 %.0138169, 1
  %100 = fcmp ogt double %.1, %.0131
  %101 = icmp slt i64 %99, %1
  %102 = select i1 %100, i1 %101, i1 false
  br i1 %102, label %.lr.ph172, label %._crit_edge173, !llvm.loop !27

._crit_edge173:                                   ; preds = %97, %52
  %.0138.lcssa = phi i64 [ 0, %52 ], [ %99, %97 ]
  %103 = load ptr, ptr @stdout, align 8, !tbaa !15
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %103, ptr noundef nonnull @.str.2) #7
  %.not145 = icmp eq i32 %4, 0
  br i1 %.not145, label %107, label %105

105:                                              ; preds = %._crit_edge173
  %106 = call noundef ptr @_ZN2ci8reinsertEPNS_7varNodeElPllPS2_(ptr noundef %0, i64 noundef %.0138.lcssa, ptr noundef %17, i64 noundef %1, ptr noundef %2)
  br label %111

107:                                              ; preds = %._crit_edge173
  %108 = add nuw nsw i64 %.0138.lcssa, 1
  %109 = call noalias ptr @calloc(i64 noundef %108, i64 noundef 8) #8
  %.not146175 = icmp eq i64 %.0138.lcssa, 0
  br i1 %.not146175, label %._crit_edge179, label %.lr.ph178.preheader

.lr.ph178.preheader:                              ; preds = %107
  %scevgep = getelementptr i8, ptr %109, i64 8
  %110 = shl nuw i64 %.0138.lcssa, 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %scevgep, ptr align 8 %17, i64 %110, i1 false), !tbaa !16
  br label %._crit_edge179

._crit_edge179:                                   ; preds = %.lr.ph178.preheader, %107
  store i64 %.0138.lcssa, ptr %109, align 8, !tbaa !16
  br label %111

111:                                              ; preds = %._crit_edge179, %105
  %.0133 = phi ptr [ %106, %105 ], [ %109, %._crit_edge179 ]
  call void @free(ptr noundef %8) #7
  call void @free(ptr noundef %9) #7
  call void @free(ptr noundef %12) #7
  call void @free(ptr noundef %15) #7
  call void @free(ptr noundef %16) #7
  call void @free(ptr noundef %17) #7
  %112 = load ptr, ptr %19, align 8, !tbaa !11
  call void @free(ptr noundef %112) #7
  call void @free(ptr noundef %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  ret ptr %.0133
}

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN2ci4HeapE", !7, i64 0, !10, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!13, !14, i64 0}
!13 = !{!"_ZTSN2ci7varNodeE", !14, i64 0, !7, i64 8, !7, i64 16}
!14 = !{!"_ZTSN2ci6out_inE", !8, i64 0}
!15 = !{!10, !10, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{!13, !7, i64 8}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !7, i64 0}
!21 = !{!"_ZTSN2ci6vertexE", !7, i64 0, !7, i64 8}
!22 = !{!21, !7, i64 8}
!23 = distinct !{!23, !19}
!24 = !{i64 0, i64 8, !16, i64 8, i64 8, !16}
!25 = distinct !{!25, !19}
!26 = distinct !{!26, !19}
!27 = distinct !{!27, !19}


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