Patents
Literature
Hiro is an intelligent assistant for R&D personnel, combined with Patent DNA, to facilitate innovative research.
Hiro

61 results about "Type inference" patented technology

Type inference refers to the automatic detection of the data type of an expression in a programming language. It is a feature present in some strongly statically typed languages. It is often characteristic of functional programming languages in general. Some languages that include type inference include C++11, C# (starting with version 3.0), Chapel, Clean, Crystal, D, F#, FreeBASIC, Go, Haskell, Java (starting with version 10), Julia, Kotlin, ML, Nim, OCaml, Opa, RPython, Rust, Scala, Swift, Vala and Visual Basic (starting with version 9.0). The majority of them use a simple form of type inference; the Hindley-Milner type system can provide more complete type inference. The ability to infer types automatically makes many programming tasks easier, leaving the programmer free to omit type annotations while still permitting type checking.

Type inference system and method

Systems and methods of representing and extracting type information from typeless and dynamically-typed programming languages are provided. These systems and methods can be immune to source file edits and the order in which those edits are executed. Deriving type information from these languages allows tools to perform operations, for example, refactoring, intellisense, recognition of semantic errors, etc. These systems and methods can be implemented using processes that, implicitly or explicitly, gather type information for the program, and can also accept user input as well.
Owner:APPCELERATOR

Type inference system and method

Systems and methods of representing and extracting type information from typeless and dynamically-typed programming languages are provided. These systems and methods can be immune to source file edits and the order in which those edits are executed. Deriving type information from these languages allows tools to perform operations, for example, refactoring, intellisense, recognition of semantic errors, etc. These systems and methods can be implemented using processes that, implicitly or explicitly, gather type information for the program, and can also accept user input as well.
Owner:APPCELERATOR

Efficient data access via runtime type inference

A system and methodology that provide schema inferencing at runtime. An inference component receives as an input an input data stream, and processes the input data stream at runtime to develop a schema based on actual values thereof. The inferred schema is then used to create an inferred output data that is a specialized representation of the input stream data, which can then be accessed efficiently and conveniently.
Owner:MICROSOFT TECH LICENSING LLC

Method and apparatus for a cross-platform translator from VB.net to java

A method and system for translating source code in one logically distinct object oriented language on one platform into another object oriented language on another platform. This includes the translation of the classes and statements in the original source. It also includes the creation of object oriented interfaces for all types and services used in the source code whose definitions are not provided. Once the source code classes are translated, a complete object oriented interface to the target platform is generated. Type inference analysis is performed on the input source code in order to infer types for undeclared services and to infer type hierarchies for undeclared types. Type inference analysis is utilized to generate object oriented interfaces for all types and services used in the source code whose definitions are not available. The method and system also have the capability of generating, on an as needed basis, specific bridge classes which support bridging the platform differences between the target and the source platform.
Owner:ADAMS MEGAN

Local type alias inference system and method

The present invention discloses an improved system and method for specifying and compiling computer programs. Type aliases are introduced whose binding is inferred by a type inference component during compilation. Once declared, type aliases can be utilized just like regular types thereby providing added efficiency in coding, among other things. Additionally, a mechanism for specifying the introduction of a new variable whose type is to be inferred is disclosed. This mechanism clears up an ambiguity during type inference concerning whether to infer a new variable type or utilize a variable in scope. Further yet, an efficient type inference system and method is disclosed to effectively deal with overloading among other things.
Owner:MICROSOFT TECH LICENSING LLC

Python resource sensitive defect code detecting method based on depth neural network

The invention provides a Python resource sensitive defect code detecting method based on a depth neural network. The Python resource sensitive defect code detecting method comprises the following steps of 1, obtaining a source code of the historical version of the same software and a source code of a to-be-detected version; 2, utilizing type deduction to extract resource sensitive code modes of all versions; 3, extracting relevant characteristics of the resource sensitive code modes; 4, calculating all characteristic similarities between a defect code mode and a safe code mode and between thedefect code mode and a to-be-detected code mode to generate characteristic vectors and obtaining a training set and a testing set; 5, using the training set to train a depth neural network model to combine the characteristics, then using the mode with a testing set to calculate relevance of the depth neural network model and ranking the relevance; 6, conducting prompt, assisting development and maintenance on possibly wrong resource object operations according to a relevance ranking result in a program development and maintenance period. The Python resource sensitive defect code detecting method based on the depth neural network solves the problems that currently, an automated method aiming at Python language resource sensitive code recognition and defect code detection is lack, then the software risk is lowered, the software quality is improved, and thus the efficiency for a developer and a maintainer to develop and maintain software is improved.
Owner:NANJING UNIV

Method of performing queriable XML compression using reverse arithmetic encoding and type inference engine

