; LLVM IR from Discngine/fpocket :: src (voronoi)

; 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.s_lst_vvertice = type { ptr, ptr, ptr, i32, ptr, i32, i32 }
%struct.s_pdb = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, float, float, float, float, float, float, [83 x i8], [500 x i8], float, float, float, i32, i32 }
%struct.s_atm = type { i32, float, float, float, float, float, float, float, [5 x i8], [7 x i8], [16 x i8], [16 x i8], [3 x i8], [8 x i8], i32, i32, i32, i32, i32, i32, i32, float, float, float, float, float, float, float, i8, i8, float, float, float, float, i16, ptr, i32 }

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1

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

29:                                               ; preds = %5
  store ptr @.str.1, ptr %18, align 8, !tbaa !5
  br label %30

30:                                               ; preds = %29, %5
  %31 = getelementptr inbounds [250 x i8], ptr %16, i64 0, i64 0
  %32 = load ptr, ptr %18, align 8, !tbaa !5
  %33 = load i32, ptr %19, align 4, !tbaa !11
  %34 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %31, ptr noundef @.str.2, ptr noundef %32, i32 noundef %33) #6
  %35 = getelementptr inbounds [250 x i8], ptr %17, i64 0, i64 0
  %36 = load ptr, ptr %18, align 8, !tbaa !5
  %37 = load i32, ptr %19, align 4, !tbaa !11
  %38 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %35, ptr noundef @.str.3, ptr noundef %36, i32 noundef %37) #6
  %39 = call i64 @time(ptr noundef null) #6
  %40 = trunc i64 %39 to i32
  call void @srand(i32 noundef %40) #6
  %41 = call ptr @my_malloc(i64 noundef 48)
  store ptr %41, ptr %15, align 8, !tbaa !5
  %42 = load ptr, ptr %15, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.s_lst_vvertice, ptr %42, i32 0, i32 2
  store ptr null, ptr %43, align 8, !tbaa !13
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.s_pdb, ptr %44, i32 0, i32 13
  %46 = load i32, ptr %45, align 8, !tbaa !15
  store i32 %46, ptr %13, align 4, !tbaa !11
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.s_pdb, ptr %47, i32 0, i32 10
  %49 = load i32, ptr %48, align 4, !tbaa !17
  %50 = load i32, ptr %13, align 4, !tbaa !11
  %51 = sub nsw i32 %49, %50
  %52 = sext i32 %51 to i64
  %53 = mul i64 4, %52
  %54 = call ptr @my_malloc(i64 noundef %53)
  %55 = load ptr, ptr %15, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.s_lst_vvertice, ptr %55, i32 0, i32 2
  store ptr %54, ptr %56, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !11
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %57

57:                                               ; preds = %85, %30
  %58 = load i32, ptr %11, align 4, !tbaa !11
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.s_pdb, ptr %59, i32 0, i32 10
  %61 = load i32, ptr %60, align 4, !tbaa !17
  %62 = icmp slt i32 %58, %61
  br i1 %62, label %63, label %88

63:                                               ; preds = %57
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.s_pdb, ptr %64, i32 0, i32 2
  %66 = load ptr, ptr %65, align 8, !tbaa !18
  %67 = load i32, ptr %11, align 4, !tbaa !11
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds %struct.s_atm, ptr %66, i64 %68
  store ptr %69, ptr %14, align 8, !tbaa !5
  %70 = load ptr, ptr %14, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.s_atm, ptr %70, i32 0, i32 12
  %72 = getelementptr inbounds [3 x i8], ptr %71, i64 0, i64 0
  %73 = call i32 @strcmp(ptr noundef %72, ptr noundef @.str.4) #7
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %84

75:                                               ; preds = %63
  %76 = load i32, ptr %11, align 4, !tbaa !11
  %77 = load ptr, ptr %15, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.s_lst_vvertice, ptr %77, i32 0, i32 2
  %79 = load ptr, ptr %78, align 8, !tbaa !13
  %80 = load i32, ptr %20, align 4, !tbaa !11
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %20, align 4, !tbaa !11
  %82 = sext i32 %80 to i64
  %83 = getelementptr inbounds i32, ptr %79, i64 %82
  store i32 %76, ptr %83, align 4, !tbaa !11
  br label %84

84:                                               ; preds = %75, %63
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %11, align 4, !tbaa !11
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %11, align 4, !tbaa !11
  br label %57, !llvm.loop !19

88:                                               ; preds = %57
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.s_pdb, ptr %89, i32 0, i32 10
  %91 = load i32, ptr %90, align 4, !tbaa !17
  %92 = load i32, ptr %13, align 4, !tbaa !11
  %93 = sub nsw i32 %91, %92
  %94 = load ptr, ptr %15, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.s_lst_vvertice, ptr %94, i32 0, i32 3
  store i32 %93, ptr %95, align 8, !tbaa !21
  store i32 0, ptr %12, align 4, !tbaa !11
  br label %96

96:                                               ; preds = %213, %88
  %97 = load i32, ptr %12, align 4, !tbaa !11
  %98 = icmp slt i32 %97, 1
  br i1 %98, label %99, label %216

99:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %100 = getelementptr inbounds [250 x i8], ptr %17, i64 0, i64 0
  %101 = call noalias ptr @fopen(ptr noundef %100, ptr noundef @.str.5)
  store ptr %101, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %102 = getelementptr inbounds [250 x i8], ptr %16, i64 0, i64 0
  %103 = call noalias ptr @fopen(ptr noundef %102, ptr noundef @.str.6)
  store ptr %103, ptr %22, align 8, !tbaa !5
  %104 = load ptr, ptr %22, align 8, !tbaa !5
  %105 = load ptr, ptr %15, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.s_lst_vvertice, ptr %105, i32 0, i32 3
  %107 = load i32, ptr %106, align 8, !tbaa !21
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef @.str.7, i32 noundef %107) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store float 0x3FA99999A0000000, ptr %23, align 4, !tbaa !9
  %109 = load float, ptr %23, align 4, !tbaa !9
  %110 = load i32, ptr %12, align 4, !tbaa !11
  %111 = sitofp i32 %110 to float
  %112 = fmul float %109, %111
  store float %112, ptr %8, align 4, !tbaa !9
  %113 = load float, ptr %23, align 4, !tbaa !9
  %114 = load i32, ptr %12, align 4, !tbaa !11
  %115 = sitofp i32 %114 to float
  %116 = fmul float %113, %115
  store float %116, ptr %9, align 4, !tbaa !9
  %117 = load float, ptr %23, align 4, !tbaa !9
  %118 = load i32, ptr %12, align 4, !tbaa !11
  %119 = sitofp i32 %118 to float
  %120 = fmul float %117, %119
  store float %120, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %121

121:                                              ; preds = %161, %99
  %122 = load i32, ptr %11, align 4, !tbaa !11
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.s_pdb, ptr %123, i32 0, i32 10
  %125 = load i32, ptr %124, align 4, !tbaa !17
  %126 = icmp slt i32 %122, %125
  br i1 %126, label %127, label %164

127:                                              ; preds = %121
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.s_pdb, ptr %128, i32 0, i32 2
  %130 = load ptr, ptr %129, align 8, !tbaa !18
  %131 = load i32, ptr %11, align 4, !tbaa !11
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds %struct.s_atm, ptr %130, i64 %132
  store ptr %133, ptr %14, align 8, !tbaa !5
  %134 = load ptr, ptr %14, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.s_atm, ptr %134, i32 0, i32 12
  %136 = getelementptr inbounds [3 x i8], ptr %135, i64 0, i64 0
  %137 = call i32 @strcmp(ptr noundef %136, ptr noundef @.str.4) #7
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %139, label %160

139:                                              ; preds = %127
  %140 = load ptr, ptr %22, align 8, !tbaa !5
  %141 = load ptr, ptr %14, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.s_atm, ptr %141, i32 0, i32 5
  %143 = load float, ptr %142, align 4, !tbaa !22
  %144 = load float, ptr %8, align 4, !tbaa !9
  %145 = fadd float %143, %144
  %146 = fpext float %145 to double
  %147 = load ptr, ptr %14, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.s_atm, ptr %147, i32 0, i32 6
  %149 = load float, ptr %148, align 8, !tbaa !25
  %150 = load float, ptr %9, align 4, !tbaa !9
  %151 = fadd float %149, %150
  %152 = fpext float %151 to double
  %153 = load ptr, ptr %14, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.s_atm, ptr %153, i32 0, i32 7
  %155 = load float, ptr %154, align 4, !tbaa !26
  %156 = load float, ptr %10, align 4, !tbaa !9
  %157 = fadd float %155, %156
  %158 = fpext float %157 to double
  %159 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %140, ptr noundef @.str.8, double noundef %146, double noundef %152, double noundef %158) #6
  br label %160

160:                                              ; preds = %139, %127
  br label %161

161:                                              ; preds = %160
  %162 = load i32, ptr %11, align 4, !tbaa !11
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %11, align 4, !tbaa !11
  br label %121, !llvm.loop !27

164:                                              ; preds = %121
  %165 = load ptr, ptr %22, align 8, !tbaa !5
  %166 = call i32 @fflush(ptr noundef %165)
  %167 = load ptr, ptr %22, align 8, !tbaa !5
  call void @rewind(ptr noundef %167)
  %168 = load ptr, ptr %22, align 8, !tbaa !5
  %169 = load ptr, ptr %21, align 8, !tbaa !5
  %170 = call i32 @run_qvoronoi(ptr noundef %168, ptr noundef %169)
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !11
  %171 = load i32, ptr %24, align 4, !tbaa !11
  %172 = icmp eq i32 %171, 0
  br i1 %172, label %173, label %208

173:                                              ; preds = %164
  %174 = load i32, ptr %12, align 4, !tbaa !11
  %175 = icmp eq i32 %174, 0
  br i1 %175, label %176, label %193

176:                                              ; preds = %173
  %177 = load ptr, ptr %15, align 8, !tbaa !5
  %178 = getelementptr inbounds [250 x i8], ptr %17, i64 0, i64 0
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.s_pdb, ptr %179, i32 0, i32 2
  %181 = load ptr, ptr %180, align 8, !tbaa !18
  %182 = load ptr, ptr %6, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.s_pdb, ptr %182, i32 0, i32 10
  %184 = load i32, ptr %183, align 4, !tbaa !17
  %185 = load ptr, ptr %7, align 8, !tbaa !5
  %186 = load float, ptr %8, align 4, !tbaa !9
  %187 = load float, ptr %9, align 4, !tbaa !9
  %188 = load float, ptr %10, align 4, !tbaa !9
  %189 = load ptr, ptr %6, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.s_pdb, ptr %189, i32 0, i32 22
  %191 = load float, ptr %190, align 4, !tbaa !28
  %192 = load ptr, ptr %6, align 8, !tbaa !5
  call void @fill_vvertices(ptr noundef %177, ptr noundef %178, ptr noundef %181, i32 noundef %184, ptr noundef %185, float noundef %186, float noundef %187, float noundef %188, float noundef %191, ptr noundef %192)
  br label %207

193:                                              ; preds = %173
  %194 = load ptr, ptr %15, align 8, !tbaa !5
  %195 = getelementptr inbounds [250 x i8], ptr %17, i64 0, i64 0
  %196 = load ptr, ptr %6, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.s_pdb, ptr %196, i32 0, i32 2
  %198 = load ptr, ptr %197, align 8, !tbaa !18
  %199 = load ptr, ptr %7, align 8, !tbaa !5
  %200 = load float, ptr %8, align 4, !tbaa !9
  %201 = load float, ptr %9, align 4, !tbaa !9
  %202 = load float, ptr %10, align 4, !tbaa !9
  %203 = load ptr, ptr %6, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.s_pdb, ptr %203, i32 0, i32 22
  %205 = load float, ptr %204, align 4, !tbaa !28
  %206 = load ptr, ptr %6, align 8, !tbaa !5
  call void @add_missing_vvertices(ptr noundef %194, ptr noundef %195, ptr noundef %198, ptr noundef %199, float noundef %200, float noundef %201, float noundef %202, float noundef %205, ptr noundef %206)
  br label %207

207:                                              ; preds = %193, %176
  br label %208

