diff options
author | Robert Dewar <dewar@adacore.com> | 2010-01-26 10:13:33 +0000 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2010-01-26 11:13:33 +0100 |
commit | 55e4d23d2b3bfe9f11ddc25eb6d2a00a9d6e909a (patch) | |
tree | ba3954fe91ad567ff6bd27c6227483d88e599273 /gcc/ada/scos.ads | |
parent | 2593c3e1cb8b4325f87ea5a2ce9c1f906c4cf45b (diff) | |
download | gcc-55e4d23d2b3bfe9f11ddc25eb6d2a00a9d6e909a.zip gcc-55e4d23d2b3bfe9f11ddc25eb6d2a00a9d6e909a.tar.gz gcc-55e4d23d2b3bfe9f11ddc25eb6d2a00a9d6e909a.tar.bz2 |
par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
2010-01-26 Robert Dewar <dewar@adacore.com>
* par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
* scos.ads: Clarify handling of logical operators
From-SVN: r156239
Diffstat (limited to 'gcc/ada/scos.ads')
-rw-r--r-- | gcc/ada/scos.ads | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/ada/scos.ads b/gcc/ada/scos.ads index 3efc5a5..b1a61b2 100644 --- a/gcc/ada/scos.ads +++ b/gcc/ada/scos.ads @@ -162,10 +162,12 @@ package SCOs is -- Note: in the following description, logical operator includes only the -- short circuited forms and NOT (so can be only NOT, AND THEN, OR ELSE). -- The reason that we can exclude AND/OR/XOR is that we expect SCO's to - -- be generated using the restriction No_Direct_Boolean_Operators, which - -- does not permit the use of AND/OR/XOR on boolean operands. These are - -- permitted on modular integer types, but such operations do not count - -- as decisions in any case + -- be generated using the restriction No_Direct_Boolean_Operators if we + -- are interested in decision coverage, which does not permit the use of + -- AND/OR/XOR on boolean operands. These are permitted on modular integer + -- types, but such operations do not count as decisions in any case. If + -- we are generating SCO's only for simple coverage, then we are not + -- interested in decisions in any case. -- Decisions are either simple or complex. A simple decision is a boolean -- expresssion that occurs in the context of a control structure in the |