From e8a52f927df11ddeabc9a46205dba6730fb7d7e1 Mon Sep 17 00:00:00 2001 From: Maciej Kurc Date: Fri, 14 Feb 2020 09:39:58 +0100 Subject: [PATCH] Fixed bug that allowed duplicate solutions. Signed-off-by: Maciej Kurc --- utils/dbfixup.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/utils/dbfixup.py b/utils/dbfixup.py index 3d74cf14..d2270b32 100755 --- a/utils/dbfixup.py +++ b/utils/dbfixup.py @@ -483,24 +483,23 @@ def update_seg_fns( if lazy and not os.path.exists(fn_in): continue - org_lines = read_segbits(fn_in) + lines = read_segbits(fn_in) changes, lines = add_zero_bits( fn_in, - org_lines, + lines, zero_db, clb_int=clb_int, strict=strict, verbose=verbose) - new_changes, new_lines = remove_ambiguous_solutions( + new_changes, lines = remove_ambiguous_solutions( fn_in, lines, strict=strict, verbose=verbose, ) changes += new_changes - lines |= new_lines # Find common bits for tag groups bit_groups = find_common_bits_for_tag_groups(lines, tag_groups)