Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: more robust output format for dpdusage #63

Open
chdoc opened this issue Apr 5, 2019 · 1 comment
Open

feature request: more robust output format for dpdusage #63

chdoc opened this issue Apr 5, 2019 · 1 comment

Comments

@chdoc
Copy link
Member

chdoc commented Apr 5, 2019

Currently, dpdusage prints unused lemmas in an unspecified order that can change unpredictably when including another module in the analysis. In my current use-case (moving a theorem and everything only used to prove this theorem to a separate file) I was interested in the diff between the unused lemmas with and without the extra file. This required a sorted output without the Info line.

A typical invocation of dpdusage might thus look as follows:

dpdusage graph.dpd | grep -v '^Info:' | sed 's/\([^ :]*\):\([^\t]*\).*$/\1.\2/' | sort

(the use of . over : simplyfies copying lemma names into a "whitelist definition" as a hack until #14 is merged)

@Karmaki
Copy link
Collaborator

Karmaki commented Apr 5, 2019

OK. I'll see if I can add more features to dpdusage to match your needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants