NewInferContextNoDecl returns an inferContext for a predicate that does not have a declaration.
(bc *BoundsAnalyzer, decl *ast.Decl, clause *ast.Clause)
| 26 | |
| 27 | // NewInferContextNoDecl returns an inferContext for a predicate that does not have a declaration. |
| 28 | func newInferContext(bc *BoundsAnalyzer, decl *ast.Decl, clause *ast.Clause) *inferContext { |
| 29 | return &inferContext{bc: bc, pred: &decl.DeclaredAtom.Predicate, decl: decl, modes: decl.Modes(), clause: clause} |
| 30 | } |
| 31 | |
| 32 | // inferState is state of inference while iterating over premises. |
| 33 | // The relation type is represented implicitly in usedVars and varTpe. |