Skip to content

Commit

Permalink
ogma-core: Fix translation of equivalence boolean operator from SMV. …
Browse files Browse the repository at this point in the history
…Refs #126.

The SMV to Copilot translator translates equivalences as (<==>).
However, that operator does not exist in Copilot, it is simply (==) for
Bools.

This commit replaces the translation of the equivalence operator from
SMV to be (==) in Copilot.
  • Loading branch information
ivanperez-keera committed Mar 3, 2024
1 parent 713d0b8 commit 1ccb0bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ogma-core/src/Language/Trans/SMV2Copilot.hs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ boolSpec2Copilot b = case b of
++ ")"

BoolSpecEquivs spec1 spec2 -> "(" ++ boolSpec2Copilot spec1
++ " " ++ "<==>"
++ " " ++ "=="
++ " " ++ boolSpec2Copilot spec2
++ ")"

Expand Down

0 comments on commit 1ccb0bc

Please sign in to comment.