Statutory law is subject to judicial interpretation. Nearly every case that revisits it adds further precedent or undoes a previous precedent so its meaning shifts wildly over time. Even supposing that judges are impartial, they're not deterministic processors that give you the same computational result every time. Therein lies the fundamental fault of your analogy of law to code. Government cannot and never will be reduced to a set of algorithms.
Discussion
The common law that is still the fundamental basis which our code is written on is the only protection you have if you know how to use it .. all the witchcraft with words that corporations have plagued it with is nearly impossible to argue to judges because they don’t have a clue.
I think there’s strengths and weakness in this. Sometimes bias makes sense from a humanistic, ethical and societal view because context does defines situational aspects that do in fact matter.