-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
executable file
·55 lines (44 loc) · 1.62 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using Mono.Cecil;
using QuickGraph;
namespace Escan.Engine
{
class Program
{
static void Main(string[] args)
{
List<string> aClassNames = new List<string>();
aClassNames.Add("Test2");
Engine analizador = new Engine(aClassNames, "Test2.dll");
aClassNames.Clear();
//analizador.busca_sources();
/*
foreach (Input inp in analizador.Inputs)
{
Console.WriteLine(inp.tree.EdgeCount + " edges - " + inp.tree.VertexCount + " vertex ");
foreach (Input inpu in inp.tree.Vertices)
{
//Console.WriteLine(inpu.method.Name + " - " + inpu.sClassName);
foreach (MarkedEdge<Input, int> e in inp.tree.OutEdges(inpu))
{
//Console.WriteLine(e.Source.inst.Operand.ToString() + "->" + e.Target.inst.Operand.ToString());
}
}
}
foreach (Input inp in analizador.Inputs)
{
}
*/
foreach (Warning myWarn in analizador.Warnings)
{
Console.WriteLine("<<<<" + myWarn.wInp.Instr.Operand.ToString());
Console.WriteLine("\t>>>>" + myWarn.wOut.Instr.Operand.ToString());
}
Console.WriteLine(analizador.Warnings.Count);
Console.Read();
}
}
}