dc.contributor.advisor | Raghavan, K V | |
dc.contributor.author | Arora, Himanshu | |
dc.date.accessioned | 2021-09-16T06:51:55Z | |
dc.date.available | 2021-09-16T06:51:55Z | |
dc.date.submitted | 2018 | |
dc.identifier.uri | https://etd.iisc.ac.in/handle/2005/5298 | |
dc.description.abstract | We provide two static analysis approaches(using theorem proving) that check if a given (recursive)
procedure behaves as if it were stateless, even when it maintains state in global variables.
In other words, we check if the given procedure behaves like a mathematical function. In order
to eliminate the need for manual annotations, we make use of an invariant that makes use of
uninterpreted function symbols. This invariant captures the set of reachable global states in all
runs of the procedure, if the procedure is observationally pure. If the procedure is not observationally
pure, this invariant has no semantics. Allowing function symbols makes it easier to
generate the invariant automatically. The two static analysis are an existential checker and an
impurity witness checker. The impurity witness checker outputs a formula whose unsatis fiability
implies that the procedure is observationally pure. Whereas, the existential checker outputs
a formula that constrains the de finition of the function that the given procedure may implement.
Satisfi ability of the formula generated by the existential checker implies that the given
procedure is observationally pure. The impurity witness approach works better (empirically)
with SMT solvers, whereas the existential approach is more precise on paper. We illustrate
our work on examples such as matrix chain multiplication. Examples such as these are not
addressable by related techniques in the literature. The closest work to our is by Barnett et
al.; this work cannot handle procedures with self recursion. We prove both our approaches to
be sound. We have implemented the two static analyses using the Boogie framework and the
Z3 SMT solver, and have evaluated our implementation on a number of examples | en_US |
dc.language.iso | en_US | en_US |
dc.relation.ispartofseries | ;G29303 | |
dc.rights | I grant Indian Institute of Science the right to archive and to make available my thesis or dissertation in whole or in part in all forms of media, now hereafter known. I retain all proprietary rights, such as patent rights. I also retain the right to use in future works (such as articles or books) all or part
of this thesis or dissertation | en_US |
dc.subject | Program veri fication applications | en_US |
dc.subject | Boogie framework | en_US |
dc.subject | SMT solvers | en_US |
dc.subject.classification | Research Subject Categories::TECHNOLOGY::Information technology::Computer science | en_US |
dc.title | Checking Observational Purity of Procedures | en_US |
dc.type | Thesis | en_US |
dc.degree.name | MS | en_US |
dc.degree.level | Masters | en_US |
dc.degree.grantor | Indian Institute of Science | en_US |
dc.degree.discipline | Engineering | en_US |