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
CBMC version: 6.0.1
Operating system: ubuntsu22.04
Exact command line resulting in the issue: See below
What behaviour did you expect: It works
What happened instead: symbol table error
When I run goto-instrument with the following source code as input, I get the following error.
test.c
#include <stdio.h>
int globalArray[5];
void initializeArray();
void updateArray(int index, int newValue);
void initializeArray() {
for (int i = 0; i < 5; i++) {
globalArray[i] = i + 1;
}
}
void updateArray(int index, int newValue) {
if (index >= 0 && index < 5) {
globalArray[index] = newValue;
} else {
printf("Index out of bounds\n");
}
}
int main() {
// Initialize the array
initializeArray();
// Update the array at a specific index
updateArray(2, 10); // Change the value at index 2 to 10
return 0;
}
CBMC version: 6.0.1
Operating system: ubuntsu22.04
Exact command line resulting in the issue: See below
What behaviour did you expect: It works
What happened instead: symbol table error
When I run goto-instrument with the following source code as input, I get the following error.
test.c
command
result
The text was updated successfully, but these errors were encountered: