Skip to main content

roundtrip_through_source

Function roundtrip_through_source 

Source
pub fn roundtrip_through_source(
    input: &Path,
    output: &Path,
) -> Result<SourceRoundTripReport, SourceRoundTripError>
Expand description

Run input through the full source pipeline: decompile → text → parse → verify_asm → lower_to_elf → write.

Always emits the rebuilt binary. Verification warnings are collected in the report and don’t fail the call. Byte differences between input and rebuilt also don’t fail the call — they appear in the report so the caller can decide what to do (warn, abort, persist anyway).