Generating identifiers for tuples of recursively defined relations

US9830358B1 · US · B1

Patent metadata
FieldValue
Publication numberUS-9830358-B1
Application numberUS-201715466696-A
CountryUS
Kind codeB1
Filing dateMar 22, 2017
Priority dateSep 30, 2016
Publication dateNov 28, 2017
Grant dateNov 28, 2017

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Methods, systems, and apparatus, including computer programs encoded on computer storage media, for generating identifiers for tuples of recursively defined relations. One of the methods includes selecting one or more of the recursively defined relations to evaluate. Respective keys are computed for each tuple of any new tuples computed during recursive evaluation. For each key that occurs in a cache of keys, obtaining a tuple for the key from the cache and adding the obtained tuple to a new relation. For each key that does not occur in the cache of keys, generating a new identifier for the key, and adding, to a new relation for each key of each tuple of any keys that do not occur in the cache of keys for a relation, a new tuple comprising (1) elements of the tuple and (2) the new identifier for the key.

First claim

Opening claim text (preview).

What is claimed is: 1. A computer-implemented method comprising: receiving a request to compute identifiers for domain tuples of a relation for a first alternative subtype of an algebraic data type, wherein the first alternative subtype depends on a definition of a second alternative subtype of the algebraic data type; and until evaluating a definition of the first alternative subtype generates no new domain tuples, performing operations comprising: evaluating the definition of the first alternative subtype using tuples in a relation for the second alternative subtype to generate one or more new domain tuples for the first alternative subtype; computing, for each new domain tuple of the one or more new domain tuples generated for the first alternative subtype, a respective key using each element belonging to the new domain tuple; determining, for each key computed for each new domain tuple, whether the key for the new domain tuple has been previously generated; for each key that had been previously generated, obtaining an identifier previously generated for the key and adding a new identifier tuple to the relation for the first alternative subtype, the new identifier tuple comprising the identifier and each element belonging to the new domain tuple; and for each key that had not been previously generated, generating a new identifier for the key and adding a new identifier tuple to the relation for the first alternative subtype, the new identifier tuple comprising the new identifier and each element belonging to the new domain tuple. 2. The method of claim 1 , wherein determining, for each key computed for each new domain tuple, whether the key for the new domain tuple has been previously generated comprises determining whether the key for the new domain tuple occurs in a cache of keys. 3. The method of claim 2 , further comprising for each key that had not been previously generated, adding the key to the cache in association with the new identifier for the key. 4. The method of claim 2 , further comprising: maintaining a distinct cache of keys for each of a plurality of recursively defined relations, wherein the plurality of recursively defined relations includes the first alternative subtype. 5. The method of claim 2 , further comprising: maintaining a distinct cache of keys for each of a plurality of different arities for domain tuples generated for recursively defined alternative subtypes. 6. The method of claim 2 , further comprising: maintaining a distinct cache of keys for each of a plurality of representative types, each representation type representing types of elements of domain tuples generated for recursively defined alternative subtypes. 7. The method of claim 1 , wherein the first alternative subtype also depends on itself, and wherein evaluating the definition of the first alternative subtype comprises using second domain tuples in the relation for the second alternative subtype and any domain tuples generated for the first alternative subtype. 8. The method of claim 1 , wherein the second alternative subtype depends on a definition of the first alternative subtype. 9. The method of claim 8 , further comprising alternating between generating new domain tuples of the relation for the first alternative subtype and second domain tuples of a second relation for the second alternative subtype. 10. A system comprising: one or more computers and one or more storage devices storing instructions that are operable, when executed by the one or more computers, to cause the one or more computers to perform operations comprising: receiving a request to compute identifiers for domain tuples of a relation for a first alternative subtype of an algebraic data type, wherein the first alternative subtype depends on a definition of a second alternative subtype of the algebraic data type; and until evaluating a definition of the first alternative subtype generates no new domain tuples, performing operations comprising: evaluating the definition of the first alternative subtype using tuples in a relation for the second alternative subtype to generate one or more new domain tuples for the first alternative subtype; computing, for each new domain tuple of the one or more new domain tuples generated for the first alternative subtype, a respective key using each element belonging to the new domain tuple; determining, for each key computed for each new domain tuple, whether the key for the new domain tuple has been previously generated; for each key that had been previously generated, obtaining an identifier previously generated for the key and adding a new identifier tuple to the relation for the first alternative subtype, the new identifier tuple comprising the identifier and each element belonging to the new domain tuple; and for each key that had not been previously generated, generating a new identifier for the key and adding a new identifier tuple to the relation for the first alternative subtype, the new identifier tuple comprising the new identifier and each element belonging to the new domain tuple. 11. The system of claim 10 , wherein determining, for each key computed for each new domain tuple, whether the key for the new domain tuple has been previously generated comprises determining whether the key for the new domain tuple occurs in a cache of keys. 12. The system of claim 11 , wherein the operations further comprise for each key that had not been previously generated, adding the key to the cache in association with the new identifier for the key. 13. The system of claim 11 , wherein the operations further comprise: maintaining a distinct cache of keys for each of a plurality of recursively defined relations, wherein the plurality of recursively defined relations includes the first alternative subtype. 14. The system of claim 11 , wherein the operations further comprise: maintaining a distinct cache of keys for each of a plurality of different arities for domain tuples generated for recursively defined alternative subtypes. 15. The system of claim 11 , wherein the operations further comprise: maintaining a distinct cache of keys for each of a plurality of representative types, each representation type representing types of elements of domain tuples generated for recursively defined alternative subtypes. 16. The system of claim 10 , wherein the first alternative subtype also depends on itself, and wherein evaluating the definition of the first alternative subtype comprises using second domain tuples in the relation for the second alternative subtype and any domain tuples generated for the first alternative subtype. 17. The system of claim 10 , wherein the second alternative subtype depends on a definition of the first alternative subtype. 18. The system of claim 17 , wherein the operations further comprise alternating between generating new domain tuples of the relation for the first alternative subtype and second domain tuples of a second relation for the second alternative subtype. 19. One or more non-transitory computer storage media encoded with computer program instructions that when executed by one or more computers cause the one or more computers to perform operations comprising: receiving a request to compute identifiers for domain tuples of a relation for a first alternative subtype of an algebraic data type, wherein the first alternative subtype depends on a definition of a second alternative subtype of the algebraic data type; and until evaluating a definition of the first alternative subtype generates

Assignees

Inventors

Classifications

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US9830358B1 cover?
Methods, systems, and apparatus, including computer programs encoded on computer storage media, for generating identifiers for tuples of recursively defined relations. One of the methods includes selecting one or more of the recursively defined relations to evaluate. Respective keys are computed for each tuple of any new tuples computed during recursive evaluation. For each key that occurs in a…
Who is the assignee on this patent?
Semmle Ltd
What technology area does this patent fall under?
Primary CPC classification G06F17/30513. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Nov 28 2017 00:00:00 GMT+0000 (Coordinated Universal Time) (B1). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 5 related publications on this page (citations in our corpus or others sharing the same primary CPC).