`cvc5` only supports bit-widths of `unsigned` size for BitVector sorts (see, e.g., [here](https://github.com/cvc5/cvc5/blob/
4338d9d49a41022d34cd4cbabf17a66fdf39efae/src/expr/node_manager_template.cpp#L178)).
This checks that the provided bit-width for the `int-to-bv` option is in the right range.
Fixes https://github.com/cvc5/cvc5-projects/issues/425 and includes a regression that is based on the test from the issue.
long = "solve-int-as-bv=N"
type = "uint64_t"
default = "0"
+ maximum = "4294967295"
help = "attempt to solve a pure integer satisfiable problem by bitblasting in sufficient bitwidth (experimental)"
[[option]]
regress0/nl/pow2-pow.smt2
regress0/nl/pow2-pow-isabelle.smt2
regress0/nl/proj-issue-348.smt2
+ regress0/nl/proj-issue-425.smt2
regress0/nl/proj-issue-444-memout-eqelim.smt2
regress0/nl/proj-issue-451-ran-combination-1.smt2
regress0/nl/proj-issue-451-ran-combination-2.smt2
--- /dev/null
+; COMMAND-LINE: --solve-int-as-bv=5524936381719514648
+; ERROR-SCRUBBER: sed -e '.*Error in option parsing.*/d'
+; DISABLE-TESTER: dump
+; EXIT: 1
+(set-logic QF_NIA)
+(declare-fun x () Int)
+(declare-fun y () Int)
+(assert (= (* x x) y))
+(check-sat)
+