Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2039 compute jump targets #2099

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
--- Diagnostics ---
Line 28[15,29] <37, Warning, General> - Warning: A recursive loop has been encountered while analyzing 'PERFORM pararec', recursive instruction is ' perform pararec2'.
Line 29[15,57] <37, Warning, General> - Warning: Unreachable code detected
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
--- Diagnostics ---
Line 31[15,29] <37, Warning, General> - Warning: A recursive loop has been encountered while analyzing 'PERFORM pararec', recursive instruction is ' perform pararec2'.
Line 32[15,57] <37, Warning, General> - Warning: Unreachable code detected
Line 57[15,64] <37, Warning, General> - Warning: A recursive loop has been encountered while analyzing 'PERFORM pararec4', recursive instruction is ' perform pararec4 varying n from 1 by 1 until n > 5'.
Line 57[15,64] <37, Warning, General> - Warning: A recursive loop has been encountered while analyzing 'PERFORM pararec4', recursive instruction is ' perform pararec3 test after varying n from 1 by 1 until n'.
2 changes: 0 additions & 2 deletions TypeCobol.Analysis.Test/BasicCfgInstrs/PerformIdentity.diag

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions TypeCobol.Analysis.Test/BasicCfgInstrs/SG102A.diag
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ Line 242[13,46] <37, Warning, General> - Warning: "end-if" is missing
Line 250[12,37] <37, Warning, General> - Warning: "end-if" is missing
Line 266[12,43] <37, Warning, General> - Warning: "end-if" is missing
Line 267[12,42] <37, Warning, General> - Warning: "end-if" is missing
Line 269[41,66] <37, Warning, General> - Warning: A recursive loop has been encountered while analyzing 'PERFORM WRITE-LINE', recursive instruction is ' PERFORM WRT-LN'.
Line 269[41,66] <37, Warning, General> - Warning: A recursive loop has been encountered while analyzing 'PERFORM WRITE-LINE', recursive instruction is ' PERFORM WRT-LN 2 TIMES'.
Line 269[41,66] <37, Warning, General> - Warning: A recursive loop has been encountered while analyzing 'PERFORM WRITE-LINE', recursive instruction is ' PERFORM WRT-LN'.
Line 269[41,66] <37, Warning, General> - Warning: A recursive loop has been encountered while analyzing 'PERFORM WRITE-LINE', recursive instruction is ' PERFORM WRT-LN'.
Line 276[12,43] <37, Warning, General> - Warning: "end-if" is missing
Line 277[12,38] <37, Warning, General> - Warning: "end-if" is missing
Line 293[12,16] <37, Warning, General> - Warning: ALTER should not be used
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,8 @@ public partial class ControlFlowGraphBuilder<D>
/// <summary>
/// BasicBlock which instruction are Nodes.
/// </summary>
/// <typeparam name="D"></typeparam>
public class BasicBlockForNode : BasicBlock<Node, D>
{
/// <summary>
/// Any tag associated to this Node.
/// </summary>
public object Tag
{
get;
set;
}

/// <summary>
/// Set whether full instruction must be generated are not.
/// If not only the instruction name will be generated.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,6 @@ internal bool IsAfterIterativeGroup
set;
}

/// <summary>
/// To detect recursivity on PERFORM Procedure calls.
/// This is a bit array of GroupIndex encountered during the workflow
/// call of other PERFORM.
/// </summary>
internal BitArray RecursivityGroupSet
{
get;
set;
}

/// <summary>
/// Constructor.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System.Collections.Generic;
using TypeCobol.Analysis.Graph;
using TypeCobol.Compiler.Nodes;

namespace TypeCobol.Analysis.Cfg
{
Expand All @@ -17,7 +19,7 @@ private class DeclarativesContext
/// <summary>
/// All sections inside this Declaratives.
/// </summary>
private LinkedList<Section> _sections;
private LinkedList<ControlFlowGraph<Node, D>.Section> _sections;

/// <summary>
/// The related CFG builder
Expand All @@ -30,7 +32,7 @@ private class DeclarativesContext
/// <param name="currentProgramCfgBuilder">The related CFG Builder</param>
internal DeclarativesContext(ControlFlowGraphBuilder<D> currentProgramCfgBuilder)
{
_sections = new LinkedList<Section>();
_sections = new LinkedList<ControlFlowGraph<Node, D>.Section>();
_builder = currentProgramCfgBuilder;
}

Expand All @@ -43,7 +45,7 @@ internal void Start(BasicBlockForNode originBlock)
_originBlock = originBlock;
}

public void AddSection(Section section)
public void AddSection(ControlFlowGraph<Node, D>.Section section)
{
_sections.AddLast(section);
}
Expand Down
34 changes: 0 additions & 34 deletions TypeCobol.Analysis/Cfg/ControlFlowGraphBuilder.Procedure.cs

This file was deleted.

This file was deleted.

84 changes: 0 additions & 84 deletions TypeCobol.Analysis/Cfg/ControlFlowGraphBuilder.Section.cs

This file was deleted.

Loading