|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Compiler crashing while compilation [message #1730185 is a reply to message #1730165] |
Fri, 22 April 2016 03:08   |
Eclipse User |
|
|
|
Hi Murli,
no,
using "-" (don't change) is semantically equivalent with implicitly unspecifying a field:
var MyRecordType MyVariable:= //assignment notation
{
field1 := '11001'B,
// field2 implicitly unspecified
field3 := "A string"
}
// Or
var MyRecordType MyVariable:= //assignment notation
{
field1 := '11001'B,
field2 := -, // field2 explicitly unspecified
field3 := "A string"
}
see the below example:
Types.asn
Types DEFINITIONS AUTOMATIC TAGS ::=
BEGIN
HCS-ServingCellInformation ::= SEQUENCE {
hcs-PRIO INTEGER DEFAULT 0,
q-HCS INTEGER DEFAULT 0,
t-CR-Max INTEGER OPTIONAL
}
END
ASNExample.ttcn
module ASNExample {
/* import types from ASN.1 */
import from Types language "ASN.1:1997" all;
template HCS_ServingCellInformation hcs_ServingCellInformation := {
hcs_PRIO := 2,
q_HCS := 35//,
// t_CR_Max := - // Problem
}
template HCS_ServingCellInformation hcs_ServingCellInformation2 := {
hcs_PRIO := 2,
q_HCS := 35,
t_CR_Max := 1
}
control {
var HCS_ServingCellInformation v_ServingCellInformation1 := {
hcs_PRIO := 2,
q_HCS := 35,
t_CR_Max := 1
}
v_ServingCellInformation1 := {
hcs_PRIO := 2,
q_HCS := 35//,
//t_CR_Max := -
}
template HCS_ServingCellInformation hcs_ServingCellInformation3 modifies hcs_ServingCellInformation2:= {
hcs_PRIO := 2,
q_HCS := 35//,
// t_CR_Max := - // Problem
}
log(hcs_ServingCellInformation)
log(v_ServingCellInformation1)
log(hcs_ServingCellInformation2)
log(hcs_ServingCellInformation3)
}
}
with the result:
08:50:38.060412 TTCN-3 Main Test Component started on esekilxxen1843. Version: CRL 113 200/5 R4D.
08:50:38.060550 TTCN Logger v2.2 options: TimeStampFormat:=Time; LogEntityName:=No; LogEventTypes:=No; SourceInfoFormat:=None; *.FileMask:=LOG_ALL; *.ConsoleMask:=ACTION | ERROR | TESTCASE | STATISTICS | WARNING; LogFileSize:=0; LogFileNumber:=1; DiskFullAction:=Error
08:50:38.060673 Connected to MC.
08:50:38.068448 Executing control part of module ASNExample.
08:50:38.068512 Execution of control part in module ASNExample started.
08:50:38.068592 { hcs_PRIO := 2, q_HCS := 35, t_CR_Max := <uninitialized template> }
08:50:38.069707 { hcs_PRIO := 2, q_HCS := 35, t_CR_Max := 1 }
08:50:38.069732 { hcs_PRIO := 2, q_HCS := 35, t_CR_Max := 1 }
08:50:38.069749 { hcs_PRIO := 2, q_HCS := 35, t_CR_Max := 1 }
08:50:38.069768 Execution of control part in module ASNExample finished.
08:50:38.076377 Verdict statistics: 0 none, 0 pass, 0 inconc, 0 fail, 0 error.
08:50:38.076435 Test execution summary: 0 test case was executed. Overall verdict: none
08:50:38.076456 Exit was requested from MC. Terminating MTC.
So for the moment I'd recommend you remove the fields using "-".
I expect we should have a solution soon though, probably next week.
Best regards
Elemer
|
|
|
|
Re: Compiler crashing while compilation [message #1730360 is a reply to message #1730192] |
Mon, 25 April 2016 05:44  |
Eclipse User |
|
|
|
Hi Murli,
did you have time maybe to look into the endorsement we have talked about? It comes with absolutely no commitment from your side;
on the other hand we are now requested to collect case studies relevant to open sourcing Titan, and I believe your area is quite relevant.
Thank you and best regards
Elemer
|
|
|
Powered by
FUDForum. Page generated in 0.06297 seconds