newBalancingLogicManager creates a logic manager instance bound to a specific function and its first term.
(fac ast.ExprFactory, function string, term ast.Expr)
| 315 | |
| 316 | // newBalancingLogicManager creates a logic manager instance bound to a specific function and its first term. |
| 317 | func newBalancingLogicManager(fac ast.ExprFactory, function string, term ast.Expr) *logicManager { |
| 318 | return &logicManager{ |
| 319 | exprFactory: fac, |
| 320 | function: function, |
| 321 | terms: []ast.Expr{term}, |
| 322 | ops: []int64{}, |
| 323 | variadicASTs: false, |
| 324 | } |
| 325 | } |
| 326 | |
| 327 | // addTerm adds an operation identifier and term to the set of terms to be balanced. |
| 328 | func (l *logicManager) addTerm(op int64, term ast.Expr) { |
no outgoing calls
no test coverage detected