1 ; RUN: opt %loadPolly -polly-detect -analyze < %s
3 ; Verify that the scop detection does not crash on inputs with unreachable
4 ; blocks. Earlier we crashed when detecting error blocks.
6 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
7 target triple = "x86_64-unknown-linux-gnu"
9 ; Function Attrs: nounwind uwtable
14 while.cond: ; preds = %for.end, %entry
15 br i1 false, label %for.end, label %while.end8
17 while.cond1: ; preds = %while.cond4
18 br i1 undef, label %while.body3, label %for.inc
20 while.body3: ; preds = %while.cond1
23 while.cond4: ; preds = %while.cond4, %while.body3
24 br i1 undef, label %while.cond4, label %while.cond1
26 for.inc: ; preds = %while.cond1
27 %conv = zext i16 undef to i32
30 for.end: ; preds = %for.inc, %while.cond
31 %conv.sink = phi i32 [ %conv, %for.inc ], [ 0, %while.cond ]
34 while.end8: ; preds = %while.cond