On Transforming Functions Accessing Global Variables into Logically Constrained Term Rewriting Systems
In this paper, we show a new approach to transformations of an imperative program with function calls and global variables into a logically constrained term rewriting system. The resulting system represents transitions of the whole execution environment with a call stack. More precisely, we prepare...
Main Authors: | , |
---|---|
Format: | Article |
Language: | English |
Published: |
Open Publishing Association
2019-02-01
|
Series: | Electronic Proceedings in Theoretical Computer Science |
Online Access: | http://arxiv.org/pdf/1902.08421v1 |
id |
doaj-746e34db445245bc9b29c00918487896 |
---|---|
record_format |
Article |
spelling |
doaj-746e34db445245bc9b29c009184878962020-11-25T02:19:32ZengOpen Publishing AssociationElectronic Proceedings in Theoretical Computer Science2075-21802019-02-01289Proc. WPTE 2018345210.4204/EPTCS.289.3:4On Transforming Functions Accessing Global Variables into Logically Constrained Term Rewriting SystemsYoshiaki Kanazawa0Naoki Nishida1 Nagoya University Nagoya University In this paper, we show a new approach to transformations of an imperative program with function calls and global variables into a logically constrained term rewriting system. The resulting system represents transitions of the whole execution environment with a call stack. More precisely, we prepare a function symbol for the whole environment, which stores values for global variables and a call stack as its arguments. For a function call, we prepare rewrite rules to push the frame to the stack and to pop it after the execution. Any running frame is located at the top of the stack, and statements accessing global variables are represented by rewrite rules for the environment symbol. We show a precise transformation based on the approach and prove its correctness.http://arxiv.org/pdf/1902.08421v1 |
collection |
DOAJ |
language |
English |
format |
Article |
sources |
DOAJ |
author |
Yoshiaki Kanazawa Naoki Nishida |
spellingShingle |
Yoshiaki Kanazawa Naoki Nishida On Transforming Functions Accessing Global Variables into Logically Constrained Term Rewriting Systems Electronic Proceedings in Theoretical Computer Science |
author_facet |
Yoshiaki Kanazawa Naoki Nishida |
author_sort |
Yoshiaki Kanazawa |
title |
On Transforming Functions Accessing Global Variables into Logically Constrained Term Rewriting Systems |
title_short |
On Transforming Functions Accessing Global Variables into Logically Constrained Term Rewriting Systems |
title_full |
On Transforming Functions Accessing Global Variables into Logically Constrained Term Rewriting Systems |
title_fullStr |
On Transforming Functions Accessing Global Variables into Logically Constrained Term Rewriting Systems |
title_full_unstemmed |
On Transforming Functions Accessing Global Variables into Logically Constrained Term Rewriting Systems |
title_sort |
on transforming functions accessing global variables into logically constrained term rewriting systems |
publisher |
Open Publishing Association |
series |
Electronic Proceedings in Theoretical Computer Science |
issn |
2075-2180 |
publishDate |
2019-02-01 |
description |
In this paper, we show a new approach to transformations of an imperative program with function calls and global variables into a logically constrained term rewriting system. The resulting system represents transitions of the whole execution environment with a call stack. More precisely, we prepare a function symbol for the whole environment, which stores values for global variables and a call stack as its arguments. For a function call, we prepare rewrite rules to push the frame to the stack and to pop it after the execution. Any running frame is located at the top of the stack, and statements accessing global variables are represented by rewrite rules for the environment symbol. We show a precise transformation based on the approach and prove its correctness. |
url |
http://arxiv.org/pdf/1902.08421v1 |
work_keys_str_mv |
AT yoshiakikanazawa ontransformingfunctionsaccessingglobalvariablesintologicallyconstrainedtermrewritingsystems AT naokinishida ontransformingfunctionsaccessingglobalvariablesintologicallyconstrainedtermrewritingsystems |
_version_ |
1724876106100637696 |