if you compiled some code and then uncompiled it you would get the most efficient version of it … ?
Sorta, an optimizing compiler will always trim dead code which isn’t needed, but it will also do things that are more efficient but make the code harder to understand like unrolling loops. e.g. you might have some code that says “for numbers 1-100 call some function” the compiler can look at this and say “let’s just go ahead and insert 100 calls to that function with the specific number” so instead of a small loop you’ll see a big block of function calls almost the same.
Other optimizations will similarly obfuscate the original programmers intent, and thinks like assertions are meant to be optimized out in production code so those won’t appear in the de-compiled version of the sources.
Visions and hallucination are not uncommon in meditation practice. In Zen training we’re reminded that the mind generates thoughts and visions like the eyes generate sight, the ears sound and so on… The instruction in that context is not to cling to the vision so that you can return to object-less meditation.
If you are interested in how some of the older meditation traditions view different meditative states, search for Jhana or Dhyana, sentient beings have been doing this for a long time and there is a lot of helpful guidance out there to support your practice.