iec-checker
iec-checker copied to clipboard
unexpected result for 'dead-code.st' example on Windows
Hi jubnzv, your 'dead-code.st' gives me an unexpected result on windows.
Expected result for 'dead-code.st':
Report for test/st/[dead-code.st](http://dead-code.st/):
Report for test/st/dead-code.st:[PLCOPEN-L17] 17:6 Each IF instruction should have an ELSE clause
[UnreachableCode] 25:7 Code block will never be reached
[UnreachableCode] 20:7 Code block will never be reached
[UnreachableCode] 9:10 Code block will never be reached
My result for 'dead-code.st':
Parsing tests\st_examples\[dead-code.st](http://dead-code.st/) ...
Running check for function DEAD_CODE_AFTER_RETURN
Running check for program DEAD_CODE_IN_THE_LOOPS
15:5 UnusedVariable: Found unused local variable: A
17:6 PLCOPEN-L17: Each IF instruction should have an ELSE clause
19:10 PLCOPEN-L10: Usage of CONTINUE and EXIT instruction should be avoid
24:14 PLCOPEN-L10: Usage of CONTINUE and EXIT instruction should be avoid
4:12 PLCOPEN-CP3: Variable SOME_VAR shall be initialized before being used
15:14 PLCOPEN-CP3: Variable I shall be initialized before being used
15:5 PLCOPEN-CP3: Variable A shall be initialized before being used
20:7 PLCOPEN-CP2: All code shall be used in the application
25:7 PLCOPEN-CP2: All code shall be used in the application
9:10 PLCOPEN-CP2: All code shall be used in the application
Thanks for the report! I suppose, the problem is in the compiled binary for Windows. I build it manually on my second machine. So we have to rebuild the binary and try again. Ideally, we want to automate this process (#14).
Thanks for the report! I suppose, the problem is in the compiled binary for Windows. I build it manually on my second machine. So we have to rebuild the binary and try again. Ideally, we want to automate this process (#14).
Automatic build would be great!