Files
clang-p2996/llvm/test/Reduce/Inputs/remove-funcs.py
Diego Trevino Ferrer ddc64eb948 Added Delta IR Reduction Tool
Summary: Tool parses input IR file, and runs the delta debugging algorithm to reduce the functions inside the input file.

Reviewers: alexshap, chandlerc

Subscribers: mgorny, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D63672

> llvm-svn: 368071

llvm-svn: 368358
2019-08-08 22:16:33 +00:00

11 lines
166 B
Python
Executable File

#!/usr/bin/env python
import sys
input = open(sys.argv[1], "r")
for line in input:
if "@interesting" in line:
sys.exit(0)
sys.exit(1) # IR isn't interesting