Skip to content

Commit

Permalink
Lower reasoner bounds with false negatives
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdrozd committed Jun 19, 2024
1 parent eac7d5c commit 6438a13
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/reason.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ fn cant_reach(prog: &str, term_type: TermType) -> bool {

let comp = tcompile(prog);

let max_steps = 24;
let max_cycles = 94;
let max_steps = 11;
let max_cycles = 25;

let (colors, entry_points, program) = rparse(prog);

Expand Down
10 changes: 5 additions & 5 deletions src/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,18 +280,18 @@ fn test_tree() {
#[ignore]
fn test_tree_slow() {
assert_trees![
((4, 2), 1, 6_146),
((4, 2), 0, 16_455),
((4, 2), 1, 6_156),
((4, 2), 0, 16_501),
//
((2, 4), 1, 30_388),
((2, 4), 0, 90_555),
//
((5, 2), 1, 3_102_000),
((5, 2), 1, 3_121_273),
//
((2, 5), 1, 13_073_485),
//
((3, 3), 1, 2_197_874),
((3, 3), 0, 5_778_614),
((3, 3), 1, 2_200_251),
((3, 3), 0, 5_782_263),
];
}

Expand Down
3 changes: 3 additions & 0 deletions test/prog_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,7 @@
"1RB 2RB 2LA 0LA 0RB 1LA",
"1RB 2RB 1LA 0LA 2LA 0RB",

"1RB 0RC 1LB 0LC 0RD 0LD 1RA 0LA",
"1RB 1LC 1LD 0RB ... 0LD 1RA 1LA",
"1RB 0LA 1LC 1LD 1RD 1LB 1RA 0RD",
"1RB 0LC 1RD 1LD 0LA 1LB 1LC 0RD",
Expand Down Expand Up @@ -1161,6 +1162,8 @@
"1RB 0LC 1LA 1LD 1RD 0RC 0LB 0RE 1RC 1LF 1LE ...",
"1RB 0LC 1LA 1RD 1RA 0LE 1RA 0RB 1LF 1LC 1RD ...",

"1RB 0RC 0LD 0RC 1LA 0RE 1LA 1LF 1RB 0LG 0LG 1LA 0LD 1RB",
"1RB 1RC 0RD 0RA 1LE 0LF 0RC 0RA 1LE 0LF 0LG 0RD 0RA 1LE",
"1RB 1RC 0RD 0RB ... 1RA 1RE 1LF 0RG 0RE 0RC 1RB 1LG 1LD",

"1RB 1RC 1RE 1RE 1LD 0RA 1RB 1LG 1LG 1RF 0RE 1RE 1LH 0LH 0LG 1LC",
Expand Down

0 comments on commit 6438a13

Please sign in to comment.