Fast and General Automatic Differentiation for Finite-State Methods | Synapse