|
16 | 16 | unsafe: 0 |
17 | 17 | total memory locations: 4 |
18 | 18 |
|
19 | | - $ yamlWitnessStrip < witness.yml |
| 19 | + $ (yamlWitnessStrip < witness.yml) > new-stripped.yml |
| 20 | + $ ./strip-ghost-alloc.sh new-stripped.yml |
20 | 21 | - entry_type: ghost_instrumentation |
21 | 22 | content: |
22 | 23 | ghost_variables: |
23 | | - - name: alloc_m559918035_locked |
| 24 | + - name: ALLOC_VAR1_LOCKED |
24 | 25 | scope: global |
25 | 26 | type: int |
26 | 27 | initial: |
27 | 28 | value: "0" |
28 | 29 | format: c_expression |
29 | | - - name: alloc_m861095507_locked |
| 30 | + - name: ALLOC_VAR2_LOCKED |
30 | 31 | scope: global |
31 | 32 | type: int |
32 | 33 | initial: |
|
46 | 47 | column: 3 |
47 | 48 | function: t_fun |
48 | 49 | updates: |
49 | | - - variable: alloc_m559918035_locked |
| 50 | + - variable: ALLOC_VAR1_LOCKED |
50 | 51 | value: "1" |
51 | 52 | format: c_expression |
52 | 53 | - location: |
|
56 | 57 | column: 3 |
57 | 58 | function: t_fun |
58 | 59 | updates: |
59 | | - - variable: alloc_m559918035_locked |
| 60 | + - variable: ALLOC_VAR1_LOCKED |
60 | 61 | value: "0" |
61 | 62 | format: c_expression |
62 | 63 | - location: |
|
66 | 67 | column: 3 |
67 | 68 | function: t_fun |
68 | 69 | updates: |
69 | | - - variable: alloc_m861095507_locked |
| 70 | + - variable: ALLOC_VAR2_LOCKED |
70 | 71 | value: "1" |
71 | 72 | format: c_expression |
72 | 73 | - location: |
|
76 | 77 | column: 3 |
77 | 78 | function: t_fun |
78 | 79 | updates: |
79 | | - - variable: alloc_m861095507_locked |
| 80 | + - variable: ALLOC_VAR2_LOCKED |
80 | 81 | value: "0" |
81 | 82 | format: c_expression |
82 | 83 | - location: |
|
96 | 97 | column: 3 |
97 | 98 | function: main |
98 | 99 | updates: |
99 | | - - variable: alloc_m559918035_locked |
| 100 | + - variable: ALLOC_VAR1_LOCKED |
100 | 101 | value: "1" |
101 | 102 | format: c_expression |
102 | 103 | - location: |
|
106 | 107 | column: 3 |
107 | 108 | function: main |
108 | 109 | updates: |
109 | | - - variable: alloc_m559918035_locked |
| 110 | + - variable: ALLOC_VAR1_LOCKED |
110 | 111 | value: "0" |
111 | 112 | format: c_expression |
112 | 113 | - location: |
|
116 | 117 | column: 3 |
117 | 118 | function: main |
118 | 119 | updates: |
119 | | - - variable: alloc_m861095507_locked |
| 120 | + - variable: ALLOC_VAR2_LOCKED |
120 | 121 | value: "1" |
121 | 122 | format: c_expression |
122 | 123 | - location: |
|
126 | 127 | column: 3 |
127 | 128 | function: main |
128 | 129 | updates: |
129 | | - - variable: alloc_m861095507_locked |
| 130 | + - variable: ALLOC_VAR2_LOCKED |
130 | 131 | value: "0" |
131 | 132 | format: c_expression |
132 | 133 | - entry_type: flow_insensitive_invariant |
133 | 134 | flow_insensitive_invariant: |
134 | | - string: '! multithreaded || (alloc_m861095507_locked || g2 == 0)' |
| 135 | + string: '! multithreaded || (ALLOC_VAR2_LOCKED || g2 == 0)' |
135 | 136 | type: assertion |
136 | 137 | format: C |
137 | 138 | - entry_type: flow_insensitive_invariant |
138 | 139 | flow_insensitive_invariant: |
139 | | - string: '! multithreaded || (alloc_m559918035_locked || g1 == 0)' |
| 140 | + string: '! multithreaded || (ALLOC_VAR1_LOCKED || g1 == 0)' |
140 | 141 | type: assertion |
141 | 142 | format: C |
142 | 143 | - entry_type: flow_insensitive_invariant |
|
0 commit comments