ETSI's Bug Tracker - Part 01: TTCN-3 Core Language
View Issue Details
0003614Part 01: TTCN-3 Core LanguageClarificationpublic20-06-2008 13:4410-12-2008 08:56
Thomas Deiß 
Ina Schieferdecker 
normalminorN/A
closedfixed 
v3.3.2 (published 2008-04) 
v4.1.1 (published 2009-06)v4.1.1 (published 2009-06) 
7.1.6., 7.1.7
Nokia Siemens Networks - Thomas Deiß
0003614: negative operands for rotate/shift
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.
No tags attached.
doc 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
20-06-2008 13:44Thomas DeißNew Issue
20-06-2008 13:44Thomas DeißStatusnew => assigned
20-06-2008 13:44Thomas DeißAssigned To => Ina Schieferdecker
20-06-2008 13:44Thomas DeißClause Reference(s) => 7.1.6., 7.1.7
20-06-2008 13:44Thomas DeißSource (company - Author) => Nokia Siemens Networks - Thomas Deiß
14-07-2008 15:35Ina SchieferdeckerAssigned ToIna Schieferdecker => Gyorgy Rethy
17-08-2008 09:16Ina SchieferdeckerTarget Version => Edition 4.1.1 (not yet published)
28-11-2008 08:46Gyorgy RethyFile Added: CR3614 - shift and rotate.doc
28-11-2008 08:46Gyorgy RethyAssigned ToGyorgy Rethy => Thomas Deiß
28-11-2008 12:13Thomas DeißNote Added: 0007498
28-11-2008 12:14Thomas DeißAssigned ToThomas Deiß => Ina Schieferdecker
28-11-2008 12:14Thomas DeißStatusassigned => resolved
10-12-2008 08:56Ina SchieferdeckerStatusresolved => closed
10-12-2008 08:56Ina SchieferdeckerResolutionopen => fixed
10-12-2008 08:56Ina SchieferdeckerFixed in Version => Edition 4.1.1 (not yet published)

Notes
(0007498)
Thomas Deiß   
28-11-2008 12:13   
ok.