-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
~Blocked on #453 This reverts commit c6edfad. This PR brings back the preserves-definiteness attribute addition. ~It sometimes causes rules with question mark variables to apply in Booster, which causes a failure in `pyk`. We cannot re-apply this change until we have a fix for `test-question-mark` variable integration test. We also need to change `test-existential`.~
- Loading branch information
Showing
6 changed files
with
188 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module COMPUTE-CEIL | ||
imports INT | ||
imports ID-SYNTAX | ||
|
||
syntax Foo ::= g ( Int ) | ||
|
||
rule g ( N:Int ) => N %Int 5 | ||
|
||
endmodule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
echo "kompiling compute-ceil.k" | ||
kompile --backend haskell compute-ceil.k | ||
cp compute-ceil-kompiled/definition.kore compute-ceil.kore | ||
rm -r compute-ceil-kompiled | ||
kompile --llvm-kompile-type c -o compute-ceil-library compute-ceil.k | ||
cp compute-ceil-library/interpreter.* ./compute-ceil.dylib | ||
rm -r compute-ceil-library |
84 changes: 84 additions & 0 deletions
84
test/rpc-integration/test-compute-ceil/response-evaluate-g.booster-dev
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{ | ||
"jsonrpc": "2.0", | ||
"id": 1, | ||
"result": { | ||
"reason": "aborted", | ||
"depth": 1, | ||
"state": { | ||
"term": { | ||
"format": "KORE", | ||
"version": 1, | ||
"term": { | ||
"tag": "App", | ||
"name": "Lbl'-LT-'generatedTop'-GT-'", | ||
"sorts": [], | ||
"args": [ | ||
{ | ||
"tag": "App", | ||
"name": "Lbl'-LT-'k'-GT-'", | ||
"sorts": [], | ||
"args": [ | ||
{ | ||
"tag": "App", | ||
"name": "kseq", | ||
"sorts": [], | ||
"args": [ | ||
{ | ||
"tag": "App", | ||
"name": "inj", | ||
"sorts": [ | ||
{ | ||
"tag": "SortApp", | ||
"name": "SortInt", | ||
"args": [] | ||
}, | ||
{ | ||
"tag": "SortApp", | ||
"name": "SortKItem", | ||
"args": [] | ||
} | ||
], | ||
"args": [ | ||
{ | ||
"tag": "DV", | ||
"sort": { | ||
"tag": "SortApp", | ||
"name": "SortInt", | ||
"args": [] | ||
}, | ||
"value": "2" | ||
} | ||
] | ||
}, | ||
{ | ||
"tag": "App", | ||
"name": "dotk", | ||
"sorts": [], | ||
"args": [] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"tag": "App", | ||
"name": "Lbl'-LT-'generatedCounter'-GT-'", | ||
"sorts": [], | ||
"args": [ | ||
{ | ||
"tag": "DV", | ||
"sort": { | ||
"tag": "SortApp", | ||
"name": "SortInt", | ||
"args": [] | ||
}, | ||
"value": "0" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
81 changes: 81 additions & 0 deletions
81
test/rpc-integration/test-compute-ceil/state-evaluate-g.execute
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
{ | ||
"format": "KORE", | ||
"version": 1, | ||
"term": { | ||
"tag": "App", | ||
"name": "Lbl'-LT-'generatedTop'-GT-'", | ||
"sorts": [], | ||
"args": [ | ||
{ | ||
"tag": "App", | ||
"name": "Lbl'-LT-'k'-GT-'", | ||
"sorts": [], | ||
"args": [ | ||
{ | ||
"tag": "App", | ||
"name": "kseq", | ||
"sorts": [], | ||
"args": [ | ||
{ | ||
"tag": "App", | ||
"name": "inj", | ||
"sorts": [ | ||
{ | ||
"tag": "SortApp", | ||
"name": "SortFoo", | ||
"args": [] | ||
}, | ||
{ | ||
"tag": "SortApp", | ||
"name": "SortKItem", | ||
"args": [] | ||
} | ||
], | ||
"args": [ | ||
{ | ||
"tag": "App", | ||
"name": "Lblg'LParUndsRParUnds'COMPUTE-CEIL'Unds'Foo'Unds'Int", | ||
"sorts": [], | ||
"args": [ | ||
{ | ||
"tag": "DV", | ||
"sort": { | ||
"tag": "SortApp", | ||
"name": "SortInt", | ||
"args": [] | ||
}, | ||
"value": "12" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"tag": "App", | ||
"name": "dotk", | ||
"sorts": [], | ||
"args": [] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"tag": "App", | ||
"name": "Lbl'-LT-'generatedCounter'-GT-'", | ||
"sorts": [], | ||
"args": [ | ||
{ | ||
"tag": "DV", | ||
"sort": { | ||
"tag": "SortApp", | ||
"name": "SortInt", | ||
"args": [] | ||
}, | ||
"value": "0" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |