How to set DRS correctly via textfile (PS2014b)?
    조회 수: 5 (최근 30일)
  
       이전 댓글 표시
    
Hi all,
as a PS noob I want to set DRS manually by textfile (range.txt):
- function1.minDelay 0x00 0xFFFF init
 - function1.maxDelay 0xFFFF 0xFFFFFFFF init
 
But PS told me (PS is stubbing the function):
 d:\range.txt, line 1: Warning: data-range-specifications: expected a function called by main-generator
The optionsfile looks like (defines and includes removed):
- -O3
 - -OS-target no-predefined-OS
 - -allow-language-extensions
 - -context-sensitivity-auto
 - -lang C
 - -dos
 - -enum-type-definition auto-unsigned-first
 - -includes-to-ignore all
 - -scalar-overflows-behavior truncate-on-error
 - -scalar-overflows-checks signed
 - -target mpc5xx
 - -to Software Safety Analysis level 4
 - -inline TS_MemCpy32,TS_MemSet32,TS_MemBZero32,TS_MemCmp32,TS_MemCpy16,TS_MemSet16,TS_MemBZero16,TS_MemCmp16,TS_MemCpy8,TS_MemSet8,TS_MemBZero8,TS_MemCmp8,TS_MemMove,TS_MemCpy32_NoCheck,TS_MemSet32_NoCheck,TS_MemBZero32_NoCheck,TS_MemCmp32_NoCheck,TS_MemCpy16_NoCheck,TS_MemSet16_NoCheck,TS_MemBZero16_NoCheck,TS_MemCmp16_NoCheck
 - -custom-rules d:\rules.txt
 - -sources-list-file d:\src.txt
 - -data-range-specifications d:\range.txt
 - -verif-version 1.1.1
 - -prog Test_2014_111
 - -author Test
 - -max-processes 8
 
Next: the stubbed function is declared as:
 Retval_e function1(const StructType_t ** pAddress, timediff_ms_t minDelay, ENUMTYPE_e measurePoint, timediff_ms_t maxDelay);
2nd: how to set also the pointer and the enum via textfile?
Thanks a lot for your effort and help.
Best regards. Thomas
댓글 수: 0
답변 (1개)
  Alexandre De Barros
    
 2015년 1월 14일
        Hi Thomas,
Is the function function1 defined or undefined in your application ? If it is undefined (so stubbed), I don't see why you want to specify the range of the parameters.
Best regards,
Alexandre
댓글 수: 2
  Alexandre De Barros
    
 2015년 1월 15일
				Hi Thomas!
Sorry to insist, but I don't see why you want to specify input values for a function which is stubbed, and so that is not part of the verification?
Best regards,
Alexandre
참고 항목
카테고리
				Help Center 및 File Exchange에서 Generate Reports에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!