To avoid the precision loss caused by combining data- flow facts impossible to occur in the same execution path in dependence analysis for C programs, this paper first proposes a flow-sensitive and context-insensitive...To avoid the precision loss caused by combining data- flow facts impossible to occur in the same execution path in dependence analysis for C programs, this paper first proposes a flow-sensitive and context-insensitive points-to analysis algorithm and then presents a new dependence analysis approach based on it. The approach makes more sufficient consideration on the executa- ble path problem and can avoid invalid combination between points-to relations and between points-to relations and reaching definitions. The results of which are therefore more precise than those of the ordinary dependence analysis approaches.展开更多
Though Unified Modeling Language (UML) has been widely used in software development, the major problems confronted lie in comprehension and testing. Dependence analysis is an important approach to analyze, understand,...Though Unified Modeling Language (UML) has been widely used in software development, the major problems confronted lie in comprehension and testing. Dependence analysis is an important approach to analyze, understand, test and maintain programs. A new kind of dependence analysis method for UML class diagrams is developed. A set of dependence relations is definedcorresponding to the relations among classes. Thus, the dependence graph of UML class diagram can be constructed from these dependence relations. Based on this model, both slicing and measurement coupling are further given as its two applications.展开更多
Extracting objects from legacy systems is a basic step in system's object orientation to improve the maintainability and understandability of the systems. A new object extraction model using association rules and ...Extracting objects from legacy systems is a basic step in system's object orientation to improve the maintainability and understandability of the systems. A new object extraction model using association rules and dependence analysis is proposed. In this model data are classified by association rules and the corresponding operations are partitioned by dependence analysis.展开更多
Conflict between conservation and community livelihood is a significant issue in China.Based on Sustainable Livelihood Framework(SLA),this study systematically analyzed livelihoods assets of a community in a Yunnan sn...Conflict between conservation and community livelihood is a significant issue in China.Based on Sustainable Livelihood Framework(SLA),this study systematically analyzed livelihoods assets of a community in a Yunnan snub-nosed monkey conservation area and found that the livelihood pentagon of the community was shaped by multiple but frail and unstable income sources,abundant natural resources with restricted use right,underutilized labors,inadequate financial resources,inconvenient physical capital and weak social capital.Villagers'income heavily depended on forest,and grazing and nontimber forest products(NTFP)collection are common and major income sources for villagers.However,differentiation of income dependence on forest among villagers'groups showed that there is no close correlation between the level of income and the level of income dependence on forest.Households'daily life also heavily depended on the forest due to heating and pig-feed cooking;hence,fuelwood cannot be easily replaced by any other energy resource for a long period.展开更多
Classes are the basic modules in Object-Oriented (OO) software, which consist of attributes and methods. Thus, in OO environment, the cohesion is mainly about how tightly the attributes and methods of classes cohere w...Classes are the basic modules in Object-Oriented (OO) software, which consist of attributes and methods. Thus, in OO environment, the cohesion is mainly about how tightly the attributes and methods of classes cohere with each other. This letter discusses the relationships between attributes and attributes, attributes and methods, methods and methods of a class,and the properties of these relationships. Based on these properties, the letter proposes a new framework to measure the cohesion of a class. The approach overcomes the limitations of previous class cohesion measures, which consider only one or two of the three relationships in a class.展开更多
Classes are the basic modules in object-oriented(OO)software,which consist of attributes and methods.Thus,in OO environment,the cohesion is mainly about the tightness of the attributes and methods of classes.This pape...Classes are the basic modules in object-oriented(OO)software,which consist of attributes and methods.Thus,in OO environment,the cohesion is mainly about the tightness of the attributes and methods of classes.This paper discusses the relationships between attributes and attributes,attributes and methods,methods and methods of a class based on dependence analysis.Then the paper presents methods to compute these dependencies.Based on these,the paper proposes a method to measure the class cohesion,which satisfies the properties that a good measurement should have.The approach overcomes the limitations of previous class cohesion measures,which consider only one or two of the three relationships in a class.展开更多
Program slicing is an effective technique for an- alyzing concurrent programs. However, when a conventional closure-based slicing algorithm for sequential programs is ap- plied to a concurrent interprocedural program,...Program slicing is an effective technique for an- alyzing concurrent programs. However, when a conventional closure-based slicing algorithm for sequential programs is ap- plied to a concurrent interprocedural program, the slice is usually imprecise owing to the intransitivity of interference dependence. Interference dependence arises when a state- ment uses a variable defined in another statement executed concurrently. In this study, we propose a global dependence analysis approach based on a program reachability graph, and construct a novel dependence graph called marking-statement dependence graph (MSDG), in which each vertex is a 2-tuple of program state and statement. In contrast to the conven- tional program dependence graph where the vertex is a state- ment, the dependence relation in MSDG is transitive. When traversing MSDG, a precise slice will be obtained. To en- hance the slicing efficiency without loss of precision, our slic- ing algorithm adopts a hybrid strategy. The procedures con- taining interaction statements between threads are inlined and sliced by the slicing algorithm based on program reachability graphs while allowing other procedures to be sliced as se- quential programs. We have implemented our algorithm and three other representative slicing algorithms, and conducted an empirical study on concurrent Java programs. The exper- imental results show that our algorithm computes more pre- cise slices than the other algorithms. Using partial-order re- duction techniques, which are effective for reducing the size of a program reachability graph without loss of precision, ouralgorithm is optimized, thereby improving its performance to some extent.展开更多
基金Supported by the National High Technology Research and Development Program of China (863 Program) (2009AA01Z147)the National Natural Science Foundation of China (90818027, 60633010, 60803008)the National Science Foun for Distinguished Young Scholars (60425206)
文摘To avoid the precision loss caused by combining data- flow facts impossible to occur in the same execution path in dependence analysis for C programs, this paper first proposes a flow-sensitive and context-insensitive points-to analysis algorithm and then presents a new dependence analysis approach based on it. The approach makes more sufficient consideration on the executa- ble path problem and can avoid invalid combination between points-to relations and between points-to relations and reaching definitions. The results of which are therefore more precise than those of the ordinary dependence analysis approaches.
文摘Though Unified Modeling Language (UML) has been widely used in software development, the major problems confronted lie in comprehension and testing. Dependence analysis is an important approach to analyze, understand, test and maintain programs. A new kind of dependence analysis method for UML class diagrams is developed. A set of dependence relations is definedcorresponding to the relations among classes. Thus, the dependence graph of UML class diagram can be constructed from these dependence relations. Based on this model, both slicing and measurement coupling are further given as its two applications.
基金Supported in part by the National Natural Science F oundation of China(6 0 0 730 12 )
文摘Extracting objects from legacy systems is a basic step in system's object orientation to improve the maintainability and understandability of the systems. A new object extraction model using association rules and dependence analysis is proposed. In this model data are classified by association rules and the corresponding operations are partitioned by dependence analysis.
基金supported by the Nature Conservancy[grant number NA/KUNMING/YU030112]Yunnan Provincial Fund of Social Science[grant number YB2013024]
文摘Conflict between conservation and community livelihood is a significant issue in China.Based on Sustainable Livelihood Framework(SLA),this study systematically analyzed livelihoods assets of a community in a Yunnan snub-nosed monkey conservation area and found that the livelihood pentagon of the community was shaped by multiple but frail and unstable income sources,abundant natural resources with restricted use right,underutilized labors,inadequate financial resources,inconvenient physical capital and weak social capital.Villagers'income heavily depended on forest,and grazing and nontimber forest products(NTFP)collection are common and major income sources for villagers.However,differentiation of income dependence on forest among villagers'groups showed that there is no close correlation between the level of income and the level of income dependence on forest.Households'daily life also heavily depended on the forest due to heating and pig-feed cooking;hence,fuelwood cannot be easily replaced by any other energy resource for a long period.
基金Supported in part by the National Natural Science Foundation of China(NSFC)(No.60073012),Natural Science Foundation of Jiangsu (BK2001004).
文摘Classes are the basic modules in Object-Oriented (OO) software, which consist of attributes and methods. Thus, in OO environment, the cohesion is mainly about how tightly the attributes and methods of classes cohere with each other. This letter discusses the relationships between attributes and attributes, attributes and methods, methods and methods of a class,and the properties of these relationships. Based on these properties, the letter proposes a new framework to measure the cohesion of a class. The approach overcomes the limitations of previous class cohesion measures, which consider only one or two of the three relationships in a class.
基金Supported by the National Natural Science Foundation of China under Grant No.60073012the National Basic Re-search 973 Program of China under Grant No.2002CB312000+5 种基金the Program for Cross-Century Outstanding Teachers of the Ministry of Educationthe National Research Foundation for the Doctoral Program of Higher Education of China under Grant No.20020286004the Natural Science Foundation of Jiangsu,China,under Grant No.BK2001004the Jiangsu Key Science and Technology Project under Grant No.BE2001025the Opening Foundation of State Key Laboratory of Software Engineering in Wuhan Universitythe Opening Foundation of Jiangsu Key Laboratory of Computer Information Processing Technology in Soochow University.
文摘Classes are the basic modules in object-oriented(OO)software,which consist of attributes and methods.Thus,in OO environment,the cohesion is mainly about the tightness of the attributes and methods of classes.This paper discusses the relationships between attributes and attributes,attributes and methods,methods and methods of a class based on dependence analysis.Then the paper presents methods to compute these dependencies.Based on these,the paper proposes a method to measure the class cohesion,which satisfies the properties that a good measurement should have.The approach overcomes the limitations of previous class cohesion measures,which consider only one or two of the three relationships in a class.
文摘Program slicing is an effective technique for an- alyzing concurrent programs. However, when a conventional closure-based slicing algorithm for sequential programs is ap- plied to a concurrent interprocedural program, the slice is usually imprecise owing to the intransitivity of interference dependence. Interference dependence arises when a state- ment uses a variable defined in another statement executed concurrently. In this study, we propose a global dependence analysis approach based on a program reachability graph, and construct a novel dependence graph called marking-statement dependence graph (MSDG), in which each vertex is a 2-tuple of program state and statement. In contrast to the conven- tional program dependence graph where the vertex is a state- ment, the dependence relation in MSDG is transitive. When traversing MSDG, a precise slice will be obtained. To en- hance the slicing efficiency without loss of precision, our slic- ing algorithm adopts a hybrid strategy. The procedures con- taining interaction statements between threads are inlined and sliced by the slicing algorithm based on program reachability graphs while allowing other procedures to be sliced as se- quential programs. We have implemented our algorithm and three other representative slicing algorithms, and conducted an empirical study on concurrent Java programs. The exper- imental results show that our algorithm computes more pre- cise slices than the other algorithms. Using partial-order re- duction techniques, which are effective for reducing the size of a program reachability graph without loss of precision, ouralgorithm is optimized, thereby improving its performance to some extent.