Skip to content

Commit 8caf7bf

Browse files
committed
[iss-70]
1 parent 922c0e2 commit 8caf7bf

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

algorithms/partitioner/Makefile.include

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@ PARTITIONER_DIR := algorithms/partitioner
33

44
# Sources
55
PARTITIONER_SRC := \
6-
$(PARTITIONER_DIR)/weighted_sb_graph.cpp \
7-
$(PARTITIONER_DIR)/build_sb_graph.cpp
6+
$(PARTITIONER_DIR)/build_sb_graph.cpp \
7+
$(PARTITIONER_DIR)/dfs_on_sbg.cpp \
8+
$(PARTITIONER_DIR)/kernighan_lin_partitioner.cpp \
9+
$(PARTITIONER_DIR)/partition_graph.cpp \
10+
$(PARTITIONER_DIR)/partition_metrics_api.cpp \
11+
$(PARTITIONER_DIR)/partition_strategy.cpp \
12+
$(PARTITIONER_DIR)/weighted_sb_graph.cpp
813
ALG_SRC += $(PARTITIONER_SRC)
914

1015
# Objects

algorithms/partitioner/build_sb_graph.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,13 +295,12 @@ Map create_set_edge_map(const SetAF& set_fact, const Set& pre_image, const Set&
295295
// If the slope is 0, we just return the expression.
296296
if (var_exp.slope() == 0) {
297297
logging::sbg_log << "Creating constant interval" << endl;
298-
LExp map_exp = var_exp;
299298
INT offset = var_exp.offset().numerator();
300299
if (i == 0) {
301300
offset += set_offset;
302301
}
303302

304-
map_exp.offset_ref() = offset; // this works like `map_exp.set_offset(offset);`
303+
LExp map_exp(var_exp.slope(), offset);
305304
map_exps.emplaceBack(map_exp);
306305
i++;
307306

@@ -926,4 +925,4 @@ SBG::LIB::WeightedSBGraph create_air_conditioners_graph()
926925
}
927926

928927

929-
} // namespace sbg_partitioner
928+
} // namespace sbg_partitioner

0 commit comments

Comments
 (0)