Skip to content

Add it-then-else operator to Booleanizer #13

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

Open
cgjohannsen opened this issue Dec 27, 2024 · 0 comments
Open

Add it-then-else operator to Booleanizer #13

cgjohannsen opened this issue Dec 27, 2024 · 0 comments
Assignees
Labels
c2po enhancement New feature or request r2u2-c

Comments

@cgjohannsen
Copy link
Contributor

An if-then-else operator takes in three arguments: one bool and two of any other type (so long as they have the same type). We'll use the standard ?: C-style syntax.

For example, this would allow us to have the following C2PO file:

INPUT
b0: bool;
i0, i1: int;

FTSPEC
(b0 ? i0 : i1) > 0: 
@cgjohannsen cgjohannsen added enhancement New feature or request c2po r2u2-c labels Dec 27, 2024
@cgjohannsen cgjohannsen self-assigned this Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c2po enhancement New feature or request r2u2-c
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant