Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

48 results about "Function definition" patented technology

Function calling to enable muti-source data retrieval in generative artificial intelligence systems

PendingUS20250384064A1Digital data information retrievalBiological modelsData packFunction definition
A generative artificial intelligence system includes a retrieval augmented generation (RAG) assistant that utilizes function calling to facilitate multi-source data retrieval to enhance user queries transmitted to a large language model (LLM). The RAG assistant Transmits, to the LLM, a function selection instruction prompt that includes conversation history data, a function list including function definitions that each correspond to a data source, and instructions directing the LLM to return a function call to at least one function defined on the function list identified as relevant to the conversation history data based on a corresponding function descriptor. In response to receiving a function selection response from the LLM that includes the function call, the RAG assistant selects and executes a conditional operation based on a name of the at least one function.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC

Test script generation method, system and device, medium and product

PendingCN121681366AError detection/correctionTest scriptFunction definition
The embodiment of the invention discloses a test script generation method, system and device, a medium and a product, and relates to the technical field of tests.The method comprises the steps that target structured DBC data is obtained; processing the target structured DBC data by utilizing a target test script generation model to obtain at least one CAPL test script fragment; the target test script generation model is obtained by training according to historical structured DBC data and corresponding historical CAPL test script fragments; the CAPL test script fragment comprises at least one of variable declaration, function definition and event processing; and according to the at least one CAPL test script fragment, determining a target CAPL test script so as to quickly realize verification of the CAN bus communication condition.
Owner:CHINA FAW CO LTD

Artificial Intelligence Service(s) in a Distributed Cloud Computing Network Including Function Calling

PendingUS20260004166A1Inference methodsFunction definitionData aided
A compute server of a distributed cloud computing network receives an inference request. The inference request triggers execution of code that is related to an AI application that interacts with the inference request and causes its input to be run through an AI model. Helper code executing on the compute server transmits an inference request to the AI model, where this inference request includes a prompt and one or more function definitions, and where the AI model is executing in the same datacenter as the compute server. The helper code receives a result of the AI model executing the inference request, where it includes structured data for calling a function. The helper code calls the function using the structured data. The helper code receives a response to the called function. The code processes a response to the inference request based at least on the received response to the called function.
Owner:CLOUDFLARE INC

Vehicle body domain controller hardware-in-loop simulation method under AUTOSAR architecture

The invention discloses a vehicle body domain controller hardware-in-the-loop simulation method under an AUTOSAR architecture, and the main conception of the method is that based on the standardized interface definition of an AUTOSAR basic software layer, an HIL cabinet hardware channel standardized mapping relation library is established, and thus a hardware corresponding relation configuration file template is constructed; establishing a subsystem simulation model for each functional module and constructing a three-layer decoupling architecture in combination with different functional specifications to realize dynamic binding of test software and a hardware channel; then, based on an actual hardware interface and software function definition, a simulation test bench is built, and verification is completed; and finally, generating an automatic test case based on the function specification, and carrying out the function test of each subsystem of the vehicle body domain controller in the current test environment. According to the invention, the rack development period is obviously shortened, the flexibility and expandability of the test environment are improved, and the full-life-cycle test verification capability optimization is realized.
Owner:ANHUI JIANGHUAI AUTOMOBILE GRP CORP LTD

Combination instrument testing method, equipment and medium

PendingCN121996542AError detection/correctionVersion controlFunction definitionTest script
The invention discloses a combination instrument test method and device and a medium, and the method comprises the steps: obtaining a function definition of a to-be-tested combination instrument, carrying out the analysis and classification of the function definition based on a preset function module division rule, and generating a plurality of test function module sets; for each test function module set, generating a corresponding automatic test script according to the display type and the association relationship of the display signals in the test function module set; automatic test scripts corresponding to the selected target function modules are loaded and run in sequence, and corresponding display signals are sent to the to-be-tested combination instrument according to the sequence, value and time sequence logic defined in the automatic test scripts; and observing and recording an actual display state of the to-be-tested combination instrument after executing the corresponding automated test script, and comparing and analyzing the actual display state and an expected display state predefined in the test case to generate a test judgment result for the target function module.
Owner:潍柴新能源商用车有限公司

