; ModuleID = '<stdin>'
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
target triple = "i386-pc-linux-gnu"
	%llvm.dbg.anchor.type = type { i32, i32 }
	%llvm.dbg.basictype.type = type { i32, { }*, i8*, { }*, i32, i64, i64, i64, i32, i32 }
	%llvm.dbg.compile_unit.type = type { i32, { }*, i32, i8*, i8*, i8*, i1, i1, i8*, i32 }
	%llvm.dbg.composite.type = type { i32, { }*, i8*, { }*, i32, i64, i64, i64, i32, { }*, { }*, i32 }
	%llvm.dbg.subprogram.type = type { i32, { }*, { }*, i8*, i8*, i8*, { }*, i32, { }*, i1, i1 }
	%llvm.dbg.variable.type = type { i32, { }*, i8*, { }*, i32, { }* }
@llvm.dbg.compile_units = linkonce constant %llvm.dbg.anchor.type { i32 458752, i32 17 }, section "llvm.metadata"		; <%llvm.dbg.anchor.type*> [#uses=1]
@.str = internal constant [7 x i8] c"loop.c\00", section "llvm.metadata"		; <[7 x i8]*> [#uses=1]
@.str1 = internal constant [38 x i8] c"/developer/home2/zsth/test/debug/tmp/\00", section "llvm.metadata"		; <[38 x i8]*> [#uses=1]
@.str2 = internal constant [52 x i8] c"4.2.1 (Based on Apple Inc. build 5641) (LLVM build)\00", section "llvm.metadata"		; <[52 x i8]*> [#uses=1]
@llvm.dbg.compile_unit = internal constant %llvm.dbg.compile_unit.type { i32 458769, { }* bitcast (%llvm.dbg.anchor.type* @llvm.dbg.compile_units to { }*), i32 1, i8* getelementptr ([7 x i8]* @.str, i32 0, i32 0), i8* getelementptr ([38 x i8]* @.str1, i32 0, i32 0), i8* getelementptr ([52 x i8]* @.str2, i32 0, i32 0), i1 true, i1 false, i8* null, i32 -1 }, section "llvm.metadata"		; <%llvm.dbg.compile_unit.type*> [#uses=1]
@.str3 = internal constant [4 x i8] c"int\00", section "llvm.metadata"		; <[4 x i8]*> [#uses=1]
@llvm.dbg.basictype = internal constant %llvm.dbg.basictype.type { i32 458788, { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*), i8* getelementptr ([4 x i8]* @.str3, i32 0, i32 0), { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*), i32 0, i64 32, i64 32, i64 0, i32 0, i32 5 }, section "llvm.metadata"		; <%llvm.dbg.basictype.type*> [#uses=1]
@llvm.dbg.array = internal constant [3 x { }*] [{ }* bitcast (%llvm.dbg.basictype.type* @llvm.dbg.basictype to { }*), { }* bitcast (%llvm.dbg.basictype.type* @llvm.dbg.basictype to { }*), { }* bitcast (%llvm.dbg.basictype.type* @llvm.dbg.basictype to { }*)], section "llvm.metadata"		; <[3 x { }*]*> [#uses=1]
@llvm.dbg.composite = internal constant %llvm.dbg.composite.type { i32 458773, { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*), i8* null, { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*), i32 0, i64 0, i64 0, i64 0, i32 0, { }* null, { }* bitcast ([3 x { }*]* @llvm.dbg.array to { }*), i32 0 }, section "llvm.metadata"		; <%llvm.dbg.composite.type*> [#uses=1]
@llvm.dbg.subprograms = linkonce constant %llvm.dbg.anchor.type { i32 458752, i32 46 }, section "llvm.metadata"		; <%llvm.dbg.anchor.type*> [#uses=1]
@.str4 = internal constant [4 x i8] c"foo\00", section "llvm.metadata"		; <[4 x i8]*> [#uses=1]
@llvm.dbg.subprogram = internal constant %llvm.dbg.subprogram.type { i32 458798, { }* bitcast (%llvm.dbg.anchor.type* @llvm.dbg.subprograms to { }*), { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*), i8* getelementptr ([4 x i8]* @.str4, i32 0, i32 0), i8* getelementptr ([4 x i8]* @.str4, i32 0, i32 0), i8* null, { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*), i32 1, { }* bitcast (%llvm.dbg.composite.type* @llvm.dbg.composite to { }*), i1 false, i1 true }, section "llvm.metadata"		; <%llvm.dbg.subprogram.type*> [#uses=1]

define i32 @foo(i32 %x, i32 %y) nounwind {
entry:
	tail call void @llvm.dbg.func.start({ }* bitcast (%llvm.dbg.subprogram.type* @llvm.dbg.subprogram to { }*))
	tail call void @llvm.dbg.stoppoint(i32 4, i32 0, { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*))
	%0 = icmp sgt i32 %y, %x		; <i1> [#uses=1]
	br i1 %0, label %entry.bb5_crit_edge, label %bb3.preheader

entry.bb5_crit_edge:		; preds = %entry
	br label %bb5

bb3.preheader:		; preds = %entry
	tail call void @llvm.dbg.stoppoint(i32 6, i32 0, { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*))
	%1 = icmp sgt i32 %x, 0		; <i1> [#uses=1]
	br i1 %1, label %bb.nph, label %bb3.preheader.bb5.loopexit_crit_edge

bb3.preheader.bb5.loopexit_crit_edge:		; preds = %bb3.preheader
	br label %bb5.loopexit

bb.nph:		; preds = %bb3.preheader
	br label %bb2

bb2:		; preds = %bb2.bb2_crit_edge, %bb.nph
	%i.02 = phi i32 [ 0, %bb.nph ], [ %indvar.next, %bb2.bb2_crit_edge ]		; <i32> [#uses=1]
	tail call void @llvm.dbg.stoppoint(i32 7, i32 0, { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*))
	tail call void @llvm.dbg.stoppoint(i32 6, i32 0, { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*))
	%indvar.next = add i32 %i.02, 1		; <i32> [#uses=2]
	%exitcond = icmp eq i32 %indvar.next, %x		; <i1> [#uses=1]
	br i1 %exitcond, label %bb3.bb5.loopexit_crit_edge, label %bb2.bb2_crit_edge

bb2.bb2_crit_edge:		; preds = %bb2
	br label %bb2

bb3.bb5.loopexit_crit_edge:		; preds = %bb2
	%tmp = add i32 %x, -1		; <i32> [#uses=2]
	%tmp4 = add i32 %x, %y		; <i32> [#uses=1]
	%tmp5 = mul i32 %tmp, %tmp4		; <i32> [#uses=1]
	%tmp6 = add i32 %tmp5, %x		; <i32> [#uses=1]
	%tmp7 = add i32 %x, -2		; <i32> [#uses=1]
	%tmp. = zext i32 %tmp7 to i33		; <i33> [#uses=1]
	%tmp.8 = zext i32 %tmp to i33		; <i33> [#uses=1]
	%tmp9 = mul i33 %tmp., %tmp.8		; <i33> [#uses=1]
	%tmp10 = lshr i33 %tmp9, 1		; <i33> [#uses=1]
	%tmp.11 = trunc i33 %tmp10 to i32		; <i32> [#uses=1]
	%tmp12 = mul i32 %tmp.11, %y		; <i32> [#uses=1]
	%tmp13 = add i32 %tmp6, %tmp12		; <i32> [#uses=1]
	br label %bb5.loopexit

bb5.loopexit:		; preds = %bb3.bb5.loopexit_crit_edge, %bb3.preheader.bb5.loopexit_crit_edge
	%z.0.lcssa = phi i32 [ %tmp13, %bb3.bb5.loopexit_crit_edge ], [ 0, %bb3.preheader.bb5.loopexit_crit_edge ]		; <i32> [#uses=1]
	br label %bb5

bb5:		; preds = %bb5.loopexit, %entry.bb5_crit_edge
	%.0 = phi i32 [ 0, %entry.bb5_crit_edge ], [ %z.0.lcssa, %bb5.loopexit ]		; <i32> [#uses=1]
	tail call void @llvm.dbg.stoppoint(i32 10, i32 0, { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*))
	tail call void @llvm.dbg.region.end({ }* bitcast (%llvm.dbg.subprogram.type* @llvm.dbg.subprogram to { }*))
	ret i32 %.0
}

declare void @llvm.dbg.func.start({ }*) nounwind

declare void @llvm.dbg.stoppoint(i32, i32, { }*) nounwind

declare void @llvm.dbg.region.end({ }*) nounwind
