add smt-based encode/check as described in paper