Relating Maxwell's demon and quantitative analysis of information leakage for practical imperative programs. (September 2017)