Infer conservative read-only source effects for method contracts
This commit is contained in:
@@ -25,6 +25,11 @@ impl Vm {
|
||||
self.source_type_checks = enabled;
|
||||
Ok(())
|
||||
}
|
||||
/// Known whole-call effect; unproved source/delegated calls return None.
|
||||
pub fn call_effect(&self, function: ObjectRef) -> Result<Option<objects::CallEffect>, VmError> {
|
||||
self.objects.call_effect(function)
|
||||
}
|
||||
|
||||
pub fn call_arity(&self, function: ObjectRef) -> Result<Option<objects::CallArity>, VmError> {
|
||||
self.objects.call_arity(function)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user