pub(super) fn select_syscall(ctx: &ProgContext) -> SyscallRef {
    loop {
        let call = if should_try_gen_res(ctx) {
            let res_ty = select_res(&ctx.target.res_tys);
            if let Some(call) = select_res_producer(ctx.target, res_ty) {
                call
            } else {
                continue;
            }
        } else {
            select_syscall_rand(ctx)
        };
        if !call.attr.disable {
            return call;
        }
    }
}
/// Select a syscall to fuzz based on resource usage.
Select a syscall to fuzz based on resource usage.
Select a syscall to fuzz based on resource usage .
pub(super) fn select_syscall(ctx: &ProgContext) -> SyscallRef {
    loop {
        let call = if should_try_gen_res(ctx) {
            let res_ty = select_res(&ctx.target.res_tys);
            if let Some(call) = select_res_producer(ctx.target, res_ty) {
                call
            } else {
                continue;
            }
        } else {
            select_syscall_rand(ctx)
        };
        if !call.attr.disable {
            return call;
        }
    }
}
pub ( super ) fn select_syscall ( ctx : & ProgContext ) -> SyscallRef { loop { let call = if should_try_gen_res ( ctx ) { let res_ty = select_res ( & ctx . target . res_tys ) ; if let Some ( call ) = select_res_producer ( ctx . target , res_ty ) { call } else { continue ; } } else { select_syscall_rand ( ctx ) } ; if ! call . attr . disable { return call ; } } }
Select a syscall to fuzz based on resource usage.
Select a syscall to fuzz based on resource usage .
ctx
&ProgContext
ctx
&ProgContext