ml4ai / automates

AutoMATES: Automated Model Assembly from Text, Equations, and Software
https://ml4ai.github.io/automates
Other
24 stars 9 forks source link

[PA] Unit test: Added code for test_if_statement in test_gcc_plugin_c.py #274

Closed rsulli55 closed 2 years ago

rsulli55 commented 2 years ago

This test case was preivously stubbed out and marked skip. This PR only includes one unit test as I wanted to get an OK before proceeding onto more of them. In future PRs I plan to include more than one test (as long they as they fit together logically).

PR includes

Here are pdfs of the generated CAST and GrFN:

I visually expected them, and they look good, but it might be good for another pair of eyes to look over them.

codecov[bot] commented 2 years ago

Codecov Report

Merging #274 (f3e08a0) into master (e03ceb3) will increase coverage by 0.90%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #274      +/-   ##
==========================================
+ Coverage   66.29%   67.20%   +0.90%     
==========================================
  Files          94       94              
  Lines       17821    17821              
==========================================
+ Hits        11814    11976     +162     
+ Misses       6007     5845     -162     
Impacted Files Coverage Δ
automates/model_analysis/graph_manipulation.py 70.75% <0.00%> (+0.55%) :arrow_up:
...s/CAST2GrFN/visitors/cast_function_call_visitor.py 86.60% <0.00%> (+0.89%) :arrow_up:
...gram_analysis/CAST2GrFN/model/cast_to_air_model.py 82.48% <0.00%> (+4.80%) :arrow_up:
...mates/program_analysis/GCC2GrFN/gcc_ast_to_cast.py 63.49% <0.00%> (+7.45%) :arrow_up:
...analysis/CAST2GrFN/visitors/cast_to_air_visitor.py 62.01% <0.00%> (+19.25%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update e03ceb3...f3e08a0. Read the comment docs.