// UNSUPPORTED: system-windows
Node0x1 [shape=record,label=
- "{{ "program_state": null, "program_points": [
+ "{{ "state_id": 0, "program_state": null, "program_points": [
{
"kind": "BlockEntrance", "block_id": 1,
"terminator": null, "term_kind": null,
Node0x1 -> Node0x2;
Node0x2 [shape=record,label=
- "{{ "program_state": null, "program_points": [
+ "{{ "state_id": 0, "program_state": null, "program_points": [
{
"kind": "BlockEntrance", "block_id": 1,
"terminator": null, "term_kind": null,
// CHECK-SAME: <tr>
// LIGHT-SAME: <td bgcolor="gray70">
// DARK-SAME: <td bgcolor="gray20">
-// CHECK-SAME: <b>State Unspecified</b>
+// CHECK-SAME: <b>State 0</b>
// CHECK-SAME: </td>
// CHECK-SAME: </tr>
Node0x1 [shape=record,label=
"{
- { "node_id": 1, "pointer": "0x1", "has_report": false, "is_sink": false,
- "program_state": null,
+ { "state_id": 0, "program_state": null,
"program_points": [
{
"kind": "BlockEntrance", "block_id": 1,
// CHECK-SAME: </tr>
Node0x2 [shape=record,label=
"{
- { "program_state": null,
+ { "state_id": 0, "program_state": null,
"program_points": [
{
"kind": "BlockEntrance", "block_id": 1,
Node0x1 [shape=record,label=
"{
{
- "program_state": null, "program_points": [
+ "state_id": 0, "program_state": null, "program_points": [
{
"kind": "Edge",
"src_id": 0,
// CHECK-SAME: </table>
Node0x3 [shape=record,label=
"{
- { "program_state": null, "program_points": [
+ { "state_id": 0, "program_state": null, "program_points": [
{
"kind": "Statement",
"stmt_kind": "DeclRefExpr",
Node0x4 [shape=record,label=
"{
{
- "program_state": null, "program_points": [
+ "state_id": 0, "program_state": null, "program_points": [
{
"kind": "Statement",
"stmt_kind": "CompoundStmt",
// CHECK-SAME: </table>
Node0x5 [shape=record,label=
"{
- { "program_state": null, "program_points": [
+ { "state_id": 0, "program_state": null, "program_points": [
{
"kind": "Statement",
"stmt_kind": "ImplicitCastExpr",
// UNSUPPORTED: system-windows
Node0x1 [shape=record,label=
- "{{ "program_state": null, "program_points": [
+ "{{ "state_id": 0, "program_state": null, "program_points": [
{
"kind": "BlockEntrance", "block_id": 1,
"terminator": null, "term_kind": null,
]}\l}"];
Node0x2 [shape=record,label=
- "{{ "program_state": null, "program_points": [
+ "{{ "state_id": 0, "program_state": null, "program_points": [
{
"kind": "BlockEntrance", "block_id": 1,
"terminator": null, "term_kind": null,
]}\l}"];
Node0x3 [shape=record,label=
- "{{ "program_state": null, "program_points": [
+ "{{ "state_id": 0, "program_state": null, "program_points": [
{
"kind": "BlockEntrance", "block_id": 1,
"terminator": null, "term_kind": null,
]}\l}"];
Node0x4 [shape=record,label=
- "{{ "program_state": null, "program_points": [
+ "{{ "state_id": 0, "program_state": null, "program_points": [
{
"kind": "BlockEntrance", "block_id": 1,
"terminator": null, "term_kind": null,
super(ProgramState, self).__init__()
logging.debug('Adding ProgramState ' + str(state_id))
+ if json_ps is None:
+ json_ps = {
+ 'store': None,
+ 'environment': None,
+ 'constraints': None,
+ 'dynamic_types': None,
+ 'constructing_objects': None,
+ 'checker_messages': None
+ }
+
self.state_id = state_id
self.store = Store(json_ps['store']) \
self.points = [ProgramPoint(p) for p in json_node['program_points']]
self.node_id = self.points[-1].node_id
self.state = ProgramState(json_node['state_id'],
- json_node['program_state']) \
- if json_node['program_state'] is not None else None
+ json_node['program_state']
+ if json_node['program_state'] is not None else None);
assert self.node_name() == node_id