MCPcopy
hub / github.com/google/mangle / newBoundsTestCaseWithNameTrie

Function newBoundsTestCaseWithNameTrie

analysis/validation_test.go:585–597  ·  view source on GitHub ↗
(t *testing.T, clauses []ast.Clause, decls []ast.Decl, nameTrie symbols.NameTrie)

Source from the content-addressed store, hash-verified

583}
584
585func newBoundsTestCaseWithNameTrie(t *testing.T, clauses []ast.Clause, decls []ast.Decl, nameTrie symbols.NameTrie) boundsTestCase {
586 t.Helper()
587 idbSymbols := make(map[ast.PredicateSym]struct{})
588 for _, clause := range clauses {
589 idbSymbols[clause.Head.Predicate] = struct{}{}
590 }
591
592 return boundsTestCase{
593 programInfo: ProgramInfo{nil, idbSymbols, nil, nil, clauses, makeDesugaredDecls(t, decls...), nil},
594 rulesMap: makeRulesMap(clauses),
595 nameTrie: nameTrie,
596 }
597}
598
599func makeSimpleDecl(a ast.Atom, bound ...ast.BaseTerm) ast.Decl {
600 return ast.Decl{

Calls 2

makeDesugaredDeclsFunction · 0.85
makeRulesMapFunction · 0.85

Tested by

no test coverage detected