Skip to content

Commit

Permalink
add large conjunction to benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
samvang committed Oct 16, 2024
1 parent 44d4c8e commit 937135e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/benchmark.ml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ let bench l =
let rec phi n =
if n = 0 then "p" else "(" ^ phi (n - 1) ^ ") -> " ^ "p" ^ string_of_int n

let rec large_conj n =
if n = 0 then "p0" else "(" ^ large_conj (n - 1) ^ ") & " ^ "p" ^ string_of_int n

let test_cases =
[
"(p ∧ q) -> ~p";
Expand Down Expand Up @@ -102,6 +105,7 @@ let test_cases =
"((q → (p ∨ r)) → ¬(t ∨ p))";
phi 6;
phi 7;
large_conj 64 ^ "-> (⊥ -> ⊥)"
]

let () = bench test_cases

0 comments on commit 937135e

Please sign in to comment.