Expose inference counts on Machine; publish to CI

This commit is contained in:
infogulch
2023-11-21 18:12:26 -06:00
parent 503e45eae1
commit 11832b524b
3 changed files with 45 additions and 2 deletions

View File

@@ -211,6 +211,15 @@ impl Machine {
)
}
pub fn get_inference_count(&mut self) -> u64 {
self.machine_st
.cwil
.global_count
.clone()
.try_into()
.unwrap()
}
pub fn throw_session_error(&mut self, err: SessionError, key: PredicateKey) {
let err = self.machine_st.session_error(err);
let stub = functor_stub(key.0, key.1);