常见的编译分析有函数调用树

常见的编译分析有函数调用树(call tree),控制流程图(Control flow graph),以及在此基础上的变量定义使用。

定义链(define-use/use-define or u-d/d-u chain)

变量别名分析(alias analysis)

指针分析(pointer analysis)

数据依赖分析(data dependence analysis)

 1 package Com.Table;
 2 
 3 import java.util.Scanner;
 4 public class SevenTable {
 5     public static void main(String []args)
 6     {
 7         System.out.println("input vip number:");
 8         Scanner scanner = new Scanner(System.in);
 9         int VIPCard = scanner.nextInt();
10         int W = VIPCard / 10000;
11         int Q = (VIPCard / 1000) % 10;
12         int B = (VIPCard / 100) % 10;
13         int S = (VIPCard / 10) % 10;
14         int G = VIPCard % 10;
15  
16         System.out.println("vip number:" + VIPCard);
17         System.out.println(
18                   " w num:" + W
19                 + " q num:" + Q
20                 + " b num:" + B
21                 + " s num:" + S
22                 + " g num:" + G);
23         System.out.println("vip number" + VIPCard
24                 + "add vip number:"
25                 + (W + Q + B + S + G));
26     }
27 }
原文地址:https://www.cnblogs.com/borter/p/9383961.html