mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-27 07:19:03 -04:00

HTML diagnostics can be an overwhelming blob of pages of code. This patch adds a checkbox which filters this list down to only the lines *relevant* to the counterexample by e.g. skipping branches which analyzer has assumed to be infeasible at a time. The resulting amount of output is much smaller, and often fits on one screen, and also provides a much more readable diagnostics. Differential Revision: https://reviews.llvm.org/D41378 llvm-svn: 322612
13 lines
169 B
C
13 lines
169 B
C
#define deref(X) (*X)
|
|
|
|
char helper(
|
|
char *out,
|
|
int doDereference) {
|
|
if (doDereference) {
|
|
return deref(out);
|
|
} else {
|
|
return 'x';
|
|
}
|
|
return 'c';
|
|
}
|