diff --git a/k-distribution/tests/regression-new/json-input/json-in.k b/k-distribution/tests/regression-new/json-input/json-in.k index 5e64a2cc37a..d3fbd92cbc9 100644 --- a/k-distribution/tests/regression-new/json-input/json-in.k +++ b/k-distribution/tests/regression-new/json-input/json-in.k @@ -1,15 +1,15 @@ // Copyright (c) 2019 K Team. All Rights Reserved. module JSON-IN-SYNTAX - imports INT-SYNTAX + imports INT imports ML-SYNTAX syntax Pgm ::= init ( Int ) rule init(0) => { 3 #Equals 4 } [macro] rule init(1) => { 3 #Equals 3 } [macro] + configuration $PGM:Pgm endmodule module JSON-IN imports JSON-IN-SYNTAX - configuration $PGM:Pgm endmodule diff --git a/k-distribution/tests/regression-new/json-input/json-in3.json.kast b/k-distribution/tests/regression-new/json-input/json-in3.json.kast new file mode 100644 index 00000000000..dcf63193231 --- /dev/null +++ b/k-distribution/tests/regression-new/json-input/json-in3.json.kast @@ -0,0 +1,63 @@ +{ + "format": "KAST", + "version": 2, + "term": { + "node": "KApply", + "label": { + "node": "KLabel", + "name": "#And", + "params": [ + { + "node": "KSort", + "name": "K" + } + ] + }, + "variable": false, + "arity": 2, + "args": [ + { + "node": "KApply", + "label": { + "node": "KLabel", + "name": "", + "params": [] + }, + "variable": false, + "arity": 1, + "args": [ + { + "node": "KVariable", + "name": "N", + "originalName": "N" + } + ] + }, + { + "node": "KApply", + "label": { + "node": "KLabel", + "name": "_>=Int_", + "params": [] + }, + "variable": false, + "arity": 2, + "args": [ + { + "node": "KVariable", + "name": "N", + "originalName": "N" + }, + { + "node": "KToken", + "sort": { + "node": "KSort", + "name": "Int" + }, + "token": "0" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/k-distribution/tests/regression-new/json-input/json-in3.json.kast.out b/k-distribution/tests/regression-new/json-input/json-in3.json.kast.out new file mode 100644 index 00000000000..661adfab740 --- /dev/null +++ b/k-distribution/tests/regression-new/json-input/json-in3.json.kast.out @@ -0,0 +1,5 @@ + + N + +#And + N >=Int 0