1; RUN: llc -mtriple armv6-apple-darwin10 -mattr=+vfp2 -filetype asm -o - %s | FileCheck %s 2 3%struct.EDGE_PAIR = type { %struct.edge_rec*, %struct.edge_rec* } 4%struct.VEC2 = type { double, double, double } 5%struct.VERTEX = type { %struct.VEC2, %struct.VERTEX*, %struct.VERTEX* } 6%struct.edge_rec = type { %struct.VERTEX*, %struct.edge_rec*, i32, i8* } 7@avail_edge = internal global %struct.edge_rec* null 8@_2E_str7 = internal constant [21 x i8] c"ERROR: Only 1 point!\00", section "__TEXT,__cstring,cstring_literals", align 1 9@llvm.used = appending global [1 x i8*] [i8* bitcast (void (%struct.EDGE_PAIR*, %struct.VERTEX*, %struct.VERTEX*)* @build_delaunay to i8*)], section "llvm.metadata" 10 11define void @build_delaunay(%struct.EDGE_PAIR* noalias nocapture sret(%struct.EDGE_PAIR) %agg.result, %struct.VERTEX* %tree, %struct.VERTEX* %extra) nounwind { 12entry: 13 %delright = alloca %struct.EDGE_PAIR, align 8 14 %delleft = alloca %struct.EDGE_PAIR, align 8 15 %0 = icmp eq %struct.VERTEX* %tree, null 16 br i1 %0, label %bb8, label %bb 17 18bb: 19 %1 = getelementptr %struct.VERTEX, %struct.VERTEX* %tree, i32 0, i32 2 20 %2 = load %struct.VERTEX*, %struct.VERTEX** %1, align 4 21 %3 = icmp eq %struct.VERTEX* %2, null 22 br i1 %3, label %bb7, label %bb1.i 23 24bb1.i: 25 %tree_addr.0.i = phi %struct.VERTEX* [ %5, %bb1.i ], [ %tree, %bb ] 26 %4 = getelementptr %struct.VERTEX, %struct.VERTEX* %tree_addr.0.i, i32 0, i32 1 27 %5 = load %struct.VERTEX*, %struct.VERTEX** %4, align 4 28 %6 = icmp eq %struct.VERTEX* %5, null 29 br i1 %6, label %get_low.exit, label %bb1.i 30 31get_low.exit: 32 call void @build_delaunay(%struct.EDGE_PAIR* noalias sret(%struct.EDGE_PAIR) %delright, %struct.VERTEX* %2, %struct.VERTEX* %extra) nounwind 33 %7 = getelementptr %struct.VERTEX, %struct.VERTEX* %tree, i32 0, i32 1 34 %8 = load %struct.VERTEX*, %struct.VERTEX** %7, align 4 35 call void @build_delaunay(%struct.EDGE_PAIR* noalias sret(%struct.EDGE_PAIR) %delleft, %struct.VERTEX* %8, %struct.VERTEX* %tree) nounwind 36 %9 = getelementptr %struct.EDGE_PAIR, %struct.EDGE_PAIR* %delleft, i32 0, i32 0 37 %10 = load %struct.edge_rec*, %struct.edge_rec** %9, align 8 38 %11 = getelementptr %struct.EDGE_PAIR, %struct.EDGE_PAIR* %delleft, i32 0, i32 1 39 %12 = load %struct.edge_rec*, %struct.edge_rec** %11, align 4 40 %13 = getelementptr %struct.EDGE_PAIR, %struct.EDGE_PAIR* %delright, i32 0, i32 0 41 %14 = load %struct.edge_rec*, %struct.edge_rec** %13, align 8 42 %15 = getelementptr %struct.EDGE_PAIR, %struct.EDGE_PAIR* %delright, i32 0, i32 1 43 %16 = load %struct.edge_rec*, %struct.edge_rec** %15, align 4 44 br label %bb.i 45 46bb.i: 47 %rdi_addr.0.i = phi %struct.edge_rec* [ %14, %get_low.exit ], [ %72, %bb4.i ] 48 %ldi_addr.1.i = phi %struct.edge_rec* [ %12, %get_low.exit ], [ %ldi_addr.0.i, %bb4.i ] 49 %17 = getelementptr %struct.edge_rec, %struct.edge_rec* %rdi_addr.0.i, i32 0, i32 0 50 %18 = load %struct.VERTEX*, %struct.VERTEX** %17, align 4 51 %19 = ptrtoint %struct.edge_rec* %ldi_addr.1.i to i32 52 %20 = getelementptr %struct.VERTEX, %struct.VERTEX* %18, i32 0, i32 0, i32 0 53 %21 = load double, double* %20, align 4 54 %22 = getelementptr %struct.VERTEX, %struct.VERTEX* %18, i32 0, i32 0, i32 1 55 %23 = load double, double* %22, align 4 56 br label %bb2.i 57 58bb1.i1: 59 %24 = ptrtoint %struct.edge_rec* %ldi_addr.0.i to i32 60 %25 = add i32 %24, 48 61 %26 = and i32 %25, 63 62 %27 = and i32 %24, -64 63 %28 = or i32 %26, %27 64 %29 = inttoptr i32 %28 to %struct.edge_rec* 65 %30 = getelementptr %struct.edge_rec, %struct.edge_rec* %29, i32 0, i32 1 66 %31 = load %struct.edge_rec*, %struct.edge_rec** %30, align 4 67 %32 = ptrtoint %struct.edge_rec* %31 to i32 68 %33 = add i32 %32, 16 69 %34 = and i32 %33, 63 70 %35 = and i32 %32, -64 71 %36 = or i32 %34, %35 72 %37 = inttoptr i32 %36 to %struct.edge_rec* 73 br label %bb2.i 74 75bb2.i: 76 %ldi_addr.1.pn.i = phi %struct.edge_rec* [ %ldi_addr.1.i, %bb.i ], [ %37, %bb1.i1 ] 77 %.pn6.in.in.i = phi i32 [ %19, %bb.i ], [ %36, %bb1.i1 ] 78 %ldi_addr.0.i = phi %struct.edge_rec* [ %ldi_addr.1.i, %bb.i ], [ %37, %bb1.i1 ] 79 %.pn6.in.i = xor i32 %.pn6.in.in.i, 32 80 %.pn6.i = inttoptr i32 %.pn6.in.i to %struct.edge_rec* 81 %t1.0.in.i = getelementptr %struct.edge_rec, %struct.edge_rec* %ldi_addr.1.pn.i, i32 0, i32 0 82 %t2.0.in.i = getelementptr %struct.edge_rec, %struct.edge_rec* %.pn6.i, i32 0, i32 0 83 %t1.0.i = load %struct.VERTEX*, %struct.VERTEX** %t1.0.in.i 84 %t2.0.i = load %struct.VERTEX*, %struct.VERTEX** %t2.0.in.i 85 %38 = getelementptr %struct.VERTEX, %struct.VERTEX* %t1.0.i, i32 0, i32 0, i32 0 86 %39 = load double, double* %38, align 4 87 %40 = getelementptr %struct.VERTEX, %struct.VERTEX* %t1.0.i, i32 0, i32 0, i32 1 88 %41 = load double, double* %40, align 4 89 %42 = getelementptr %struct.VERTEX, %struct.VERTEX* %t2.0.i, i32 0, i32 0, i32 0 90 %43 = load double, double* %42, align 4 91 %44 = getelementptr %struct.VERTEX, %struct.VERTEX* %t2.0.i, i32 0, i32 0, i32 1 92 %45 = load double, double* %44, align 4 93 %46 = fsub double %39, %21 94 %47 = fsub double %45, %23 95 %48 = fmul double %46, %47 96 %49 = fsub double %43, %21 97 %50 = fsub double %41, %23 98 %51 = fmul double %49, %50 99 %52 = fsub double %48, %51 100 %53 = fcmp ogt double %52, 0.000000e+00 101 br i1 %53, label %bb1.i1, label %bb3.i 102 103bb3.i: 104 %54 = ptrtoint %struct.edge_rec* %rdi_addr.0.i to i32 105 %55 = xor i32 %54, 32 106 %56 = inttoptr i32 %55 to %struct.edge_rec* 107 %57 = getelementptr %struct.edge_rec, %struct.edge_rec* %56, i32 0, i32 0 108 %58 = load %struct.VERTEX*, %struct.VERTEX** %57, align 4 109 %59 = getelementptr %struct.VERTEX, %struct.VERTEX* %58, i32 0, i32 0, i32 0 110 %60 = load double, double* %59, align 4 111 %61 = getelementptr %struct.VERTEX, %struct.VERTEX* %58, i32 0, i32 0, i32 1 112 %62 = load double, double* %61, align 4 113 %63 = fsub double %60, %39 114 %64 = fsub double %23, %41 115 %65 = fmul double %63, %64 116 %66 = fsub double %21, %39 117 %67 = fsub double %62, %41 118 %68 = fmul double %66, %67 119 %69 = fsub double %65, %68 120 %70 = fcmp ogt double %69, 0.000000e+00 121 br i1 %70, label %bb4.i, label %bb5.i 122 123bb4.i: 124 %71 = getelementptr %struct.edge_rec, %struct.edge_rec* %56, i32 0, i32 1 125 %72 = load %struct.edge_rec*, %struct.edge_rec** %71, align 4 126 br label %bb.i 127 128bb5.i: 129 %73 = add i32 %55, 48 130 %74 = and i32 %73, 63 131 %75 = and i32 %55, -64 132 %76 = or i32 %74, %75 133 %77 = inttoptr i32 %76 to %struct.edge_rec* 134 %78 = getelementptr %struct.edge_rec, %struct.edge_rec* %77, i32 0, i32 1 135 %79 = load %struct.edge_rec*, %struct.edge_rec** %78, align 4 136 %80 = ptrtoint %struct.edge_rec* %79 to i32 137 %81 = add i32 %80, 16 138 %82 = and i32 %81, 63 139 %83 = and i32 %80, -64 140 %84 = or i32 %82, %83 141 %85 = inttoptr i32 %84 to %struct.edge_rec* 142 %86 = getelementptr %struct.edge_rec, %struct.edge_rec* %ldi_addr.0.i, i32 0, i32 0 143 %87 = load %struct.VERTEX*, %struct.VERTEX** %86, align 4 144 %88 = call %struct.edge_rec* @alloc_edge() nounwind 145 %89 = getelementptr %struct.edge_rec, %struct.edge_rec* %88, i32 0, i32 1 146 store %struct.edge_rec* %88, %struct.edge_rec** %89, align 4 147 %90 = getelementptr %struct.edge_rec, %struct.edge_rec* %88, i32 0, i32 0 148 store %struct.VERTEX* %18, %struct.VERTEX** %90, align 4 149 %91 = ptrtoint %struct.edge_rec* %88 to i32 150 %92 = add i32 %91, 16 151 %93 = inttoptr i32 %92 to %struct.edge_rec* 152 %94 = add i32 %91, 48 153 %95 = inttoptr i32 %94 to %struct.edge_rec* 154 %96 = getelementptr %struct.edge_rec, %struct.edge_rec* %93, i32 0, i32 1 155 store %struct.edge_rec* %95, %struct.edge_rec** %96, align 4 156 %97 = add i32 %91, 32 157 %98 = inttoptr i32 %97 to %struct.edge_rec* 158 %99 = getelementptr %struct.edge_rec, %struct.edge_rec* %98, i32 0, i32 1 159 store %struct.edge_rec* %98, %struct.edge_rec** %99, align 4 160 %100 = getelementptr %struct.edge_rec, %struct.edge_rec* %98, i32 0, i32 0 161 store %struct.VERTEX* %87, %struct.VERTEX** %100, align 4 162 %101 = getelementptr %struct.edge_rec, %struct.edge_rec* %95, i32 0, i32 1 163 store %struct.edge_rec* %93, %struct.edge_rec** %101, align 4 164 %102 = load %struct.edge_rec*, %struct.edge_rec** %89, align 4 165 %103 = ptrtoint %struct.edge_rec* %102 to i32 166 %104 = add i32 %103, 16 167 %105 = and i32 %104, 63 168 %106 = and i32 %103, -64 169 %107 = or i32 %105, %106 170 %108 = inttoptr i32 %107 to %struct.edge_rec* 171 %109 = getelementptr %struct.edge_rec, %struct.edge_rec* %85, i32 0, i32 1 172 %110 = load %struct.edge_rec*, %struct.edge_rec** %109, align 4 173 %111 = ptrtoint %struct.edge_rec* %110 to i32 174 %112 = add i32 %111, 16 175 %113 = and i32 %112, 63 176 %114 = and i32 %111, -64 177 %115 = or i32 %113, %114 178 %116 = inttoptr i32 %115 to %struct.edge_rec* 179 %117 = getelementptr %struct.edge_rec, %struct.edge_rec* %116, i32 0, i32 1 180 %118 = load %struct.edge_rec*, %struct.edge_rec** %117, align 4 181 %119 = getelementptr %struct.edge_rec, %struct.edge_rec* %108, i32 0, i32 1 182 %120 = load %struct.edge_rec*, %struct.edge_rec** %119, align 4 183 store %struct.edge_rec* %118, %struct.edge_rec** %119, align 4 184 store %struct.edge_rec* %120, %struct.edge_rec** %117, align 4 185 %121 = load %struct.edge_rec*, %struct.edge_rec** %89, align 4 186 %122 = load %struct.edge_rec*, %struct.edge_rec** %109, align 4 187 store %struct.edge_rec* %121, %struct.edge_rec** %109, align 4 188 store %struct.edge_rec* %122, %struct.edge_rec** %89, align 4 189 %123 = xor i32 %91, 32 190 %124 = inttoptr i32 %123 to %struct.edge_rec* 191 %125 = getelementptr %struct.edge_rec, %struct.edge_rec* %124, i32 0, i32 1 192 %126 = load %struct.edge_rec*, %struct.edge_rec** %125, align 4 193 %127 = ptrtoint %struct.edge_rec* %126 to i32 194 %128 = add i32 %127, 16 195 %129 = and i32 %128, 63 196 %130 = and i32 %127, -64 197 %131 = or i32 %129, %130 198 %132 = inttoptr i32 %131 to %struct.edge_rec* 199 %133 = getelementptr %struct.edge_rec, %struct.edge_rec* %ldi_addr.0.i, i32 0, i32 1 200 %134 = load %struct.edge_rec*, %struct.edge_rec** %133, align 4 201 %135 = ptrtoint %struct.edge_rec* %134 to i32 202 %136 = add i32 %135, 16 203 %137 = and i32 %136, 63 204 %138 = and i32 %135, -64 205 %139 = or i32 %137, %138 206 %140 = inttoptr i32 %139 to %struct.edge_rec* 207 %141 = getelementptr %struct.edge_rec, %struct.edge_rec* %140, i32 0, i32 1 208 %142 = load %struct.edge_rec*, %struct.edge_rec** %141, align 4 209 %143 = getelementptr %struct.edge_rec, %struct.edge_rec* %132, i32 0, i32 1 210 %144 = load %struct.edge_rec*, %struct.edge_rec** %143, align 4 211 store %struct.edge_rec* %142, %struct.edge_rec** %143, align 4 212 store %struct.edge_rec* %144, %struct.edge_rec** %141, align 4 213 %145 = load %struct.edge_rec*, %struct.edge_rec** %125, align 4 214 %146 = load %struct.edge_rec*, %struct.edge_rec** %133, align 4 215 store %struct.edge_rec* %145, %struct.edge_rec** %133, align 4 216 store %struct.edge_rec* %146, %struct.edge_rec** %125, align 4 217 %147 = and i32 %92, 63 218 %148 = and i32 %91, -64 219 %149 = or i32 %147, %148 220 %150 = inttoptr i32 %149 to %struct.edge_rec* 221 %151 = getelementptr %struct.edge_rec, %struct.edge_rec* %150, i32 0, i32 1 222 %152 = load %struct.edge_rec*, %struct.edge_rec** %151, align 4 223 %153 = ptrtoint %struct.edge_rec* %152 to i32 224 %154 = add i32 %153, 16 225 %155 = and i32 %154, 63 226 %156 = and i32 %153, -64 227 %157 = or i32 %155, %156 228 %158 = inttoptr i32 %157 to %struct.edge_rec* 229 %159 = load %struct.VERTEX*, %struct.VERTEX** %90, align 4 230 %160 = getelementptr %struct.edge_rec, %struct.edge_rec* %124, i32 0, i32 0 231 %161 = load %struct.VERTEX*, %struct.VERTEX** %160, align 4 232 %162 = getelementptr %struct.edge_rec, %struct.edge_rec* %16, i32 0, i32 0 233 %163 = load %struct.VERTEX*, %struct.VERTEX** %162, align 4 234 %164 = icmp eq %struct.VERTEX* %163, %159 235 %rdo_addr.0.i = select i1 %164, %struct.edge_rec* %88, %struct.edge_rec* %16 236 %165 = getelementptr %struct.edge_rec, %struct.edge_rec* %10, i32 0, i32 0 237 %166 = load %struct.VERTEX*, %struct.VERTEX** %165, align 4 238 %167 = icmp eq %struct.VERTEX* %166, %161 239 %ldo_addr.0.ph.i = select i1 %167, %struct.edge_rec* %124, %struct.edge_rec* %10 240 br label %bb9.i 241 242bb9.i: 243 %lcand.2.i = phi %struct.edge_rec* [ %146, %bb5.i ], [ %lcand.1.i, %bb24.i ], [ %739, %bb25.i ] 244 %rcand.2.i = phi %struct.edge_rec* [ %158, %bb5.i ], [ %666, %bb24.i ], [ %rcand.1.i, %bb25.i ] 245 %basel.0.i = phi %struct.edge_rec* [ %88, %bb5.i ], [ %595, %bb24.i ], [ %716, %bb25.i ] 246 %168 = getelementptr %struct.edge_rec, %struct.edge_rec* %lcand.2.i, i32 0, i32 1 247 %169 = load %struct.edge_rec*, %struct.edge_rec** %168, align 4 248 %170 = getelementptr %struct.edge_rec, %struct.edge_rec* %basel.0.i, i32 0, i32 0 249 %171 = load %struct.VERTEX*, %struct.VERTEX** %170, align 4 250 %172 = ptrtoint %struct.edge_rec* %basel.0.i to i32 251 %173 = xor i32 %172, 32 252 %174 = inttoptr i32 %173 to %struct.edge_rec* 253 %175 = getelementptr %struct.edge_rec, %struct.edge_rec* %174, i32 0, i32 0 254 %176 = load %struct.VERTEX*, %struct.VERTEX** %175, align 4 255 %177 = ptrtoint %struct.edge_rec* %169 to i32 256 %178 = xor i32 %177, 32 257 %179 = inttoptr i32 %178 to %struct.edge_rec* 258 %180 = getelementptr %struct.edge_rec, %struct.edge_rec* %179, i32 0, i32 0 259 %181 = load %struct.VERTEX*, %struct.VERTEX** %180, align 4 260 %182 = getelementptr %struct.VERTEX, %struct.VERTEX* %171, i32 0, i32 0, i32 0 261 %183 = load double, double* %182, align 4 262 %184 = getelementptr %struct.VERTEX, %struct.VERTEX* %171, i32 0, i32 0, i32 1 263 %185 = load double, double* %184, align 4 264 %186 = getelementptr %struct.VERTEX, %struct.VERTEX* %181, i32 0, i32 0, i32 0 265 %187 = load double, double* %186, align 4 266 %188 = getelementptr %struct.VERTEX, %struct.VERTEX* %181, i32 0, i32 0, i32 1 267 %189 = load double, double* %188, align 4 268 %190 = getelementptr %struct.VERTEX, %struct.VERTEX* %176, i32 0, i32 0, i32 0 269 %191 = load double, double* %190, align 4 270 %192 = getelementptr %struct.VERTEX, %struct.VERTEX* %176, i32 0, i32 0, i32 1 271 %193 = load double, double* %192, align 4 272 %194 = fsub double %183, %191 273 %195 = fsub double %189, %193 274 %196 = fmul double %194, %195 275 %197 = fsub double %187, %191 276 %198 = fsub double %185, %193 277 %199 = fmul double %197, %198 278 %200 = fsub double %196, %199 279 %201 = fcmp ogt double %200, 0.000000e+00 280 br i1 %201, label %bb10.i, label %bb13.i 281 282bb10.i: 283 %202 = getelementptr %struct.VERTEX, %struct.VERTEX* %171, i32 0, i32 0, i32 2 284 %avail_edge.promoted25 = load %struct.edge_rec*, %struct.edge_rec** @avail_edge 285 br label %bb12.i 286 287bb11.i: 288 %203 = ptrtoint %struct.edge_rec* %lcand.0.i to i32 289 %204 = add i32 %203, 16 290 %205 = and i32 %204, 63 291 %206 = and i32 %203, -64 292 %207 = or i32 %205, %206 293 %208 = inttoptr i32 %207 to %struct.edge_rec* 294 %209 = getelementptr %struct.edge_rec, %struct.edge_rec* %208, i32 0, i32 1 295 %210 = load %struct.edge_rec*, %struct.edge_rec** %209, align 4 296 %211 = ptrtoint %struct.edge_rec* %210 to i32 297 %212 = add i32 %211, 16 298 %213 = and i32 %212, 63 299 %214 = and i32 %211, -64 300 %215 = or i32 %213, %214 301 %216 = inttoptr i32 %215 to %struct.edge_rec* 302 %217 = getelementptr %struct.edge_rec, %struct.edge_rec* %lcand.0.i, i32 0, i32 1 303 %218 = load %struct.edge_rec*, %struct.edge_rec** %217, align 4 304 %219 = ptrtoint %struct.edge_rec* %218 to i32 305 %220 = add i32 %219, 16 306 %221 = and i32 %220, 63 307 %222 = and i32 %219, -64 308 %223 = or i32 %221, %222 309 %224 = inttoptr i32 %223 to %struct.edge_rec* 310 %225 = getelementptr %struct.edge_rec, %struct.edge_rec* %216, i32 0, i32 1 311 %226 = load %struct.edge_rec*, %struct.edge_rec** %225, align 4 312 %227 = ptrtoint %struct.edge_rec* %226 to i32 313 %228 = add i32 %227, 16 314 %229 = and i32 %228, 63 315 %230 = and i32 %227, -64 316 %231 = or i32 %229, %230 317 %232 = inttoptr i32 %231 to %struct.edge_rec* 318 %233 = getelementptr %struct.edge_rec, %struct.edge_rec* %232, i32 0, i32 1 319 %234 = load %struct.edge_rec*, %struct.edge_rec** %233, align 4 320 %235 = getelementptr %struct.edge_rec, %struct.edge_rec* %224, i32 0, i32 1 321 %236 = load %struct.edge_rec*, %struct.edge_rec** %235, align 4 322 store %struct.edge_rec* %234, %struct.edge_rec** %235, align 4 323 store %struct.edge_rec* %236, %struct.edge_rec** %233, align 4 324 %237 = load %struct.edge_rec*, %struct.edge_rec** %217, align 4 325 %238 = load %struct.edge_rec*, %struct.edge_rec** %225, align 4 326 store %struct.edge_rec* %237, %struct.edge_rec** %225, align 4 327 store %struct.edge_rec* %238, %struct.edge_rec** %217, align 4 328 %239 = xor i32 %203, 32 329 %240 = add i32 %239, 16 330 %241 = and i32 %240, 63 331 %242 = or i32 %241, %206 332 %243 = inttoptr i32 %242 to %struct.edge_rec* 333 %244 = getelementptr %struct.edge_rec, %struct.edge_rec* %243, i32 0, i32 1 334 %245 = load %struct.edge_rec*, %struct.edge_rec** %244, align 4 335 %246 = ptrtoint %struct.edge_rec* %245 to i32 336 %247 = add i32 %246, 16 337 %248 = and i32 %247, 63 338 %249 = and i32 %246, -64 339 %250 = or i32 %248, %249 340 %251 = inttoptr i32 %250 to %struct.edge_rec* 341 %252 = inttoptr i32 %239 to %struct.edge_rec* 342 %253 = getelementptr %struct.edge_rec, %struct.edge_rec* %252, i32 0, i32 1 343 %254 = load %struct.edge_rec*, %struct.edge_rec** %253, align 4 344 %255 = ptrtoint %struct.edge_rec* %254 to i32 345 %256 = add i32 %255, 16 346 %257 = and i32 %256, 63 347 %258 = and i32 %255, -64 348 %259 = or i32 %257, %258 349 %260 = inttoptr i32 %259 to %struct.edge_rec* 350 %261 = getelementptr %struct.edge_rec, %struct.edge_rec* %251, i32 0, i32 1 351 %262 = load %struct.edge_rec*, %struct.edge_rec** %261, align 4 352 %263 = ptrtoint %struct.edge_rec* %262 to i32 353 %264 = add i32 %263, 16 354 %265 = and i32 %264, 63 355 %266 = and i32 %263, -64 356 %267 = or i32 %265, %266 357 %268 = inttoptr i32 %267 to %struct.edge_rec* 358 %269 = getelementptr %struct.edge_rec, %struct.edge_rec* %268, i32 0, i32 1 359 %270 = load %struct.edge_rec*, %struct.edge_rec** %269, align 4 360 %271 = getelementptr %struct.edge_rec, %struct.edge_rec* %260, i32 0, i32 1 361 %272 = load %struct.edge_rec*, %struct.edge_rec** %271, align 4 362 store %struct.edge_rec* %270, %struct.edge_rec** %271, align 4 363 store %struct.edge_rec* %272, %struct.edge_rec** %269, align 4 364 %273 = load %struct.edge_rec*, %struct.edge_rec** %253, align 4 365 %274 = load %struct.edge_rec*, %struct.edge_rec** %261, align 4 366 store %struct.edge_rec* %273, %struct.edge_rec** %261, align 4 367 store %struct.edge_rec* %274, %struct.edge_rec** %253, align 4 368 %275 = inttoptr i32 %206 to %struct.edge_rec* 369 %276 = getelementptr %struct.edge_rec, %struct.edge_rec* %275, i32 0, i32 1 370 store %struct.edge_rec* %avail_edge.tmp.026, %struct.edge_rec** %276, align 4 371 %277 = getelementptr %struct.edge_rec, %struct.edge_rec* %t.0.i, i32 0, i32 1 372 %278 = load %struct.edge_rec*, %struct.edge_rec** %277, align 4 373 %.pre.i = load double, double* %182, align 4 374 %.pre22.i = load double, double* %184, align 4 375 br label %bb12.i 376 377bb12.i: 378 %avail_edge.tmp.026 = phi %struct.edge_rec* [ %avail_edge.promoted25, %bb10.i ], [ %275, %bb11.i ] 379 %279 = phi double [ %.pre22.i, %bb11.i ], [ %185, %bb10.i ] 380 %280 = phi double [ %.pre.i, %bb11.i ], [ %183, %bb10.i ] 381 %lcand.0.i = phi %struct.edge_rec* [ %lcand.2.i, %bb10.i ], [ %t.0.i, %bb11.i ] 382 %t.0.i = phi %struct.edge_rec* [ %169, %bb10.i ], [ %278, %bb11.i ] 383 %.pn5.in.in.in.i = phi %struct.edge_rec* [ %lcand.2.i, %bb10.i ], [ %t.0.i, %bb11.i ] 384 %.pn4.in.in.in.i = phi %struct.edge_rec* [ %169, %bb10.i ], [ %278, %bb11.i ] 385 %lcand.2.pn.i = phi %struct.edge_rec* [ %lcand.2.i, %bb10.i ], [ %t.0.i, %bb11.i ] 386 %.pn5.in.in.i = ptrtoint %struct.edge_rec* %.pn5.in.in.in.i to i32 387 %.pn4.in.in.i = ptrtoint %struct.edge_rec* %.pn4.in.in.in.i to i32 388 %.pn5.in.i = xor i32 %.pn5.in.in.i, 32 389 %.pn4.in.i = xor i32 %.pn4.in.in.i, 32 390 %.pn5.i = inttoptr i32 %.pn5.in.i to %struct.edge_rec* 391 %.pn4.i = inttoptr i32 %.pn4.in.i to %struct.edge_rec* 392 %v1.0.in.i = getelementptr %struct.edge_rec, %struct.edge_rec* %.pn5.i, i32 0, i32 0 393 %v2.0.in.i = getelementptr %struct.edge_rec, %struct.edge_rec* %.pn4.i, i32 0, i32 0 394 %v3.0.in.i = getelementptr %struct.edge_rec, %struct.edge_rec* %lcand.2.pn.i, i32 0, i32 0 395 %v1.0.i = load %struct.VERTEX*, %struct.VERTEX** %v1.0.in.i 396 %v2.0.i = load %struct.VERTEX*, %struct.VERTEX** %v2.0.in.i 397 %v3.0.i = load %struct.VERTEX*, %struct.VERTEX** %v3.0.in.i 398 %281 = load double, double* %202, align 4 399 %282 = getelementptr %struct.VERTEX, %struct.VERTEX* %v1.0.i, i32 0, i32 0, i32 0 400 %283 = load double, double* %282, align 4 401 %284 = fsub double %283, %280 402 %285 = getelementptr %struct.VERTEX, %struct.VERTEX* %v1.0.i, i32 0, i32 0, i32 1 403 %286 = load double, double* %285, align 4 404 %287 = fsub double %286, %279 405 %288 = getelementptr %struct.VERTEX, %struct.VERTEX* %v1.0.i, i32 0, i32 0, i32 2 406 %289 = load double, double* %288, align 4 407 %290 = getelementptr %struct.VERTEX, %struct.VERTEX* %v2.0.i, i32 0, i32 0, i32 0 408 %291 = load double, double* %290, align 4 409 %292 = fsub double %291, %280 410 %293 = getelementptr %struct.VERTEX, %struct.VERTEX* %v2.0.i, i32 0, i32 0, i32 1 411 %294 = load double, double* %293, align 4 412 %295 = fsub double %294, %279 413 %296 = getelementptr %struct.VERTEX, %struct.VERTEX* %v2.0.i, i32 0, i32 0, i32 2 414 %297 = load double, double* %296, align 4 415 %298 = getelementptr %struct.VERTEX, %struct.VERTEX* %v3.0.i, i32 0, i32 0, i32 0 416 %299 = load double, double* %298, align 4 417 %300 = fsub double %299, %280 418 %301 = getelementptr %struct.VERTEX, %struct.VERTEX* %v3.0.i, i32 0, i32 0, i32 1 419 %302 = load double, double* %301, align 4 420 %303 = fsub double %302, %279 421 %304 = getelementptr %struct.VERTEX, %struct.VERTEX* %v3.0.i, i32 0, i32 0, i32 2 422 %305 = load double, double* %304, align 4 423 %306 = fsub double %289, %281 424 %307 = fmul double %292, %303 425 %308 = fmul double %295, %300 426 %309 = fsub double %307, %308 427 %310 = fmul double %306, %309 428 %311 = fsub double %297, %281 429 %312 = fmul double %300, %287 430 %313 = fmul double %303, %284 431 %314 = fsub double %312, %313 432 %315 = fmul double %311, %314 433 %316 = fadd double %315, %310 434 %317 = fsub double %305, %281 435 %318 = fmul double %284, %295 436 %319 = fmul double %287, %292 437 %320 = fsub double %318, %319 438 %321 = fmul double %317, %320 439 %322 = fadd double %321, %316 440 %323 = fcmp ogt double %322, 0.000000e+00 441 br i1 %323, label %bb11.i, label %bb13.loopexit.i 442 443bb13.loopexit.i: 444 store %struct.edge_rec* %avail_edge.tmp.026, %struct.edge_rec** @avail_edge 445 %.pre23.i = load %struct.VERTEX*, %struct.VERTEX** %170, align 4 446 %.pre24.i = load %struct.VERTEX*, %struct.VERTEX** %175, align 4 447 br label %bb13.i 448 449bb13.i: 450 %324 = phi %struct.VERTEX* [ %.pre24.i, %bb13.loopexit.i ], [ %176, %bb9.i ] 451 %325 = phi %struct.VERTEX* [ %.pre23.i, %bb13.loopexit.i ], [ %171, %bb9.i ] 452 %lcand.1.i = phi %struct.edge_rec* [ %lcand.0.i, %bb13.loopexit.i ], [ %lcand.2.i, %bb9.i ] 453 %326 = ptrtoint %struct.edge_rec* %rcand.2.i to i32 454 %327 = add i32 %326, 16 455 %328 = and i32 %327, 63 456 %329 = and i32 %326, -64 457 %330 = or i32 %328, %329 458 %331 = inttoptr i32 %330 to %struct.edge_rec* 459 %332 = getelementptr %struct.edge_rec, %struct.edge_rec* %331, i32 0, i32 1 460 %333 = load %struct.edge_rec*, %struct.edge_rec** %332, align 4 461 %334 = ptrtoint %struct.edge_rec* %333 to i32 462 %335 = add i32 %334, 16 463 %336 = and i32 %335, 63 464 %337 = and i32 %334, -64 465 %338 = or i32 %336, %337 466 %339 = xor i32 %338, 32 467 %340 = inttoptr i32 %339 to %struct.edge_rec* 468 %341 = getelementptr %struct.edge_rec, %struct.edge_rec* %340, i32 0, i32 0 469 %342 = load %struct.VERTEX*, %struct.VERTEX** %341, align 4 470 %343 = getelementptr %struct.VERTEX, %struct.VERTEX* %325, i32 0, i32 0, i32 0 471 %344 = load double, double* %343, align 4 472 %345 = getelementptr %struct.VERTEX, %struct.VERTEX* %325, i32 0, i32 0, i32 1 473 %346 = load double, double* %345, align 4 474 %347 = getelementptr %struct.VERTEX, %struct.VERTEX* %342, i32 0, i32 0, i32 0 475 %348 = load double, double* %347, align 4 476 %349 = getelementptr %struct.VERTEX, %struct.VERTEX* %342, i32 0, i32 0, i32 1 477 %350 = load double, double* %349, align 4 478 %351 = getelementptr %struct.VERTEX, %struct.VERTEX* %324, i32 0, i32 0, i32 0 479 %352 = load double, double* %351, align 4 480 %353 = getelementptr %struct.VERTEX, %struct.VERTEX* %324, i32 0, i32 0, i32 1 481 %354 = load double, double* %353, align 4 482 %355 = fsub double %344, %352 483 %356 = fsub double %350, %354 484 %357 = fmul double %355, %356 485 %358 = fsub double %348, %352 486 %359 = fsub double %346, %354 487 %360 = fmul double %358, %359 488 %361 = fsub double %357, %360 489 %362 = fcmp ogt double %361, 0.000000e+00 490 br i1 %362, label %bb14.i, label %bb17.i 491 492bb14.i: 493 %363 = getelementptr %struct.VERTEX, %struct.VERTEX* %324, i32 0, i32 0, i32 2 494 %avail_edge.promoted = load %struct.edge_rec*, %struct.edge_rec** @avail_edge 495 br label %bb16.i 496 497bb15.i: 498 %364 = ptrtoint %struct.edge_rec* %rcand.0.i to i32 499 %365 = add i32 %364, 16 500 %366 = and i32 %365, 63 501 %367 = and i32 %364, -64 502 %368 = or i32 %366, %367 503 %369 = inttoptr i32 %368 to %struct.edge_rec* 504 %370 = getelementptr %struct.edge_rec, %struct.edge_rec* %369, i32 0, i32 1 505 %371 = load %struct.edge_rec*, %struct.edge_rec** %370, align 4 506 %372 = ptrtoint %struct.edge_rec* %371 to i32 507 %373 = add i32 %372, 16 508 %374 = and i32 %373, 63 509 %375 = and i32 %372, -64 510 %376 = or i32 %374, %375 511 %377 = inttoptr i32 %376 to %struct.edge_rec* 512 %378 = getelementptr %struct.edge_rec, %struct.edge_rec* %rcand.0.i, i32 0, i32 1 513 %379 = load %struct.edge_rec*, %struct.edge_rec** %378, align 4 514 %380 = ptrtoint %struct.edge_rec* %379 to i32 515 %381 = add i32 %380, 16 516 %382 = and i32 %381, 63 517 %383 = and i32 %380, -64 518 %384 = or i32 %382, %383 519 %385 = inttoptr i32 %384 to %struct.edge_rec* 520 %386 = getelementptr %struct.edge_rec, %struct.edge_rec* %377, i32 0, i32 1 521 %387 = load %struct.edge_rec*, %struct.edge_rec** %386, align 4 522 %388 = ptrtoint %struct.edge_rec* %387 to i32 523 %389 = add i32 %388, 16 524 %390 = and i32 %389, 63 525 %391 = and i32 %388, -64 526 %392 = or i32 %390, %391 527 %393 = inttoptr i32 %392 to %struct.edge_rec* 528 %394 = getelementptr %struct.edge_rec, %struct.edge_rec* %393, i32 0, i32 1 529 %395 = load %struct.edge_rec*, %struct.edge_rec** %394, align 4 530 %396 = getelementptr %struct.edge_rec, %struct.edge_rec* %385, i32 0, i32 1 531 %397 = load %struct.edge_rec*, %struct.edge_rec** %396, align 4 532 store %struct.edge_rec* %395, %struct.edge_rec** %396, align 4 533 store %struct.edge_rec* %397, %struct.edge_rec** %394, align 4 534 %398 = load %struct.edge_rec*, %struct.edge_rec** %378, align 4 535 %399 = load %struct.edge_rec*, %struct.edge_rec** %386, align 4 536 store %struct.edge_rec* %398, %struct.edge_rec** %386, align 4 537 store %struct.edge_rec* %399, %struct.edge_rec** %378, align 4 538 %400 = xor i32 %364, 32 539 %401 = add i32 %400, 16 540 %402 = and i32 %401, 63 541 %403 = or i32 %402, %367 542 %404 = inttoptr i32 %403 to %struct.edge_rec* 543 %405 = getelementptr %struct.edge_rec, %struct.edge_rec* %404, i32 0, i32 1 544 %406 = load %struct.edge_rec*, %struct.edge_rec** %405, align 4 545 %407 = ptrtoint %struct.edge_rec* %406 to i32 546 %408 = add i32 %407, 16 547 %409 = and i32 %408, 63 548 %410 = and i32 %407, -64 549 %411 = or i32 %409, %410 550 %412 = inttoptr i32 %411 to %struct.edge_rec* 551 %413 = inttoptr i32 %400 to %struct.edge_rec* 552 %414 = getelementptr %struct.edge_rec, %struct.edge_rec* %413, i32 0, i32 1 553 %415 = load %struct.edge_rec*, %struct.edge_rec** %414, align 4 554 %416 = ptrtoint %struct.edge_rec* %415 to i32 555 %417 = add i32 %416, 16 556 %418 = and i32 %417, 63 557 %419 = and i32 %416, -64 558 %420 = or i32 %418, %419 559 %421 = inttoptr i32 %420 to %struct.edge_rec* 560 %422 = getelementptr %struct.edge_rec, %struct.edge_rec* %412, i32 0, i32 1 561 %423 = load %struct.edge_rec*, %struct.edge_rec** %422, align 4 562 %424 = ptrtoint %struct.edge_rec* %423 to i32 563 %425 = add i32 %424, 16 564 %426 = and i32 %425, 63 565 %427 = and i32 %424, -64 566 %428 = or i32 %426, %427 567 %429 = inttoptr i32 %428 to %struct.edge_rec* 568 %430 = getelementptr %struct.edge_rec, %struct.edge_rec* %429, i32 0, i32 1 569 %431 = load %struct.edge_rec*, %struct.edge_rec** %430, align 4 570 %432 = getelementptr %struct.edge_rec, %struct.edge_rec* %421, i32 0, i32 1 571 %433 = load %struct.edge_rec*, %struct.edge_rec** %432, align 4 572 store %struct.edge_rec* %431, %struct.edge_rec** %432, align 4 573 store %struct.edge_rec* %433, %struct.edge_rec** %430, align 4 574 %434 = load %struct.edge_rec*, %struct.edge_rec** %414, align 4 575 %435 = load %struct.edge_rec*, %struct.edge_rec** %422, align 4 576 store %struct.edge_rec* %434, %struct.edge_rec** %422, align 4 577 store %struct.edge_rec* %435, %struct.edge_rec** %414, align 4 578 %436 = inttoptr i32 %367 to %struct.edge_rec* 579 %437 = getelementptr %struct.edge_rec, %struct.edge_rec* %436, i32 0, i32 1 580 store %struct.edge_rec* %avail_edge.tmp.0, %struct.edge_rec** %437, align 4 581 %438 = add i32 %t.1.in.i, 16 582 %439 = and i32 %438, 63 583 %440 = and i32 %t.1.in.i, -64 584 %441 = or i32 %439, %440 585 %442 = inttoptr i32 %441 to %struct.edge_rec* 586 %443 = getelementptr %struct.edge_rec, %struct.edge_rec* %442, i32 0, i32 1 587 %444 = load %struct.edge_rec*, %struct.edge_rec** %443, align 4 588 %445 = ptrtoint %struct.edge_rec* %444 to i32 589 %446 = add i32 %445, 16 590 %447 = and i32 %446, 63 591 %448 = and i32 %445, -64 592 %449 = or i32 %447, %448 593 %.pre25.i = load double, double* %351, align 4 594 %.pre26.i = load double, double* %353, align 4 595 br label %bb16.i 596 597bb16.i: 598 %avail_edge.tmp.0 = phi %struct.edge_rec* [ %avail_edge.promoted, %bb14.i ], [ %436, %bb15.i ] 599 %450 = phi double [ %.pre26.i, %bb15.i ], [ %354, %bb14.i ] 600 %451 = phi double [ %.pre25.i, %bb15.i ], [ %352, %bb14.i ] 601 %rcand.0.i = phi %struct.edge_rec* [ %rcand.2.i, %bb14.i ], [ %t.1.i, %bb15.i ] 602 %t.1.in.i = phi i32 [ %338, %bb14.i ], [ %449, %bb15.i ] 603 %.pn3.in.in.i = phi i32 [ %338, %bb14.i ], [ %449, %bb15.i ] 604 %.pn.in.in.in.i = phi %struct.edge_rec* [ %rcand.2.i, %bb14.i ], [ %t.1.i, %bb15.i ] 605 %rcand.2.pn.i = phi %struct.edge_rec* [ %rcand.2.i, %bb14.i ], [ %t.1.i, %bb15.i ] 606 %t.1.i = inttoptr i32 %t.1.in.i to %struct.edge_rec* 607 %.pn.in.in.i = ptrtoint %struct.edge_rec* %.pn.in.in.in.i to i32 608 %.pn3.in.i = xor i32 %.pn3.in.in.i, 32 609 %.pn.in.i = xor i32 %.pn.in.in.i, 32 610 %.pn3.i = inttoptr i32 %.pn3.in.i to %struct.edge_rec* 611 %.pn.i = inttoptr i32 %.pn.in.i to %struct.edge_rec* 612 %v1.1.in.i = getelementptr %struct.edge_rec, %struct.edge_rec* %.pn3.i, i32 0, i32 0 613 %v2.1.in.i = getelementptr %struct.edge_rec, %struct.edge_rec* %.pn.i, i32 0, i32 0 614 %v3.1.in.i = getelementptr %struct.edge_rec, %struct.edge_rec* %rcand.2.pn.i, i32 0, i32 0 615 %v1.1.i = load %struct.VERTEX*, %struct.VERTEX** %v1.1.in.i 616 %v2.1.i = load %struct.VERTEX*, %struct.VERTEX** %v2.1.in.i 617 %v3.1.i = load %struct.VERTEX*, %struct.VERTEX** %v3.1.in.i 618 %452 = load double, double* %363, align 4 619 %453 = getelementptr %struct.VERTEX, %struct.VERTEX* %v1.1.i, i32 0, i32 0, i32 0 620 %454 = load double, double* %453, align 4 621 %455 = fsub double %454, %451 622 %456 = getelementptr %struct.VERTEX, %struct.VERTEX* %v1.1.i, i32 0, i32 0, i32 1 623 %457 = load double, double* %456, align 4 624 %458 = fsub double %457, %450 625 %459 = getelementptr %struct.VERTEX, %struct.VERTEX* %v1.1.i, i32 0, i32 0, i32 2 626 %460 = load double, double* %459, align 4 627 %461 = getelementptr %struct.VERTEX, %struct.VERTEX* %v2.1.i, i32 0, i32 0, i32 0 628 %462 = load double, double* %461, align 4 629 %463 = fsub double %462, %451 630 %464 = getelementptr %struct.VERTEX, %struct.VERTEX* %v2.1.i, i32 0, i32 0, i32 1 631 %465 = load double, double* %464, align 4 632 %466 = fsub double %465, %450 633 %467 = getelementptr %struct.VERTEX, %struct.VERTEX* %v2.1.i, i32 0, i32 0, i32 2 634 %468 = load double, double* %467, align 4 635 %469 = getelementptr %struct.VERTEX, %struct.VERTEX* %v3.1.i, i32 0, i32 0, i32 0 636 %470 = load double, double* %469, align 4 637 %471 = fsub double %470, %451 638 %472 = getelementptr %struct.VERTEX, %struct.VERTEX* %v3.1.i, i32 0, i32 0, i32 1 639 %473 = load double, double* %472, align 4 640 %474 = fsub double %473, %450 641 %475 = getelementptr %struct.VERTEX, %struct.VERTEX* %v3.1.i, i32 0, i32 0, i32 2 642 %476 = load double, double* %475, align 4 643 %477 = fsub double %460, %452 644 %478 = fmul double %463, %474 645 %479 = fmul double %466, %471 646 %480 = fsub double %478, %479 647 %481 = fmul double %477, %480 648 %482 = fsub double %468, %452 649 %483 = fmul double %471, %458 650 %484 = fmul double %474, %455 651 %485 = fsub double %483, %484 652 %486 = fmul double %482, %485 653 %487 = fadd double %486, %481 654 %488 = fsub double %476, %452 655 %489 = fmul double %455, %466 656 %490 = fmul double %458, %463 657 %491 = fsub double %489, %490 658 %492 = fmul double %488, %491 659 %493 = fadd double %492, %487 660 %494 = fcmp ogt double %493, 0.000000e+00 661 br i1 %494, label %bb15.i, label %bb17.loopexit.i 662 663bb17.loopexit.i: 664 store %struct.edge_rec* %avail_edge.tmp.0, %struct.edge_rec** @avail_edge 665 %.pre27.i = load %struct.VERTEX*, %struct.VERTEX** %170, align 4 666 %.pre28.i = load %struct.VERTEX*, %struct.VERTEX** %175, align 4 667 br label %bb17.i 668 669bb17.i: 670 %495 = phi %struct.VERTEX* [ %.pre28.i, %bb17.loopexit.i ], [ %324, %bb13.i ] 671 %496 = phi %struct.VERTEX* [ %.pre27.i, %bb17.loopexit.i ], [ %325, %bb13.i ] 672 %rcand.1.i = phi %struct.edge_rec* [ %rcand.0.i, %bb17.loopexit.i ], [ %rcand.2.i, %bb13.i ] 673 %497 = ptrtoint %struct.edge_rec* %lcand.1.i to i32 674 %498 = xor i32 %497, 32 675 %499 = inttoptr i32 %498 to %struct.edge_rec* 676 %500 = getelementptr %struct.edge_rec, %struct.edge_rec* %499, i32 0, i32 0 677 %501 = load %struct.VERTEX*, %struct.VERTEX** %500, align 4 678 %502 = getelementptr %struct.VERTEX, %struct.VERTEX* %496, i32 0, i32 0, i32 0 679 %503 = load double, double* %502, align 4 680 %504 = getelementptr %struct.VERTEX, %struct.VERTEX* %496, i32 0, i32 0, i32 1 681 %505 = load double, double* %504, align 4 682 %506 = getelementptr %struct.VERTEX, %struct.VERTEX* %501, i32 0, i32 0, i32 0 683 %507 = load double, double* %506, align 4 684 %508 = getelementptr %struct.VERTEX, %struct.VERTEX* %501, i32 0, i32 0, i32 1 685 %509 = load double, double* %508, align 4 686 %510 = getelementptr %struct.VERTEX, %struct.VERTEX* %495, i32 0, i32 0, i32 0 687 %511 = load double, double* %510, align 4 688 %512 = getelementptr %struct.VERTEX, %struct.VERTEX* %495, i32 0, i32 0, i32 1 689 %513 = load double, double* %512, align 4 690 %514 = fsub double %503, %511 691 %515 = fsub double %509, %513 692 %516 = fmul double %514, %515 693 %517 = fsub double %507, %511 694 %518 = fsub double %505, %513 695 %519 = fmul double %517, %518 696 %520 = fsub double %516, %519 697 %521 = fcmp ogt double %520, 0.000000e+00 698 %522 = ptrtoint %struct.edge_rec* %rcand.1.i to i32 699 %523 = xor i32 %522, 32 700 %524 = inttoptr i32 %523 to %struct.edge_rec* 701 %525 = getelementptr %struct.edge_rec, %struct.edge_rec* %524, i32 0, i32 0 702 %526 = load %struct.VERTEX*, %struct.VERTEX** %525, align 4 703 %527 = getelementptr %struct.VERTEX, %struct.VERTEX* %526, i32 0, i32 0, i32 0 704 %528 = load double, double* %527, align 4 705 %529 = getelementptr %struct.VERTEX, %struct.VERTEX* %526, i32 0, i32 0, i32 1 706 %530 = load double, double* %529, align 4 707 %531 = fsub double %530, %513 708 %532 = fmul double %514, %531 709 %533 = fsub double %528, %511 710 %534 = fmul double %533, %518 711 %535 = fsub double %532, %534 712 %536 = fcmp ogt double %535, 0.000000e+00 713 %537 = or i1 %536, %521 714 br i1 %537, label %bb21.i, label %do_merge.exit 715 716bb21.i: 717 %538 = getelementptr %struct.edge_rec, %struct.edge_rec* %lcand.1.i, i32 0, i32 0 718 %539 = load %struct.VERTEX*, %struct.VERTEX** %538, align 4 719 %540 = getelementptr %struct.edge_rec, %struct.edge_rec* %rcand.1.i, i32 0, i32 0 720 %541 = load %struct.VERTEX*, %struct.VERTEX** %540, align 4 721 br i1 %521, label %bb22.i, label %bb24.i 722 723bb22.i: 724 br i1 %536, label %bb23.i, label %bb25.i 725 726bb23.i: 727 %542 = getelementptr %struct.VERTEX, %struct.VERTEX* %526, i32 0, i32 0, i32 2 728 %543 = load double, double* %542, align 4 729 %544 = fsub double %507, %528 730 %545 = fsub double %509, %530 731 %546 = getelementptr %struct.VERTEX, %struct.VERTEX* %501, i32 0, i32 0, i32 2 732 %547 = load double, double* %546, align 4 733 %548 = getelementptr %struct.VERTEX, %struct.VERTEX* %539, i32 0, i32 0, i32 0 734 %549 = load double, double* %548, align 4 735 %550 = fsub double %549, %528 736 %551 = getelementptr %struct.VERTEX, %struct.VERTEX* %539, i32 0, i32 0, i32 1 737 %552 = load double, double* %551, align 4 738 %553 = fsub double %552, %530 739 %554 = getelementptr %struct.VERTEX, %struct.VERTEX* %539, i32 0, i32 0, i32 2 740 %555 = load double, double* %554, align 4 741 %556 = getelementptr %struct.VERTEX, %struct.VERTEX* %541, i32 0, i32 0, i32 0 742 %557 = load double, double* %556, align 4 743 %558 = fsub double %557, %528 744 %559 = getelementptr %struct.VERTEX, %struct.VERTEX* %541, i32 0, i32 0, i32 1 745 %560 = load double, double* %559, align 4 746 %561 = fsub double %560, %530 747 %562 = getelementptr %struct.VERTEX, %struct.VERTEX* %541, i32 0, i32 0, i32 2 748 %563 = load double, double* %562, align 4 749 %564 = fsub double %547, %543 750 %565 = fmul double %550, %561 751 %566 = fmul double %553, %558 752 %567 = fsub double %565, %566 753 %568 = fmul double %564, %567 754 %569 = fsub double %555, %543 755 %570 = fmul double %558, %545 756 %571 = fmul double %561, %544 757 %572 = fsub double %570, %571 758 %573 = fmul double %569, %572 759 %574 = fadd double %573, %568 760 %575 = fsub double %563, %543 761 %576 = fmul double %544, %553 762 %577 = fmul double %545, %550 763 %578 = fsub double %576, %577 764 %579 = fmul double %575, %578 765 %580 = fadd double %579, %574 766 %581 = fcmp ogt double %580, 0.000000e+00 767 br i1 %581, label %bb24.i, label %bb25.i 768 769bb24.i: 770 %582 = add i32 %522, 48 771 %583 = and i32 %582, 63 772 %584 = and i32 %522, -64 773 %585 = or i32 %583, %584 774 %586 = inttoptr i32 %585 to %struct.edge_rec* 775 %587 = getelementptr %struct.edge_rec, %struct.edge_rec* %586, i32 0, i32 1 776 %588 = load %struct.edge_rec*, %struct.edge_rec** %587, align 4 777 %589 = ptrtoint %struct.edge_rec* %588 to i32 778 %590 = add i32 %589, 16 779 %591 = and i32 %590, 63 780 %592 = and i32 %589, -64 781 %593 = or i32 %591, %592 782 %594 = inttoptr i32 %593 to %struct.edge_rec* 783 %595 = call %struct.edge_rec* @alloc_edge() nounwind 784 %596 = getelementptr %struct.edge_rec, %struct.edge_rec* %595, i32 0, i32 1 785 store %struct.edge_rec* %595, %struct.edge_rec** %596, align 4 786 %597 = getelementptr %struct.edge_rec, %struct.edge_rec* %595, i32 0, i32 0 787 store %struct.VERTEX* %526, %struct.VERTEX** %597, align 4 788 %598 = ptrtoint %struct.edge_rec* %595 to i32 789 %599 = add i32 %598, 16 790 %600 = inttoptr i32 %599 to %struct.edge_rec* 791 %601 = add i32 %598, 48 792 %602 = inttoptr i32 %601 to %struct.edge_rec* 793 %603 = getelementptr %struct.edge_rec, %struct.edge_rec* %600, i32 0, i32 1 794 store %struct.edge_rec* %602, %struct.edge_rec** %603, align 4 795 %604 = add i32 %598, 32 796 %605 = inttoptr i32 %604 to %struct.edge_rec* 797 %606 = getelementptr %struct.edge_rec, %struct.edge_rec* %605, i32 0, i32 1 798 store %struct.edge_rec* %605, %struct.edge_rec** %606, align 4 799 %607 = getelementptr %struct.edge_rec, %struct.edge_rec* %605, i32 0, i32 0 800 store %struct.VERTEX* %495, %struct.VERTEX** %607, align 4 801 %608 = getelementptr %struct.edge_rec, %struct.edge_rec* %602, i32 0, i32 1 802 store %struct.edge_rec* %600, %struct.edge_rec** %608, align 4 803 %609 = load %struct.edge_rec*, %struct.edge_rec** %596, align 4 804 %610 = ptrtoint %struct.edge_rec* %609 to i32 805 %611 = add i32 %610, 16 806 %612 = and i32 %611, 63 807 %613 = and i32 %610, -64 808 %614 = or i32 %612, %613 809 %615 = inttoptr i32 %614 to %struct.edge_rec* 810 %616 = getelementptr %struct.edge_rec, %struct.edge_rec* %594, i32 0, i32 1 811 %617 = load %struct.edge_rec*, %struct.edge_rec** %616, align 4 812 %618 = ptrtoint %struct.edge_rec* %617 to i32 813 %619 = add i32 %618, 16 814 %620 = and i32 %619, 63 815 %621 = and i32 %618, -64 816 %622 = or i32 %620, %621 817 %623 = inttoptr i32 %622 to %struct.edge_rec* 818 %624 = getelementptr %struct.edge_rec, %struct.edge_rec* %623, i32 0, i32 1 819 %625 = load %struct.edge_rec*, %struct.edge_rec** %624, align 4 820 %626 = getelementptr %struct.edge_rec, %struct.edge_rec* %615, i32 0, i32 1 821 %627 = load %struct.edge_rec*, %struct.edge_rec** %626, align 4 822 store %struct.edge_rec* %625, %struct.edge_rec** %626, align 4 823 store %struct.edge_rec* %627, %struct.edge_rec** %624, align 4 824 %628 = load %struct.edge_rec*, %struct.edge_rec** %596, align 4 825 %629 = load %struct.edge_rec*, %struct.edge_rec** %616, align 4 826 store %struct.edge_rec* %628, %struct.edge_rec** %616, align 4 827 store %struct.edge_rec* %629, %struct.edge_rec** %596, align 4 828 %630 = xor i32 %598, 32 829 %631 = inttoptr i32 %630 to %struct.edge_rec* 830 %632 = getelementptr %struct.edge_rec, %struct.edge_rec* %631, i32 0, i32 1 831 %633 = load %struct.edge_rec*, %struct.edge_rec** %632, align 4 832 %634 = ptrtoint %struct.edge_rec* %633 to i32 833 %635 = add i32 %634, 16 834 %636 = and i32 %635, 63 835 %637 = and i32 %634, -64 836 %638 = or i32 %636, %637 837 %639 = inttoptr i32 %638 to %struct.edge_rec* 838 %640 = getelementptr %struct.edge_rec, %struct.edge_rec* %174, i32 0, i32 1 839 %641 = load %struct.edge_rec*, %struct.edge_rec** %640, align 4 840 %642 = ptrtoint %struct.edge_rec* %641 to i32 841 %643 = add i32 %642, 16 842 %644 = and i32 %643, 63 843 %645 = and i32 %642, -64 844 %646 = or i32 %644, %645 845 %647 = inttoptr i32 %646 to %struct.edge_rec* 846 %648 = getelementptr %struct.edge_rec, %struct.edge_rec* %647, i32 0, i32 1 847 %649 = load %struct.edge_rec*, %struct.edge_rec** %648, align 4 848 %650 = getelementptr %struct.edge_rec, %struct.edge_rec* %639, i32 0, i32 1 849 %651 = load %struct.edge_rec*, %struct.edge_rec** %650, align 4 850 store %struct.edge_rec* %649, %struct.edge_rec** %650, align 4 851 store %struct.edge_rec* %651, %struct.edge_rec** %648, align 4 852 %652 = load %struct.edge_rec*, %struct.edge_rec** %632, align 4 853 %653 = load %struct.edge_rec*, %struct.edge_rec** %640, align 4 854 store %struct.edge_rec* %652, %struct.edge_rec** %640, align 4 855 store %struct.edge_rec* %653, %struct.edge_rec** %632, align 4 856 %654 = add i32 %630, 48 857 %655 = and i32 %654, 63 858 %656 = and i32 %598, -64 859 %657 = or i32 %655, %656 860 %658 = inttoptr i32 %657 to %struct.edge_rec* 861 %659 = getelementptr %struct.edge_rec, %struct.edge_rec* %658, i32 0, i32 1 862 %660 = load %struct.edge_rec*, %struct.edge_rec** %659, align 4 863 %661 = ptrtoint %struct.edge_rec* %660 to i32 864 %662 = add i32 %661, 16 865 %663 = and i32 %662, 63 866 %664 = and i32 %661, -64 867 %665 = or i32 %663, %664 868 %666 = inttoptr i32 %665 to %struct.edge_rec* 869 br label %bb9.i 870 871bb25.i: 872 %667 = add i32 %172, 16 873 %668 = and i32 %667, 63 874 %669 = and i32 %172, -64 875 %670 = or i32 %668, %669 876 %671 = inttoptr i32 %670 to %struct.edge_rec* 877 %672 = getelementptr %struct.edge_rec, %struct.edge_rec* %671, i32 0, i32 1 878 %673 = load %struct.edge_rec*, %struct.edge_rec** %672, align 4 879 %674 = ptrtoint %struct.edge_rec* %673 to i32 880 %675 = add i32 %674, 16 881 %676 = and i32 %675, 63 882 %677 = and i32 %674, -64 883 %678 = or i32 %676, %677 884 %679 = inttoptr i32 %678 to %struct.edge_rec* 885 %680 = call %struct.edge_rec* @alloc_edge() nounwind 886 %681 = getelementptr %struct.edge_rec, %struct.edge_rec* %680, i32 0, i32 1 887 store %struct.edge_rec* %680, %struct.edge_rec** %681, align 4 888 %682 = getelementptr %struct.edge_rec, %struct.edge_rec* %680, i32 0, i32 0 889 store %struct.VERTEX* %501, %struct.VERTEX** %682, align 4 890 %683 = ptrtoint %struct.edge_rec* %680 to i32 891 %684 = add i32 %683, 16 892 %685 = inttoptr i32 %684 to %struct.edge_rec* 893 %686 = add i32 %683, 48 894 %687 = inttoptr i32 %686 to %struct.edge_rec* 895 %688 = getelementptr %struct.edge_rec, %struct.edge_rec* %685, i32 0, i32 1 896 store %struct.edge_rec* %687, %struct.edge_rec** %688, align 4 897 %689 = add i32 %683, 32 898 %690 = inttoptr i32 %689 to %struct.edge_rec* 899 %691 = getelementptr %struct.edge_rec, %struct.edge_rec* %690, i32 0, i32 1 900 store %struct.edge_rec* %690, %struct.edge_rec** %691, align 4 901 %692 = getelementptr %struct.edge_rec, %struct.edge_rec* %690, i32 0, i32 0 902 store %struct.VERTEX* %496, %struct.VERTEX** %692, align 4 903 %693 = getelementptr %struct.edge_rec, %struct.edge_rec* %687, i32 0, i32 1 904 store %struct.edge_rec* %685, %struct.edge_rec** %693, align 4 905 %694 = load %struct.edge_rec*, %struct.edge_rec** %681, align 4 906 %695 = ptrtoint %struct.edge_rec* %694 to i32 907 %696 = add i32 %695, 16 908 %697 = and i32 %696, 63 909 %698 = and i32 %695, -64 910 %699 = or i32 %697, %698 911 %700 = inttoptr i32 %699 to %struct.edge_rec* 912 %701 = getelementptr %struct.edge_rec, %struct.edge_rec* %499, i32 0, i32 1 913 %702 = load %struct.edge_rec*, %struct.edge_rec** %701, align 4 914 %703 = ptrtoint %struct.edge_rec* %702 to i32 915 %704 = add i32 %703, 16 916 %705 = and i32 %704, 63 917 %706 = and i32 %703, -64 918 %707 = or i32 %705, %706 919 %708 = inttoptr i32 %707 to %struct.edge_rec* 920 %709 = getelementptr %struct.edge_rec, %struct.edge_rec* %708, i32 0, i32 1 921 %710 = load %struct.edge_rec*, %struct.edge_rec** %709, align 4 922 %711 = getelementptr %struct.edge_rec, %struct.edge_rec* %700, i32 0, i32 1 923 %712 = load %struct.edge_rec*, %struct.edge_rec** %711, align 4 924 store %struct.edge_rec* %710, %struct.edge_rec** %711, align 4 925 store %struct.edge_rec* %712, %struct.edge_rec** %709, align 4 926 %713 = load %struct.edge_rec*, %struct.edge_rec** %681, align 4 927 %714 = load %struct.edge_rec*, %struct.edge_rec** %701, align 4 928 store %struct.edge_rec* %713, %struct.edge_rec** %701, align 4 929 store %struct.edge_rec* %714, %struct.edge_rec** %681, align 4 930 %715 = xor i32 %683, 32 931 %716 = inttoptr i32 %715 to %struct.edge_rec* 932 %717 = getelementptr %struct.edge_rec, %struct.edge_rec* %716, i32 0, i32 1 933 %718 = load %struct.edge_rec*, %struct.edge_rec** %717, align 4 934 %719 = ptrtoint %struct.edge_rec* %718 to i32 935 %720 = add i32 %719, 16 936 %721 = and i32 %720, 63 937 %722 = and i32 %719, -64 938 %723 = or i32 %721, %722 939 %724 = inttoptr i32 %723 to %struct.edge_rec* 940 %725 = getelementptr %struct.edge_rec, %struct.edge_rec* %679, i32 0, i32 1 941 %726 = load %struct.edge_rec*, %struct.edge_rec** %725, align 4 942 %727 = ptrtoint %struct.edge_rec* %726 to i32 943 %728 = add i32 %727, 16 944 %729 = and i32 %728, 63 945 %730 = and i32 %727, -64 946 %731 = or i32 %729, %730 947 %732 = inttoptr i32 %731 to %struct.edge_rec* 948 %733 = getelementptr %struct.edge_rec, %struct.edge_rec* %732, i32 0, i32 1 949 %734 = load %struct.edge_rec*, %struct.edge_rec** %733, align 4 950 %735 = getelementptr %struct.edge_rec, %struct.edge_rec* %724, i32 0, i32 1 951 %736 = load %struct.edge_rec*, %struct.edge_rec** %735, align 4 952 store %struct.edge_rec* %734, %struct.edge_rec** %735, align 4 953 store %struct.edge_rec* %736, %struct.edge_rec** %733, align 4 954 %737 = load %struct.edge_rec*, %struct.edge_rec** %717, align 4 955 %738 = load %struct.edge_rec*, %struct.edge_rec** %725, align 4 956 store %struct.edge_rec* %737, %struct.edge_rec** %725, align 4 957 store %struct.edge_rec* %738, %struct.edge_rec** %717, align 4 958 %739 = load %struct.edge_rec*, %struct.edge_rec** %681, align 4 959 br label %bb9.i 960 961do_merge.exit: 962 %740 = getelementptr %struct.edge_rec, %struct.edge_rec* %ldo_addr.0.ph.i, i32 0, i32 0 963 %741 = load %struct.VERTEX*, %struct.VERTEX** %740, align 4 964 %742 = icmp eq %struct.VERTEX* %741, %tree_addr.0.i 965 br i1 %742, label %bb5.loopexit, label %bb2 966 967bb2: 968 %ldo.07 = phi %struct.edge_rec* [ %747, %bb2 ], [ %ldo_addr.0.ph.i, %do_merge.exit ] 969 %743 = ptrtoint %struct.edge_rec* %ldo.07 to i32 970 %744 = xor i32 %743, 32 971 %745 = inttoptr i32 %744 to %struct.edge_rec* 972 %746 = getelementptr %struct.edge_rec, %struct.edge_rec* %745, i32 0, i32 1 973 %747 = load %struct.edge_rec*, %struct.edge_rec** %746, align 4 974 %748 = getelementptr %struct.edge_rec, %struct.edge_rec* %747, i32 0, i32 0 975 %749 = load %struct.VERTEX*, %struct.VERTEX** %748, align 4 976 %750 = icmp eq %struct.VERTEX* %749, %tree_addr.0.i 977 br i1 %750, label %bb5.loopexit, label %bb2 978 979bb4: 980 %rdo.05 = phi %struct.edge_rec* [ %755, %bb4 ], [ %rdo_addr.0.i, %bb5.loopexit ] 981 %751 = getelementptr %struct.edge_rec, %struct.edge_rec* %rdo.05, i32 0, i32 1 982 %752 = load %struct.edge_rec*, %struct.edge_rec** %751, align 4 983 %753 = ptrtoint %struct.edge_rec* %752 to i32 984 %754 = xor i32 %753, 32 985 %755 = inttoptr i32 %754 to %struct.edge_rec* 986 %756 = getelementptr %struct.edge_rec, %struct.edge_rec* %755, i32 0, i32 0 987 %757 = load %struct.VERTEX*, %struct.VERTEX** %756, align 4 988 %758 = icmp eq %struct.VERTEX* %757, %extra 989 br i1 %758, label %bb6, label %bb4 990 991bb5.loopexit: 992 %ldo.0.lcssa = phi %struct.edge_rec* [ %ldo_addr.0.ph.i, %do_merge.exit ], [ %747, %bb2 ] 993 %759 = getelementptr %struct.edge_rec, %struct.edge_rec* %rdo_addr.0.i, i32 0, i32 0 994 %760 = load %struct.VERTEX*, %struct.VERTEX** %759, align 4 995 %761 = icmp eq %struct.VERTEX* %760, %extra 996 br i1 %761, label %bb6, label %bb4 997 998bb6: 999 %rdo.0.lcssa = phi %struct.edge_rec* [ %rdo_addr.0.i, %bb5.loopexit ], [ %755, %bb4 ] 1000 %tmp16 = ptrtoint %struct.edge_rec* %ldo.0.lcssa to i32 1001 %tmp4 = ptrtoint %struct.edge_rec* %rdo.0.lcssa to i32 1002 br label %bb15 1003 1004bb7: 1005 %762 = getelementptr %struct.VERTEX, %struct.VERTEX* %tree, i32 0, i32 1 1006 %763 = load %struct.VERTEX*, %struct.VERTEX** %762, align 4 1007 %764 = icmp eq %struct.VERTEX* %763, null 1008 %765 = call %struct.edge_rec* @alloc_edge() nounwind 1009 %766 = getelementptr %struct.edge_rec, %struct.edge_rec* %765, i32 0, i32 1 1010 store %struct.edge_rec* %765, %struct.edge_rec** %766, align 4 1011 %767 = getelementptr %struct.edge_rec, %struct.edge_rec* %765, i32 0, i32 0 1012 br i1 %764, label %bb10, label %bb11 1013 1014bb8: 1015 %768 = call i32 @puts(i8* getelementptr ([21 x i8], [21 x i8]* @_2E_str7, i32 0, i32 0)) nounwind 1016 call void @exit(i32 -1) noreturn nounwind 1017 unreachable 1018 1019bb10: 1020 store %struct.VERTEX* %tree, %struct.VERTEX** %767, align 4 1021 %769 = ptrtoint %struct.edge_rec* %765 to i32 1022 %770 = add i32 %769, 16 1023 %771 = inttoptr i32 %770 to %struct.edge_rec* 1024 %772 = add i32 %769, 48 1025 %773 = inttoptr i32 %772 to %struct.edge_rec* 1026 %774 = getelementptr %struct.edge_rec, %struct.edge_rec* %771, i32 0, i32 1 1027 store %struct.edge_rec* %773, %struct.edge_rec** %774, align 4 1028 %775 = add i32 %769, 32 1029 %776 = inttoptr i32 %775 to %struct.edge_rec* 1030 %777 = getelementptr %struct.edge_rec, %struct.edge_rec* %776, i32 0, i32 1 1031 store %struct.edge_rec* %776, %struct.edge_rec** %777, align 4 1032 %778 = getelementptr %struct.edge_rec, %struct.edge_rec* %776, i32 0, i32 0 1033 store %struct.VERTEX* %extra, %struct.VERTEX** %778, align 4 1034 %779 = getelementptr %struct.edge_rec, %struct.edge_rec* %773, i32 0, i32 1 1035 store %struct.edge_rec* %771, %struct.edge_rec** %779, align 4 1036 %780 = xor i32 %769, 32 1037 br label %bb15 1038 1039bb11: 1040 store %struct.VERTEX* %763, %struct.VERTEX** %767, align 4 1041 %781 = ptrtoint %struct.edge_rec* %765 to i32 1042 %782 = add i32 %781, 16 1043 %783 = inttoptr i32 %782 to %struct.edge_rec* 1044 %784 = add i32 %781, 48 1045 %785 = inttoptr i32 %784 to %struct.edge_rec* 1046 %786 = getelementptr %struct.edge_rec, %struct.edge_rec* %783, i32 0, i32 1 1047 store %struct.edge_rec* %785, %struct.edge_rec** %786, align 4 1048 %787 = add i32 %781, 32 1049 %788 = inttoptr i32 %787 to %struct.edge_rec* 1050 %789 = getelementptr %struct.edge_rec, %struct.edge_rec* %788, i32 0, i32 1 1051 store %struct.edge_rec* %788, %struct.edge_rec** %789, align 4 1052 %790 = getelementptr %struct.edge_rec, %struct.edge_rec* %788, i32 0, i32 0 1053 store %struct.VERTEX* %tree, %struct.VERTEX** %790, align 4 1054 %791 = getelementptr %struct.edge_rec, %struct.edge_rec* %785, i32 0, i32 1 1055 store %struct.edge_rec* %783, %struct.edge_rec** %791, align 4 1056 %792 = call %struct.edge_rec* @alloc_edge() nounwind 1057 %793 = getelementptr %struct.edge_rec, %struct.edge_rec* %792, i32 0, i32 1 1058 store %struct.edge_rec* %792, %struct.edge_rec** %793, align 4 1059 %794 = getelementptr %struct.edge_rec, %struct.edge_rec* %792, i32 0, i32 0 1060 store %struct.VERTEX* %tree, %struct.VERTEX** %794, align 4 1061 %795 = ptrtoint %struct.edge_rec* %792 to i32 1062 %796 = add i32 %795, 16 1063 %797 = inttoptr i32 %796 to %struct.edge_rec* 1064 %798 = add i32 %795, 48 1065 %799 = inttoptr i32 %798 to %struct.edge_rec* 1066 %800 = getelementptr %struct.edge_rec, %struct.edge_rec* %797, i32 0, i32 1 1067 store %struct.edge_rec* %799, %struct.edge_rec** %800, align 4 1068 %801 = add i32 %795, 32 1069 %802 = inttoptr i32 %801 to %struct.edge_rec* 1070 %803 = getelementptr %struct.edge_rec, %struct.edge_rec* %802, i32 0, i32 1 1071 store %struct.edge_rec* %802, %struct.edge_rec** %803, align 4 1072 %804 = getelementptr %struct.edge_rec, %struct.edge_rec* %802, i32 0, i32 0 1073 store %struct.VERTEX* %extra, %struct.VERTEX** %804, align 4 1074 %805 = getelementptr %struct.edge_rec, %struct.edge_rec* %799, i32 0, i32 1 1075 store %struct.edge_rec* %797, %struct.edge_rec** %805, align 4 1076 %806 = xor i32 %781, 32 1077 %807 = inttoptr i32 %806 to %struct.edge_rec* 1078 %808 = getelementptr %struct.edge_rec, %struct.edge_rec* %807, i32 0, i32 1 1079 %809 = load %struct.edge_rec*, %struct.edge_rec** %808, align 4 1080 %810 = ptrtoint %struct.edge_rec* %809 to i32 1081 %811 = add i32 %810, 16 1082 %812 = and i32 %811, 63 1083 %813 = and i32 %810, -64 1084 %814 = or i32 %812, %813 1085 %815 = inttoptr i32 %814 to %struct.edge_rec* 1086 %816 = load %struct.edge_rec*, %struct.edge_rec** %793, align 4 1087 %817 = ptrtoint %struct.edge_rec* %816 to i32 1088 %818 = add i32 %817, 16 1089 %819 = and i32 %818, 63 1090 %820 = and i32 %817, -64 1091 %821 = or i32 %819, %820 1092 %822 = inttoptr i32 %821 to %struct.edge_rec* 1093 %823 = getelementptr %struct.edge_rec, %struct.edge_rec* %822, i32 0, i32 1 1094 %824 = load %struct.edge_rec*, %struct.edge_rec** %823, align 4 1095 %825 = getelementptr %struct.edge_rec, %struct.edge_rec* %815, i32 0, i32 1 1096 %826 = load %struct.edge_rec*, %struct.edge_rec** %825, align 4 1097 store %struct.edge_rec* %824, %struct.edge_rec** %825, align 4 1098 store %struct.edge_rec* %826, %struct.edge_rec** %823, align 4 1099 %827 = load %struct.edge_rec*, %struct.edge_rec** %808, align 4 1100 %828 = load %struct.edge_rec*, %struct.edge_rec** %793, align 4 1101 store %struct.edge_rec* %827, %struct.edge_rec** %793, align 4 1102 store %struct.edge_rec* %828, %struct.edge_rec** %808, align 4 1103 %829 = xor i32 %795, 32 1104 %830 = inttoptr i32 %829 to %struct.edge_rec* 1105 %831 = getelementptr %struct.edge_rec, %struct.edge_rec* %830, i32 0, i32 0 1106 %832 = load %struct.VERTEX*, %struct.VERTEX** %831, align 4 1107 %833 = and i32 %798, 63 1108 %834 = and i32 %795, -64 1109 %835 = or i32 %833, %834 1110 %836 = inttoptr i32 %835 to %struct.edge_rec* 1111 %837 = getelementptr %struct.edge_rec, %struct.edge_rec* %836, i32 0, i32 1 1112 %838 = load %struct.edge_rec*, %struct.edge_rec** %837, align 4 1113 %839 = ptrtoint %struct.edge_rec* %838 to i32 1114 %840 = add i32 %839, 16 1115 %841 = and i32 %840, 63 1116 %842 = and i32 %839, -64 1117 %843 = or i32 %841, %842 1118 %844 = inttoptr i32 %843 to %struct.edge_rec* 1119 %845 = load %struct.VERTEX*, %struct.VERTEX** %767, align 4 1120 %846 = call %struct.edge_rec* @alloc_edge() nounwind 1121 %847 = getelementptr %struct.edge_rec, %struct.edge_rec* %846, i32 0, i32 1 1122 store %struct.edge_rec* %846, %struct.edge_rec** %847, align 4 1123 %848 = getelementptr %struct.edge_rec, %struct.edge_rec* %846, i32 0, i32 0 1124 store %struct.VERTEX* %832, %struct.VERTEX** %848, align 4 1125 %849 = ptrtoint %struct.edge_rec* %846 to i32 1126 %850 = add i32 %849, 16 1127 %851 = inttoptr i32 %850 to %struct.edge_rec* 1128 %852 = add i32 %849, 48 1129 %853 = inttoptr i32 %852 to %struct.edge_rec* 1130 %854 = getelementptr %struct.edge_rec, %struct.edge_rec* %851, i32 0, i32 1 1131 store %struct.edge_rec* %853, %struct.edge_rec** %854, align 4 1132 %855 = add i32 %849, 32 1133 %856 = inttoptr i32 %855 to %struct.edge_rec* 1134 %857 = getelementptr %struct.edge_rec, %struct.edge_rec* %856, i32 0, i32 1 1135 store %struct.edge_rec* %856, %struct.edge_rec** %857, align 4 1136 %858 = getelementptr %struct.edge_rec, %struct.edge_rec* %856, i32 0, i32 0 1137 store %struct.VERTEX* %845, %struct.VERTEX** %858, align 4 1138 %859 = getelementptr %struct.edge_rec, %struct.edge_rec* %853, i32 0, i32 1 1139 store %struct.edge_rec* %851, %struct.edge_rec** %859, align 4 1140 %860 = load %struct.edge_rec*, %struct.edge_rec** %847, align 4 1141 %861 = ptrtoint %struct.edge_rec* %860 to i32 1142 %862 = add i32 %861, 16 1143 %863 = and i32 %862, 63 1144 %864 = and i32 %861, -64 1145 %865 = or i32 %863, %864 1146 %866 = inttoptr i32 %865 to %struct.edge_rec* 1147 %867 = getelementptr %struct.edge_rec, %struct.edge_rec* %844, i32 0, i32 1 1148 %868 = load %struct.edge_rec*, %struct.edge_rec** %867, align 4 1149 %869 = ptrtoint %struct.edge_rec* %868 to i32 1150 %870 = add i32 %869, 16 1151 %871 = and i32 %870, 63 1152 %872 = and i32 %869, -64 1153 %873 = or i32 %871, %872 1154 %874 = inttoptr i32 %873 to %struct.edge_rec* 1155 %875 = getelementptr %struct.edge_rec, %struct.edge_rec* %874, i32 0, i32 1 1156 %876 = load %struct.edge_rec*, %struct.edge_rec** %875, align 4 1157 %877 = getelementptr %struct.edge_rec, %struct.edge_rec* %866, i32 0, i32 1 1158 %878 = load %struct.edge_rec*, %struct.edge_rec** %877, align 4 1159 store %struct.edge_rec* %876, %struct.edge_rec** %877, align 4 1160 store %struct.edge_rec* %878, %struct.edge_rec** %875, align 4 1161 %879 = load %struct.edge_rec*, %struct.edge_rec** %847, align 4 1162 %880 = load %struct.edge_rec*, %struct.edge_rec** %867, align 4 1163 store %struct.edge_rec* %879, %struct.edge_rec** %867, align 4 1164 store %struct.edge_rec* %880, %struct.edge_rec** %847, align 4 1165 %881 = xor i32 %849, 32 1166 %882 = inttoptr i32 %881 to %struct.edge_rec* 1167 %883 = getelementptr %struct.edge_rec, %struct.edge_rec* %882, i32 0, i32 1 1168 %884 = load %struct.edge_rec*, %struct.edge_rec** %883, align 4 1169 %885 = ptrtoint %struct.edge_rec* %884 to i32 1170 %886 = add i32 %885, 16 1171 %887 = and i32 %886, 63 1172 %888 = and i32 %885, -64 1173 %889 = or i32 %887, %888 1174 %890 = inttoptr i32 %889 to %struct.edge_rec* 1175 %891 = load %struct.edge_rec*, %struct.edge_rec** %766, align 4 1176 %892 = ptrtoint %struct.edge_rec* %891 to i32 1177 %893 = add i32 %892, 16 1178 %894 = and i32 %893, 63 1179 %895 = and i32 %892, -64 1180 %896 = or i32 %894, %895 1181 %897 = inttoptr i32 %896 to %struct.edge_rec* 1182 %898 = getelementptr %struct.edge_rec, %struct.edge_rec* %897, i32 0, i32 1 1183 %899 = load %struct.edge_rec*, %struct.edge_rec** %898, align 4 1184 %900 = getelementptr %struct.edge_rec, %struct.edge_rec* %890, i32 0, i32 1 1185 %901 = load %struct.edge_rec*, %struct.edge_rec** %900, align 4 1186 store %struct.edge_rec* %899, %struct.edge_rec** %900, align 4 1187 store %struct.edge_rec* %901, %struct.edge_rec** %898, align 4 1188 %902 = load %struct.edge_rec*, %struct.edge_rec** %883, align 4 1189 %903 = load %struct.edge_rec*, %struct.edge_rec** %766, align 4 1190 store %struct.edge_rec* %902, %struct.edge_rec** %766, align 4 1191 store %struct.edge_rec* %903, %struct.edge_rec** %883, align 4 1192 %904 = getelementptr %struct.VERTEX, %struct.VERTEX* %763, i32 0, i32 0, i32 0 1193 %905 = load double, double* %904, align 4 1194 %906 = getelementptr %struct.VERTEX, %struct.VERTEX* %763, i32 0, i32 0, i32 1 1195 %907 = load double, double* %906, align 4 1196 %908 = getelementptr %struct.VERTEX, %struct.VERTEX* %extra, i32 0, i32 0, i32 0 1197 %909 = load double, double* %908, align 4 1198 %910 = getelementptr %struct.VERTEX, %struct.VERTEX* %extra, i32 0, i32 0, i32 1 1199 %911 = load double, double* %910, align 4 1200 %912 = getelementptr %struct.VERTEX, %struct.VERTEX* %tree, i32 0, i32 0, i32 0 1201 %913 = load double, double* %912, align 4 1202 %914 = getelementptr %struct.VERTEX, %struct.VERTEX* %tree, i32 0, i32 0, i32 1 1203 %915 = load double, double* %914, align 4 1204 %916 = fsub double %905, %913 1205 %917 = fsub double %911, %915 1206 %918 = fmul double %916, %917 1207 %919 = fsub double %909, %913 1208 %920 = fsub double %907, %915 1209 %921 = fmul double %919, %920 1210 %922 = fsub double %918, %921 1211 %923 = fcmp ogt double %922, 0.000000e+00 1212 br i1 %923, label %bb15, label %bb13 1213 1214bb13: 1215 %924 = fsub double %905, %909 1216 %925 = fsub double %915, %911 1217 %926 = fmul double %924, %925 1218 %927 = fsub double %913, %909 1219 %928 = fsub double %907, %911 1220 %929 = fmul double %927, %928 1221 %930 = fsub double %926, %929 1222 %931 = fcmp ogt double %930, 0.000000e+00 1223 br i1 %931, label %bb15, label %bb14 1224 1225bb14: 1226 %932 = and i32 %850, 63 1227 %933 = and i32 %849, -64 1228 %934 = or i32 %932, %933 1229 %935 = inttoptr i32 %934 to %struct.edge_rec* 1230 %936 = getelementptr %struct.edge_rec, %struct.edge_rec* %935, i32 0, i32 1 1231 %937 = load %struct.edge_rec*, %struct.edge_rec** %936, align 4 1232 %938 = ptrtoint %struct.edge_rec* %937 to i32 1233 %939 = add i32 %938, 16 1234 %940 = and i32 %939, 63 1235 %941 = and i32 %938, -64 1236 %942 = or i32 %940, %941 1237 %943 = inttoptr i32 %942 to %struct.edge_rec* 1238 %944 = load %struct.edge_rec*, %struct.edge_rec** %847, align 4 1239 %945 = ptrtoint %struct.edge_rec* %944 to i32 1240 %946 = add i32 %945, 16 1241 %947 = and i32 %946, 63 1242 %948 = and i32 %945, -64 1243 %949 = or i32 %947, %948 1244 %950 = inttoptr i32 %949 to %struct.edge_rec* 1245 %951 = getelementptr %struct.edge_rec, %struct.edge_rec* %943, i32 0, i32 1 1246 %952 = load %struct.edge_rec*, %struct.edge_rec** %951, align 4 1247 %953 = ptrtoint %struct.edge_rec* %952 to i32 1248 %954 = add i32 %953, 16 1249 %955 = and i32 %954, 63 1250 %956 = and i32 %953, -64 1251 %957 = or i32 %955, %956 1252 %958 = inttoptr i32 %957 to %struct.edge_rec* 1253 %959 = getelementptr %struct.edge_rec, %struct.edge_rec* %958, i32 0, i32 1 1254 %960 = load %struct.edge_rec*, %struct.edge_rec** %959, align 4 1255 %961 = getelementptr %struct.edge_rec, %struct.edge_rec* %950, i32 0, i32 1 1256 %962 = load %struct.edge_rec*, %struct.edge_rec** %961, align 4 1257 store %struct.edge_rec* %960, %struct.edge_rec** %961, align 4 1258 store %struct.edge_rec* %962, %struct.edge_rec** %959, align 4 1259 %963 = load %struct.edge_rec*, %struct.edge_rec** %847, align 4 1260 %964 = load %struct.edge_rec*, %struct.edge_rec** %951, align 4 1261 store %struct.edge_rec* %963, %struct.edge_rec** %951, align 4 1262 store %struct.edge_rec* %964, %struct.edge_rec** %847, align 4 1263 %965 = add i32 %881, 16 1264 %966 = and i32 %965, 63 1265 %967 = or i32 %966, %933 1266 %968 = inttoptr i32 %967 to %struct.edge_rec* 1267 %969 = getelementptr %struct.edge_rec, %struct.edge_rec* %968, i32 0, i32 1 1268 %970 = load %struct.edge_rec*, %struct.edge_rec** %969, align 4 1269 %971 = ptrtoint %struct.edge_rec* %970 to i32 1270 %972 = add i32 %971, 16 1271 %973 = and i32 %972, 63 1272 %974 = and i32 %971, -64 1273 %975 = or i32 %973, %974 1274 %976 = inttoptr i32 %975 to %struct.edge_rec* 1275 %977 = load %struct.edge_rec*, %struct.edge_rec** %883, align 4 1276 %978 = ptrtoint %struct.edge_rec* %977 to i32 1277 %979 = add i32 %978, 16 1278 %980 = and i32 %979, 63 1279 %981 = and i32 %978, -64 1280 %982 = or i32 %980, %981 1281 %983 = inttoptr i32 %982 to %struct.edge_rec* 1282 %984 = getelementptr %struct.edge_rec, %struct.edge_rec* %976, i32 0, i32 1 1283 %985 = load %struct.edge_rec*, %struct.edge_rec** %984, align 4 1284 %986 = ptrtoint %struct.edge_rec* %985 to i32 1285 %987 = add i32 %986, 16 1286 %988 = and i32 %987, 63 1287 %989 = and i32 %986, -64 1288 %990 = or i32 %988, %989 1289 %991 = inttoptr i32 %990 to %struct.edge_rec* 1290 %992 = getelementptr %struct.edge_rec, %struct.edge_rec* %991, i32 0, i32 1 1291 %993 = load %struct.edge_rec*, %struct.edge_rec** %992, align 4 1292 %994 = getelementptr %struct.edge_rec, %struct.edge_rec* %983, i32 0, i32 1 1293 %995 = load %struct.edge_rec*, %struct.edge_rec** %994, align 4 1294 store %struct.edge_rec* %993, %struct.edge_rec** %994, align 4 1295 store %struct.edge_rec* %995, %struct.edge_rec** %992, align 4 1296 %996 = load %struct.edge_rec*, %struct.edge_rec** %883, align 4 1297 %997 = load %struct.edge_rec*, %struct.edge_rec** %984, align 4 1298 store %struct.edge_rec* %996, %struct.edge_rec** %984, align 4 1299 store %struct.edge_rec* %997, %struct.edge_rec** %883, align 4 1300 %998 = inttoptr i32 %933 to %struct.edge_rec* 1301 %999 = load %struct.edge_rec*, %struct.edge_rec** @avail_edge, align 4 1302 %1000 = getelementptr %struct.edge_rec, %struct.edge_rec* %998, i32 0, i32 1 1303 store %struct.edge_rec* %999, %struct.edge_rec** %1000, align 4 1304 store %struct.edge_rec* %998, %struct.edge_rec** @avail_edge, align 4 1305 br label %bb15 1306 1307bb15: 1308 %retval.1.0 = phi i32 [ %780, %bb10 ], [ %829, %bb13 ], [ %829, %bb14 ], [ %tmp4, %bb6 ], [ %849, %bb11 ] 1309 %retval.0.0 = phi i32 [ %769, %bb10 ], [ %781, %bb13 ], [ %781, %bb14 ], [ %tmp16, %bb6 ], [ %881, %bb11 ] 1310 %agg.result162 = bitcast %struct.EDGE_PAIR* %agg.result to i64* 1311 %1001 = zext i32 %retval.0.0 to i64 1312 %1002 = zext i32 %retval.1.0 to i64 1313 %1003 = shl i64 %1002, 32 1314 %1004 = or i64 %1003, %1001 1315 store i64 %1004, i64* %agg.result162, align 4 1316 ret void 1317} 1318 1319; CHECK-LABEL: _build_delaunay: 1320; CHECK: vcmp 1321; CHECK: vcmp 1322; CHECK: vcmp 1323; CHECK: vcmp 1324; CHECK: vcmp 1325; CHECK: vcmp 1326; CHECK: vcmp 1327; CHECK: vcmp 1328; CHECK: vcmp 1329; CHECK: vcmp 1330; CHECK: vcmp 1331; CHECK: vcmp 1332; CHECK: vcmp 1333 1334declare i32 @puts(i8* nocapture) nounwind 1335 1336declare void @exit(i32) noreturn nounwind 1337 1338declare %struct.edge_rec* @alloc_edge() nounwind 1339