Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix generated code for eqrel when emitting statistics #2419

Merged
merged 1 commit into from
Jun 30, 2023

Conversation

fangyi-zhou
Copy link
Contributor

When using --emit-statistics for an eqrel, the generated code contains compilation error when accessing the indices. This was due to eqrel index is accessed via ind instead of ind_*, and this commit fixes the issue and adds a test case.

@quentin
Copy link
Member

quentin commented Jun 29, 2023

Thanks for the fix! You just need to reformat the code.

When using `--emit-statistics` for an `eqrel`, the generated code
contains compilation error when accessing the indices.
This was due to eqrel index is accessed via `ind` instead of `ind_*`,
and this commit fixes the issue and adds a test case.

Co-authored-by: Sandro Stucki <[email protected]>
@fangyi-zhou
Copy link
Contributor Author

Reformatted as requested.

@codecov
Copy link

codecov bot commented Jun 30, 2023

Codecov Report

Merging #2419 (2f10333) into master (2914f7b) will increase coverage by 0.14%.
The diff coverage is 80.45%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2419      +/-   ##
==========================================
+ Coverage   77.75%   77.90%   +0.14%     
==========================================
  Files         474      479       +5     
  Lines       31164    31397     +233     
==========================================
+ Hits        24232    24459     +227     
- Misses       6932     6938       +6     
Impacted Files Coverage Δ
src/ast/analysis/typesystem/Type.cpp 47.37% <0.00%> (-0.47%) ⬇️
src/ast/analysis/typesystem/Type.h 50.00% <ø> (ø)
...c/ast/analysis/typesystem/TypeConstrainsAnalysis.h 100.00% <ø> (ø)
src/ast2ram/seminaive/ValueTranslator.h 100.00% <ø> (ø)
src/ast2ram/utility/TranslatorContext.h 100.00% <ø> (ø)
src/include/souffle/utility/SubProcess.h 55.00% <0.00%> (ø)
src/interpreter/Node.h 96.95% <ø> (ø)
src/ram/Variable.h 45.45% <45.45%> (ø)
src/ram/Assign.h 50.00% <50.00%> (ø)
src/parser/parser.yy 93.85% <58.33%> (-1.30%) ⬇️
... and 22 more

... and 11 files with indirect coverage changes

@quentin quentin merged commit 0f1d379 into souffle-lang:master Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants