Skip to content

Commit c054c1f

Browse files
authored
Merge branch 'develop' into 1975_LSP_Add_missingCopiesparams_CPY_Copies
2 parents 1cf225e + 5d35944 commit c054c1f

File tree

171 files changed

+4762
-2546
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+4762
-2546
lines changed

CLI/src/CLI.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,15 +257,15 @@ private Dictionary<string, IReport> RegisterAnalyzers(AnalyzerProvider analyzerP
257257
if (_configuration.ExecToStep >= ExecutionStep.CrossCheck)
258258
{
259259
//All purpose CFG/DFA
260-
analyzerProvider.AddActivator((o, t) => CfgDfaAnalyzerFactory.CreateCfgAnalyzer(_configuration.CfgBuildingMode));
260+
analyzerProvider.AddActivator((o, t) => CfgDfaAnalyzerFactory.CreateCfgAnalyzer(_configuration.CfgBuildingMode, o));
261261

262262
//CFG/DFA for ZCALL report
263263
if (!string.IsNullOrEmpty(_configuration.ReportZCallFilePath))
264264
{
265265
if (_configuration.CfgBuildingMode != CfgBuildingMode.WithDfa)
266266
{
267267
//Need to create a dedicated CFG builder with DFA activated
268-
analyzerProvider.AddActivator((o, t) => CfgDfaAnalyzerFactory.CreateCfgAnalyzer(CfgBuildingMode.WithDfa));
268+
analyzerProvider.AddActivator((o, t) => CfgDfaAnalyzerFactory.CreateCfgAnalyzer(CfgBuildingMode.WithDfa, o));
269269
}
270270

271271
string zCallCfgDfaId = CfgDfaAnalyzerFactory.GetIdForMode(CfgBuildingMode.WithDfa);

Codegen/src/Nodes/ProcedureDivision.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public GeneratedParameter(SymbolDefinition symbol) {
114114

115115
public static StorageArea CreateReceivingStorageArea(SymbolDefinition symbol) {
116116
if (symbol == null) return null;
117-
var storage = new DataOrConditionStorageArea(new SymbolReference(symbol));
117+
var storage = new DataOrConditionStorageArea(new SymbolReference(symbol), false);
118118
return storage;
119119
}
120120
}

Codegen/test/resources/input/TypeCobol/ProcedureSubscript.rdz.tcbl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
WORKING-STORAGE SECTION.
66
01 MyPicVar PIC X(10).
77
01 MyGroup.
8-
05 MyValue PIC 2.
8+
05 MyValue PIC 9(2).
99
01 StringArray.
1010
05 OCCURS 10 INDEXED BY StringIdx.
1111
10 Pnt POINTER.

Codegen/test/resources/output/TypeCobol/ProcedureSubscript.rdz.tcbl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
WORKING-STORAGE SECTION.
77
01 MyPicVar PIC X(10).
88
01 MyGroup.
9-
05 MyValue PIC 2.
9+
05 MyValue PIC 9(2).
1010
01 StringArray.
1111
05 OCCURS 10 INDEXED BY StringIdx.
1212
10 Pnt POINTER.

TypeCobol.Analysis.Test/BasicCfgInstrs/CGM110.diag

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ Line 28256[8,37] <37, Warning, General> - Warning: Paragraph 'CGBCALAK-SYSPUNCH-
1010
Line 28289[8,37] <37, Warning, General> - Warning: Paragraph 'CGBCALAK-SYSPUNCH-WSBA-SUITE' is empty
1111
Line 28327[8,32] <37, Warning, General> - Warning: Paragraph 'CGBCALAK-SYSPUNCH-SUITE' is empty
1212
Line 29421[13,18] <37, Warning, General> - Warning: a End statement is not aligned with the matching opening statement
13+
Line 29550[20,71] <37, Warning, General> - Warning: Moving alphanumeric 'WS-CMM010-CODE-CADRAGE-JJ' to numeric 'WS-CMM010-CADR-BIN' declared with an USAGE may lead to unexpected results.
1314
Line 29627[16,21] <37, Warning, General> - Warning: a End statement is not aligned with the matching opening statement
1415
Line 29628[16,21] <37, Warning, General> - Warning: a End statement is not aligned with the matching opening statement
16+
Line 29685[24,46] <37, Warning, General> - Warning: Moving alphanumeric 'WS-CMM010-CODE-CADRAGE-JJ' to numeric 'WS-CMM010-CADR-BIN' declared with an USAGE may lead to unexpected results.
1517
Line 29772[12,17] <37, Warning, General> - Warning: "end-if" is missing
1618
Line 29776[16,21] <37, Warning, General> - Warning: "end-if" is missing
1719
Line 31035[21,26] <37, Warning, General> - Warning: a End statement is not aligned with the matching opening statement

TypeCobol.Analysis.Test/BasicCfgInstrs/CfgInNestedPrg2.cbl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
02 zres pic s9(12)v999.
2020
WORKING-STORAGE SECTION.
2121
01 tabind.
22-
02 ind pic 1 occurs 99.
23-
77 ef pic 1 value "1".
24-
77 fct3 pic 1 value "1".
22+
02 ind pic X occurs 99.
23+
77 ef pic X value "1".
24+
77 fct3 pic X value "1".
2525
PROCEDURE DIVISION.
2626
open i-o VUE.
2727
move zero to fct1 fct2 zres.

TypeCobol.Analysis.Test/BasicCfgInstrs/CfgInStackedPrg1.cbl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545
02 zres pic s9(12)v999.
4646
WORKING-STORAGE SECTION.
4747
01 tabind.
48-
02 ind pic 1 occurs 99.
49-
77 ef pic 1 value "1".
50-
77 fct3 pic 1 value "1".
48+
02 ind pic X occurs 99.
49+
77 ef pic X value "1".
50+
77 fct3 pic X value "1".
5151
PROCEDURE DIVISION.
5252
open i-o VUE.
5353
move zero to fct1 fct2 zres.

TypeCobol.Analysis.Test/BasicCfgInstrs/Declaratives1.cbl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@
3333
3434
EMPL-FOOT-USE SECTION. USE FOR DEBUGGING ON ALL PROCEDURES.
3535
EMPL-FOOT-PROC.
36-
MOVE NUM TO NBJ.
37-
MOVE NBJ TO NUM.
36+
MOVE NUM(1) TO NBJ(1).
37+
MOVE NBJ(2) TO NUM(2).
3838
EMPL-FOOT-EXIT.
3939
EXIT.
4040
4141
DEPT-FOOT-USE SECTION. USE FOR DEBUGGING ON ALL PROCEDURES.
4242
DEPT-FOOT-PROC.
43-
MOVE NUM TO NBJ.
44-
MOVE NBJ TO NUM.
43+
MOVE NUM(3) TO NBJ(3).
44+
MOVE NBJ(4) TO NUM(4).
4545
* SUPPRESS PRINTING.
4646
4747
DEPT-FOOT-EXIT.
@@ -55,8 +55,8 @@
5555
GO TO COMP-FOOT-EXIT.
5656
5757
COMP-FOOT-CALC.
58-
MOVE NUM TO NBJ.
59-
MOVE NBJ TO NUM.
58+
MOVE NUM(5) TO NBJ(5).
59+
MOVE NBJ(6) TO NUM(6).
6060
6161
COMP-FOOT-EXIT.
6262
EXIT.

TypeCobol.Analysis.Test/BasicCfgInstrs/Declaratives1.dot

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ Block9 [
3838
label = "{EMPL-FOOT-USE. Block9| USE FOR DEBUGGING ON ALL PROCEDURES.\l}"
3939
]
4040
Block10 [
41-
label = "{EMPL-FOOT-PROC. Block10|MOVE NUM TO NBJ\l}"
41+
label = "{EMPL-FOOT-PROC. Block10|MOVE NUM(1) TO NBJ(1)\l}"
4242
]
4343
Block11 [
44-
label = "{EMPL-FOOT-PROC. Block11|MOVE NBJ TO NUM\l}"
44+
label = "{EMPL-FOOT-PROC. Block11|MOVE NBJ(2) TO NUM(2)\l}"
4545
]
4646
Block12 [
4747
label = "{EMPL-FOOT-EXIT. Block12|EXIT\l}"
@@ -50,10 +50,10 @@ Block13 [
5050
label = "{DEPT-FOOT-USE. Block13| USE FOR DEBUGGING ON ALL PROCEDURES.\l}"
5151
]
5252
Block14 [
53-
label = "{DEPT-FOOT-PROC. Block14|MOVE NUM TO NBJ\l}"
53+
label = "{DEPT-FOOT-PROC. Block14|MOVE NUM(3) TO NBJ(3)\l}"
5454
]
5555
Block15 [
56-
label = "{DEPT-FOOT-PROC. Block15|MOVE NBJ TO NUM\l}"
56+
label = "{DEPT-FOOT-PROC. Block15|MOVE NBJ(4) TO NUM(4)\l}"
5757
]
5858
Block16 [
5959
label = "{DEPT-FOOT-EXIT. Block16|EXIT\l}"
@@ -71,10 +71,10 @@ subgraph cluster_1{
7171
color = blue;
7272
label = "COMP-FOOT-CALC";
7373
Block27 [
74-
label = "{COMP-FOOT-CALC. Block27|MOVE NUM TO NBJ\l}"
74+
label = "{COMP-FOOT-CALC. Block27|MOVE NUM(5) TO NBJ(5)\l}"
7575
]
7676
Block28 [
77-
label = "{COMP-FOOT-CALC. Block28|MOVE NBJ TO NUM\l}"
77+
label = "{COMP-FOOT-CALC. Block28|MOVE NBJ(6) TO NUM(6)\l}"
7878
]
7979

8080
}

TypeCobol.Analysis.Test/BasicCfgInstrs/IfThen0.cbl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
DATA DIVISION.
55
WORKING-STORAGE SECTION.
6-
01 A PIC P(2) VALUE 10.
6+
01 A PIC 9(2) VALUE 10.
77
PROCEDURE DIVISION.
88
IF A = 10 THEN
99
DISPLAY "A = 10"

0 commit comments

Comments
 (0)