Hi Shalom,
The current proposal up for the vote changes the functionality for non-fixed sized arrays. I do not want to see different behaviors for fixed and non-fixed arrays, except where indexes of associative arrays are concerned.
So either all array kinds compare element by element, or as a whole aggregate. I believe associative array should only be compared as a whole aggregate in any case.
Also, the current LRM says that if the predicate is ambiguous, the result is null. I don't think that was the intent.
Dave Rich
Verification Technologist
Mentor Graphics Corporation
New Office Number: 510-354-7439
[Description: Twitter-32]<http://www.twitter.com/dave_59> [Description: Technorati-32] <http://go.mentor.com/drich>
From: Bresticker, Shalom [mailto:shalom.bresticker@intel.com]
Sent: Sunday, August 28, 2011 4:17 AM
To: Rich, Dave; Maidment, Matthew R
Cc: sv-bc@eda.org
Subject: RE: email vote: respond by Monday Aug 29
Dave,
I believe your rewording changes the functionality.
Consider the case where the two expressions are fixed size arrays of the same type.
The current wording performs an element-by-element comparison.
Where the two arrays have the same value in corresponding elements, that value is returned.
Only if corresponding elements have different values is an uninitialized value returned.
This is similar to how vector expressions are treated.
Where corresponding bits have the same value, that value is returned.
Only where corresponding bits have different values is x returned.
Your wording would return an uninitialized value for the entire expression if any pair of corresponding elements differed.
SVDB 1523 ___Yes _[DR] X__No
http://www.eda.org/svdb/view.php?id=1523
[DR] I suggest the following simplified wording for the whole paragraph
For nonintegral and aggregate expressions, if cond_predicate evaluates to an ambiguous value, then:
- if the logical equality of comparing the first and second expression's value is true, it returns that value.
- if the logical equality is not true, it returns the default uninitialized value for the type of the expressions.
---------------------------------------------------------------------
Intel Israel (74) Limited
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
This archive was generated by hypermail 2.1.8 : Mon Aug 29 2011 - 00:23:12 PDT