smartnic / superopt

A superoptimizing compiler for packet-processing
MIT License
30 stars 3 forks source link

Identifying independent unsafe behaviors #112

Open vaishnaviMG15 opened 2 years ago

vaishnaviMG15 commented 2 years ago

Is any program state maintained by the compiler (e.g., safe offsets for each pointer, etc.) changed by the safety_chk_insn function? If so, it would be useful to understand the implications of pushing on with program checking even after encountering one unsafe instruction. If the function is entirely stateless (not changing any program state), it would help noting that down explicitly in a comment.

_Originally posted by @ngsrinivas in https://github.com/smartnic/superopt/pull/111#discussion_r937194712_