help with a logic algorithm

Liste des GroupesRevenir à l c 
Sujet : help with a logic algorithm
De : thiago.adams (at) *nospam* gmail.com (Thiago Adams)
Groupes : comp.lang.c
Date : 02. Apr 2024, 22:53:29
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <uuhr89$3e337$1@dont-email.me>
User-Agent : Mozilla Thunderbird
I need an algorithm that finds the possible states of variables used in "ifs"
for instance, I need to find out possible states:
if (a && b){
   // 'a' is true
   // 'b' is true
}
else
{
   // 'a' maybe be true or false
   // 'b' maybe be true or false
}
More complex:
if (a && b || c){
   // 'a' maybe be true or false
   // 'b' maybe be true or false
   // 'c' maybe be true or false
}
else
{
   // 'a' maybe be true or false
   // 'b' maybe be true or false
   // 'c' maybe be true or false
}
I think this algorithm may already exists.. but not finding it.
Maybe something related with predicates.

Date Sujet#  Auteur
2 Apr 24 * help with a logic algorithm13Thiago Adams
3 Apr 24 +* Re: help with a logic algorithm3Thiago Adams
3 Apr 24 i+- Re: help with a logic algorithm1jak
3 Apr 24 i`- Re: help with a logic algorithm1Thiago Adams
3 Apr 24 +- Re: help with a logic algorithm1Janis Papanagnou
3 Apr 24 +* Re: help with a logic algorithm5Anton Shepelev
3 Apr 24 i+- Re: help with a logic algorithm1Thiago Adams
3 Apr 24 i`* Re: help with a logic algorithm3Thiago Adams
4 Apr 24 i `* Re: help with a logic algorithm2Paul
5 Apr 24 i  `- Re: help with a logic algorithm1Anton Shepelev
4 Apr 24 `* Re: help with a logic algorithm3jak
4 Apr 24  `* Re: help with a logic algorithm2Thiago Adams
7 Apr 24   `- Re: help with a logic algorithm1Anton Shepelev

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal