public void chkForIf(List<Element> code)
{
for (int i = 0; i < code.Count; i++)
{
if (code[i] is IfStatementElement)
{
IfStatementElement if_elem = (IfStatementElement)code[i];
if_elem.ChkforParallel();
}
if (code[i] is ForStatementElement)
{
ForStatementElement for_elem = (ForStatementElement)code[i];
for_elem.ChkforParallel();
}
}
}
}