当前位置: 首页 > news >正文

做网站公司汉狮团队数字营销网站

做网站公司汉狮团队,数字营销网站,中兴的网站谁做的,金华高端网站设计参考:南京大学《软件分析》课程2 1、控制流分析 控制流分析实际上指的是构建控制流图(Control Flow Graph,CFG)CFG是静态分析的基础数据结构CFG的节点可以是单个指令、基本块(Basic Block,BB)…

参考:南京大学《软件分析》课程2

1、控制流分析

  • 控制流分析实际上指的是构建控制流图(Control Flow Graph,CFG)
  • CFG是静态分析的基础数据结构
  • CFG的节点可以是单个指令、基本块(Basic Block,BB)

2、构建基本块(Basic Block,BB)

(1)基本块的概念

Basic blocks (BB) are maximal sequences of consecutive three-address instructions with the properties that

  • It can be entered only at the beginning, i.e., the first instruction in the block
  • It can be exited only at the end, i.e., the last instruction in the block

解释:

基本块是具有以下属性的连续3AC指令的最大序列:

  • 只有一个入口,仅在开头进入,即块的第一条指令。
  • 只有一个出口,仅在结尾退出,即块的最后一条指令。
(2)构建基本块

INPUT: A sequence of three-address instructions of P
OUTPUT: A list of basic blocks of P
METHOD:
(1) Determine the leaders in P
• The first instruction in P is a leader
• Any target instruction of a conditional or
unconditional jump is a leader
• Any instruction that immediately follows a
conditional or unconditional jump is a leader
(2) Build BBs for P
• A BB consists of a leader and all its subsequent
instructions until the next leader

解释:

输入:程序的3AC指令序列
输出:程序的基本块序列
方法:
(1)确定每个基本块的第一条指令leader
• 程序的第一条指令作为leader;
• 有条件或无条件跳转的目标指令作为leader;
• 紧接着有条件或无条件跳转指令的下一条指令作为leader
(2)构建基本块
• BB由一个leader及其所有后续指令组成,直到下一个leader

例子:
在这里插入图片描述

3、构建控制流图(Control Flow Graph ,CFG)

• The nodes of CFG are basic blocks goto (i) Control Flow Graph (CFG)
• There is an edge from block A to block B if and only if

  • There is a conditional or unconditional jump from the end of A to the beginning of B
  • B immediately follows A in the original order of instructions and A does not end in an unconditional jump

• It is normal to replace the jumps to instruction labels by jumps to basic blocks
• Usually we add two nodes, Entry and Exit.

  • They do not correspond to executable IR
  • An edge from Entry to the BB containing the first instruction of IR
  • An edge to Exit from any BB containing an instruction that could be the last instruction of IR

解释:

• 控制流图的节点是基本块
• 基本块之间的边

  • 有条件或无条件跳转的基本块之间存在一条跳转边
  • 按照指令的原始顺序,基本块之间存在一条顺序边,但无条件跳转的基本块不存在顺序边

• 将跳转到指令替换成跳转到基本块
• 添加entry和exit

  • CFG和IR通常不对应
  • Entry到BB的边,包括IR的第一条指令
  • BB到Exit的边(可能是多条),包括IR的最后一条指令

在这里插入图片描述

http://www.tj-hxxt.cn/news/111438.html

相关文章:

  • 广东网页设计网站江苏网站推广
  • 大连做网站 选领超科技软件怎么推广
  • 小城市做网站东莞seo网络优化
  • 青岛网站设计网站长沙市云网站建设
  • 做一个网站需要多大的空间武汉seo排名
  • 山西省财政厅门户网站三基建设时事新闻
  • 零基础做地方门户网站省好多会员app
  • 浦口区网站建设售后保障珠海百度seo
  • 企业网站建设试题求职seo
  • 做网站属于无形资产还是费用注册网站需要多少钱?
  • 站长工具果冻传媒微信群推广网站
  • 江苏自助建站平台东莞全网营销推广
  • 建设银行普卡申请网站太原优化排名推广
  • 简述网站建设优劣的评价标准深圳网站制作公司
  • 做网站需要审核资质吗软件开发工程师
  • 资讯是做网站还是公众号深圳网络营销外包公司推荐
  • 哪里找免费网站高端网站定制公司
  • 河南高端网站疫情最新资讯
  • 常州全景网站制作汕头百度推广公司
  • 青海做网站直通车关键词优化口诀
  • ECSHOP网站开发中心web网址
  • 中企动力科技股份有限公司石家庄分公司武汉百度网站优化公司
  • 延平区城乡建设和旅游局网站做网销的一天都在干嘛
  • 邢台123网站优化网站排名方法教程
  • html5 手机网站模版谷歌paypal官网注册入口
  • 老师找学生做网站是什么心态提高网站流量的软文案例
  • 做php网站教程视频教程网站域名解析ip
  • 莆田制作网站企业百度竞价防软件点击软件
  • 河北通信网站建设怎么弄自己的网站
  • 美工设计网页培训太原seo网络优化招聘网