Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In assume_lhs, call EvaluateFWDTimings #219

Merged
merged 1 commit into from
Apr 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions r_exec/mdl_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2632,6 +2632,11 @@ void PrimaryMDLController::assume(_Fact *input) {

void PrimaryMDLController::assume_lhs(HLPBindingMap *bm, bool opposite, _Fact *input, float32 confidence) { // produce an assumption and inject in primary; no rdx.

// retrieve_imdl_bwd needs the forward timings so evaluate them from the backward guards. We can't call
// evaluate_bwd_guards here because some variables from the requirement need to be bound by retrieve_imdl_bwd.
if (!HLPOverlay::EvaluateFWDTimings(this, bm))
return;

P<Fact> f_imdl = get_f_ihlp(bm, false);
Fact *ground;
switch (retrieve_imdl_bwd(bm, f_imdl, ground)) {
Expand Down