lib: support instruction that overwrites input
0.3.8