You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Without this commit, the JSON output will miss source locations of messages. Compare the following plaintext output from cbmc:
```
file My.java line 8 function java::My.doIt:()V: no identifier for function parameter
```
with the JSON output for the same input file and parameters
```
{
"messageText": "no identifier for function parameter",
"messageType": "ERROR"
}
```
With this commit, the JSON output will be something like
```
{
"messageText": "no identifier for function parameter",
"messageType": "ERROR"
"sourceLocation": {
"bytecodeIndex": "2"
"file": "My.java",
"function": "java::My.doIt:()V",
"line": "8"
}
}
```
This should make debugging of errors easier.
0 commit comments