0704-883-0675     |      dataprojectng@gmail.com

Witnessing Control Flow Graph Optimizations

  • Project Research
  • 1-5 Chapters
  • Abstract : Available
  • Table of Content: Available
  • Reference Style: APA
  • Recommended for : Student Researchers
  • NGN 5000

ABSTRACT

Proving the correctness of a program transformation, and specifically, of a compiler optimization, is a long-standing research problem. Trusting the compiler requires to guarantee that the properties verified on the source program hold for the compiled target-code as well. Thus, the primary objective of formal correctness verification is to preserve the semantics of the source code, maintaining untouched its logical behavior. Traditional methods for formal correctness verification are not convenient to validate large and complex programs like compilers [1], and intensive testing, despite its proven efficacy, cannot guarantee the absence of bugs [2]. This thesis is part of a larger on-going research project aimed to demonstrate the feasibility to overcome the difficulties of traditional formal methods. K. Namjoshi and L. Zuck [3] propose a new methodology for creating an automated proof to guarantee the correctness of every execution of an optimization. A witness is a run-time generated relation between the source code and the target code, before and after the transformation. The relation is able to represent all the properties that must be valid throughout the optimization, offering a mathematical formula to prove, through a SMT-Solver (typically Microsoft Z3 ), if the invariants hold and the semantics is preserved. This work is a further step towards the implementation of a witnessing compiler [4]: the SimplifyCFG pass of the LLVM compiler framework is augmented with a witness generator procedure which constructs, run-time, the relations to prove the correctness of every single simplification in the control flow graph, performed by the compiler. We show that it is feasible to augment the SimplifyCFG pass with a witness generation procedure. We describe the structure of the code and the mathematical relations designed to demonstrate the correctness of a transformation on the Control Flow Graph. Benchmarks and tests will prove the correct behavior of our implementation and the effectiveness of the witnessing procedure. We provide details about the witnesses and the results of the benchmarks. First, the problem is described, together with the limitations of the traditional methods; then a solution is designed and explained. Details about the actual implementation for the SimplifyCFG code are provided in further sections




FIND OTHER RELATED TOPICS


Related Project Materials

An investigation of mobile wallet marketing on transaction frequency: A study of a fintech firm in Abuja, Nigeria.

Background of the study   
Mobile wallet marketing has become an essential component of fintech...

Read more
IMPACT OF BRANDING AND PACKAGING ON SALES TURNOVER OF NESTLE FOOD NIGERIA PLC

INTRODUCTION
One element that has undergone tremendous change in the past decade is branding and packaging...

Read more
An Investigation of IoT-Based Smart Cashless Payment Systems in University Canteens in Kano Municipal LGA, Kano State

Background of the study:
The shift towards cashless payment systems has revolutionized financial transactions across variou...

Read more
The Effect of Political Activism on Youth Mobilization: A Case Study of Sokoto South LGA, Sokoto State

Chapter One: Introduction

1.1 Background of the Study

Political activism, particularly among the youth, plays a critical role i...

Read more
An appraisal of nurses' knowledge and management of burns in pediatric patients at Jigawa State General Hospital

Background of the study

Burn injuries in pediatric patients represent a significant public health issue, accounting for...

Read more
An Examination of the Influence of Fuel Subsidy Removal on SME Profitability in Nigeria: A Case Study of SMEs in Abuja

Background of the Study

The removal of fuel subsidies in Nigeria has been a contentious economic reform aimed at address...

Read more
The Contribution of Campus Newspapers to Academic Success in Zaria Local Government, Kaduna State

Chapter One: Introduction

1.1 Background of the Study

Campus newspapers serve as vital platforms for information dissemination,...

Read more
An Appraisal of Code‑Mixing in Nigerian Social Media Language: A Case Study of Facebook Group Interactions

Background of the Study
In Nigerian digital communication, code‑mixing—alternating between languages within a single...

Read more
HEPATOPROTECTIVE AND WOUND HEALING PROPERTIES OF METHANOLIC STEM BARK EXTRACT OF FICUS PLATYPHYLLA Del. Holl (MORACEA)

ABSTRACT

Ficus platyphylla (Fp) is a medicinal plant that is widely used in Northern part of Nigeria for the management of skin problems...

Read more
Challenges of Newspaper Distribution in Rural Areas: A Case Study of Maiduguri Metropolitan Council, Borno State

Chapter One: Introduction

1.1 Background of the Study

Newspaper distribution is a critical component of the print media industr...

Read more
Share this page with your friends




whatsapp