(t *testing.T, clauses []ast.Clause, decls []ast.Decl, nameTrie symbols.NameTrie)
| 583 | } |
| 584 | |
| 585 | func 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 | |
| 599 | func makeSimpleDecl(a ast.Atom, bound ...ast.BaseTerm) ast.Decl { |
| 600 | return ast.Decl{ |
no test coverage detected