daphne-project/daphne

Unary not operator in DaphneDSL

Open

#670 opened on Feb 27, 2024

 (0 comments) (0 reactions) (0 assignees)C++ (84 forks)auto 404
good first issue

Repository metrics

Stars
 (80 stars)
PR merge metrics
 (PR metrics pending)

Description

DaphneDSL does not support the typical unary not operator yet; one cannot say, e.g., if(!found) ... or while(!(converged || aborted)) .... There is a workaround: if(found == false), but we should not require that, since it's quite inconvenient.

Solving this issue requires:

  • changes to the DaphneDSL parser
  • a new elementwise unary operator for not
  • adding some script-level test cases

Contributor guide