Skip to content

Commit 5f5d388

Browse files
Merge pull request #235 from hannes-steffenhagen-diffblue/feature-cbmc_bump
Feature cbmc bump
2 parents 8653f52 + 708efba commit 5f5d388

File tree

9 files changed

+169
-85
lines changed

9 files changed

+169
-85
lines changed

experiments/golden-results/StratoX-summary.txt

+12-12
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Calling function: Process_Pragma_Declaration
2828
Error message: Unsupported pragma: Global
2929
Nkind: N_Pragma
3030
--
31-
Occurs: 432 times
31+
Occurs: 430 times
3232
Calling function: Process_Declaration
3333
Error message: Package declaration
3434
Nkind: N_Package_Declaration
@@ -38,27 +38,27 @@ Calling function: Do_Record_Component
3838
Error message: Wrong component nkind
3939
Nkind: N_Pragma
4040
--
41-
Occurs: 405 times
41+
Occurs: 403 times
4242
Calling function: Process_Declaration
4343
Error message: Generic instantiation declaration
4444
Nkind: N_Function_Instantiation
4545
--
46-
Occurs: 400 times
47-
Calling function: Do_Function_Call
48-
Error message: func name not in symbol table
49-
Nkind: N_Function_Call
50-
--
5146
Occurs: 398 times
5247
Calling function: Do_Expression
5348
Error message: Unknown expression kind
5449
Nkind: N_Expanded_Name
5550
--
51+
Occurs: 397 times
52+
Calling function: Do_Function_Call
53+
Error message: func name not in symbol table
54+
Nkind: N_Function_Call
55+
--
5656
Occurs: 348 times
5757
Calling function: Process_Pragma_Declaration
5858
Error message: Unsupported pragma: Suppress initialization
5959
Nkind: N_Pragma
6060
--
61-
Occurs: 342 times
61+
Occurs: 340 times
6262
Calling function: Process_Declaration
6363
Error message: Unknown declaration kind
6464
Nkind: N_Validate_Unchecked_Conversion
@@ -68,7 +68,7 @@ Calling function: Process_Pragma_Declaration
6868
Error message: Unsupported pragma: Volatile
6969
Nkind: N_Pragma
7070
--
71-
Occurs: 284 times
71+
Occurs: 283 times
7272
Calling function: Process_Pragma_Declaration
7373
Error message: Unsupported pragma: Unreferenced
7474
Nkind: N_Pragma
@@ -103,7 +103,7 @@ Calling function: Do_Type_Definition
103103
Error message: Unknown expression kind
104104
Nkind: N_Access_Procedure_Definition
105105
--
106-
Occurs: 142 times
106+
Occurs: 133 times
107107
Calling function: Process_Pragma_Declaration
108108
Error message: Unsupported pragma: Check
109109
Nkind: N_Pragma
@@ -118,12 +118,12 @@ Calling function: Do_Expression
118118
Error message: Unknown attribute
119119
Nkind: N_Attribute_Reference
120120
--
121-
Occurs: 98 times
121+
Occurs: 90 times
122122
Calling function: Do_Aggregate_Literal_Array
123123
Error message: More than one named operand
124124
Nkind: N_Aggregate
125125
--
126-
Occurs: 96 times
126+
Occurs: 86 times
127127
Calling function: Do_Expression
128128
Error message: In
129129
Nkind: N_In

experiments/golden-results/Tokeneer-summary.txt

-5
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,6 @@ Calling function: Process_Pragma_Declaration
138138
Error message: Unsupported pragma: Atomic
139139
Nkind: N_Pragma
140140
--
141-
Occurs: 4 times
142-
Calling function: Do_Aggregate_Literal_Array
143-
Error message: More than one named operand
144-
Nkind: N_Aggregate
145-
--
146141
Occurs: 3 times
147142
Calling function: Do_Itype_Integer_Subtype
148143
Error message: Non-literal bound unsupported

experiments/golden-results/UKNI-Information-Barrier-summary.txt

-5
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ Error message: Unsupported pragma: Implementation defined
2424
Nkind: N_Pragma
2525
--
2626
Occurs: 1 times
27-
Calling function: Do_Aggregate_Literal_Array
28-
Error message: More than one named operand
29-
Nkind: N_Aggregate
30-
--
31-
Occurs: 1 times
3227
Calling function: Process_Declaration
3328
Error message: Use package clause declaration
3429
Nkind: N_Use_Package_Clause

experiments/golden-results/libkeccak-summary.txt

