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

[Bugfix] associativity #46

Merged
merged 22 commits into from
Feb 10, 2024

Conversation

404Naz
Copy link
Collaborator

@404Naz 404Naz commented Dec 8, 2023

Added associativity to addition and multiplication. #19

@404Naz
Copy link
Collaborator Author

404Naz commented Dec 8, 2023

Divide relies on unsimplified trees to simplify the problem. Some tests cause problems since add and multiply will attempt to make balanced trees. Thus, I commented out the problematic test cases.

Copy link

github-actions bot commented Dec 8, 2023

Filename                               Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
src/Expression.cpp                          12                 9    25.00%          12                 9    25.00%          50                41    18.00%           0                 0         -
src/Divide.cpp                             163               163     0.00%          10                10     0.00%         278               278     0.00%         120               120     0.00%
src/Subtract.cpp                            87                74    14.94%          10                 8    20.00%         135               119    11.85%          58                52    10.34%
src/Real.cpp                                14                 5    64.29%           6                 2    66.67%          17                 6    64.71%           8                 3    62.50%
src/Variable.cpp                            14                14     0.00%           6                 6     0.00%          17                17     0.00%           8                 8     0.00%
src/Add.cpp                                162               162     0.00%          10                10     0.00%         235               235     0.00%         120               120     0.00%
src/Imaginary.cpp                           10                 5    50.00%           4                 2    50.00%          12                 6    50.00%           4                 2    50.00%
src/Exponent.cpp                            66                62     6.06%          10                 8    20.00%         126               119     5.56%          42                41     2.38%
src/Multiply.cpp                           167               107    35.93%          10                 7    30.00%         271               210    22.51%         128                93    27.34%
include/Oasis/LeafExpression.hpp             4                 3    25.00%           4                 3    25.00%          12                 9    25.00%           0                 0         -
include/Oasis/Imaginary.hpp                  2                 0   100.00%           2                 0   100.00%           2                 0   100.00%           0                 0         -
include/Oasis/Multiply.hpp                   6                 1    83.33%           6                 1    83.33%          10                 3    70.00%           0                 0         -
include/Oasis/BinaryExpression.hpp         183                94    48.63%          41                21    48.78%         395               229    42.03%         110                77    30.00%
include/Oasis/Real.hpp                       2                 1    50.00%           2                 1    50.00%           2                 1    50.00%           0                 0         -
include/Oasis/Divide.hpp                     6                 6     0.00%           6                 6     0.00%          10                10     0.00%           0                 0         -
include/Oasis/Subtract.hpp                   6                 2    66.67%           6                 2    66.67%          10                 5    50.00%           0                 0         -
include/Oasis/Expression.hpp                 7                 1    85.71%           7                 1    85.71%          19                 3    84.21%           0                 0         -
include/Oasis/Add.hpp                        6                 6     0.00%           6                 6     0.00%          10                10     0.00%           0                 0         -
include/Oasis/Exponent.hpp                   6                 3    50.00%           6                 3    50.00%          10                 7    30.00%           0                 0         -
include/Oasis/Variable.hpp                   1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                      924               719    22.19%         165               107    35.15%        1622              1309    19.30%         598               516    13.71%

Generated by llvm-cov -- llvm version 17.0.6

Copy link
Collaborator

@matthew-mccall matthew-mccall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make the commented out test cases work

Copy link

github-actions bot commented Feb 2, 2024

Filename                               Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
src/Multiply.cpp                           171               110    35.67%          10                 7    30.00%         276               214    22.46%         132                96    27.27%
src/Variable.cpp                            14                14     0.00%           6                 6     0.00%          17                17     0.00%           8                 8     0.00%
src/Log.cpp                                 44                44     0.00%           6                 6     0.00%          56                56     0.00%          28                28     0.00%
src/Imaginary.cpp                           10                 5    50.00%           4                 2    50.00%          12                 6    50.00%           4                 2    50.00%
src/Undefined.cpp                            9                 9     0.00%           3                 3     0.00%           9                 9     0.00%           4                 4     0.00%
src/Exponent.cpp                            71                67     5.63%          10                 8    20.00%         131               124     5.34%          46                45     2.17%
src/Divide.cpp                             170               170     0.00%          10                10     0.00%         252               252     0.00%         132               132     0.00%
src/Real.cpp                                14                 5    64.29%           6                 2    66.67%          17                 6    64.71%           8                 3    62.50%
src/Expression.cpp                          12                 9    25.00%          12                 9    25.00%          50                41    18.00%           0                 0         -
src/Subtract.cpp                            92                79    14.13%          10                 8    20.00%         142               126    11.27%          62                56     9.68%
src/Add.cpp                                172               172     0.00%          10                10     0.00%         249               249     0.00%         130               130     0.00%
include/Oasis/Subtract.hpp                   6                 2    66.67%           6                 2    66.67%          10                 5    50.00%           0                 0         -
include/Oasis/LeafExpression.hpp             4                 3    25.00%           4                 3    25.00%          12                 9    25.00%           0                 0         -
include/Oasis/Add.hpp                        6                 6     0.00%           6                 6     0.00%          10                10     0.00%           0                 0         -
include/Oasis/BinaryExpression.hpp         183                94    48.63%          41                21    48.78%         395               229    42.03%         110                77    30.00%
include/Oasis/Multiply.hpp                   6                 1    83.33%           6                 1    83.33%          10                 3    70.00%           0                 0         -
include/Oasis/Imaginary.hpp                  2                 0   100.00%           2                 0   100.00%           2                 0   100.00%           0                 0         -
include/Oasis/Divide.hpp                     6                 6     0.00%           6                 6     0.00%          10                10     0.00%           0                 0         -
include/Oasis/Undefined.hpp                  3                 3     0.00%           3                 3     0.00%           3                 3     0.00%           0                 0         -
include/Oasis/Real.hpp                       2                 1    50.00%           2                 1    50.00%           2                 1    50.00%           0                 0         -
include/Oasis/Log.hpp                        6                 6     0.00%           6                 6     0.00%          10                10     0.00%           0                 0         -
include/Oasis/Expression.hpp                 7                 1    85.71%           7                 1    85.71%          19                 3    84.21%           0                 0         -
include/Oasis/Exponent.hpp                   6                 3    50.00%           6                 3    50.00%          10                 7    30.00%           0                 0         -
include/Oasis/Variable.hpp                   2                 2     0.00%           2                 2     0.00%           4                 4     0.00%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                     1018               812    20.24%         184               126    31.52%        1708              1394    18.38%         664               581    12.50%

Generated by llvm-cov -- llvm version 17.0.6

Copy link

github-actions bot commented Feb 6, 2024

