/// Select a syscall without any initial call
Select a syscall without any initial call
Select a syscall without any initial call
pub fn select_with_no_calls(ctx: &Context, rng: &mut RngType) -> SyscallId {
    loop {
        let selector = if rng.gen_ratio(9, 10) {
            select_res_output_syscall
        } else {
            select_random_syscall
        };
        if let Some(sid) = selector(ctx, rng) {
            debug_info!("select with no calls: {}", ctx.target().syscall_of(sid));
            return sid;
        }
    }
}
pub fn select_with_no_calls ( ctx : & Context , rng : & mut RngType ) -> SyscallId { loop { let selector = if rng . gen_ratio ( 9 , 10 ) { select_res_output_syscall } else { select_random_syscall } ; if let Some ( sid ) = selector ( ctx , rng ) { debug_info ! ( " " ctx target ( ) syscall_of ( sid ) ) ; return sid ; } } }
Select a syscall without any initial call
Select a syscall without any initial call
ctx
&Context
rng
&mut RngType