Skip to content

larstvei/GCL

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Inseguendo Fagiani Selvatici: Partial Order Reduction for Guarded Command Languages

This is a Maude implementation of concolic execution for a guarded commands language. To run the program, be sure to have Python 3 and the Maude system installed first.

Consider the program from Example 5 of the paper (Inseguendo Fagiani Selvatici: Partial Order Reduction for Guarded Command Languages):

{ epsilon
| ('x |-> 0, 'y |-> 0, 'flag |-> true)
| iota< 0, 0 >
(true |> spawn(('x =:= 0 or 'flag) |> 'x := 2 * 'x) ;
 true |> spawn(('x := 'x + 2 <| 'flag |> 'x := 'x + -1 ; true |> 'flag := (not 'flag) ;
               'x := 'x + 2 <| 'flag |> 'x := 'x + -1 ; true |> 'flag := (not 'flag) ;
               'x := 'x + 2 <| 'flag |> 'x := 'x + -1 ; true |> 'flag := (not 'flag) ;
               'x := 'x + 2 <| 'flag |> 'x := 'x + -1 ; true |> 'flag := (not 'flag) ;
               true |> 'y := 'y + 1))) }

Run the following to get all equivalent traces:

$ python3 algo.py

About

Inseguendo Fagiani Selvatici: Partial Order Reduction for Guarded Command Languages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages