search (...)
    -> (int search_{res_code} = 0)
{
  ...

  for (i = 0; i < x; i ++)
  {
    ...

    if (...) <leave> *.break;
    if (...) <leave> *.return, i .search_{res_code};
  }
                                                                               <- .break;     
  ;
                                                                               <- .return;     
}
/
{
  ...
}