Verifying Parallel Low-Level Programs for Multi-core Processor
- Author
- ZhuYunMin
- Advisor
- ZhangSuQin
- School
- Tsinghua University
- Major
- Computer Science and Technology
- Classification
- TP332.3 Controller,the console
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 134
- Citations
- 0
Abstract
As the multi-core processor is widely used and advanced high-trusted software is required, the verification of parallel programs for multi-core processor becomes more and more important. This paper presents a proof framework about the verification of parallel programs, including the definition of our abstract machine, the formal specification for object code, logic inference rules and the proof of soundness theory. Finally, we provide some extension methods based on our framework.We directly certify the code at an assembly-level in order to disregard the verification of compilers. The classic spin lock technology is introduced to implement the mutually exclusive access to shared memory. Our proof framework supports Hoare-logic style reasoning. In addition, we use high-order logic to describe both operational semantics and safety policy. Programmers can verify the partial correctness of multi-core parallel programs in our framework.The main contributions of this thesis include:1. A proof framework about the verification of parallel programs for multi-core processor is proposed. It would enrich the application format and content of Proof-Carrying Code (PCC). Also, it would give a new thought for the verification of multi-core programs.2. This framework is sound. We have finished the proof of soundness theorem with proof assistant Coq. So, a program certified using our system is free of unchecked runtime errors.3. We have analyzed and provided some effective methods on how to extend MCAP framework in following three aspects: real-assmbly-level verification, modular verification with function call/return, and the improvement of the presentation ability of program specification.
Table of contents
Abstract 3-4
ABSTRACT 4-8
Chapter 1 Introduction 8-12
1.1 Brief Background 8-9 < br /> 1.2 Objective and content 9-10
1.3 paper structure 10-12
Chapter 2 authentication compiler 12-24
2.1 trusted computing base (TCB) 12-13
2.2 specification language skills 13
2.3 with proof code (PCC) 13-15 <br / > 2.4 with a proven code base (FPCC) 15
2.5 authentication assembly programming (CAP) 15-20
2.5.1 Hoare logic 15-16 < br /> 2.5.2 CAP validation framework structure 16-19
2.5.3 basic block units authentication 19-20
2.6 Related projects 20-23
2.6.1 Touchstone compiler project 20-21
2.6.2 TAL project 21-22
2.6.3 Singularity project 22
2.6.4 CCm project 22-23
2.7 Summary 23-24
Chapter 3 MCAP validation framework outlined 24-34
3.1 MCAP verification process and advantages 24-26
3.1.1 validation Process 24-25
3.1.2 framework advantages 25-26
3.2 MCAP framework 26-28
3.3 MCAP framework for the description and proof tool Coq 28-33
3.3.1 Curry-Howard isomorphism 28
3.3.2 programming language GALLINA 28-29
3.3.3 command Language Vernacular 29-30
3.3.4 interactive theorem proving 30-33
3.4 Summary 33-34
Chapter 4 MCAP validation framework to achieve 34-59
4.1 MCAP abstract machine design 34-42
4.1.1 abstract Machine design Overview 34-37
4.1.1.1 dual-core processor 34
4.1.1.2 kernel synchronization 34 -35
4.1.1.3 spinlock 35
4.1.1.4 deadlock 35-36
4.1.1.5 memory is divided 36-37 < br /> 4.1.2 the formal definition of the abstract machine 37-40
4.1.2.1 MCAP abstract machine syntax 37-38
4.1.2.2 MCAP abstract machine operational semantics 38-40
4.1.3 Coq abstract machine description 40-42
4.2 memory transfer ownership 42-43
4.3 procedure Specification 43-44
4.4 inference rule 44-49
4.4.1 inference Rules level 44-45
4.4.2 specific definition of inference rules 45-49
4.4.3 inference Rules Coq description 49
4.5 soundness theorem and proof 49-54
4.5.1 reliability Theorem 49-50
4.5.2 lemma forward and prove 50-51
4.5.3 retention lemma and prove 51-54 <br / > 4.5.4 reliability theorem 54
4.6 object code verification example 54-58
4.7 Chapter Summary 58-59
first Chapter 5 MCAP framework extension 59-66
5.1 real assembly code level verification 59-61
5.1.1 spinlock primitives represent actual compilation 59-60
5.1.2 MCAP inference rules applicable 60-61
5.2 functions modular authentication 61-63
5.2.1 MIPS function call instances 61
5.2.2 call and return instructions inference rules construct 61-63
5.3 Assume-Guarantee technology introduction 63-65
5.4 Summary 65-66
Chapter 6 Summary and Outlook 66-68
6.1 work Summary 66-67
6.2 Prospects 67-68
References 68-71
Thanks 71-72
resume, papers published during the study period and research 72
Related dissertations
- Design and Implementation of Vectorized FFTs on the YHFT-Matrix
- Research of STM Conflict Management Based on Signature
- The Research and Realization of the High-Speed Signaling Data Collection System Based on Netio Technology of Multi-Core Processor
- Research and Realization of Network Management System Based on the CN56xx Series Network Processor
- Design and Implementation of Traffic Control Gateway Based on Cavium Multi-Core Processing Platform
- Parallel Simulation of Large Scale Computer Systems
- Software Design of Video Surveillance Server Based on Tilera Multi-Core Processor
- Collision Culling with Massive Bodies on Multi-core Processor
- Study on Search Results Clustering Algorithm Based on Multi-Core Technology
- Design and Implementation of Dispatching Module Based on Multi-core Processor Platform
- An Integration of Several Data Flow Analysis Techniques for Program Verification
- Certifying Assembly Programs Using a Control-flow-explicit Language
- Research on Stream Programming Framework and Language for Multi-core Processor Base on X10
- Research and Design of Multi-core Processor System Based on FPGA
- Research of Multi-core Processor Scheduling Algorithm Based on Task Clustering and Duplication
- The Research of Linux2.6System Multicore Scheduling Based on the EDF
- The Research of Energy-Aware Scheduling Algorithm for Multi-core processor
- Multi core processor and inter core communication module design research
- Research on Key Techniques of Task Scheduling Based on Multi-core Distributed Environment
- Software Design of JPEG XR Image Encoder Based on Tilera Multi-core Processor