Filename                               Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
src/Multiply.cpp                           171               110    35.67%          10                 7    30.00%         276               214    22.46%         132                96    27.27%
src/Variable.cpp                            14                14     0.00%           6                 6     0.00%          17                17     0.00%           8                 8     0.00%
src/Log.cpp                                 44                44     0.00%           6                 6     0.00%          56                56     0.00%          28                28     0.00%
src/Imaginary.cpp                           10                 5    50.00%           4                 2    50.00%          12                 6    50.00%           4                 2    50.00%
src/Undefined.cpp                            9                 9     0.00%           3                 3     0.00%           9                 9     0.00%           4                 4     0.00%
src/Exponent.cpp                            71                67     5.63%          10                 8    20.00%         131               124     5.34%          46                45     2.17%
src/Divide.cpp                             170               170     0.00%          10                10     0.00%         252               252     0.00%         132               132     0.00%
src/Real.cpp                                14                 5    64.29%           6                 2    66.67%          17                 6    64.71%           8                 3    62.50%
src/Expression.cpp                          12                 9    25.00%          12                 9    25.00%          50                41    18.00%           0                 0         -
src/Subtract.cpp                            92                79    14.13%          10                 8    20.00%         142               126    11.27%          62                56     9.68%
src/Add.cpp                                172               172     0.00%          10                10     0.00%         249               249     0.00%         130               130     0.00%
include/Oasis/Subtract.hpp                   6                 2    66.67%           6                 2    66.67%          10                 5    50.00%           0                 0         -
include/Oasis/LeafExpression.hpp             4                 3    25.00%           4                 3    25.00%          12                 9    25.00%           0                 0         -
include/Oasis/Add.hpp                        6                 6     0.00%           6                 6     0.00%          10                10     0.00%           0                 0         -
include/Oasis/BinaryExpression.hpp         183                94    48.63%          41                21    48.78%         395               229    42.03%         110                77    30.00%
include/Oasis/Multiply.hpp                   6                 1    83.33%           6                 1    83.33%          10                 3    70.00%           0                 0         -
include/Oasis/Imaginary.hpp                  2                 0   100.00%           2                 0   100.00%           2                 0   100.00%           0                 0         -
include/Oasis/Divide.hpp                     6                 6     0.00%           6                 6     0.00%          10                10     0.00%           0                 0         -
include/Oasis/Undefined.hpp                  3                 3     0.00%           3                 3     0.00%           3                 3     0.00%           0                 0         -
include/Oasis/Real.hpp                       2                 1    50.00%           2                 1    50.00%           2                 1    50.00%           0                 0         -
include/Oasis/Log.hpp                        6                 6     0.00%           6                 6     0.00%          10                10     0.00%           0                 0         -
include/Oasis/Expression.hpp                 7                 1    85.71%           7                 1    85.71%          19                 3    84.21%           0                 0         -
include/Oasis/Exponent.hpp                   6                 3    50.00%           6                 3    50.00%          10                 7    30.00%           0                 0         -
include/Oasis/Variable.hpp                   1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                     1017               811    20.26%         183               125    31.69%        1705              1391    18.42%         664               581    12.50%

Generated by llvm-cov -- llvm version 17.0.6

Copy link

github-actions bot commented Feb 6, 2024

Filename                               Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
src/Multiply.cpp                           171               110    35.67%          10                 7    30.00%         276               214    22.46%         132                96    27.27%
src/Variable.cpp                            14                14     0.00%           6                 6     0.00%          17                17     0.00%           8                 8     0.00%
src/Log.cpp                                 44                44     0.00%           6                 6     0.00%          56                56     0.00%          28                28     0.00%
src/Imaginary.cpp                           10                 5    50.00%           4                 2    50.00%          12                 6    50.00%           4                 2    50.00%
src/Undefined.cpp                            9                 9     0.00%           3                 3     0.00%           9                 9     0.00%           4                 4     0.00%
src/Exponent.cpp                            71                67     5.63%          10                 8    20.00%         131               124     5.34%          46                45     2.17%
src/Divide.cpp                             170               170     0.00%          10                10     0.00%         255               255     0.00%         132               132     0.00%
src/Real.cpp                                14                 5    64.29%           6                 2    66.67%          17                 6    64.71%           8                 3    62.50%
src/Expression.cpp                          12                 9    25.00%          12                 9    25.00%          50                41    18.00%           0                 0         -
src/Subtract.cpp                            92                79    14.13%          10                 8    20.00%         142               126    11.27%          62                56     9.68%
src/Add.cpp                                172               172     0.00%          10                10     0.00%         249               249     0.00%         130               130     0.00%
include/Oasis/Subtract.hpp                   6                 2    66.67%           6                 2    66.67%          10                 5    50.00%           0                 0         -
include/Oasis/LeafExpression.hpp             4                 3    25.00%           4                 3    25.00%          12                 9    25.00%           0                 0         -
include/Oasis/Add.hpp                        6                 6     0.00%           6                 6     0.00%          10                10     0.00%           0                 0         -
include/Oasis/BinaryExpression.hpp         183                94    48.63%          41                21    48.78%         395               229    42.03%         110                77    30.00%
include/Oasis/Multiply.hpp                   6                 1    83.33%           6                 1    83.33%          10                 3    70.00%           0                 0         -
include/Oasis/Imaginary.hpp                  2                 0   100.00%           2                 0   100.00%           2                 0   100.00%           0                 0         -
include/Oasis/Divide.hpp                     6                 6     0.00%           6                 6     0.00%          10                10     0.00%           0                 0         -
include/Oasis/Undefined.hpp                  3                 3     0.00%           3                 3     0.00%           3                 3     0.00%           0                 0         -
include/Oasis/Real.hpp                       2                 1    50.00%           2                 1    50.00%           2                 1    50.00%           0                 0         -
include/Oasis/Log.hpp                        6                 6     0.00%           6                 6     0.00%          10                10     0.00%           0                 0         -
include/Oasis/Expression.hpp                 7                 1    85.71%           7                 1    85.71%          19                 3    84.21%           0                 0         -
include/Oasis/Exponent.hpp                   6                 3    50.00%           6                 3    50.00%          10                 7    30.00%           0                 0         -
include/Oasis/Variable.hpp                   1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                     1017               811    20.26%         183               125    31.69%        1708              1394    18.38%         664               581    12.50%