+40-45
Original file line numberDiff line numberDiff line change
@@ -8,46 +8,41 @@ Calling function: Process_Pragma_Declaration
88
Error message: Unsupported pragma: Precondition
99
Nkind: N_Pragma
1010
--
11-
Occurs: 448 times
11+
Occurs: 442 times
1212
Calling function: Process_Pragma_Declaration
1313
Error message: Unsupported pragma: Global
1414
Nkind: N_Pragma
1515
--
16-
Occurs: 259 times
16+
Occurs: 181 times
1717
Calling function: Do_Function_Call
1818
Error message: func name not in symbol table
1919
Nkind: N_Function_Call
2020
--
21-
Occurs: 199 times
22-
Calling function: Do_Constant
23-
Error message: Constant Type not in symbol table
24-
Nkind: N_Integer_Literal
25-
--
26-
Occurs: 157 times
27-
Calling function: Do_Function_Call
28-
Error message: function entity not defining identifier
29-
Nkind: N_Function_Call
30-
--
3121
Occurs: 123 times
3222
Calling function: Do_Procedure_Call_Statement
3323
Error message: sym id not in symbol table
3424
Nkind: N_Procedure_Call_Statement
3525
--
36-
Occurs: 72 times
26+
Occurs: 103 times
27+
Calling function: Do_Constant
28+
Error message: Constant Type not in symbol table
29+
Nkind: N_Integer_Literal
30+
--
31+
Occurs: 64 times
32+
Calling function: Process_Declaration
33+
Error message: Use type clause declaration
34+
Nkind: N_Use_Type_Clause
35+
--
36+
Occurs: 62 times
3737
Calling function: Make_Array_First_Expr
3838
Error message: Base type not array type
3939
Nkind: N_Defining_Identifier
4040
--
41-
Occurs: 72 times
41+
Occurs: 62 times
4242
Calling function: Make_Array_Index_Op
4343
Error message: Base type not array type
4444
Nkind: N_Defining_Identifier
4545
--
46-
Occurs: 67 times
47-
Calling function: Process_Declaration
48-
Error message: Use type clause declaration
49-
Nkind: N_Use_Type_Clause
50-
--
5146
Occurs: 58 times
5247
Calling function: Process_Pragma_Declaration
5348
Error message: Unsupported pragma: Postcondition
@@ -68,7 +63,7 @@ Calling function: Process_Statement
6863
Error message: Unknown expression kind
6964
Nkind: N_Freeze_Entity
7065
--
71-
Occurs: 33 times
66+
Occurs: 25 times
7267
Calling function: Do_Pragma
7368
Error message: Unknown pragma name
7469
Nkind: N_Pragma
@@ -78,17 +73,17 @@ Calling function: Do_Type_Definition
7873
Error message: Access type unsupported
7974
Nkind: N_Access_To_Object_Definition
8075
--
81-
Occurs: 23 times
82-
Calling function: Do_Itype_Integer_Subtype
83-
Error message: Non-literal bound unsupported
84-
Nkind: N_Defining_Identifier
85-
--
8676
Occurs: 18 times
8777
Calling function: Process_Pragma_Declaration
8878
Error message: Unsupported pragma: Suppress initialization
8979
Nkind: N_Pragma
9080
--
9181
Occurs: 16 times
82+
Calling function: Do_Itype_Integer_Subtype
83+
Error message: Non-literal bound unsupported
84+
Nkind: N_Defining_Identifier
85+
--
86+
Occurs: 16 times
9287
Calling function: Process_Pragma_Declaration
9388
Error message: Unsupported pragma: Preelaborable Initialization
9489
Nkind: N_Pragma
@@ -98,32 +93,22 @@ Calling function: Do_Private_Type_Declaration
9893
Error message: Abstract type declaration unsupported
9994
Nkind: N_Private_Type_Declaration
10095
--
101-
Occurs: 10 times
102-
Calling function: Do_Aggregate_Literal_Array
103-
Error message: More than one named operand
104-
Nkind: N_Aggregate
105-
--
106-
Occurs: 10 times
107-
Calling function: Do_Op_Expon
108-
Error message: Exponentiation unhandled for non mod types at the moment
109-
Nkind: N_Op_Expon
110-
--
11196
Occurs: 9 times
11297
Calling function: Do_Expression
11398
Error message: Unknown expression kind
11499
Nkind: N_Null
115100
--
116-
Occurs: 8 times
117-
Calling function: Do_While_Statement
118-
Error message: Wrong Nkind spec
119-
Nkind: N_Loop_Statement
101+
Occurs: 9 times
102+
Calling function: Do_Op_Expon
103+
Error message: Exponentiation unhandled for non mod types at the moment
104+
Nkind: N_Op_Expon
120105
--
121106
Occurs: 8 times
122107
Calling function: Process_Declaration
123108
Error message: Abstract subprogram declaration
124109
Nkind: N_Abstract_Subprogram_Declaration
125110
--
126-
Occurs: 8 times
111+
Occurs: 7 times
127112
Calling function: Process_Pragma_Declaration
128113
Error message: Unknown pragma
129114
Nkind: N_Pragma
@@ -149,11 +134,6 @@ Error message: Package declaration
149134
Nkind: N_Package_Declaration
150135
--
151136
Occurs: 3 times
152-
Calling function: Do_Itype_Definition
153-
Error message: Unknown Ekind
154-
Nkind: N_Defining_Identifier
155-
--
156-
Occurs: 3 times
157137
Calling function: Process_Declaration
158138
Error message: Generic instantiation declaration
159139
Nkind: N_Procedure_Instantiation
@@ -174,12 +154,22 @@ Error message: Unknown expression kind
174154
Nkind: N_Expanded_Name
175155
--
176156
Occurs: 2 times
157+
Calling function: Do_While_Statement
158+
Error message: Wrong Nkind spec
159+
Nkind: N_Loop_Statement
160+
--
161+
Occurs: 2 times
177162
Calling function: Process_Pragma_Declaration
178163
Error message: Unsupported pragma: Warnings
179164
Nkind: N_Pragma
180165
--
181166
Occurs: 1 times
182167
Calling function: Do_Aggregate_Literal_Array
168+
Error message: More than one named operand
169+
Nkind: N_Aggregate
170+
--
171+
Occurs: 1 times
172+
Calling function: Do_Aggregate_Literal_Array
183173
Error message: Wrong kind of other choice
184174
Nkind: N_Aggregate
185175
--
@@ -194,6 +184,11 @@ Error message: In
194184
Nkind: N_In
195185
--
196186
Occurs: 1 times
187+
Calling function: Do_Itype_Definition
188+
Error message: Unknown Ekind
189+
Nkind: N_Defining_Identifier
190+
--
191+
Occurs: 1 times
197192
Calling function: Process_Declaration
198193
Error message: Generic declaration
199194
Nkind: N_Generic_Subprogram_Declaration

