Skip to content

Commit

Permalink
[slice] corrected bug in eval function
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonRohou committed Mar 16, 2021
1 parent 98da275 commit d9dee9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/domains/slice/codac_Slice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ namespace codac
p_eval.second |= output_gate().ub();
}

if(t.is_subset(tdomain()))
if(t.is_subset(tdomain()) && t != m_tdomain.lb() && t != m_tdomain.ub())
{
p_eval.first |= m_codomain.lb();
p_eval.second |= m_codomain.ub();
Expand Down
4 changes: 2 additions & 2 deletions tests/core/tests_ctc_delay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ TEST_CASE("CtcDelay")
Interval pi = Interval::pi();
ctc_delay.contract(pi, x, y);

if(false)
if(VIBES_DRAWING)
{
vibes::beginDrawing();
VIBesFigTube fig_x("delay x", &x);
Expand All @@ -51,7 +51,7 @@ TEST_CASE("CtcDelay")
ctc_delay.contract(delay, x, y);
ctc_delay.contract(delay, x, y);

if(true)
if(VIBES_DRAWING)
{
vibes::beginDrawing();
VIBesFigTube fig_x("delay x", &x);
Expand Down

0 comments on commit d9dee9c

Please sign in to comment.