k-user AT lists.cs.illinois.edu
Subject: K-user mailing list
List archive
- From: Charles Jacobsen <charlie.jacobsen AT utah.edu>
- To: "k-user AT cs.uiuc.edu" <k-user AT cs.uiuc.edu>
- Subject: [K-user] kompile goes into an infinite loop
- Date: Mon, 8 Jul 2013 16:28:23 +0000
- Accept-language: en-US
- List-archive: <http://lists.cs.uiuc.edu/pipermail/k-user/>
- List-id: <k-user.cs.uiuc.edu>
I set up "unit test" rules for a module. My test module looks like this, but with about 16 more complicated tests:
configuration <k>
test1 ~>
test2 ~>
test3
</k>
syntax K ::= "test1"
rule <k> test1 => . ... </k>
when foo(5) ==Int 10
syntax K ::= "test2"
rule <k> test2 => . ... </k>
when foo(-1) ==Int 0
syntax K ::= "test3"
rule <k> test3 => . ... </k>
when foo(0) ==Int 0
kompile runs out of memory with my module (not the one above), probably in an infinite loop? If I chain the tests like the following, it kompiles in about 20 - 30 seconds!
configuration <k> test1 </k>
syntax K ::= "test1"
rule <k> test1 => test2 </k>
when foo(5) ==Int 10
syntax K ::= "test2"
rule <k> test2 => test3 </k>
when foo(-1) ==Int 0
syntax K ::= "test3"
rule <k> test3 => . </k>
when foo(0) ==Int 0
I was considering pulling up the source code for kompile in eclipse and stepping through it, but I thought I would ask first for any pointers to setting up the development environment for k.
Thanks in advance guys.
configuration <k>
test1 ~>
test2 ~>
test3
</k>
syntax K ::= "test1"
rule <k> test1 => . ... </k>
when foo(5) ==Int 10
syntax K ::= "test2"
rule <k> test2 => . ... </k>
when foo(-1) ==Int 0
syntax K ::= "test3"
rule <k> test3 => . ... </k>
when foo(0) ==Int 0
kompile runs out of memory with my module (not the one above), probably in an infinite loop? If I chain the tests like the following, it kompiles in about 20 - 30 seconds!
configuration <k> test1 </k>
syntax K ::= "test1"
rule <k> test1 => test2 </k>
when foo(5) ==Int 10
syntax K ::= "test2"
rule <k> test2 => test3 </k>
when foo(-1) ==Int 0
syntax K ::= "test3"
rule <k> test3 => . </k>
when foo(0) ==Int 0
I was considering pulling up the source code for kompile in eclipse and stepping through it, but I thought I would ask first for any pointers to setting up the development environment for k.
Thanks in advance guys.
- [K-user] kompile goes into an infinite loop, Charles Jacobsen, 07/08/2013
- Re: [K-user] kompile goes into an infinite loop, Stefan Ciobaca, 07/08/2013
Archive powered by MHonArc 2.6.16.