This PR adds a notion of typing extensions, which allow to add new builtins for the typechecking. Fomr the point of view of the ocaml API, these do not add much compared to the already existing additional_builtins mechanism. They mainly represent a slightly more structured way to add new builtins. When using the dolmen binary, these extensions can be activated on the command line, using the new --ext option.
Should solve #205
This PR adds a notion of typing extensions, which allow to add new builtins for the typechecking. Fomr the point of view of the ocaml API, these do not add much compared to the already existing
additional_builtins
mechanism. They mainly represent a slightly more structured way to add new builtins. When using thedolmen
binary, these extensions can be activated on the command line, using the new--ext
option.Currently, these is only a single extension: the
bvconv
extension, which adds thebv2nat
andint2bv
functions, as described in https://github.com/Gbury/dolmen/issues/205#issuecomment-1969393448Therefore, examples of smtlib2 problems using either
bv2nat
orint2bv
will now be able to typecheck using the following command-line: