* Helper function to get the vector of expressions from a sum (or error if it's a nested sum - we need to flatten it first)
* Since Minion doesn't support some constraints with div (e.g. leq, neq), we add an auxiliary variable to represent the division result.
/// This rule has lower priority than boolean_literal_to_wliteral so that we can assume that the