Hybrid computing task classification method and device, equipment and medium

The invention provides a hybrid computing task classification method and device, equipment and a medium, and the method comprises the steps: carrying out the grammar analysis of an input hybrid computing code, generating a tree structure reflecting a code structure, and extracting subtask units and unit information in the hybrid computing code based on the tree structure; extracting feature words of the unit information according to the unit information; obtaining a subtask type of a predefined hybrid computing task and a corresponding keyword; and respectively mapping the keywords and the feature words into semantic vectors, and calculating semantic similarity to determine the subtask type of the subtask unit. The tree structure is obtained through the abstract syntax tree algorithm, so that the hybrid computing code is analyzed, the function definition and the dependency relationship thereof are accurately extracted, and subjectivity and errors possibly brought by manual intervention are avoided.
Owner:YANGTZE DELTA IND INNOVATION CENT OF QUANTUM SCI & TECH +1

High-availability and high-performance formula execution method based on analysis-free

The invention belongs to the technical field of industrial dynamic formula execution, and discloses an analysis-free high-availability and high-performance formula execution method. The method comprises the following steps: S1, formula extraction and function body construction: receiving a calculation formula input by a user, and taking the calculation formula as a function body core calculation logic; s2, function packaging: adding a function head and a return value statement for a function body, and constructing a complete function definition character string; wherein the function head comprises a function name and a parameter list; and S3, function persistence and dynamic import execution: writing a function character string into an independent Python module file, and calling and executing through a dynamic import mechanism. According to the method, function packaging is adopted, the repeated lexical analysis and grammar analysis process which must be carried out when a traditional event () method is executed each time is eliminated, and the problems that a formula is forcibly required to only comprise functions of input parameters, calculation expressions and return values, and the bottleneck of industrial real-time application and the fragility of a whole framework are solved.
Owner:HUANENG POWER INT INC DALIAN POWER PLANT

Track section automatic turn-back attribute and safe area generation method, equipment and medium

ActiveCN121404341ARailway signalling and safetyFunction definitionTrackway
The invention discloses a track section automatic turn-back attribute and safe area generation method and device and a medium. The method comprises the steps that topological data and function definition data of a track traffic line are input; on the basis of the incidence relation between the function definition data and the topological data, through a predefined attribute calculation rule, automatic turn-back attributes of related track sections in the line are automatically calculated, and the automatic turn-back attributes are used for identifying function roles of the track sections in automatic turn-back; on the basis of the automatic turn-back attributes of all the track sections, one or more continuous automatic turn-back safety function areas are automatically generated through a path search algorithm; and outputting the automatic turn-back attributes and the automatic turn-back safety function area information of all the track sections. Compared with the prior art, the method has the advantages that the track section attributes are automatically calculated, the safety function area is generated, and automatic and accurate conversion from the line data to the automatic turn-back control data is achieved.
Owner:CASCO SIGNAL LTD

A data encoding system and method based on a simplex complex homogenization linear code

PendingCN122092885AControl initial parameterssymmetricalError preventionError correction/detection using linear codesCode generationFunction definition
This invention discloses a data encoding system and method based on simplicated complex homogeneous linear codes. The system includes: a parameter initialization module for initializing the construction parameters of an n-ary multivariable function F; a function definition module for generating the multivariable function F based on the construction parameters; and a definition set extraction module for constructing a definition set D. F ; Linear code generation module, used to generate linear codes according to the definition set D F This invention employs an inner product mapping to construct a basic p-ary linear code corresponding to the defined set; a homogenization processing module is used to homogenize the multivariable function F to obtain an (n+1)-ary homogeneous function; and a homogenized code generation module is used to generate a homogenized definition set based on the homogenized function, and then generate a homogenized p-ary linear code based on this set. This invention solves the problems of existing p-ary linear code construction techniques being complex in structure, having uncontrollable parameters, or being difficult to analyze weight distribution, leading to difficulties in efficient deployment in engineering.
Owner:HANGZHOU DBAPPSECURITY CO LTD

Hardware-in-the-loop simulation method for body domain controller under autosar architecture

ActiveCN120871821BElectric testing/monitoringTestwareFunctional specification
The application discloses a hardware-in-loop simulation method of a vehicle body domain controller under an AUTOSAR architecture, and the main idea of the application is that a standardized mapping relationship database of a HIL cabinet hardware channel is established based on standardized interface definition of an AUTOSAR basic software layer, and a hardware corresponding relationship configuration file template is constructed; in combination with different function specifications, a subsystem simulation model is built for each function module, a three-layer decoupling architecture is constructed, and dynamic binding of test software and the hardware channel is realized; then, based on actual hardware interfaces and software function definitions, a simulation test bench is built and verification is completed; finally, automatic test cases are generated based on the function specifications, and each subsystem function test of the vehicle body domain controller is carried out in the current test environment. The application significantly shortens the development cycle of the test bench, improves the flexibility and expandability of the test environment, and optimizes the whole life cycle test verification capability.
Owner:ANHUI JIANGHUAI AUTOMOBILE GRP CORP LTD

Embedded system

PendingCN121705223AElectric digital data processingFunction definitionEmbedded system
The invention discloses an embedded system. The embedded system comprises a CPU (Central Processing Unit), an interface function reconfiguration controller and a first connector, the input end of the interface function reconfiguration controller is connected with each functional interface of the CPU in a one-to-one correspondence manner, the output end of the interface function reconfiguration controller is connected with the input end of the first connector in a one-to-one correspondence manner, and the output end of the first connector is used for being connected with external equipment; the interface function reconfiguration controller is configured to receive an interface function reconfiguration instruction; determining a target interface and a target function definition of an interface function reconstruction controller according to the interface function reconstruction instruction; and reconstructing the function definition of the target interface of the interface function reconstruction controller according to the target function definition. In the embodiment of the invention, the interface function reconfiguration controller is introduced into the embedded system, and the interface function definition is dynamically configured through the interface function reconfiguration controller, so that the pin function of the connector is changed, the limitation of interface curing of a traditional module is broken through, and the resource waste is reduced.
Owner:TIANJIN GUANGHAO TECH CO LTD

Architecture method, device, storage medium and computer equipment of function control program

ActiveCN115576528BSoftware designModel driven codeProgramming languageFunction definition
Embodiments of the present application provide a kind of function control program's architecture method, device, storage medium and computer equipment.The method comprises: obtaining the function definition table of setting;Function definition table is input into parsing tool, and function configuration table and software development kit function file are generated;According to software development kit function file, the function interface of function control program is set;According to software development kit function file, the function / value interface parameter model of function control program is generated;According to function configuration table, the software development kit of function control program is generated.The technical scheme provided in the embodiments of the present application, function definition table is regarded as only input, unified function interface is designed based on parsing tool, can keep function interface uniform, consistent and scalable, improve the efficiency of application development.
Owner:CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD

A large model-based industrial application software code testing method

The application relates to the technical field of APP development, in particular to an industrial application software code testing method based on a large model, which comprises the following steps: receiving an industrial application software source file, parsing function definition statements and interface calling instructions in the file, extracting logical connection relationships between various business modules, constructing a function calling topological graph reflecting code unit directivity, and mapping code character sequences of each node in the function calling topological graph to a high-dimensional numerical coordinate system through a large model. In the application, conditional branching and parameter type reverse deduction are performed on a key path, constraint conditions are solved, and regression test case data capable of triggering a specific business scenario are automatically generated. In this way, the selection of a test focus, the discovery of a key path and the generation process of test data are automated and intelligentized, so that test resources can be accurately invested in function links with the highest value and the highest risk in software, and the test efficiency is improved.
Owner:BEIJING XINLUHANG TECHNOLOGY CO LTD

