Created attachment 21281
A tar of the folder containing the RAV code as well as some test cases
The buildDominatorTree function gives a segmentation fault when trying to build
a dominator tree within a RecursiveASTVisitor Visit function for a code
containing an infinite loop (specifically where the condition is 1) like this
code-
int main() {
int x, y, z;
x = 10;
while(1) {
x++;
if(x == 100) {
break;
}
}
return 0;
}
Assigning the value 1 to a variable and using the variable as a condition does
not cause an issue-
int main() {
int x, y, z;
x = 10;
y = 1;
while(y) {
x++;
if(x == 100) {
break;
}
}
return 0;
}
The code for reproducing the error as well as the test cases are in the tar file
Found when using Clang 7 and LLVM 7 installed from the Debian packages
domtreebug.tar.gz
(1512 bytes, application/gzip)