Proving termination of imperative programs using Max-SMT | IEEE Conference Publication | IEEE Xplore