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 3000

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

ORGANIZATIONAL CULTURE AND ITS EFFECTS ON EMPLOYEE PERFORMANCE

EXCERPT FROM THE STUDY

People are constantly surrounded by culture (often invisible) that forms the background of their...

Read more
PRINT MEDIA AS ELECTIONEERING TOOL IN NIGERIA GOVERNORSHIP ELECTION

Background of the study

Unquestionably, media is a potent and swift mode of communication. It has a sig...

Read more
THE SOCIO-ECONOMIC IMPACT OF RURAL-URBAN MIGRATION ON THE RURAL AREAS

ABSTRACT

A lot has been said about the rising of rural urban migration in recent years. This phenomenon has attracted th...

Read more
EFFECTS OF STRATEGIC PLANNING ON THE PERFORMANCE OF SMES IN KARU LOCAL GOVERNMENT AREA OF NASARAWA STATE NIGERIA

ABSTRACT

Strategic management planning has been found to be necessary if organizations are to succeed and perform. This...

Read more
INFLUENCE OF SOCIAL MEDIA ON THE MORAL BEHAVIOUR OF TEENAGERS

Abstract

Social media is often seen as having either a positive or a negative effect to its users while this research dwells on the harmf...

Read more
EFFECTS OF TELEVISION ADVERTING IN CONSUMER BEHABIOUR

ABSTRACT

This research is on the relevance of packaging in the marketing of consumer goods in Nigeria. We try to find out the packaging s...

Read more
THE EXTENT TO WHICH TERTIARY EDUCATION ENHANCES SOCIOECONOMIC ADVANCEMENT OF YOUTHS. A STUDY OF UNDERGRADUATE IN AEFUNAI (ALEX EKWUEME FEDERAL UNIVERSITY NDUFU-ALIKE EBONYI STATE)

CHAPTER ONE

INTRODUCTION

1.1

INFLUENCE OF COUNSELLING ON THE ACADEMIC ACHIEVEMENT IN MATHS OF JUNIOR SECONDARY SCHOOL STUDENTS IN IBADAN SOUTH WEST LOCAL GOVERNMENT AREA, IBADAN, OYO STATE

Background of the Study

Academic performance of Nigerian junior secondary school students in mathematics has been a sour...

Read more
AN ASSESSMENT OF STAFF TRAINING AND DEVELOPMENT AND ITS IMPACT ON THE OPERATIONS OF NON GOVERNMENTAL ORGANIZATION

EXCERPT FROM THE STUDY

After an employee has been selected, placed and inducted he should also be trained. Training is t...

Read more
INDIGENOUS COMMUNICATION SYSTEMS AS DETERMINANTS OF CULTURAL RESURGENCE IN YORUBA SOCIETIES OF OYO AND OSUN STATES, NIGERIA

ABSTRACT

Indigenous Communication System (ICS) has been identified as an indispensable cultural tool for strengthening ties between elder...

Read more
Share this page with your friends




whatsapp