ETSI's Bug Tracker - Part 01: TTCN-3 Core Language
View Issue Details

ID | Project | Category | View Status | Date Submitted | Last Update
0003614 | Part 01: TTCN-3 Core Language | Clarification | public | 20-06-2008 13:44 | 10-12-2008 08:56

Reporter | Thomas DeiÃŸ |
Assigned To | Ina Schieferdecker |
Priority | normal | Severity | minor | Reproducibility | N/A
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version | v3.3.2 (published 2008-04) |
Target Version | v4.1.1 (published 2009-06) | Fixed in Version | v4.1.1 (published 2009-06) |
Clause Reference(s) | 7.1.6., 7.1.7
Source (company - Author) | Nokia Siemens Networks - Thomas DeiÃŸ

Summary | 0003614: negative operands for rotate/shift

Description

The amount of shift units for the shift and rotate operators is defined as an integer. This operand is unrestricted. The standard does not specify the behaviour for negative operands and for operands larger than the length of the string.
Proposed solution:
for the rotate operators determine the amount of shift units modulo the length of the string (provided this is a non-empty string).
for the shift operators: a negative operand is considered a noop. an operand larger than the length of the string means to fill it completely with 0.
Alternative solution: forbid negative operands. If the shift amount is larger than the string length proceed as above.

Steps To Reproduce |
Additional Information |
Tags | No tags attached.
Relationships |
Attached Files | CR3614 - shift and rotate.doc (154,624) 28-11-2008 08:46 http://oldforge.etsi.org/mantis/file_download.php?file_id=1831&type=bug

Issue History
Date Modified | Username | Field | Change
20-06-2008 13:44 | Thomas DeiÃŸ | New Issue |
20-06-2008 13:44 | Thomas DeiÃŸ | Status | new => assigned
20-06-2008 13:44 | Thomas DeiÃŸ | Assigned To | => Ina Schieferdecker
20-06-2008 13:44 | Thomas DeiÃŸ | Clause Reference(s) | => 7.1.6., 7.1.7
20-06-2008 13:44 | Thomas DeiÃŸ | Source (company - Author) | => Nokia Siemens Networks - Thomas DeiÃŸ
14-07-2008 15:35 | Ina Schieferdecker | Assigned To | Ina Schieferdecker => Gyorgy Rethy
17-08-2008 09:16 | Ina Schieferdecker | Target Version | => Edition 4.1.1 (not yet published)
28-11-2008 08:46 | Gyorgy Rethy | File Added: CR3614 - shift and rotate.doc |
28-11-2008 08:46 | Gyorgy Rethy | Assigned To | Gyorgy Rethy => Thomas DeiÃŸ
28-11-2008 12:13 | Thomas DeiÃŸ | Note Added: 0007498 |
28-11-2008 12:14 | Thomas DeiÃŸ | Assigned To | Thomas DeiÃŸ => Ina Schieferdecker
28-11-2008 12:14 | Thomas DeiÃŸ | Status | assigned => resolved
10-12-2008 08:56 | Ina Schieferdecker | Status | resolved => closed
10-12-2008 08:56 | Ina Schieferdecker | Resolution | open => fixed
10-12-2008 08:56 | Ina Schieferdecker | Fixed in Version | => Edition 4.1.1 (not yet published)

Notes

(0007498)
Thomas DeiÃŸ
28-11-2008 12:13

ok.