Generated by llvm-cov -- llvm version 17.0.6

include/Oasis/Variable.hpp Outdated Show resolved Hide resolved
src/Divide.cpp Show resolved Hide resolved
src/Divide.cpp Outdated Show resolved Hide resolved
tests/DivideTests.cpp Outdated Show resolved Hide resolved
@matthew-mccall matthew-mccall changed the title Bugfix associativity [Bugfix] associativity Feb 9, 2024
@matthew-mccall matthew-mccall added bug Something isn't working enhancement New feature or request labels Feb 9, 2024
@matthew-mccall matthew-mccall added this to the Algebra milestone Feb 9, 2024
@matthew-mccall matthew-mccall linked an issue Feb 9, 2024 that may be closed by this pull request
6 tasks
Copy link

github-actions bot commented Feb 9, 2024

Filename                               Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
src/Imaginary.cpp                           10                 5    50.00%           4                 2    50.00%          12                 6    50.00%           4                 2    50.00%
src/Subtract.cpp                            92                79    14.13%          10                 8    20.00%         142               126    11.27%          62                56     9.68%
src/Log.cpp                                 44                44     0.00%           6                 6     0.00%          56                56     0.00%          28                28     0.00%
src/Multiply.cpp                           171               110    35.67%          10                 7    30.00%         276               214    22.46%         132                96    27.27%
src/Real.cpp                                14                 5    64.29%           6                 2    66.67%          17                 6    64.71%           8                 3    62.50%
src/Exponent.cpp                            71                67     5.63%          10                 8    20.00%         131               124     5.34%          46                45     2.17%
src/Expression.cpp                          12                 9    25.00%          12                 9    25.00%          50                41    18.00%           0                 0         -
src/Divide.cpp                             170               170     0.00%          10                10     0.00%         255               255     0.00%         132               132     0.00%
src/Variable.cpp                            14                14     0.00%           6                 6     0.00%          17                17     0.00%           8                 8     0.00%
src/Add.cpp                                152               152     0.00%          10                10     0.00%         235               235     0.00%         112               112     0.00%
src/Undefined.cpp                            9                 9     0.00%           3                 3     0.00%           9                 9     0.00%           4                 4     0.00%
include/Oasis/Divide.hpp                     6                 6     0.00%           6                 6     0.00%          10                10     0.00%           0                 0         -
include/Oasis/Exponent.hpp                   6                 3    50.00%           6                 3    50.00%          10                 7    30.00%           0                 0         -
include/Oasis/Undefined.hpp                  3                 3     0.00%           3                 3     0.00%           3                 3     0.00%           0                 0         -
include/Oasis/LeafExpression.hpp             4                 3    25.00%           4                 3    25.00%          12                 9    25.00%           0                 0         -
include/Oasis/Real.hpp                       2                 1    50.00%           2                 1    50.00%           2                 1    50.00%           0                 0         -
include/Oasis/Add.hpp                        6                 6     0.00%           6                 6     0.00%          10                10     0.00%           0                 0         -
include/Oasis/Variable.hpp                   1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
include/Oasis/Imaginary.hpp                  2                 0   100.00%           2                 0   100.00%           2                 0   100.00%           0                 0         -
include/Oasis/Expression.hpp                 7                 1    85.71%           7                 1    85.71%          19                 3    84.21%           0                 0         -
include/Oasis/Subtract.hpp                   6                 2    66.67%           6                 2    66.67%          10                 5    50.00%           0                 0         -
include/Oasis/BinaryExpression.hpp         183                94    48.63%          41                21    48.78%         395               229    42.03%         110                77    30.00%
include/Oasis/Log.hpp                        6                 6     0.00%           6                 6     0.00%          10                10     0.00%           0                 0         -
include/Oasis/Multiply.hpp                   6                 1    83.33%           6                 1    83.33%          10                 3    70.00%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                      997               791    20.66%         183               125    31.69%        1694              1380    18.54%         646               563    12.85%

Generated by llvm-cov -- llvm version 17.0.6

Copy link

github-actions bot commented Feb 9, 2024

Filename                               Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
src/Imaginary.cpp                           10                 5    50.00%           4                 2    50.00%          12                 6    50.00%           4                 2    50.00%
src/Subtract.cpp                            92                79    14.13%          10                 8    20.00%         142               126    11.27%          62                56     9.68%
src/Log.cpp                                 44                44     0.00%           6                 6     0.00%          56                56     0.00%          28                28     0.00%
src/Multiply.cpp                           171               110    35.67%          10                 7    30.00%         276               214    22.46%         132                96    27.27%
src/Real.cpp                                14                 5    64.29%           6                 2    66.67%          17                 6    64.71%           8                 3    62.50%
src/Exponent.cpp                            71                67     5.63%          10                 8    20.00%         131               124     5.34%          46                45     2.17%
src/Expression.cpp                          12                 9    25.00%          12                 9    25.00%          50                41    18.00%           0                 0         -
src/Divide.cpp                             170               170     0.00%          10                10     0.00%         255               255     0.00%         132               132     0.00%
src/Variable.cpp                            14                14     0.00%           6                 6     0.00%          17                17     0.00%           8                 8     0.00%
src/Add.cpp                                143               143     0.00%          10                10     0.00%         224               224     0.00%         106               106     0.00%
src/Undefined.cpp                            9                 9     0.00%           3                 3     0.00%           9                 9     0.00%           4                 4     0.00%
include/Oasis/Divide.hpp                     6                 6     0.00%           6                 6     0.00%          10                10     0.00%           0                 0         -
include/Oasis/Exponent.hpp                   6                 3    50.00%           6                 3    50.00%          10                 7    30.00%           0                 0         -
include/Oasis/Undefined.hpp                  3                 3     0.00%           3                 3     0.00%           3                 3     0.00%           0                 0         -
include/Oasis/LeafExpression.hpp             4                 3    25.00%           4                 3    25.00%          12                 9    25.00%           0                 0         -
include/Oasis/Real.hpp                       2                 1    50.00%           2                 1    50.00%           2                 1    50.00%           0                 0         -
include/Oasis/Add.hpp                        6                 6     0.00%           6                 6     0.00%          10                10     0.00%           0                 0         -
include/Oasis/Variable.hpp                   1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
include/Oasis/Imaginary.hpp                  2                 0   100.00%           2                 0   100.00%           2                 0   100.00%           0                 0         -
include/Oasis/Expression.hpp                 7                 1    85.71%           7                 1    85.71%          19                 3    84.21%           0                 0         -
include/Oasis/Subtract.hpp                   6                 2    66.67%           6                 2    66.67%          10                 5    50.00%           0                 0         -
include/Oasis/BinaryExpression.hpp         183                94    48.63%          41                21    48.78%         395               229    42.03%         110                77    30.00%
include/Oasis/Log.hpp                        6                 6     0.00%           6                 6     0.00%          10                10     0.00%           0                 0         -
include/Oasis/Multiply.hpp                   6                 1    83.33%           6                 1    83.33%          10                 3    70.00%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                      988               782    20.85%         183               125    31.69%        1683              1369    18.66%         640               557    12.97%

