(decls map[ast.PredicateSym]ast.Decl)
| 175 | } |
| 176 | |
| 177 | func byName(decls map[ast.PredicateSym]ast.Decl) map[string]ast.Decl { |
| 178 | byName := make(map[string]ast.Decl, len(decls)) |
| 179 | for sym, decl := range decls { |
| 180 | byName[sym.Symbol] = decl |
| 181 | } |
| 182 | return byName |
| 183 | } |
| 184 | |
| 185 | // New creates a new analyzer based on declarations and extra predicates. |
| 186 | func New(extraPredicates map[ast.PredicateSym]ast.Decl, decls []ast.Decl, boundsChecking BoundsCheckingMode) (*Analyzer, error) { |
no outgoing calls
no test coverage detected