Commit af69ce2a authored by Michael Beck's avatar Michael Beck
Browse files

- Condeval places a Phi in a wrong block, see the AddP

  generated for line 12

[r22508]
parent c6e85785
/*$ -fconfirm -fcond-eval $*/
int test(int lnWrd, int *ptExp) {
int idx = 0;
while ( lnWrd > 0 ) {
if ( *ptExp ) {
*ptExp = 0;
lnWrd--;
}
idx++;
ptExp++;
}
return idx;
}
int arr[] = { 1, 0, 0, 0, 2, 3, 4};
int main(int argc, char *argv[]) {
int x = test(3, arr);
printf("%d\n", x);
return 0;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment