hottub.patents
US 12,705,035 B2#3168658 Most CitedActiveUnited States (USPTO)Utility

Program dependent component amalgamation

0Forward Citations (#3168658 Global)
0.0/yrCitation Velocity (#3168658 Global)
0.00Citation PageRank (#3168658 Global)
28Prior Art Cited
20Claims (3 Indep. · 17 Dep.)
3Drawings / Sheets

Abstract

Some embodiments construct a set of build dependencies for a program without access to a full set of build instructions. When multiple clashing name resolutions are identified for a particular dependency, a union of the alternative versions is formed. Intermediate representations of the union of program versions, such as symbol tables, abstract syntax trees, and other internal compiler data structures, are emitted to persistent non-volatile storage, instead of using a single resolution to create temporary intermediate data to build an executable program. Security analysis and licensing analysis utilize the persisted program representations to analyze the union of multiple overlapping but different versions of the program.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 28 · Forward citations: 0.

Claims (20 — 3 Independent, 17 Dependent)

  1. Claim 1Independent Claim

    A method of build dependency amalgamation, the method performed by a computing system, the method comprising: ascertaining that each of at least two name resolutions identifies a different respective item to satisfy a build dependency of a program; forming, by the computing system, a union which specifies the at least two name resolutions; supplying the union to a tool which is configured to conduct an analysis of the program; and obtaining a result of the analysis while avoiding building a full program executable, the result computed from at least the union.

  2. Claim 2Depends on #1

    The method of claim 1, further comprising at least one of: getting at least one of the name resolutions from a trace of an attempt to build the program; or getting at least one of the name resolutions without completing a build of the program.

  3. Claim 3Depends on #1

    The method of claim 1, further comprising acquiring a source code stub which represents the build dependency, and submitting the source code stub to the tool.

  4. Claim 4Depends on #1

    The method of claim 1, wherein the method further comprises assigning, to at least one name resolution, a rank which is computed based at least on an extent to which the respective item provides at least one of: a definition of a symbol which is not defined in a portion of a source code of the program; a symbol data type which is consistent with a use of the symbol in a portion of a source code of the program; or a routine signature which is consistent with a use of the routine in a portion of a source code of the program.

  5. Claim 5Depends on #1

    The method of claim 1, wherein the method further comprises responding to a compilation error which is a result of an attempt to build the program, and wherein responding comprises at least one of: searching a version space; or constructing an index from available object methods and fields onto version numbers.

  6. Claim 6Depends on #1

    The method of claim 1, wherein the method further comprises at least one of: utilizing an index from available object methods and fields onto version numbers; establishing a file-to-file dependency graph; indexing classes, object methods, and fields which are defined by different dependency files to check for a clash; gathering hints from a build system as to candidate orders of clashing dependencies, and assembling a consensus order; or reacting to a type mismatch or a method mismatch by determining a plurality of candidate dependency orderings and assessing different candidate dependency orderings.

  7. Claim 7Independent Claim

    A computing system, comprising: at least one digital memory; at least one processor in operable communication with the at least one digital memory, the at least one processor configured to perform a build dependency amalgamation method which comprises (a) ascertaining that each of at least two name resolutions in a non-empty set of name resolutions identifies a different respective item to satisfy a build dependency of a program, (b) forming a union which specifies the at least two name resolutions, (c) supplying the union to a tool which is configured to conduct an analysis of the program, and (d) receiving a result of the analysis while avoiding building a full program executable, the result computed from at least the union.

  8. Claim 8Depends on #7

    The computing system of claim 7, wherein the set of name resolutions comprises at respective identifications of two different versions of a program component that each satisfy the build dependency.

  9. Claim 9Depends on #7

    The computing system of claim 7, wherein the set of name resolutions comprises respective identifications of two different versions of a source code which is specified in the build dependency.

  10. Claim 10Depends on #7

    The computing system of claim 7, wherein the set of name resolutions comprises identifications of two different fully-qualified names which identify respective alternatives for a program component of the program.

  11. Claim 11Depends on #7

    The computing system of claim 7, wherein the set of name resolutions comprises identifications of two items which reside in different respective sub-projects.

  12. Claim 12Depends on #7

    The computing system of claim 7, wherein the set of name resolutions comprises a first definition of a fully-qualified name in a dependency of the program and a second definition of the fully-qualified name in a source code of the program.

  13. Claim 13Depends on #7

    The computing system of claim 7, further comprising a database wherein at least two entities with the same fully-qualified name are collapsed.

  14. Claim 14Depends on #7

    The computing system of claim 7, wherein the tool comprises a security analysis tool.

  15. Claim 15Depends on #7

    The computing system of claim 7, wherein the tool comprises a licensing analysis tool.

  16. Claim 16Independent Claim

    A computer-readable storage medium configured storing instructions which upon execution by a processor cause a computing system to perform a build dependency amalgamation method, the method comprising: ascertaining that each of at least two name resolutions identifies a different respective item to satisfy a build dependency of a program; forming a union which specifies the at least two name resolutions; supplying the union to a tool which is configured to conduct an analysis of the program; and conducting the analysis and obtaining an analysis result while avoiding building a full program executable, the analysis result computed from at least the union.

  17. Claim 17Depends on #16

    The computer-readable storage medium of claim 16, wherein the method further comprises ranking different name resolutions based on the extent to which they yield a program component which provides at least one of: a definition of a symbol which is not defined in a portion of a source code of the program; a symbol data type which is consistent with a use of the symbol in a portion of a source code of the program; or a routine signature which is consistent with a use of the routine in a portion of a source code of the program.

  18. Claim 18Depends on #16

    The computer-readable storage medium of claim 16, wherein conducting the analysis comprises at least one of: binding a name computed according to at least the union; or inferring a data type according to at least the union.

  19. Claim 19Depends on #16

    The computer-readable storage medium of claim 16, wherein the method avoids generating executable code for any of the items which are identified in the name resolutions which are specified by the union.

  20. Claim 20Depends on #16

    The computer-readable storage medium of claim 16, wherein the method comprises getting at least one of the name resolutions from a trace of an attempt to build the program.

Technical Overview & Description

BACKGROUND The process of creating an executable software program by combining multiple components is referred to as “ building ” the program. In addition to using the components themselves, the build process uses build instructions. Build instructions are sometimes complex. Some build instructions specify information such as where to obtain (copies of) the program's components, which version of a particular component to use when more than one version exists, which build tools to invoke (e.g., repository access commands, compilers, linkers), which order to invoke the build tools in, which command line arguments or other parameters to pass into the build tools when they are invoked, and where to store the results of the build process. Some build process results are used only during the build, such as temporary files created by a compiler for use by the compiler during compilation of a source code component into executable form. Other build results continue to exist after the build process is complete, such as executable code which was previously generated by another compilation, or executable code which is generated during the current compilation from source code components for use as part of an executable version of the program that is currently being built. However, the complexity of the build process, and limitations on the availability of build instructions in some scenarios, lead to opportunities for technical advances in software development. SUMMARY Some embodiments address technical challenges arising from efforts to determine a program's build dependencies when build instructions for the program are incomplete, unavailable, or inconsistent. One challenge is how to find dependency-related information when a makefile, taskfile, build commands file, or other file containing build instructions is not available. Another challenge is how to support an analysis of a program for security vulnerabilities or licensing requirements when the identities of some of the pr

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

References Cited — Backward Prior Art (28)

Non-Patent Literature (10)

  • “
  • CodeQL and the Static Tools Logo Test
  • ”
  • , retrieved from
  • <
  • <
  • https://learn.microsoft.com/en-us/windows-hardware/drivers/devtest/static-tools-and-codeql
  • >
  • >
  • , Jan. 18, 2023, 16 pages.