1 ; RUN: opt -indvars -scalar-evolution -analyze %s
2 ; This test checks if the SCEV analysis is printed out at all.
3 ; It failed once as the RequiredTransitive option was not implemented
6 define i32 @main() nounwind {
10 for.cond: ; preds = %for.inc, %entry
11 %indvar1 = phi i64 [ %indvar.next2, %for.inc ], [ 0, %entry ] ; <i64> [#uses=3]
12 %exitcond = icmp ne i64 %indvar1, 1024 ; <i1> [#uses=1]
13 br i1 %exitcond, label %for.body, label %for.end
15 for.body: ; preds = %for.cond
18 for.inc: ; preds = %for.body
19 %indvar.next2 = add i64 %indvar1, 1 ; <i64> [#uses=1]
22 for.end: ; preds = %for.cond