A method and apparatus for performing queriable XML compression and queries related to a compressed XML document are disclosed. In the method, information, including at least the frequencies of the respective tags of XML data, the type information of data values and data value-related statistical information is collected. Thereafter, the type information of data values of elements is inferred according to tags using an automatic data type inference engine algorithm. Reverse arithmetic encoding is performed on the tags and paths of elements. The data values are encoded based on the inferred type information.
Owner:KOREA ADVANCED INST OF SCI & TECH

Compiler with user-defined type inference rules

Performance of a program written in dynamic languages is improved through the use of a compiler that provides type inference for methods having a user-defined element. The user-defined element may be an input in a user-defined type. Though, the user-defined element may reflect that the method is user-defined. Type inference may be performed based on a user-defined mapping, relating input types to output types for one or more methods. The mapping may be specified as a data table provided to the compiler or as one or more functions that register with the compiler such that, as the compiler processes portions of a source program and detects a method with a user-defined element, the compiler may access the mapping and infer the type of an output of the method. The inferred type may then be used to optimize code dependent on that output.
Owner:MICROSOFT TECH LICENSING LLC

Method and system for united inference of Chinese events

The invention provides a method and system for united inference of Chinese events on a chapter level. The method and the system can apply valuable information in argument extraction to assist in trigger word extraction in turn, so that cascading mistakes in a traditional pipeline mode can be reduced. With regard to an implementation method, the method and the system provided by the invention combine machine learning with the inference; and various types of language knowledge is used to recognize a time sequence relation of the Chinese events. The method and the system provided by the invention have the advantage that recognition performance is enhanced to a certain extent in comparison with existing methods and systems.
Owner:SUZHOU UNIV

Extending Legacy Scripting Languages with Graphical References

A graphical data type inference transparently transforms a legacy text-oriented command line interface (CLI) into a graphic-oriented or graphic-aware CLI (G-CLI). A user fuses graphical references with the legacy scripting language by identifying objects using syntax familiar to the user. The objects are presented to the user via a user interface and may be queried / selected by the user. The user issues commands on the selected objects by referencing the graphical selection in a command line within a shell. The graphical selection in short hand is translated into a form operable by a server or computer. The syntax of the legacy command language is extended with operators that operate entirely within the G-CLI. Consequently, the command line used in the shell has an existing operation set, as well as new graphic-based operations.
Owner:NUANCE COMM INC

Incremental type inferencing engine

InactiveUS20070169036A1Well formedSoftware engineeringProgram controlUnification processType inference
Computer program source code may be parsed to generate corresponding type constraints. The type constraints may be incrementally resolved to achieve incremental type inferencing of various programmatic elements specified by the source code. In contrast to conventional type inference, incremental type inferencing may enable the inference of type information for programmatic elements specified by a programming language that was not designed for type inference. One or more type constraints may be incrementally added to a constraint set and the constraint set repeatedly unified. Unification anomalies may arise during this process. For example, type mismatches corresponding to potential flaws in the source code may be detected by the unification process. In response to some or all of these anomalies, one or more entries may be made in a type anomaly audit. A separate such audit may be provided with respect to each intended deployment platform.
Owner:DHI TECH

System and method for an improved type inference

An improved type inference may be calculated for a path expression that may be classified into a series of input expressions followed by steps. For each such series, the inference may be calculated based on input including a type for the input expression, an axis for the step, and a node test for the step. The cardinality of the input expression type is preserved for the calculation of the step type. Also, a set of one or more matching node types may be identified within the type repository. These matching node types are node types within the axis of the step that match the node test of the step. These matching node types are identified without calculating the full content type implied by the axis. Avoiding the calculation of the full content type of the axis may reduce the processing time required to perform the inference.
Owner:MICROSOFT TECH LICENSING LLC

Method, system and program product for building an automated datapath system generating tool

A method, system and program product for building an automated bit-sliced datapath system generating tool so design can be performed at a higher level, and automated generation of the synthesizable HDL representation can be accomplished are disclosed. A method defines datapath system characteristics, defines core / pin rules, and then constructs class-type inference rules that can be used for automatically generating the datapath system. An “orthogonal bundling” technique is used that groups pin by a class, and also by a channel identifier. The class-type inference rule corresponding to each class uses of the following factors to infer appropriate wiring: 1) number and type of pins in the class created by the instantiation of cores by the user; 2) attribute definitions on pins set by library core / pin rules; 3) user selection of “global attributes”; 4) user definition of channel bit order (“link orders”) to imply the order of connection between stages; and 5) user-defined attributes set on pin classes.
Owner:GOOGLE LLC

Inferring data type in a multi stage process