208:                                              ; preds = %207, %164
  %209 = load ptr, ptr %22, align 8, !tbaa !5
  %210 = call i32 @fclose(ptr noundef %209)
  %211 = load ptr, ptr %21, align 8, !tbaa !5
  %212 = call i32 @fclose(ptr noundef %211)
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, 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
  br label %213

213:                                              ; preds = %208
  %214 = load i32, ptr %12, align 4, !tbaa !11
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %12, align 4, !tbaa !11
  br label %96, !llvm.loop !29

216:                                              ; preds = %96
  %217 = getelementptr inbounds [250 x i8], ptr %16, i64 0, i64 0
  %218 = call i32 @remove(ptr noundef %217) #6
  %219 = getelementptr inbounds [250 x i8], ptr %17, i64 0, i64 0
  %220 = call i32 @remove(ptr noundef %219) #6
  %221 = load ptr, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 250, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 250, 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 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  ret ptr %221
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

; Function Attrs: nounwind
declare i32 @getpid() #3

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #3

; Function Attrs: nounwind
declare void @srand(i32 noundef) #3

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #3

declare ptr @my_malloc(i64 noundef) #4

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #5

declare noalias ptr @fopen(ptr noundef, ptr noundef) #4

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

declare i32 @fflush(ptr noundef) #4

declare void @rewind(ptr noundef) #4

declare i32 @run_qvoronoi(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local void @fill_vvertices(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, float noundef, float noundef, float noundef, float noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @add_missing_vvertices(ptr noundef, ptr noundef, ptr noundef, ptr noundef, float noundef, float noundef, float noundef, float noundef, ptr noundef) #0

declare i32 @fclose(ptr noundef) #4

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

; Function Attrs: nounwind
declare i32 @remove(ptr noundef) #3

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 16}
!14 = !{!"s_lst_vvertice", !6, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !6, i64 32, !12, i64 40, !12, i64 44}
!15 = !{!16, !12, i64 88}
!16 = !{!"s_pdb", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84, !12, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !7, i64 116, !7, i64 199, !10, i64 700, !10, i64 704, !10, i64 708, !12, i64 712, !12, i64 716}
!17 = !{!16, !12, i64 76}
!18 = !{!16, !6, i64 16}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!14, !12, i64 24}
!22 = !{!23, !10, i64 20}
!23 = !{!"s_atm", !12, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !7, i64 32, !7, i64 37, !7, i64 44, !7, i64 60, !7, i64 76, !7, i64 79, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !12, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !7, i64 144, !7, i64 145, !10, i64 148, !10, i64 152, !10, i64 156, !10, i64 160, !24, i64 164, !6, i64 168, !12, i64 176}
!24 = !{!"short", !7, i64 0}
!25 = !{!23, !10, i64 24}
!26 = !{!23, !10, i64 28}
!27 = distinct !{!27, !20}
!28 = !{!16, !10, i64 700}
!29 = distinct !{!29, !20}


; 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.s_atm = type { i32, float, float, float, float, float, float, float, [5 x i8], [7 x i8], [16 x i8], [16 x i8], [3 x i8], [8 x i8], i32, i32, i32, i32, i32, i32, i32, float, float, float, float, float, float, float, i8, i8, float, float, float, float, i16, ptr, i32 }

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @load_vvertices(ptr noundef %0, ptr noundef %1, float noundef %2, float noundef %3, float noundef %4) local_unnamed_addr #0 {
  %6 = alloca [250 x i8], align 16
  %7 = alloca [250 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 250, ptr nonnull %6) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(250) %6, i8 0, i64 250, i1 false)
  call void @llvm.lifetime.start.p0(i64 250, ptr nonnull %7) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(250) %7, i8 0, i64 250, i1 false)
  %8 = tail call ptr @getenv(ptr noundef nonnull @.str) #8
  %9 = tail call i32 @getpid() #8
  %.not = icmp eq ptr %8, null
  %spec.store.select = select i1 %.not, ptr @.str.1, ptr %8
  %10 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef nonnull %spec.store.select, i32 noundef %9) #8
  %11 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull %spec.store.select, i32 noundef %9) #8
  %12 = tail call i64 @time(ptr noundef null) #8
  %13 = trunc i64 %12 to i32
  tail call void @srand(i32 noundef %13) #8
  %14 = tail call ptr @my_malloc(i64 noundef 48) #8
  %15 = getelementptr inbounds i8, ptr %14, i64 16
  store ptr null, ptr %15, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %0, i64 88
  %17 = load i32, ptr %16, align 8, !tbaa !11
  %18 = getelementptr inbounds i8, ptr %0, i64 76
  %19 = load i32, ptr %18, align 4, !tbaa !14
  %20 = sub nsw i32 %19, %17
  %21 = sext i32 %20 to i64
  %22 = shl nsw i64 %21, 2
  %23 = tail call ptr @my_malloc(i64 noundef %22) #8
  store ptr %23, ptr %15, align 8, !tbaa !5
  %24 = load i32, ptr %18, align 4, !tbaa !14
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %5
  %26 = getelementptr inbounds i8, ptr %0, i64 16
  %27 = load ptr, ptr %26, align 8, !tbaa !15
  br label %28

