daphne-project/daphne

Unary not operator in DaphneDSL

Aberta

#670 aberto em 27 de fev. de 2024

 (0 comentário) (0 reação) (0 responsável)C++ (84 forks)auto 404
good first issue

Métricas do repositório

Stars
 (80 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

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

Guia do colaborador