A computer program (10) for analysing a specification, determining what kind of data processing operations are carried out, and deducing or inferring from the kind of internal operations, what data types are appropriate. The data types inferred can be compared with specified data types, to check for errors, or optimise the overall process. This is effectively an extension of type inference from individual programs into the higher level technical field of process analysis. It can also be applied to monitoring and optimising processes during operation of the processes.
Owner:HEWLETT PACKARD DEV CO LP

Assisted compositional reasoning for test scripts

Assisted compositional reasoning for test scripts is implemented by a Type Inference of GUI Object References (TIGOR). TIGOR makes types of GUI objects explicit in the source code by using the properties of GUI objects as referred to in test script statements to access a GUI object repository for GUI objects that have matching GUI objects properties. TIGOR analyzes the GUI object types of the matching GUI objects in view of a sequence of operations performed on the GUI objects in the test script statements. TIGOR infers a GUI object type for a GUI object when that GUI object type is determined to be valid and / or compatible with a sequence of operations, such as API calls, executed in test script statements that perform actions on the GUI object.
Owner:ACCENTURE GLOBAL SERVICES LTD

Efficient data access via runtime type inference

A system and methodology that provide schema inferencing at runtime. An inference component receives as an input an input data stream, and processes the input data stream at runtime to develop a schema based on actual values thereof. The inferred schema is then used to create an inferred output data that is a specialized representation of the input stream data, which can then be accessed efficiently and conveniently.
Owner:MICROSOFT TECH LICENSING LLC

Method, system and program product for building an automated datapath system generating tool

An automated bit-sliced datapath system generating tool is built so design can be performed at a higher level, and automated generation of the synthesizable HDL representation can be accomplished are disclosed. A method defines datapath system characteristics, defines core / pin rules, and then constructs class-type inference rules that can be used for automatically generating the datapath system. An “orthogonal bundling” technique is used that groups pin by a class, and also by a channel identifier. The class-type inference rule corresponding to each class uses of the following factors to infer appropriate wiring: 1) number and type of pins in the class created by the instantiation of cores by the user; 2) attribute definitions on pins set by library core / pin rules; 3) user selection of “global attributes”; 4) user definition of channel bit order (“link orders”) to imply the order of connection between stages; and 5) user-defined attributes set on pin classes.
Owner:GOOGLE LLC

Cross-Platform Compiler for Data Transforms

Techniques for automatically partitioning a multi-platform data transform flow graph to one or more target output platforms are provided. The techniques include performing type inference on a transform graph, wherein the transform graph comprises one or more data transforms, automatically partitioning the transform graph to one or more target output platforms based on one or more policies, performing an optimization of the partitioned transform graph, and generating code, from the partitioned transform graph, for each set of the one or more data transforms based on the one or more target output platforms.
Owner:IBM CORP

Configuration item type constraint inference method based on name semantics

The invention discloses a configuration item type constraint inference method based on name semantics, and provides a configuration item type inference and related constraint extraction method based on name semantics, wherein semantic information in a name and a type of a configuration item are fully mined, and consequently an aim of promoting configuration constraint extraction precision and eliminating constraint extraction boundedness is realized. A technical scheme comprises the following steps: firstly, reading a configuration file of a software system in advance, and obtaining the configuration item in the configuration file through parsing; secondly, finding out mapping between the system configuration item and a program source code through a characteristic mode; then, obtaining thetype of the configuration item through name analysis and program source code analysis; completing verification for the configuration type; and finally, inferring out the configuration constraint in cooperation with program analysis through a predefined template. According to the method provided by the invention, the semantic information in the name of the configuration item, particularly the constraint information contained in the configuration item type, is mined fully. The type of the configuration item is inferred through the name of the configuration item, meanwhile, grammar and semanticconstraint of the configuration item are extracted, difficulty in extraction of the configuration constraint is reduced greatly, the configuration constraint can be described in a fine granularity mode at the same time, and the method has good application scenes.
Owner:NAT UNIV OF DEFENSE TECH

Type inference for datalog with complex type hierarchies

What is disclosed are a novel system and method for inferring types of database queries. In one embodiment a program and associated database schema that includes a type hierarchy is accessed. The program includes query operations to a database that contains relations described by a database schema. Types are inferred from definitions in the program by replacing each database relationship in the program by the types in the database schema. A new program is generated with the types that have been inferred with the new program only accessing unary relations in the database. In another embodiment, testing of each of the types that have been inferred is performed for type emptiness. In response to type emptiness being found for a type that have been inferred, a variety of different operations are performing including removing the type, providing a notification regarding the emptiness found for the type, and more.
Owner:MICROSOFT TECH LICENSING LLC

Type inference of generic type parameters in overloaded functions using type intervals and inference directions

