mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-24 22:08:57 -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
15 lines
414 B
C
15 lines
414 B
C
#include "header.h"
|
|
|
|
int f(int coin) {
|
|
char *p = 0;
|
|
if (coin) {
|
|
return helper(p, coin);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
// RUN: rm -rf %t.output
|
|
// RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core -analyzer-output html -o %t.output %s
|
|
// RUN: cat %t.output/* | FileCheck %s --match-full-lines
|
|
// CHECK: var relevant_lines = {"1": {"3": 1, "4": 1, "5": 1, "6": 1}, "3": {"3": 1, "4": 1, "5": 1, "6": 1, "7": 1}};
|