Skip to content

Commit

Permalink
Bugfix to provenance in IfThenElse
Browse files Browse the repository at this point in the history
It would associate its output to outputs instead of inputs
  • Loading branch information
sylvainhalle committed Jan 14, 2023
1 parent 7b85fce commit cf51e2f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Core/src/ca/uqac/lif/cep/functions/IfThenElse.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
BeepBeep, an event stream processor
Copyright (C) 2008-2017 Sylvain Hallé
Copyright (C) 2008-2023 Sylvain Hallé
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
Expand Down Expand Up @@ -54,17 +54,17 @@ public void evaluate(Object[] inputs, Object[] outputs, Context context, EventTr
outputs[0] = inputs[1];
if (tracker != null)
{
tracker.associateToOutput(-1, 0, 0, 0, 0);
tracker.associateToOutput(-1, 1, 0, 0, 0);
tracker.associateToInput(-1, 0, 0, 0, 0);
tracker.associateToInput(-1, 1, 0, 0, 0);
}
}
else
{
outputs[0] = inputs[2];
if (tracker != null)
{
tracker.associateToOutput(-1, 0, 0, 0, 0);
tracker.associateToOutput(-1, 2, 0, 0, 0);
tracker.associateToInput(-1, 0, 0, 0, 0);
tracker.associateToInput(-1, 2, 0, 0, 0);
}
}
}
Expand Down

0 comments on commit cf51e2f

Please sign in to comment.