Skip to content

Commit

Permalink
[iss-79]
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalashnikovni committed Jan 3, 2025
1 parent aa48ffd commit 0ddb25f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions causalize/sbg_implementation/generate_sbg_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void GenerateSBGInput::addIndexRange(IndexList range, const std::string& eq_id,
if (idx_range.step()) {
step = getValue(idx_range.step().get());
}
addDef(node_id, upper, -1, step);
addDef(node_id, upper - lower + 1, -1, step);
usage[idx.name()] = lower;
}
_eq_usage[eq_id] = usage;
Expand Down Expand Up @@ -246,7 +246,7 @@ void GenerateSBGInput::addVariableNodes()
foreach_(Name var_name, variables)
{
VarInfo variable = symbols[var_name].get();
if (!isVariable(var_name, symbols)) {
if (isVariable(var_name, symbols)) {
buildSet(variable, _node_id);
_var_nodes.insert(std::make_pair(var_name, _node_id));
_node_id++;
Expand Down

0 comments on commit 0ddb25f

Please sign in to comment.