Generated by llvm-cov -- llvm version 17.0.6

matthew-mccall and others added 3 commits February 9, 2024 17:16
# Conflicts:
#	tests/AddTests.cpp
#	tests/MultiplyTests.cpp
…x-associativity

# Conflicts:
#	tests/AddTests.cpp
#	tests/MultiplyTests.cpp
Copy link

github-actions bot commented Feb 9, 2024

Filename                               Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
src/Imaginary.cpp                           10                10     0.00%           4                 4     0.00%          12                12     0.00%           4                 4     0.00%
src/Subtract.cpp                            92                84     8.70%          10                 8    20.00%         142               131     7.75%          62                59     4.84%
src/Log.cpp                                 44                44     0.00%           6                 6     0.00%          56                56     0.00%          28                28     0.00%
src/Multiply.cpp                           171               171     0.00%          10                10     0.00%         276               276     0.00%         132               132     0.00%
src/Real.cpp                                14                 9    35.71%           6                 3    50.00%          17                 9    47.06%           8                 7    12.50%
src/Exponent.cpp                            71                71     0.00%          10                10     0.00%         131               131     0.00%          46                46     0.00%
src/Expression.cpp                          16                14    12.50%          16                14    12.50%          62                56     9.68%           0                 0         -
src/Divide.cpp                             170               170     0.00%          10                10     0.00%         255               255     0.00%         132               132     0.00%
src/Variable.cpp                            14                14     0.00%           6                 6     0.00%          17                17     0.00%           8                 8     0.00%
src/Add.cpp                                143               143     0.00%          10                10     0.00%         224               224     0.00%         106               106     0.00%
src/Undefined.cpp                            9                 9     0.00%           3                 3     0.00%           9                 9     0.00%           4                 4     0.00%
include/Oasis/Divide.hpp                     6                 6     0.00%           6                 6     0.00%          10                10     0.00%           0                 0         -
include/Oasis/Exponent.hpp                   6                 6     0.00%           6                 6     0.00%          10                10     0.00%           0                 0         -
include/Oasis/Undefined.hpp                  3                 3     0.00%           3                 3     0.00%           3                 3     0.00%           0                 0         -
include/Oasis/LeafExpression.hpp             4                 3    25.00%           4                 3    25.00%          12                 9    25.00%           0                 0         -
include/Oasis/Real.hpp                       2                 1    50.00%           2                 1    50.00%           2                 1    50.00%           0                 0         -
include/Oasis/Add.hpp                        6                 6     0.00%           6                 6     0.00%          10                10     0.00%           0                 0         -
include/Oasis/Variable.hpp                   1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
include/Oasis/Imaginary.hpp                  2                 2     0.00%           2                 2     0.00%           2                 2     0.00%           0                 0         -
include/Oasis/Expression.hpp                 7                 2    71.43%           7                 2    71.43%          19                 6    68.42%           0                 0         -
include/Oasis/Subtract.hpp                   6                 3    50.00%           6                 3    50.00%          10                 7    30.00%           0                 0         -
include/Oasis/BinaryExpression.hpp         183               142    22.40%          41                28    31.71%         395               301    23.80%         110               101     8.18%
include/Oasis/Log.hpp                        6                 6     0.00%           6                 6     0.00%          10                10     0.00%           0                 0         -
include/Oasis/Multiply.hpp                   6                 6     0.00%           6                 6     0.00%          10                10     0.00%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                      992               926     6.65%         187               157    16.04%        1695              1556     8.20%         640               627     2.03%

Generated by llvm-cov -- llvm version 17.0.6

@matthew-mccall matthew-mccall merged commit 3ec0dc4 into open-algebra:master Feb 10, 2024
5 checks passed
@404Naz 404Naz deleted the bugfix-associativity branch February 13, 2024 22:40
@404Naz 404Naz restored the bugfix-associativity branch February 13, 2024 22:40
@404Naz 404Naz deleted the bugfix-associativity branch February 13, 2024 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

More Algebra and Simplification
2 participants