Infer conservative read-only source effects for method contracts

This commit is contained in:
2026-10-22 15:40:44 +08:00
parent 0513b96dfb
commit cd25f819f2
14 changed files with 236 additions and 13 deletions
+5
View File
@@ -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)
}