28:                                               ; preds = %.lr.ph, %37
  %29 = phi i32 [ %24, %.lr.ph ], [ %38, %37 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %37 ]
  %.07076 = phi i32 [ 0, %.lr.ph ], [ %.171, %37 ]
  %30 = getelementptr inbounds %struct.s_atm, ptr %27, i64 %indvars.iv, i32 12
  %31 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %30, ptr noundef nonnull dereferenceable(1) @.str.4) #9
  %.not75 = icmp eq i32 %31, 0
  br i1 %.not75, label %37, label %32

32:                                               ; preds = %28
  %33 = add nsw i32 %.07076, 1
  %34 = sext i32 %.07076 to i64
  %35 = getelementptr inbounds i32, ptr %23, i64 %34
  %36 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %36, ptr %35, align 4, !tbaa !16
  %.pre = load i32, ptr %18, align 4, !tbaa !14
  br label %37

37:                                               ; preds = %28, %32
  %38 = phi i32 [ %.pre, %32 ], [ %29, %28 ]
  %.171 = phi i32 [ %33, %32 ], [ %.07076, %28 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %39 = sext i32 %38 to i64
  %40 = icmp slt i64 %indvars.iv.next, %39
  br i1 %40, label %28, label %.critedge, !llvm.loop !17

.critedge:                                        ; preds = %37, %5
  %.lcssa = phi i32 [ %24, %5 ], [ %38, %37 ]
  %41 = sub nsw i32 %.lcssa, %17
  %42 = getelementptr inbounds i8, ptr %14, i64 24
  store i32 %41, ptr %42, align 8, !tbaa !19
  %43 = call noalias ptr @fopen(ptr noundef nonnull %7, ptr noundef nonnull @.str.5)
  %44 = call noalias ptr @fopen(ptr noundef nonnull %6, ptr noundef nonnull @.str.6)
  %45 = load i32, ptr %42, align 8, !tbaa !19
  %46 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str.7, i32 noundef %45) #8
  %47 = load i32, ptr %18, align 4, !tbaa !14
  %48 = icmp sgt i32 %47, 0
  br i1 %48, label %.lr.ph79, label %._crit_edge

.lr.ph79:                                         ; preds = %.critedge
  %49 = getelementptr inbounds i8, ptr %0, i64 16
  br label %50

50:                                               ; preds = %.lr.ph79, %70
  %51 = phi i32 [ %47, %.lr.ph79 ], [ %71, %70 ]
  %indvars.iv82 = phi i64 [ 0, %.lr.ph79 ], [ %indvars.iv.next83, %70 ]
  %52 = load ptr, ptr %49, align 8, !tbaa !15
  %53 = getelementptr inbounds %struct.s_atm, ptr %52, i64 %indvars.iv82
  %54 = getelementptr inbounds i8, ptr %53, i64 76
  %55 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %54, ptr noundef nonnull dereferenceable(1) @.str.4) #9
  %.not74 = icmp eq i32 %55, 0
  br i1 %.not74, label %70, label %56

