https://github.com/dddejan/chctranslate
Right?
According to the readme, it seems to be more than a translation as it produces a version that's not equivalent (although equi-satisfiable). Are we fine with this?
I modified the code from @dddejan (thanks!) so that it formats the benchmarks. I think the options I use currently produce equivalent benchmarks.
Further testing is needed, but for now I'd like to put it on a repo somewhere. Should I submit a PR to @dddejan 's repo or create one on chc-comp? Or something else?
Can someone take a look at the code checking the clauses or play with it a bit to find stupid mistakes (if any)?
I ran it on all the benchmarks from https://github.com/chc-comp/hopv and it looks fine so far. I'll run on other bench repos later.
(let ((a!1 (and <tail>))) (=> a!1 <head>))
chc_tail ::=
| (and (u_predicate var+)* i_formula*)
(u_predicate var*)
needs to be changed to (u_predicate var+)
everywhere.)