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

Feature/past translation #32

Merged
merged 71 commits into from
Oct 12, 2020
Merged

Feature/past translation #32

merged 71 commits into from
Oct 12, 2020

Conversation

GabVenturato
Copy link
Collaborator

This implements the support for the past by means of a translation procedure executed before the actual encoding algorithm which removes past operators substituting them with new propositional letters and linking to them the past operator semantics.

In CI some tests fails because of #31 .

GabVenturato and others added 30 commits July 17, 2020 17:36
First translator set up. It performs only equivalence transformation from T,P,H to S/Y only formulas.
Propositional letter substitution does a brutal overwrite of the past formulas with a fictitious letter.
Translator new set up in which substitute_past procedure attempts to create the new propositional letters.
Translation procedure is complete, with some basic tests performed. More serious tests are needed.
Solved gen_semantics bug due to the recursive call on a bad defined propositional letter in since case
Avoid copying vectors by means of a new accumulator parameter.
- Module and functions name refactor
- Remove useless alphabet parameter
- Optimize conjoin semantics function: removed and substituted with std::accumulate
- Move integration only in the frontend, removed from the library
@codecov
Copy link

codecov bot commented Oct 9, 2020

Codecov Report

Merging #32 into master will decrease coverage by 5.59%.
The diff coverage is 69.90%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #32      +/-   ##
==========================================
- Coverage   49.54%   43.94%   -5.60%     
==========================================
  Files          38       40       +2     
  Lines        3062     3147      +85     
==========================================
- Hits         1517     1383     -134     
- Misses       1545     1764     +219     
Impacted Files Coverage Δ
src/lib/include/black/internal/formula/match.hpp 83.78% <ø> (ø)
src/lib/include/black/logic/formula.hpp 100.00% <ø> (ø)
src/lib/include/black/logic/lex.hpp 70.00% <ø> (ø)
src/lib/include/black/solver/solver.hpp 58.33% <ø> (ø)
src/lib/src/logic/lex.cpp 83.78% <ø> (ø)
src/lib/src/logic/parser.cpp 55.83% <0.00%> (ø)
src/lib/src/solver/solver.cpp 86.09% <0.00%> (ø)
tests/units/formula.cpp 0.00% <0.00%> (ø)
tests/units/match.cpp 0.00% <0.00%> (ø)
src/frontend/src/main.cpp 38.88% <25.00%> (ø)
... and 81 more

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 ae67a7a...1d2ab87. Read the comment docs.

@nicola-gigante nicola-gigante merged commit c0a74f4 into master Oct 12, 2020
@nicola-gigante nicola-gigante deleted the feature/past_translation branch October 12, 2020 10:34
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