Goose  Diff

Differences From Artifact [e8ad47187a]:

  • File bs/cir/instruction.h — part of check-in [20223acc66] at 2023-07-13 21:45:22 on branch trunk — CIR, verifier: added forall quantified variables (user: zlodo size: 6023)

To Artifact [5ee2cdefc6]:

  • File bs/cir/instruction.h — part of check-in [32f94cd2e1] at 2023-08-02 21:46:53 on branch trunk — Implemented forall statement (user: zlodo size: 6290)

22
23
24
25
26
27
28
29

30
31
32
33
34
35
36
22
23
24
25
26
27
28

29
30
31
32
33
34
35
36







-
+







                m_content( move( tad ) )
            {}

            Instruction( Select&& sel ) :
                m_content( move( sel ) )
            {}

            Instruction( Constant&& cst ) :
            Instruction( PushConstant&& cst ) :
                m_content( move( cst ) )
            {}

            Instruction( CreateTemporary&& ct ) :
                m_content( move( ct ) )
            {}

166
167
168
169
170
171
172
173

174
175
176
177

178
179
180
181
182
183
184
185
186
187








188
189
190
191
192
193
194
195
196
197
198
199

200
201
202
203
204
205
206
166
167
168
169
170
171
172

173
174
175
176

177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206

207
208
209
210
211
212
213
214







-
+



-
+










+
+
+
+
+
+
+
+











-
+







                m_content( move( x ) )
            {}

            Instruction( GhostCall&& x ) :
                m_content( move( x ) )
            {}

            Instruction( ForAll&& x ) :
            Instruction( ForAllSetup&& x ) :
                m_content( move( x ) )
            {}

            Instruction( PopForAll&& x ) :
            Instruction( ForAll&& x ) :
                m_content( move( x ) )
            {}

            Instruction( Implies&& x ) :
                m_content( move( x ) )
            {}

            Instruction( IsPrefixOf&& x ) :
                m_content( move( x ) )
            {}

            Instruction( PushType&& x ) :
                m_content( move( x ) )
            {}

            Instruction( PushStringId&& x ) :
                m_content( move( x ) )
            {}

            using Content = variant
            <
                monostate,

                Call,

                VarAddr,
                TempAddr,
                Select,

                Constant,
                PushConstant,
                CreateTemporary,
                GetTemporary,
                AllocVar,
                Load,
                Store,
                Phi,

234
235
236
237
238
239
240
241
242


243
244
245




246
247
248
249
250
251
252
242
243
244
245
246
247
248


249
250
251
252

253
254
255
256
257
258
259
260
261
262
263







-
-
+
+


-
+
+
+
+








                Assert,
                GhostCall,
                PHOverrideSet,
                PHOverrideClear,
                Placeholder,

                ForAll,
                PopForAll,
                ForAllSetup,
                ForAll,

                Implies,
                IsPrefixOf
                IsPrefixOf,

                PushType,
                PushStringId
            >;

            const auto& content() const { return m_content; }
            auto& content() { return m_content; }

            bool canBeExecuted() const;
            bool canBeEagerlyEvaluated() const;