Closed fshaked closed 3 years ago
@alastairreid, note that --replace-backend-flags doesn't pass Opt::args
to the verified program, because there is no simple way to do it (will need a handlebar template that expands to Vec
Just before I dive into the code...
Passing args to the program is a really useful capability - it's fundamental for finding bugs in standalone programs like uutils/coreutils. So I would really not like to lose that capability.
Following on from my previous comment... If this changes how arguments are passed to programs, does this require a change to scripts/regression-tests or do those tests (especially of demos/simple/argv) still pass?
If this changes how arguments are passed to programs, does this require a change to scripts/regression-tests or do those tests (especially of demos/simple/argv) still pass?
This PR doesn't change anything if you don't use --replace-backend-flags
on the command line. So script/regression-tests should be unaffected.
I will add to regression-tests something that uses --replace-backend-flags
.
Also add Handlebar templates to --backend-flags.