You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to extend existent code decomposition tool by adding complete computation slice based on the paper. To achieve this goal we have to implement additional Python tool which will present the result of the decomposition. Base version of that tool should be able to save the result to files in a specified folder or print it via stdout. Input is assumed to be a file or a folder with files. More detailed IO format is described below:
$ python main.py command [-h]
[-o OUTPUT]
source
Positional arguments:
command - method of decomposition, base version should maintain one method - slice
source - source folder or file
Optional arguments:
-o, --output OUTPUT - output file or directory: depending on what you set as output, you will get folder full of different decompositions or a single file with it. It uses stdout if not specified
-h, --help - show this help message and exit
Motivation:
Complete computation slice allow to obtain new types of decomposition fast and effective. Moreover, this method by itself may be even more extended by 'object state slice' which is described in the same [paper](https://dl.acm.org/doi/abs/10.1016/j.jss.2011.05.016).
Development:
The main.py script should parse arguments and call specified decomposer, that should parse files, decompose them and save the result to a specified folder (or print it if folder is not specified). Each decomposer should be able to be called with a source code String as an argument for its further usage as a submodule in some other project. Therefore complete computational slice decomposer may return a dictionary of variable declarations (i.e number of string where the variable is declared) as a key and the corresponding slice (i.e number of strings where the variable is used) as a value.
We want to extend existent code decomposition tool by adding complete computation slice based on the paper. To achieve this goal we have to implement additional Python tool which will present the result of the decomposition. Base version of that tool should be able to save the result to files in a specified folder or print it via stdout. Input is assumed to be a file or a folder with files. More detailed IO format is described below:
Positional arguments:
command - method of decomposition, base version should maintain one method - slice
source - source folder or file
Optional arguments:
-o, --output OUTPUT - output file or directory: depending on what you set as output, you will get folder full of different decompositions or a single file with it. It uses stdout if not specified
-h, --help - show this help message and exit
Motivation:
Complete computation slice allow to obtain new types of decomposition fast and effective. Moreover, this method by itself may be even more extended by 'object state slice' which is described in the same [paper](https://dl.acm.org/doi/abs/10.1016/j.jss.2011.05.016).Development:
The main.py script should parse arguments and call specified decomposer, that should parse files, decompose them and save the result to a specified folder (or print it if folder is not specified). Each decomposer should be able to be called with a source code String as an argument for its further usage as a submodule in some other project. Therefore complete computational slice decomposer may return a dictionary of variable declarations (i.e number of string where the variable is declared) as a key and the corresponding slice (i.e number of strings where the variable is used) as a value.
Complete Computational Slice Decomposer INPUT:
Complete Computational Slice Decomposer OUTPUT:
There is a list of necessary steps to implement:
The text was updated successfully, but these errors were encountered: