Lines Matching refs:fn
155 int fn = old_func + random() % FUNCSPACING + 1; in gs() local
156 funcs[i] = fn; in gs()
161 || !base_present[ret_type][ret_types[s][fn]]) in gs()
162 if (ret_types[s][fn]) { in gs()
164 ret_types[s][fn], fn); in gs()
165 ret_type = ret_types[s][fn]; in gs()
169 printf(" // Wow found one for s%d for fun%d.\n", s, fn); in gs()
170 ret_types[s][fn] = ret_type; in gs()
176 … g(fn); g("(char *t) { mix(\"vfn this offset\", (char *)this - t); mix(\"vfn uuid\", "); g(++uuid); in gs()
181 final_override[s][fn] = s; in gs()
182 old_func = fn; in gs()
189 for (int fn = 0; fn < N_FUNCS*FUNCSPACING; ++fn) { in gs() local
191 int new_base = final_override[base][fn]; in gs()
196 int prev_base = final_override[s][fn]; in gs()
207 final_override[s][fn] = new_base; in gs()
214 fn, s, prev_base, new_base); in gs()
221 fn, s, new_base, prev_base); in gs()
223 final_override[s][fn] = new_base; in gs()
227 printf(" // Found we needed override for fun%d in s%d.\n", fn, s); in gs()
230 funcs[n_funcs++] = fn; in gs()
235 if (!ret_types[s][fn]) { in gs()
236 ret_types[s][fn] = ret_type = s; in gs()
238 ret_type = ret_types[s][fn]; in gs()
241 s, ret_type, fn); in gs()
248 … g(fn); g("(char *t) { mix(\"vfn this offset\", (char *)this - t); mix(\"vfn uuid\", "); g(++uuid); in gs()
253 final_override[s][fn] = s; in gs()