include rt; include run; include icon; // replace an o3 function and call it directly (entry via the patched prologue), // after warming the compiled region so the store must drop it. o3 int target() { return 1; } fn main() { int i, s = 0; for (i = 0; i < 100; i++) s += target(); rt.put_n(s); rt.put_c(' '); let one = run.tokens("1"), two = run.tokens("2"); rt.put_n(icon.find_replace(target, one, two)); rt.put_c(' '); s = 0; for (i = 0; i < 100; i++) s += target(); rt.put_n(s); rt.put_c(10); return 0; }