3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 16:45:31 +00:00

Fix a mistake in previous commit causing imcompilable code

Also correct my alias
This commit is contained in:
Anh-Dung Phan 2013-10-26 05:22:52 +02:00
parent 532c345fd1
commit 3d943bf70d

View file

@ -1010,8 +1010,8 @@ bool theory_diff_logic<Ext>::maximize(theory_var v) {
vector<dl_edge<GExt>> es = m_graph.get_all_edges();
dl_var offset = m_graph.get_num_edges();
for (unsigned i = 0; i < es.size(); ++i) {
dl_edge<GExt> e(es[i]);
g.enable_edge(g.add_edge(e));
dl_edge<GExt> & e = es[i];
g.enable_edge(g.add_edge(e.get_source(), e.get_target(), e.get_weight(), e.get_explanation()));
g.enable_edge(g.add_edge(e.get_target() + offset, e.get_source() + offset, e.get_weight(), e.get_explanation()));
}