Researches on Two Important Topics of Certifying Compiler

Author
FanDaWei
Advisor
ChenYiYun
School
University of Science and Technology of China
Major
Computer Software and Theory
Classification
TP314 Compiler,interpreter
Degree
Master's thesis
Year
2010
Downloads
42
Citations
0

Request the full text

Abstract

As software becomes a part of the infrastructure of production and living of human beings, software security is becoming more and more import. In the research field, program verification which is an import approach to achieve security, use logic rules to prove the program setifies its specification. Certifing compiler which is combined by a compiler and a certifier uses this approach. The pioneer project TouchStone[1] developed by Necula can translate the source program to the target assembly code annoted with type annotations. The verifier then verify the target code setifyies the speicifications which describe the type safty and memory safty, and then finnaly produces Prof-Carring Code(PCC).Some sorce level verifier such as Smallfoot [2] and Boogie[3],let the programmer to provide the specification to describe the expected properties of the program. The verifier then verifies the source program setifies the specification like a type cheker. However, these systems do not provide PCC.The certifying compiler we proposed let the user to provide the specification use separation logic to express more properties than type safty. The compier verifies program both in source level and target level. Verify in source level can report errors in time, while target level verification can produce PCC.A practical compiler often has many optimization passes to produce more efficient code. Code optimization which we believe is significant for certifying compiler to become practical is less concerned by the community. Code optimization is composed by many code transformation sequences. The original specification of the the code may not correctly or adequately describe the property of the optimized code. So the specification should be transformed along with the code during optimization.In this paper, we research two important topics of certifying compiler.1. Verification condition generation and reduction in soruce level language. We focus on the design of the assetion language and the reasoning rules to find the pointer of balance and to simplify the VCs generate by the VC generator.2. How code optimization affect the specification. We research how to transform specification to pass the constraint of it to the optimized code in a certifying compiler with multiple optimization passes.These two topics are both significant to certifying compiler. In this paper we propose sultions for both the problems. We have also implement prototype systems to valid our solutions. The contribution and innovation of this paper are list below.1. Design the assertion language of our certifying compiler and implement verification condition generator for the source level verification. We also develop a rewrite system to reduce the redundant of the generated verification condition.2. We propose a dataflow analysis based method to transform specifications to sustain the constraint of original specifications to the optimized code.We also develop a prototype compiler with many important optimizations to demonstrate the feasibility of our approach.The following of this paper are divied into several parts. In part one, we introduce the background of certifying compiler. We will introduce program certification, certifying compiler and source level verifier. In part two we will introduce the assertion language, the inference rules, the design and implementation of VCGen, we will also introduce rewriting system of VC reducer. Part four will introduce compiler optimization and specification transformation.

Table of contents

Abstract 4-6 ABSTRACT 6-8 directory 8-10 Chapter 1 Introduction 10-17 <br / > 1.1 program verification and hall logical 11-12 1.2 carry identification code and certifying compiler 12-13 1.3 source-level verification tools 13 - 14 1.4 the work presented in this paper 14-17 1.4.1 CComp 14-15 1.4.2 work and contribution of this paper 15 -17 Chapter 2 assertion language and verification condition generation 17-30 2.1 input source language 18-19 2.2 assertion language 19 - 22 2.2.1 assertion language definition 19-21 2.2.2 assertion language implementation 21-22 2.3 specification calculus 22 -27 2.3.1 calculus rules 23-24 2.3.2 application of rules 24-27 2.4 validation criteria builder to achieve 27-30 validation criteria in Chapter 3 simplification 30-35 3.1 rewriting Systems 30-32 3.2 system implementation 32-34 3.3 further simplification 34-35 Chapter 4 code optimization and standardization conversion 35-52 4.1 compiler optimization impact on assertions 35 -37 4.2 certifying compiler in code optimization 37-38 4.3 data stream optimization and assertions 38-40 4.3.1 basic data flow optimization behavior 38 4.3.2 optimization example 38-40 4.4 specification data stream optimization and conversion 40-44 4.4.1 basic methods 41 4.4.2 example 41-43 4.4.3 conversion process 43 4.4.4 methodological soundness 43 - 44 4.5 standardization Jane 44-45 4.6 prototype implementation 45-52 4.6.1 front-end and intermediate language implementation 45-49 < br /> 4.6.2 conversion optimization and assert the realization 49-51 4.6.3 experimental results 51-52 Chapter 5 summarizes related work and 52-54 References 54-56 papers published during the study for a degree 56-57 Thanks 57

Related dissertations

  1. An Integration of Several Data Flow Analysis Techniques for Program Verification
    XingYuChen ·Nanjing University ·2013 ·Master's thesis
  2. Certifying Compilation in an Infrastructure for Developing Trustable Software
    GeLin ·University of Science and Technology of China ·2007 ·Doctoral dissertation
  3. The Research of Partitioned Symbolic Execution Model and Its Environment Interaction Problem
  4. A Method to Generate Assertion and Proof about Assembly Language Certifying Compiler
  5. Proof Generation for Certifying Compiler
  6. Design and optimization of multi DSP image fusion
  7. Analysis of Hardware Fault Propagation in Programs and Research on Fault-tolerance Techniques
  8. Research on Some Related Problems about Model-based Diagnosis
    XuPeiZhi ·Jilin University ·2012 ·Master's thesis
  9. Research on Technologies of User Access Behavior Check Based on Web Data Stream Analysis
    WeiHao ·PLA Information Engineering University ·2013 ·Master's thesis
  10. Research on Detecting Buffer Overflow in Binary Code
    YuXu ·Nanjing University ·2012 ·Master's thesis
  11. The Research and Implementation of Path Sensitive Methods Summary in DTS
  12. Research on Data Type Reconstruction in Decompilation
    HeDong ·PLA Information Engineering University ·2012 ·Master's thesis
  13. Research on Software Debugging Techniques Based on the Combination of Machine Learning and Program Analysis
    ZhangCheng ·Shanghai Jiaotong University ·2013 ·Doctoral dissertation
  14. The Realization and Performance Analysis of LDPC-Coded Cooperation and Its Equivalent Point-to-Point Channel Model
  15. Research on Automatic Data and Computation Partition and Optimization in Parallelizing Compilation
    DongChunLi ·PLA Information Engineering University ·2007 ·Doctoral dissertation
  16. Research on Automatic Code Generation and Optimization in Parallelizing Compiler
    ZhangPing ·PLA Information Engineering University ·2006 ·Doctoral dissertation
  17. Exception Propagation Analysis and Its Applications
    JiangShuJuan ·Southeast University ·2006 ·Doctoral dissertation
  18. Research on Dependence Analysis and Software Testing
    ZuoLi ·Hunan University ·2006 ·Doctoral dissertation
  19. Secure Information Flow Based on Syntax Analysis
    YaoJianBo ·Guizhou University ·2006 ·Doctoral dissertation
  20. Design and Research on Retargetable C Compiler for Media Processors
    ZuoXiaoMing ·Zhejiang University ·2004 ·Doctoral dissertation