Skip to content

Commit 836a1ab

Browse files
authored
Merge pull request #25 from Happy-Diode/fix-branchfixb
fix BranchFixB gadget
2 parents dd2db60 + b17d834 commit 836a1ab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/extracting_results.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function mapped_entry_to_compact(::Turn)
2727
end
2828

2929
function source_entry_to_configs(::Turn)
30-
return Dict(Pair{Int64, Vector{BitVector}}[0 => [[0, 1, 0, 1, 0]], 2 => [[0, 0, 1, 0, 1], [0, 1, 0, 0, 1]], 3 => [[1, 0, 1, 0, 1]], 1 => [[1, 0, 1, 0, 0], [1, 0, 0, 1, 0]]])
30+
return Dict(Pair{Int64, Vector{BitVector}}[0 => [[0, 1, 0, 1, 0]], 2 => [[0, 1, 0, 0, 1], [0, 0, 1, 0, 1]], 3 => [[1, 0, 1, 0, 1]], 1 => [[1, 0, 1, 0, 0], [1, 0, 0, 1, 0]]])
3131
end
3232

3333
mis_overhead(::Turn) = -1
@@ -38,7 +38,7 @@ function mapped_entry_to_compact(::WTurn)
3838
end
3939

4040
function source_entry_to_configs(::WTurn)
41-
return Dict(Pair{Int64, Vector{BitVector}}[0 => [[1, 0, 1, 0, 0]], 2 => [[0, 0, 0, 1, 1], [1, 0, 0, 0, 1]], 3 => [[0, 1, 0, 1, 1]], 1 => [[0, 1, 1, 0, 0], [0, 1, 0, 1, 0]]])
41+
return Dict(Pair{Int64, Vector{BitVector}}[0 => [[1, 0, 1, 0, 0]], 2 => [[0, 0, 0, 1, 1], [1, 0, 0, 0, 1]], 3 => [[0, 1, 0, 1, 1]], 1 => [[0, 1, 0, 1, 0], [0, 1, 1, 0, 0]]])
4242
end
4343

4444
mis_overhead(::WTurn) = -1
@@ -60,7 +60,7 @@ function mapped_entry_to_compact(::BranchFix)
6060
end
6161

6262
function source_entry_to_configs(::BranchFix)
63-
return Dict(Pair{Int64, Vector{BitVector}}[0 => [[0, 0, 1, 0, 1, 0], [0, 1, 0, 0, 1, 0], [0, 1, 0, 1, 0, 0]], 2 => [[0, 1, 0, 1, 0, 1]], 3 => [[1, 0, 1, 0, 0, 1], [1, 0, 0, 1, 0, 1]], 1 => [[1, 0, 1, 0, 1, 0]]])
63+
return Dict(Pair{Int64, Vector{BitVector}}[0 => [[0, 1, 0, 1, 0, 0], [0, 1, 0, 0, 1, 0], [0, 0, 1, 0, 1, 0]], 2 => [[0, 1, 0, 1, 0, 1]], 3 => [[1, 0, 0, 1, 0, 1], [1, 0, 1, 0, 0, 1]], 1 => [[1, 0, 1, 0, 1, 0]]])
6464
end
6565

6666
mis_overhead(::BranchFix) = -1

src/gadgets.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ struct BranchFixB <: CrossPattern end
258258
# ⋅ ● ● ⋅
259259
# ⋅ ● ⋅ ⋅
260260
function source_graph(::BranchFixB)
261-
locs = SimpleNode.([(2,3),(3,3),(3,2),(4,2)])
261+
locs = SimpleNode.([(2,3),(3,2),(3,3),(4,2)])
262262
g = simplegraph([(1,3), (2,3), (2,4)])
263263
return locs, g, [1, 4]
264264
end

0 commit comments

Comments
 (0)