56:                                               ; preds = %50
  %57 = getelementptr inbounds i8, ptr %53, i64 20
  %58 = load float, ptr %57, align 4, !tbaa !20
  %59 = fadd float %58, 0.000000e+00
  %60 = fpext float %59 to double
  %61 = getelementptr inbounds i8, ptr %53, i64 24
  %62 = load float, ptr %61, align 8, !tbaa !23
  %63 = fadd float %62, 0.000000e+00
  %64 = fpext float %63 to double
  %65 = getelementptr inbounds i8, ptr %53, i64 28
  %66 = load float, ptr %65, align 4, !tbaa !24
  %67 = fadd float %66, 0.000000e+00
  %68 = fpext float %67 to double
  %69 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str.8, double noundef %60, double noundef %64, double noundef %68) #8
  %.pre85 = load i32, ptr %18, align 4, !tbaa !14
  br label %70

70:                                               ; preds = %50, %56
  %71 = phi i32 [ %51, %50 ], [ %.pre85, %56 ]
  %indvars.iv.next83 = add nuw nsw i64 %indvars.iv82, 1
  %72 = sext i32 %71 to i64
  %73 = icmp slt i64 %indvars.iv.next83, %72
  br i1 %73, label %50, label %._crit_edge, !llvm.loop !25

._crit_edge:                                      ; preds = %70, %.critedge
  %74 = tail call i32 @fflush(ptr noundef %44)
  tail call void @rewind(ptr noundef %44)
  %75 = tail call i32 @run_qvoronoi(ptr noundef %44, ptr noundef %43) #8
  %76 = getelementptr inbounds i8, ptr %0, i64 16
  %77 = load ptr, ptr %76, align 8, !tbaa !15
  %78 = load i32, ptr %18, align 4, !tbaa !14
  %79 = getelementptr inbounds i8, ptr %0, i64 700
  %80 = load float, ptr %79, align 4, !tbaa !26
  call void @fill_vvertices(ptr noundef %14, ptr noundef nonnull %7, ptr noundef %77, i32 noundef %78, ptr noundef %1, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef %80, ptr noundef nonnull %0)
  %81 = call i32 @fclose(ptr noundef %44)
  %82 = call i32 @fclose(ptr noundef %43)
  %83 = call i32 @remove(ptr noundef nonnull %6) #8
  %84 = call i32 @remove(ptr noundef nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 250, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 250, ptr nonnull %6) #8
  ret ptr %14
}

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: nofree nounwind memory(read)
declare noundef ptr @getenv(ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @getpid() local_unnamed_addr #4

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

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #4

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #4

declare ptr @my_malloc(i64 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #7

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #5

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

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare void @rewind(ptr nocapture noundef) local_unnamed_addr #5

declare i32 @run_qvoronoi(ptr noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: nounwind uwtable
declare dso_local void @fill_vvertices(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, float noundef, float noundef, float noundef, float noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #5

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

; Function Attrs: nofree nounwind
declare noundef i32 @remove(ptr nocapture noundef readonly) local_unnamed_addr #5

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

!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 16}
!6 = !{!"s_lst_vvertice", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !7, i64 32, !10, i64 40, !10, i64 44}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !10, i64 88}
!12 = !{!"s_pdb", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !13, i64 92, !13, i64 96, !13, i64 100, !13, i64 104, !13, i64 108, !13, i64 112, !8, i64 116, !8, i64 199, !13, i64 700, !13, i64 704, !13, i64 708, !10, i64 712, !10, i64 716}
!13 = !{!"float", !8, i64 0}
!14 = !{!12, !10, i64 76}
!15 = !{!12, !7, i64 16}
!16 = !{!10, !10, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!6, !10, i64 24}
!20 = !{!21, !13, i64 20}
!21 = !{!"s_atm", !10, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !8, i64 32, !8, i64 37, !8, i64 44, !8, i64 60, !8, i64 76, !8, i64 79, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !13, i64 116, !13, i64 120, !13, i64 124, !13, i64 128, !13, i64 132, !13, i64 136, !13, i64 140, !8, i64 144, !8, i64 145, !13, i64 148, !13, i64 152, !13, i64 156, !13, i64 160, !22, i64 164, !7, i64 168, !10, i64 176}
!22 = !{!"short", !8, i64 0}
!23 = !{!21, !13, i64 24}
!24 = !{!21, !13, i64 28}
!25 = distinct !{!25, !18}
!26 = !{!12, !13, i64 700}


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