"Compiler Error Source Reducer (CESR) is a set of utilities which are
useful individually
or collectively in gathering, reducing, pinpointing, protecting,
documenting, and
bundling test cases comprised of C/C++ or Fortran source code. It can
be helpful if
you have a large application for which you want to extract a small test
case for
submission to Intel® Premier Support. CESR can be downloaded from
Intel® Premier
Support File Downloads - search for text CESR in the file description.
CESR is
unsupported and should be considered experimental, but we welcome your
feedback
on it through Intel® Premier Support. CESR requires prior installation
of Python 2.2 or
newer."
I think one needs to qualify for "Intel Premier Support" to get CESR. I
wonder if a similar open-source Python program exists.
I can't answer your question, but if you are searching it may be
helpful to know that the relevant phrase is probably "program slicing".