1 ; RUN: llvm-reduce --test FileCheck --test-arg --check-prefixes=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t 2>&1 | FileCheck %s --check-prefix=CHECK-LOG
2 ; RUN: FileCheck --check-prefixes=CHECK-FINAL --input-file=%t %s
4 ; CHECK-INTERESTINGNESS: ret i32
5 ; CHECK-FINAL: ret i32 0
7 ; Test that we don't invoke the oracle more than necessary (e.g. check the
8 ; oracle then perform some failable/redundant reduction, as opposed to check if
9 ; a reduction will fail/be redundant before invoking the oracle). This prevents
10 ; overestimation of the number of possible reductions and the number of times we
14 ; CHECK-LOG: Saved new best reduction
16 ; CHECK-LOG: Saved new best reduction
18 ; CHECK-LOG: Saved new best reduction
19 ; CHECK-LOG-NOT: Saved new best reduction