The disclosed embodiments provide a system that facilitates the development and execution of a software program. During operation, the system obtains a type interval for a generic type parameter of an implementation of an overloaded function. Next, the system selects an inference direction for the generic type parameter based on a variance of the generic type parameter, wherein the inference direction is an upward inference direction or a downward inference direction. Finally, the system uses the type interval and the inference direction to perform type inference on the generic type parameter.
Owner:ORACLE INT CORP

Smart socket-based electrical appliance type inference method and device

The invention discloses a smart socket-based electrical appliance type inference method and device, wherein the method comprises the following steps: constructing a user power data set according to electrical appliance power consumption data, and constructing an electrical appliance power consumption characteristic model library according to the electrical appliance power consumption characteristic; constructing an electrical appliance behavior data set according to the user power data set and the electrical appliance power consumption characteristic model library; constructing a characteristic vector extracting model according to the electrical appliance behavior data set so as to construct a power consumption characteristic vector data set; constructing an electrical appliance type classifier according to the power consumption characteristic vector data set and a machine learning algorithm; detecting the power consumption data of a to-be-measured electrical appliance and determiningthe electrical type of the to-be-measured electrical appliance through the model and the classifier. According to the method, the power data of the user is collected through a smart socket; by extracting the characteristics of the range of the power consumption of the household appliances, the duty ratio of the power consumption and the duration of time of power consumption, the power utilizationbehavior of the user is inferred, an electrical appliance behavior event data set is generated, and an electrical appliance type classifier is constructed based on the machine learning model, so thatthe type of the utilized electrical appliance can be inferred in real time; the robustness is high; and the method is simple and easy to implement.
Owner:BEIHANG UNIV +1

Systems and/or methods for type inference from machine code

Systems, methods and computer readable medium described herein relate to techniques for automatic type inference from machine code. An example technique includes receiving a machine code of a program, generating an intermediate representation of the machine code, generating a plurality of type constraints from the intermediate representation, generating one or more inferred types based at least upon the plurality of type constraints, converting the generated inferred types to C types, updating the intermediate representation by applying the inferred types to the intermediate representation, and outputting said inferred types, said converted C types, and / or at least a portion of the updated intermediate representation.
Owner:GRAMMATECH

State inference in a heterogeneous system

The invention relates to inferring the state of a system of interest having a plurality of indicator values and possibly being heterogeneous in nature. A number of indicator values from a control state and from a comparison state are gathered. From these indicator values, classification power between the control and comparison states (measure of goodness) is computed. Difference values are computed for the indicator values from the system of interest based on the difference to the indicator values from control and comparison states. From a number of these indicators, composite indicators are formed, and composite measures of goodness and composite difference values are computed. A plurality of composite indicators may be formed at different levels. These indicators may be represented as a tree and grouped according to content, and at the same time they may be arranged according to the measure of goodness or some other value. The indicators, measures of goodness, and difference values may be visualized and shown to a user, who may use such a representation for inferring the state of the system.
Owner:COMBINOSTICS OY

Method, apparatus, and computer program for specializing serializer

To provide a method, apparatus, and computer program for performing type inference of serialization for each generation site and specializing a serializer for each generation site. A type of serialization is inferred for each generation site of compiling a query, and a serializer is specialized for each generation site based on the inferred type and a type that is actually used. A data value is serialized using the specialized serializer for each generation site. The inference is executed while transcribing identification information assigned to each generation site to a type as an annotation, and the inferred type and the type used in serialization are recursively compared.
Owner:IBM CORP

Deferred type inference of generic type parameters in function calls to overloaded functions

The disclosed embodiments provide a system that facilitates the development and execution of a software program. During runtime of the software program, the system delays type inference on a generic type parameter of an implementation of an overloaded function, wherein the generic type parameter is associated with a type interval containing an unbounded lower limit and one or more self-typed constraints. Upon detecting a type query for a dynamic type of the generic type parameter, the system compares a queried type from the type query with a set of inference choices for the generic type parameter. If the queried type matches an inference choice from the set of inference choices, the system uses the inference choice to perform type inference on the generic type parameter.
Owner:ORACLE INT CORP

Type inference for datalog with complex type hierarchies

What is disclosed are a novel system and method for inferring types of database queries. In one embodiment a program and associated database schema that includes a type hierarchy is accessed. The program includes query operations to a database that contains relations described by a database schema. Types are inferred from definitions in the program by replacing each database relationship in the program by the types in the database schema. A new program is generated with the types that have been inferred with the new program only accessing unary relations in the database. In another embodiment, testing of each of the types that have been inferred is performed for type emptiness. In response to type emptiness being found for a type that have been inferred, a variety of different operations are performing including removing the type, providing a notification regarding the emptiness found for the type, and more.
Owner:MICROSOFT TECH LICENSING LLC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products