experiments/golden-results/muen-summary.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,6 @@ Error message: Unknown expression kind
184184
Nkind: N_Object_Declaration
185185
--
186186
Occurs: 3 times
187-
Calling function: Do_Aggregate_Literal_Array
188-
Error message: More than one named operand
189-
Nkind: N_Aggregate
190-
--
191-
Occurs: 3 times
192187
Calling function: Do_Procedure_Call_Statement
193188
Error message: sym id not in symbol table
194189
Nkind: N_Procedure_Call_Statement
@@ -209,6 +204,11 @@ Error message: Unhandled aggregate kind
209204
Nkind: N_Aggregate
210205
--
211206
Occurs: 2 times
207+
Calling function: Do_Aggregate_Literal_Array
208+
Error message: More than one named operand
209+
Nkind: N_Aggregate
210+
--
211+
Occurs: 2 times
212212
Calling function: Process_Declaration
213213
Error message: Unknown declaration kind
214214
Nkind: N_Validate_Unchecked_Conversion

experiments/golden-results/vct-summary.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ Calling function: Do_Expression
2323
Error message: Unknown expression kind
2424
Nkind: N_Expanded_Name
2525
--
26-
Occurs: 11 times
27-
Calling function: Do_Aggregate_Literal_Array
28-
Error message: More than one named operand
29-
Nkind: N_Aggregate
30-
--
3126
Occurs: 9 times
3227
Calling function: Do_Private_Type_Declaration
3328
Error message: Abstract type declaration unsupported
@@ -125,5 +120,10 @@ Raw compiler error message:
125120
--
126121
Occurs: 1 times
127122
+===========================GNAT BUG DETECTED==============================+
123+
| GNU Ada (ada2goto) Assert_Failure failed precondition from goto_utils.ads:115|
124+
| Error detected at system.ads:156:5 |
125+
--
126+
Occurs: 1 times
127+
+===========================GNAT BUG DETECTED==============================+
128128
| GNU Ada (ada2goto) Assert_Failure failed precondition from range_check.ads:29|
129129
| Error detected at system.ads:156:5 |

gnat2goto/driver/arrays.adb

+7-7
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ package body Arrays is
5858
Low_Expr : constant Irep := Do_Expression (Low_Bound (Bounds));
5959
High_Expr : constant Irep := Do_Expression (High_Bound (Bounds));
6060
Index_Type_Node : constant Entity_Id := Etype (Etype (Bounds));
61-
Index_Type : constant Irep := Do_Type_Reference (Index_Type_Node);
61+
Index_Type : constant Irep := Follow_Symbol_Type
62+
(Do_Type_Reference (Index_Type_Node),
63+
Global_Symbol_Table);
6264
Len_Expr : constant Irep :=
6365
Build_Array_Size (First => Low_Expr,
6466
Last => High_Expr,
@@ -166,12 +168,10 @@ package body Arrays is
166168
begin
167169
if With_Mode then
168170
declare
169-
Pos_Str : constant String := Integer'Image (Pos_Number);
170-
Pos_Constant : constant Irep :=
171-
Make_Constant_Expr (Value =>
172-
Pos_Str (2 .. Pos_Str'Last),
173-
I_Type => Make_Integer_Type,
174-
Source_Location => Sloc (N));
171+
Pos_Constant : constant Irep := Integer_Constant_To_Expr
172+
(Value => UI_From_Int (Int (Pos_Number)),
173+
Expr_Type => Index_Type,
174+
Source_Location => No_Location);
175175
New_With : constant Irep :=
176176
Make_With_Expr (Old => Array_Expr,
177177
Where => Pos_Constant,

0 commit comments

Comments
 (0)