In OCaml all module level expressions are evaluated in order of their appearance. If you have some function
that you designate as a "main" function*, then before this function is entered all modules on which module,
containing "main" function, depends. So you need to find, whether you added some code, that evaluates before
your main.
* there is no such function as main function in OCaml. All modules are evaluated in the order of their occurrence
on the compilation string. Usually, the order is defined by a build tool, like `ocamlbuild`, that will put the entry module
in the last place, and topologically sort the preceding modules.
P.S. I hope that this is not related to BAP? ;)