Toast message call detection method and device, terminal and medium

PendingCN120872783AError detection/correctionFunction definitionAlgorithm
The invention discloses a Toast message calling detection method and device, a terminal and a medium. According to the scheme provided by the invention, based on the to-be-detected code file, scanning is carried out according to the function definition information in the code file, when the target function is scanned, the first Boolean mark is activated, Toast message function field scanning is carried out in the action range of the target function, when the Toast message field is detected and the first Boolean mark is activated, the position is recorded, and the parameter is extracted; and resetting the first Boolean mark when the function ending mark is scanned, and finally outputting a detection result. According to the scheme, the function action range is accurately marked through the first Boolean mark, the entry and exit states of the function action range are dynamically tracked, and a matching mechanism of a specific field is combined, so that more accurate detection is realized, and the technical problem of low detection accuracy in a multi-layer nested function scene is solved.
Owner:创优数字科技(广东)有限公司

A method and device for code automatic analysis, electronic equipment and storage medium

This application provides a method, apparatus, electronic device, and storage medium for automated code analysis. The method includes: constructing parsing parameters based on the source file root directory, header file search path, and predefined AUTOSAR target macros in response to a parsing parameter construction operation; performing syntactic analysis on the source code based on the parsing parameters using a Clang compiler frontend to generate an abstract syntax tree; recursively traversing the abstract syntax tree to identify function definition nodes to extract function information and to identify function call expression nodes to capture the call relationship between the caller and the callee; and storing the function information and call relationship in a structured format as a function listing file and a call relationship file. This application can improve the efficiency and accuracy of C language code analysis under the AUTOSAR architecture, and realize the structured storage of function information and the visualization of call relationships.
Owner:CHINA FAW CO LTD

Front-end integrated unit testing method, device, equipment, medium and program product

PendingCN121880193AReduce test implementation costsSolve the heavy workload of full testingError detection/correctionBiological modelsLogisimSyntax
The invention provides a front-end integrated unit testing method, device and equipment, a medium and a program product, which can be applied to the technical field of unit testing. The method comprises the steps that a code file of a first front-end project is obtained based on a version control system, the first front-end project is not integrated with a unit test framework, and the code file at least comprises an incremental code file newly added and / or modified in the version issuing process; extracting a target function which needs to be subjected to unit testing from the code file through a regular matching rule adaptive to a first front-end project technology architecture function definition grammar; generating a basic test case template based on the structure information of the target function, and converting the basic test case template into an executable test code according to a grammar specification of a preset bottom layer unit test framework; establishing a unit test core system comprising a bottom layer unit test tool, version difference analysis logic, a regular matching screening rule and a test case writing grammar specification; and testing the target function by using the unit test system.
Owner:CHINA CONSTRUCTION BANK +1

Intelligent interaction method and device based on Agent and system interface and electronic equipment

The invention discloses an intelligent interaction method and device based on an Agent and a system interface, electronic equipment and a storage medium, and relates to the field of system interaction.The intelligent interaction method comprises the steps that abstract processing is conducted on operation ports of a target system, an interface document is formed, and parameter types, function definitions and executable operation instructions of the operation ports are recorded in the interface document; storing the interface document to a preset storage unit; performing learning training on the interface document by adopting a large model; the Agent unit obtains an interaction instruction sent by a user and collects current state information of a target system; the Agent calls the large model and analyzes the interface document in combination with the interaction instruction and the current state information to generate an executable operation sequence, and the operation sequence converts the target system from the current state to the target state; the target system executes the operation sequence; in the operation sequence execution process, state updating information of the target system is collected in real time and fed back to the Agent unit, and the Agent unit dynamically adjusts the operation sequence according to the state updating information.
Owner:CHINA FAW CO LTD +1

A field wiring design system and design method thereof

A field wiring design system and a design method thereof belong to the field of field wiring systems in the industrial control industry, and specifically relate to a field wiring design system and a design method thereof. The present invention provides a field wiring design system and a design method thereof that has a simple system, low operating difficulty, and can automatically generate a list. In the present invention, the file management module is used to create new files, import files, and delete files; the template management module is used to generate corresponding hub templates according to requirements, and connect the generated template ports to the grassroots communication module and the gateway module respectively; the component library management module is used to call standard components and customize the properties of non-standard components; the function definition module is used to classify, refine the properties and make notes for the selected components; the output module is used to generate detailed project information for the drawn project, and output the detailed project information. The present invention is mainly used for field wiring of hubs.
Owner:YANTAI DERONG IND CO LTD

Test case generation method based on cross-modal information fusion and iterative optimization

The invention discloses a test case generation method and system based on cross-modal information fusion and iterative optimization, and the method comprises the steps: receiving and analyzing a software demand document containing a text and an image, and extracting cross-modal information in the document; inputting the extracted cross-modal information into a multi-modal large model, cooperatively analyzing function definition and visual information through a cross-modal attention mechanism, extracting software function points, and classifying the function points according to a preset multi-level hierarchical structure; based on the classified function point hierarchical structure, generating a corresponding multi-level test point structure according to a mapping rule of the function points and the test points; generating a test case set containing a plurality of core fields according to the multi-stage test point structure, structuring and organizing the test case set into an initial JSON file, and executing at least one iterative optimization process on the initial JSON file to generate an optimized JSON file; and analyzing the optimized JSON file to generate a test case for an actual test.
Owner:CHINA ELECTRIC POWER RESEARCH INSTITUTE CO LTD

Vehicle end product evaluation method, device and equipment and storage medium

PendingCN121329523ACommerceFunction definitionTesting Methods
The invention discloses a vehicle end product evaluation method, device and equipment and a storage medium, and is applied to the technical field of Internet of Vehicles data analysis, and the method comprises the steps: obtaining the function configuration information of a to-be-evaluated vehicle end product; wherein the function configuration information comprises at least one of a function triggering mode and function definition information; determining a target product feature of the to-be-evaluated vehicle end product according to a product feature condition met by the function configuration information; wherein different product feature conditions correspond to different target product features; evaluating the to-be-evaluated vehicle end product according to the obtained index parameter corresponding to the target product feature to obtain the product type of the to-be-evaluated vehicle end product associated with the target product feature; wherein the product type is associated with the user emotion dimension.
Owner:CHONGQING CHANGAN AUTOMOBILE CO LTD

Method and device for updating scene function data, electronic device, and storage medium

The application discloses a scene function data updating method and device, an electronic device and a storage medium, wherein the scene function data updating method comprises the following steps: obtaining a new function definition and an old function definition of a target device; establishing a mapping relationship between the new function definition and the old function definition; updating a scene function supported by the target device at present by using the new function definition; detecting whether a target scene function is applied to a scene function configuration; wherein the target scene function refers to a scene function with a changed function definition; if it is detected that the target scene function is applied to the scene function configuration, updating the scene function configuration to which the target scene function is applied based on the mapping relationship between the new function definition and the old function definition. Thus, a convenient scene function data updating method is realized.
Owner:QINGDAO HAIER TECH +1

A pattern conversion method and device for an object model to language model tool invocation

PendingCN122287555ALinguistic modelFunction definition
This invention provides a method and apparatus for pattern conversion in calling tools from object models to language models. The method includes: receiving and parsing input object model description data, and extracting action fields, attribute fields, and supplementary configuration fields from the object model description data; mapping the action fields to first-class tool function definitions recognizable by the large language model; splitting and reconstructing the attribute fields into independent attribute acquisition functions and attribute setting functions, and adding constraints to the parameters of the attribute acquisition functions and attribute setting functions; converting the supplementary configuration fields into synchronous interaction functions and tool-level annotation information adapted to the large language model; aggregating the first-class tool function definitions, second-class tool function definitions, synchronous interaction functions, and tool-level annotation information, and outputting a parameter pattern file conforming to the large language model tool calling specification. This achieves standardized automatic bridging between IoT devices and the large language model interface, reducing the cost of connecting massive numbers of devices to the large model.
Owner:MACAU DIGITAL POWER TECHNOLOGY CO LTD

Plan validation

PendingUS20260187063A1Function definitionEngineering
Certain aspects of the disclosure provide techniques for validating function plans by a device. An example method includes receiving, as input, a function plan comprising a function definition that comprises a set of features associated with a function, a user query, and a function schema that corresponds to the function included in the function plan; determining a hallucination in the function definition by comparing the set of features of the function definition with one or more corresponding features included in the user query or the function schema; determining that a correct feature corresponding to the hallucination is not included in either the user query or the function schema; performing function-specific disambiguation to obtain the correct feature; modifying the function definition by replacing the hallucination with the correct feature; and executing the function plan with the modified function definition.
Owner:INTUIT INC

MBSE-based proton exchange membrane fuel cell system modeling method and system

The invention discloses an MBSE-based proton exchange membrane fuel cell system modeling method. The method comprises the following steps: carrying out demand analysis modeling, collecting demands of a benefit related party, converting the demands into system demands, and constructing a demand analysis model; modeling an application scene, identifying a typical operation scene of the system, defining participants and an interaction process, and constructing an application scene model; function definition modeling is carried out, system functions are decomposed, the relationship between the functions is determined, and a function definition model is constructed; architecture design modeling is carried out, functions are mapped to system components, a system architecture is designed, and an architecture design model is constructed; performing system simulation modeling, establishing a simulation environment based on the architecture model, and performing simulation verification on key functions and performance; verification and confirmation are carried out, system requirements are verified and confirmed according to simulation results, and it is ensured that system design meets expected functions and performance targets. According to the invention, the consistency and traceability of the development of the proton exchange membrane fuel cell system can be improved.
Owner:SHANGHAI UNIV OF ENG SCI +1

Customized control method and device of water heater, electronic equipment and computer medium

ActiveCN115200228BAchieve flexible function controlImprove user experienceSolar heating energySolar heat collector controllersFunction definitionSpecific function
The application belongs to the technical field of water heater control, and particularly relates to a self-defined control method and device of a water heater, an electronic device and a computer medium. The application aims to solve the problem that the existing water heater control scheme has fixed functions and cannot meet the specific function requirements of different users. The self-defined control method of the water heater comprises the following steps: if the self-defined function key is enabled, a function definition set set by a user at the self-defined function key is acquired, the function definition set comprises one or more self-defined function options; instruction information of the user is received, and it is judged whether the instruction information is instruction information corresponding to the self-defined function option; if yes, corresponding function services are provided based on the instruction information. Through the above method, flexible function control of the water heater is realized, different water heater function requirements of different users are met, the interaction ability between the user and the water heater is optimized, and the technical effect of improving the use experience of the user is achieved.
Owner:QINGDAO ECONOMIC AND TECHNOLOGICAL DEVELOPMENT ZONE HAIER WATER HEATER CO LTD +1

Array border crossing detection method, device and apparatus, and storage medium

