aantron / bisect_ppx

Code coverage for OCaml and ReScript
http://aantron.github.io/bisect_ppx/demo/
MIT License
302 stars 60 forks source link

Don't suppress TRMC optimization #424

Open aantron opened 1 year ago

aantron commented 1 year ago

In https://github.com/aantron/bisect_ppx/issues/423#issuecomment-1640970471:

Bisect tries to instrument after an application expression, but not when the application expression is in tail position, because that would ruin tail call optimization and change the stack semantics of programs.

Related to that, it may be a good idea to give the same treatment to TRMC calls as the instrumentation currently inhibits the transformation (and triggers a warning 71).