Closed lzaoral closed 1 year ago
Will there be any new commits as this is still a draft?
Yes, at least the ones adding options mentioned in https://github.com/staticafi/sbt-slicer/pull/8#discussion_r877036939.
Unfortunately, I don't think it's that easy to remove the whole cutoffDivering
code block without additional major changes due to the following lines: https://github.com/mchalupa/dg/blob/28f822ef5520f230060ce5b557e2c4d926ad76ec/tools/llvm-slicer.cpp#L201-L202
maybe_print_statistics
is static
. But that's just a minor issue as it could be easily moved to llvm-slicer-utils.cpp
.writer
inside of the slicer
as these classes do different stuff and also, if we would call it from slicer, I can't think of any nice way to let the caller know, whether the slicing failed, whether it was successful or an empty main was created.EDIT: If you have an idea, fell free to change the contents of this branch. I'm rather busy at the moment, so I don't know when I will have the time to look at it again.
I guess this can be marked as ready for review?
Nice, the macOS jobs are compiling again 💪🏻.
Blocks: https://github.com/staticafi/sbt-slicer/pull/8