The invention provides an array border crossing detection method, device and device and a storage medium, and the method comprises the steps: obtaining at least one target file to be detected, the target file being a source code file written based on a C language; for each target file, reading the file content line by line, and performing local array definition statement pattern matching on the current line content under the condition that the current line content function definition statement pattern matching is unsuccessful; if the local array definition statement pattern matching is not successful, extracting array subscript judgment information to update a judgment dictionary and extracting array subscript variables to update an array subscript variable list for the current row content; performing border crossing detection on the array subscript variable list based on the judgment dictionary to obtain an array border crossing detection result; the array cross-border detection result is used for prompting the user whether the array cross-border risk exists or not. Therefore, the detection efficiency and the detection precision of array border crossing can be improved.
Owner:DATANG MOBILE COMM EQUIP CO LTD

Integration of machine learning models into software systems using software library

ActiveUS12541347B2Model driven codeSoftware reuseFunction definitionSoftware system
Various embodiments described herein support or provide operations including receiving input data that comprises a function definition; generating a schema that describes output data in an output format expected in a function output; and executing a function based on the function definition. The execution of the function includes generating a prompt that includes the schema and the input data; using a machine learning model to generate a response based on the prompt, the machine learning model comprising at least one large language model; and generating the function output by converting the response into a programming data object in the output format described by the schema.
Owner:DISCOVER BEAGLE INC

Automatic point burying method and device, equipment and storage medium

The invention discloses an automatic point burying method and device, equipment and a storage medium, and relates to the technical field of computers.The method comprises the steps that a design document of an intelligent cabin driving layer is analyzed, and basic function information in the design document is extracted; generating a log control configuration file and a burying point function configuration file of an intelligent cabin driving layer based on the basic function information; generating a log management component of an intelligent cabin driving layer according to the log control configuration file; and performing automatic point burying on the function definition code snippets to be subjected to point burying based on the log management component and the point burying function configuration file. The log management component can be generated according to the log control configuration file of the intelligent cabin driver layer, and automatic point burying is performed on the function based on the log management component and the point burying function configuration file of the intelligent cabin driver layer, so that the problem that a log point burying method in the prior art depends on manual operation; the coverage rate is not high; and errors are easy to occur.
Owner:FIBOCOM AUTO SOFTWARE INC

A JavaScript Context-Aware Test Generation Method and System Based on a Large Model

This invention discloses a JavaScript context-aware test generation method and system based on a large model. Taking the JavaScript project to be analyzed as input, and relying on static analysis technology, it constructs a function identification graph, a function context dependency graph, and a third-party interface semantic graph, systematically modeling information such as function definition locations, module structures, call relationships, parameter types, and external dependencies. Based on this structured modeling result, it further constructs a unified format of prompt words to guide the large language model in generating unit test cases with semantic consistency and executability. After generating test code, it supports syntax validation, assertion recognition, and dependency completion, automatically generating test files that conform to the project structure. This invention can significantly improve the accuracy of test case generation, path coverage, and project adaptability, and is applicable to various JavaScript projects and mainstream Node.js application scenarios, possessing good scalability and versatility.
Owner:HUAZHONG UNIV OF SCI & TECH

Malicious Python script detection method and system oriented to industrial internet

The invention belongs to the technical field of computers, and relates to an industrial internet-oriented malicious Python script detection method and system. Comprising the steps of obtaining a to-be-tested Python script file, extracting a source code, and performing preprocessing and static analysis on the source code to obtain an abstract syntax tree, a function definition, a variable reference and an entry point list; generating a local control flow graph according to the abstract syntax tree, and combining the local control flow graph with function definition, variable reference and an entry point list to synthesize a global interprocess control flow graph; after normalization processing is carried out on the inter-process control flow diagram, semantic embedding and risk weight distribution are carried out respectively, and an inter-process control flow diagram with node attribute embedding is obtained; the method comprises the following steps: carrying out conversion, graph learning, iterative message aggregation and script detection on a malicious script, outputting probability distribution belonging to malicious scripts and normal scripts, selecting malicious probabilities, comparing the malicious probabilities with a threshold value, and finishing final judgment, thereby solving the problems of incomplete script malicious detection coverage, weak robustness and dependence on shallow layer characteristics in the prior art.
Owner:XIDIAN UNIV