1 ; RUN: llvm-upgrade < %s | llvm-as | opt -indvars -disable-output
3 %struct.p7prior_s = type { int, int, [200 x float], [200 x [7 x float]], int, [200 x float], [200 x [20 x float]], int, [200 x float], [200 x [20 x float]] }
5 implementation ; Functions:
7 void %P7DefaultPrior() {
9 switch int 0, label %UnifiedReturnBlock [
15 br bool false, label %cond_true.i, label %sre_malloc.exit
17 cond_true.i: ; preds = %bb
20 sre_malloc.exit: ; preds = %bb
23 cond_true: ; preds = %cond_true66, %cond_true, %sre_malloc.exit
24 %tmp59 = phi int [ 1, %sre_malloc.exit ], [ %phitmp, %cond_true66 ], [ %tmp59, %cond_true ] ; <int> [#uses=2]
25 %indvar245.0.ph = phi uint [ 0, %sre_malloc.exit ], [ %indvar.next246, %cond_true66 ], [ %indvar245.0.ph, %cond_true ] ; <uint> [#uses=2]
26 br bool false, label %bb57, label %cond_true
28 bb57: ; preds = %cond_true
29 %tmp65 = setgt int 0, %tmp59 ; <bool> [#uses=1]
30 %indvar.next246 = add uint %indvar245.0.ph, 1 ; <uint> [#uses=2]
31 br bool %tmp65, label %cond_true66, label %bb69
33 cond_true66: ; preds = %bb57
34 %q.1.0 = cast uint %indvar.next246 to int ; <int> [#uses=1]
35 %phitmp = add int %q.1.0, 1 ; <int> [#uses=1]
41 bb160: ; preds = %entry
44 UnifiedReturnBlock: ; preds = %entry