#ifndef INCLUDED_GENERATOR_H #define INCLUDED_GENERATOR_H #include "compensations.h" #include "arena.h" struct replacement { struct sv old; // replace this struct sv new; // with this }; struct replacements { struct replacement *items; uint32_t count; uint32_t capacity; }; struct replacements generate_replacements (struct arena *, const struct compensations *); void write_code_with_replacements (int fd, struct sv original, const struct replacements *); #endif // INCLUDED_GENERATOR_H