Skip to content

Commit

Permalink
Add Szudzik Pairing.
Browse files Browse the repository at this point in the history
  • Loading branch information
anmaped committed Aug 6, 2024
1 parent 37a09f5 commit a113a08
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/helper.ml
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,13 @@ let get_proposition_counter helper = _get_counter "fm_num_prop" helper

let get_until_counter helper =
let x = _get_counter "fm_num_until" helper in
x + Random.int 1000000 (* try to avoid same template id *)
let y = Random.int 1000000 in (* avoid same template id *)
if x >= y then (x * x) + x + y else (y * y) + x

let get_duration_counter helper =
let x = _get_counter "fm_num_duration" helper in
x + Random.int 1000000 (* try to avoid same template id *)
let y = Random.int 1000000 in (* avoid same template id *)
if x >= y then (x * x) + x + y else (y * y) + x

let get_inc_counter_test_cases = _get_counter "unittests_num_test_cases"

Expand Down

0 comments on commit a113a08

Please sign in to comment.