Method and system for judging stubborn variants of parallel programs

A determination method and variant technology, applied in the direction of software testing/debugging, can solve problems affecting the application of variant testing, and achieve the effect of improving testing efficiency

Active Publication Date: 2022-03-22
SHANDONG JIANZHU UNIV
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] A parallel program refers to a program that contains two or more parallel execution processes; a distributed storage parallel program means that each process has its own independent memory. During program execution, the interaction between processes is mainly realized by message passing; Processes are executed in parallel and communicate with each other. Parallel programs can achieve high solution speed and accuracy, and have been widely used in scientific research and production and life, such as weather forecasting, email filtering, and virus analysis; specifically, in addition to general serial In addition to the characteristics of programs, parallelism, communication and uncertainty are the main characteristics of distributed storage parallel programs, which also bring challenges to the mutation testing of distributed storage parallel programs; in order to improve the efficiency of mutation testing, the stubborn mutation testing theory of such programs is studied The sum method is very meaningful. At present, there is no method for determining the stubborn variant of distributed storage parallel programs, which seriously affects the application of mutation testing in distributed storage parallel programs.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for judging stubborn variants of parallel programs
  • Method and system for judging stubborn variants of parallel programs
  • Method and system for judging stubborn variants of parallel programs

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0037] The present disclosure provides a method for determining stubborn variants of parallel programs, including:

[0038] According to the execution status of the mutated statement, the execution order of the sending node of the mutated statement is divided into equivalence classes;

[0039] Identify factors that affect variant recalcitrance;

[0040] According to the factors that affect the recalcitrance of the variant, combined with the influence of the execution order of the sending node after the equivalence class division on the factors, calculate the recalcitrant composite index of the variant;

[0041] Set the threshold and compare it with the recalcitrant composite index to complete the determination of recalcitrant variants.

[0042] In this embodiment, the execution status of the mutated statement is determined according to the variables in the mutated statement; in combination with the influence of communication dependencies on the variables in the set of variabl...

Embodiment 2

[0112] In this embodiment, the program triangle is selected as the program under test, figure 2 For the code of the program triangle, the performance of the proposed method is evaluated based on variance analysis. The function of this program is to seek the triangle type formed by the first 3 input variables of the program, and calculate the value of type; in this embodiment, the Implement the mutation operation to obtain the mutation statement "w=w-type".

[0113] In order to verify the effectiveness of the determination index for stubborn variants, the following operations are performed: first, according to the calculation method of variant stubbornness disclosed in the present disclosure, the stubborn variants in the program are determined; then, the random method is used to generate test data covering the variant sentences; Finally, these test data are used to execute the program under test with recalcitrant variants. The plausibility of the disclosure was assessed in ...

Embodiment 3

[0162] This embodiment discloses a system for judging stubborn variants of parallel programs, including an equivalence classification module, a stubborn composite index calculation module, and a stubborn variant judging module;

[0163] The equivalence class division module is configured to: perform equivalence class division on the execution order of the sending nodes of the variant statement according to the execution status of the variant statement;

[0164] The recalcitrant composite index calculation module is configured to: determine the factors affecting the recalcitrance of the variant; according to the factors affecting the recalcitrance of the variant, and in combination with the influence of the execution order of the sending node after the equivalence class division on the factors, calculate the variant The recalcitrant composite index;

[0165] The recalcitrant variant determination module is configured to: set a threshold, compare it with the recalcitrant composi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The present disclosure discloses a method for judging a stubborn variant of a parallel program, which is characterized in that it includes: dividing the execution sequence of the sending nodes of the variant statement into equivalence classes according to the execution status of the variant statement; determining the factors affecting the stubbornness of the variant ;According to the factors that affect the recalcitrance of the variant, combined with the influence of the execution order of the sending node after the equivalence class division on the factors, calculate the recalcitrant composite index of the variant; set the threshold and compare it with the recalcitrant composite index to complete the recalcitrant mutation Judgment of variants; this disclosure combines the concept of parallel programs with the principle of mutation testing, and screens out stubborn variants of parallel programs based on the relationship between the execution order of sending nodes and factors affecting the stubbornness of variants, and focuses on testing the stubborn variants , thereby improving the test efficiency.

Description

technical field [0001] The disclosure belongs to the technical field of computer software testing, and in particular relates to a method and system for judging stubborn variants of parallel programs. Background technique [0002] The statements in this section merely provide background information related to the present disclosure and do not necessarily constitute prior art. [0003] Software testing is an important way to improve software quality; in order to test software, it is usually necessary to prepare a certain amount of test data, called test data sets; the adequacy of test data sets is a key prerequisite for improving the credibility of software testing; evaluating a certain The adequacy of the test data set is often achieved by implementing mutation testing on the software under test; the process of implementing mutation testing is as follows: First, the original program is modified slightly according to certain rules and a statement in line with the grammar, and ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
Inventor 田甜杨秀婷王安轼马晓娜
Owner SHANDONG JIANZHU UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products