run package

This package provides different example pre-configured executions of Cnerator.

Submodules

run.1-function-each-type module

Example execution of Cnerator to create a particular number of functions. It creates a program using the 1_function-each-type-10.json file, running different visitors. Run it from the parent folder with python -m run.1_function_each_type.

run.15-function-each-type module

Example execution of Cnerator to create a particular number of functions. It creates a program using the 15-function-each-type.json file, running different visitors. Run it from the parent folder with python -m run.15_function_each_type.

run.2000-function-void-no-void module

Example execution of Cnerator to create a particular number of functions. It creates a program using the 2000-function-void-no-void.json file, running different visitors. Run it from the parent folder with python -m run.2000_function_void_no_void.

run.300-function-each-type module

Example execution of Cnerator to create a particular number of functions. It creates a program using the 300-function-each-type.json file, running different visitors. Run it from the parent folder with python -m run.300_function_each_type.

run.article module

Example execution of Cnerator to create particular functions. It creates a program using the article.json file, running different visitors. Run it from the parent folder with python -m run.article.

run.defaults module

Example execution of Cnerator passing no parameters. It creates a random program considering the default probabilities. Run it from the parent folder with ``python -m run.defaults`.

run.defaults_one_file module

Example execution of Cnerator passing no parameters but generation in one file (-n 1). Run it from the parent folder with python -m run.defaults_one_file.

run.help module

Example execution of Cnerator passing the --help parameter. Run it from the parent folder with python -m run.help.

run.probs module

Example execution of Cnerator passing the -p parameter to specify the probabilities of two language constructs. Run it from the parent folder with python -m run.probs.

run.probs_file module

Example execution of Cnerator specifying probabilities in a json file (example_probs.json). Run it from the parent folder with python -m run.probs_file.