use input_file for each, as now inline input content is ignored

This commit is contained in:
gluax 2022-05-02 20:34:37 -07:00
parent a7c3696e90
commit 18bd03318f
337 changed files with 1463 additions and 1992 deletions

View File

@ -1,15 +1,7 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i128.in: |
[main]
a: i128 = 1;
b: i128 = 2;
c: i128 = 3;
[registers]
r0: bool = true;
input_file: inputs/add.in
*/
function main(a: i128, b: i128, c: i128) -> bool {

View File

@ -1,11 +1,7 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i128.in: |
[main]
a: i128 = 1;
b: i128 = 1;
input_file: inputs/eq.in
*/
function main(a: i128, b: i128) -> bool {

View File

@ -1,15 +1,7 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i128.in: |
[main]
a: i128 = 4;
b: i128 = 2;
c: i128 = 2;
[registers]
r0: bool = true;
input_file: inputs/div.in
*/
function main(a: i128, b: i128, c: i128) -> bool {

View File

@ -1,15 +1,7 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i128.in: |
[main]
a: i128 = 2;
b: i128 = 2;
c: bool = true;
[registers]
r0: bool = true;
input_file: inputs/eq.in
*/
function main(a: i128, b: i128, c: bool) -> bool {

View File

@ -1,23 +1,9 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i128_e.in: |
[main]
a: i128 = 4;
b: i128 = 4;
c: bool = true;
[registers]
r0: bool = true;
- i128_g.in: |
[main]
a: i128 = 5;
b: i128 = 4;
c: bool = true;
[registers]
r0: bool = true;
input_file:
- inputs/eq.in
- inputs/ge.in
*/
function main(a: i128, b: i128, c: bool) -> bool {

View File

@ -1,23 +1,9 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i128_g.in: |
[main]
a: i128 = 4;
b: i128 = 2;
c: bool = true;
[registers]
r0: bool = true;
- i128_e.in: |
[main]
a: i128 = 4;
b: i128 = 4;
c: bool = false;
[registers]
r0: bool = false;
input_file:
- inputs/eq.in
- inputs/gt.in
*/
function main(a: i128, b: i128, c: bool) -> bool {

View File

@ -0,0 +1,7 @@
[main]
a: i128 = 1i128;
b: i128 = 2i128;
c: i128 = 3i128;
[registers]
r0: bool = true;

View File

@ -0,0 +1,7 @@
[main]
a: i128 = 4i128;
b: i128 = 2i128;
c: i128 = 2i128;
[registers]
r0: bool = true;

View File

@ -0,0 +1,7 @@
[main]
a: i128 = 2i128;
b: i128 = 2i128;
c: bool = true;
[registers]
r0: bool = true;

View File

@ -0,0 +1,7 @@
[main]
a: i128 = 5i128;
b: i128 = 4i128;
c: bool = true;
[registers]
r0: bool = true;

View File

@ -0,0 +1,7 @@
[main]
a: i128 = 4i128;
b: i128 = 2i128;
c: bool = true;
[registers]
r0: bool = true;

View File

@ -0,0 +1,7 @@
[main]
a: i128 = 1i128;
b: i128 = 100i128;
c: bool = true;
[registers]
r0: bool = true;

View File

@ -0,0 +1,7 @@
[main]
a: i128 = 2i128;
b: i128 = 4i128;
c: bool = true;
[registers]
r0: bool = false;

View File

@ -0,0 +1,7 @@
[main]
a: i128 = 2i128;
b: i128 = 5i128;
c: i128 = 10i128;
[registers]
r0: bool = false;

View File

@ -0,0 +1,7 @@
[main]
a: i128 = 2i128;
b: i128 = 5i128;
c: bool = true;
[registers]
r0: bool = false;

View File

@ -0,0 +1,6 @@
[main]
a: i128 = 5i128;
b: i128 = -5i128;
[registers]
r0: bool = false;

View File

@ -0,0 +1,6 @@
[main]
a: i128 = -5i128;
b: i128 = 5i128;
[registers]
r0: bool = false;

View File

@ -0,0 +1,7 @@
[main]
a: i128 = 100i128;
b: i128 = 50i128;
c: i128 = 50i128;
[registers]
r0: bool = false;

View File

@ -0,0 +1,8 @@
[main]
s: bool = true;
a: i128 = 10i128;
b: i128 = 5i128;
c: i128 = 10i128;
[registers]
r0: bool = false;

View File

@ -0,0 +1,8 @@
[main]
s: bool = false;
a: i128 = 10i128;
b: i128 = 5i128;
c: i128 = 5i128;
[registers]
r0: bool = false;

View File

@ -1,23 +1,9 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i128_l.in: |
[main]
a: i128 = 1;
b: i128 = 100;
c: bool = true;
[registers]
r0: bool = true;
- i128_e.in: |
[main]
a: i128 = 2;
b: i128 = 2;
c: bool = true;
[registers]
r0: bool = true;
input_file:
- inputs/eq.in
- inputs/le.in
*/
function main(a: i128, b: i128, c: bool) -> bool {

View File

@ -1,23 +1,9 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i128_l.in: |
[main]
a: i128 = 2;
b: i128 = 4;
c: bool = true;
[registers]
r0: bool = false;
- i128_e.in: |
[main]
a: i128 = 2;
b: i128 = 2;
c: bool = false;
[registers]
r0: bool = false;
input_file:
- inputs/eq.in
- inputs/lt.in
*/
function main(a: i128, b: i128, c: bool) -> bool{

View File

@ -1,15 +1,9 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i128.in: |
[main]
a: i128 = 2;
b: i128 = 5;
c: i128 = 10;
input_file:
- inputs/mul.in
[registers]
r0: bool = false;
*/
function main(a: i128, b: i128, c: i128) -> bool {

View File

@ -1,23 +1,9 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i128_ne.in: |
[main]
a: i128 = 2;
b: i128 = 5;
c: bool = true;
[registers]
r0: bool = false;
- i128_e.in: |
[main]
a: i128 = 5;
b: i128 = 5;
c: bool = false;
[registers]
r0: bool = false;
input_file:
- inputs/eq.in
- inputs/ne.in
*/
function main(a: i128, b: i128, c: bool) -> bool{

View File

@ -1,21 +1,9 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i128.in: |
[main]
a: i128 = 5;
b: i128 = -5;
[registers]
r0: bool = false;
- i128.in: |
[main]
a: i128 = -5;
b: i128 = 5;
[registers]
r0: bool = false;
input_file:
- inputs/neg.in
- inputs/neg_rev.in
*/
function main(a: i128, b: i128) -> bool {

View File

@ -1,13 +1,8 @@
/*
namespace: Compile
expectation: Pass
inputs:
- dummy.in: |
[main]
y: bool = true;
[registers]
r0: bool = false;
input_file:
- ../input/dummy.in
*/
function main(y: bool) -> bool {

View File

@ -1,15 +1,8 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i128.in: |
[main]
a: i128 = 100;
b: i128 = 50;
c: i128 = 50;
[registers]
r0: bool = false;
input_file:
- inputs/sub.in
*/
function main(a: i128, b: i128, c: i128) -> bool {

View File

@ -1,25 +1,9 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i128.in: |
[main]
s: bool = true;
a: i128 = 10i128;
b: i128 = 5i128;
c: i128 = 10i128;
[registers]
r0: bool = false;
- i128_rev.in: |
[main]
s: bool = false;
a: i128 = 10i128;
b: i128 = 5i128;
c: i128 = 5i128;
[registers]
r0: bool = false;
input_file:
- inputs/tern.in
- inputs/tern_rev.in
*/
function main(s: bool, a: i128, b: i128, c: i128) -> bool {

View File

@ -1,15 +1,7 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i16.in: |
[main]
a: i16 = 1;
b: i16 = 2;
c: i16 = 3;
[registers]
r0: bool = true;
input_file: inputs/add.in
*/
function main(a: i16, b: i16, c: i16) -> bool {

View File

@ -1,11 +1,7 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i16.in: |
[main]
a: i16 = 1i16;
b: i16 = 1i16;
input_file: inputs/eq.in
*/
function main(a: i16, b: i16) -> bool {

View File

@ -1,15 +1,7 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i16.in: |
[main]
a: i16 = 4;
b: i16 = 2;
c: i16 = 2;
[registers]
r0: bool = true;
input_file: inputs/div.in
*/
function main(a: i16, b: i16, c: i16) -> bool {

View File

@ -1,15 +1,7 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i16.in: |
[main]
a: i16 = 2;
b: i16 = 2;
c: bool = true;
[registers]
r0: bool = true;
input_file: inputs/eq.in
*/
function main(a: i16, b: i16, c: bool) -> bool {

View File

@ -1,23 +1,9 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i16_e.in: |
[main]
a: i16 = 4;
b: i16 = 4;
c: bool = true;
[registers]
r0: bool = true;
- i16_g.in: |
[main]
a: i16 = 5;
b: i16 = 4;
c: bool = true;
[registers]
r0: bool = true;
input_file:
- inputs/eq.in
- inputs/ge.in
*/
function main(a: i16, b: i16, c: bool) -> bool {

View File

@ -1,23 +1,9 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i16_g.in: |
[main]
a: i16 = 4;
b: i16 = 2;
c: bool = true;
[registers]
r0: bool = true;
- i16_e.in: |
[main]
a: i16 = 4;
b: i16 = 4;
c: bool = false;
[registers]
r0: bool = false;
input_file:
- inputs/eq.in
- inputs/gt.in
*/
function main(a: i16, b: i16, c: bool) -> bool {

View File

@ -0,0 +1,7 @@
[main]
a: i16 = 1i16;
b: i16 = 2i16;
c: i16 = 3i16;
[registers]
r0: bool = true;

View File

@ -0,0 +1,7 @@
[main]
a: i16 = 4i16;
b: i16 = 2i16;
c: i16 = 2i16;
[registers]
r0: bool = true;

View File

@ -0,0 +1,7 @@
[main]
a: i16 = 2i16;
b: i16 = 2i16;
c: bool = true;
[registers]
r0: bool = true;

View File

@ -0,0 +1,7 @@
[main]
a: i16 = 5i16;
b: i16 = 4i16;
c: bool = true;
[registers]
r0: bool = true;

View File

@ -0,0 +1,7 @@
[main]
a: i16 = 4i16;
b: i16 = 2i16;
c: bool = true;
[registers]
r0: bool = true;

View File

@ -0,0 +1,7 @@
[main]
a: i16 = 1i16;
b: i16 = 100i16;
c: bool = true;
[registers]
r0: bool = true;

View File

@ -0,0 +1,7 @@
[main]
a: i16 = 2i16;
b: i16 = 4i16;
c: bool = true;
[registers]
r0: bool = false;

View File

@ -0,0 +1,7 @@
[main]
a: i16 = 2i16;
b: i16 = 5i16;
c: i16 = 10i16;
[registers]
r0: bool = false;

View File

@ -0,0 +1,7 @@
[main]
a: i16 = 2i16;
b: i16 = 5i16;
c: bool = true;
[registers]
r0: bool = false;

View File

@ -0,0 +1,6 @@
[main]
a: i16 = 5i16;
b: i16 = -5i16;
[registers]
r0: bool = false;

View File

@ -0,0 +1,6 @@
[main]
a: i16 = -5i16;
b: i16 = 5i16;
[registers]
r0: bool = false;

View File

@ -0,0 +1,7 @@
[main]
a: i16 = 2i16;
b: i16 = 2i16;
c: i16 = 4i16;
[registers]
r0: bool = true;

View File

@ -0,0 +1,7 @@
[main]
a: i16 = 100i16;
b: i16 = 50i16;
c: i16 = 50i16;
[registers]
r0: bool = false;

View File

@ -0,0 +1,8 @@
[main]
s: bool = true;
a: i16 = 10i16;
b: i16 = 5i16;
c: i16 = 10i16;
[registers]
r0: bool = false;

View File

@ -0,0 +1,8 @@
[main]
s: bool = false;
a: i16 = 10i16;
b: i16 = 5i16;
c: i16 = 5i16;
[registers]
r0: bool = false;

View File

@ -1,23 +1,9 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i16_l.in: |
[main]
a: i16 = 1;
b: i16 = 100;
c: bool = true;
[registers]
r0: bool = true;
- i16_e.in: |
[main]
a: i16 = 2;
b: i16 = 2;
c: bool = true;
[registers]
r0: bool = true;
input_file:
- inputs/eq.in
- inputs/le.in
*/
function main(a: i16, b: i16, c: bool) -> bool {

View File

@ -1,23 +1,9 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i16_l.in: |
[main]
a: i16 = 2;
b: i16 = 4;
c: bool = true;
[registers]
r0: bool = false;
- i16_e.in: |
[main]
a: i16 = 2;
b: i16 = 2;
c: bool = false;
[registers]
r0: bool = false;
input_file:
- inputs/eq.in
- inputs/lt.in
*/
function main(a: i16, b: i16, c: bool) -> bool{

View File

@ -1,15 +1,9 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i16.in: |
[main]
a: i16 = 2;
b: i16 = 5;
c: i16 = 10;
input_file:
- inputs/mul.in
[registers]
r0: bool = false;
*/
function main(a: i16, b: i16, c: i16) -> bool {

View File

@ -1,23 +1,9 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i16_ne.in: |
[main]
a: i16 = 2;
b: i16 = 5;
c: bool = true;
[registers]
r0: bool = false;
- i16_e.in: |
[main]
a: i16 = 5;
b: i16 = 5;
c: bool = false;
[registers]
r0: bool = false;
input_file:
- inputs/eq.in
- inputs/ne.in
*/
function main(a: i16, b: i16, c: bool) -> bool{

View File

@ -1,21 +1,9 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i16.in: |
[main]
a: i16 = 5;
b: i16 = -5;
[registers]
r0: bool = false;
- i16.in: |
[main]
a: i16 = -5;
b: i16 = 5;
[registers]
r0: bool = false;
input_file:
- inputs/neg.in
- inputs/neg_rev.in
*/
function main(a: i16, b: i16) -> bool {

View File

@ -1,13 +1,8 @@
/*
namespace: Compile
expectation: Pass
inputs:
- dummy.in: |
[main]
y: bool = true;
[registers]
r0: bool = false;
input_file:
- ../input/dummy.in
*/
function main(y: bool) -> bool {

View File

@ -1,14 +1,8 @@
// namespace: Compile
// expectation: Pass
// inputs:
// - i16.in: |
// [main]
// a: i16 = 2;
// b: i16 = 2;
// c: i16 = 4;
// [registers]
// r0: bool = true;
/*
namespace: Compile
expectation: Pass
input_file: inputs/pow.in
*/
function main(a: i16, b: i16, c: i16) -> bool {
return a ** b == c;

View File

@ -1,15 +1,8 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i16.in: |
[main]
a: i16 = 100;
b: i16 = 50;
c: i16 = 50;
[registers]
r0: bool = false;
input_file:
- inputs/sub.in
*/
function main(a: i16, b: i16, c: i16) -> bool {

View File

@ -1,25 +1,9 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i16.in: |
[main]
s: bool = true;
a: i16 = 10i16;
b: i16 = 5i16;
c: i16 = 10i16;
[registers]
r0: bool = false;
- i16_rev.in: |
[main]
s: bool = false;
a: i16 = 10i16;
b: i16 = 5i16;
c: i16 = 5i16;
[registers]
r0: bool = false;
input_file:
- inputs/tern.in
- inputs/tern_rev.in
*/
function main(s: bool, a: i16, b: i16, c: i16) -> bool {

View File

@ -1,15 +1,7 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i32.in: |
[main]
a: i32 = 1;
b: i32 = 2;
c: i32 = 3;
[registers]
r0: bool = true;
input_file: inputs/add.in
*/
function main(a: i32, b: i32, c: i32) -> bool {

View File

@ -1,14 +1,10 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i32.in: |
[main]
a: i32 = 1i32;
b: i32 = 1i32;
input_file: inputs/eq.in
*/
function main(a: i32, b: i32) -> i32 {
function main(a: i32, b: i32) -> bool {
let ret: bool = a == b;
console.assert(ret);
return ret;

View File

@ -1,15 +1,7 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i32.in: |
[main]
a: i32 = 4;
b: i32 = 2;
c: i32 = 2;
[registers]
r0: bool = true;
input_file: inputs/div.in
*/
function main(a: i32, b: i32, c: i32) -> bool {

View File

@ -1,15 +1,7 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i32.in: |
[main]
a: i32 = 2;
b: i32 = 2;
c: bool = true;
[registers]
r0: bool = true;
input_file: inputs/eq.in
*/
function main(a: i32, b: i32, c: bool) -> bool {

View File

@ -1,23 +1,9 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i32_e.in: |
[main]
a: i32 = 4;
b: i32 = 4;
c: bool = true;
[registers]
r0: bool = true;
- i32_g.in: |
[main]
a: i32 = 5;
b: i32 = 4;
c: bool = true;
[registers]
r0: bool = true;
input_file:
- inputs/eq.in
- inputs/ge.in
*/
function main(a: i32, b: i32, c: bool) -> bool {

View File

@ -1,23 +1,9 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i32_g.in: |
[main]
a: i32 = 4;
b: i32 = 2;
c: bool = true;
[registers]
r0: bool = true;
- i32_e.in: |
[main]
a: i32 = 4;
b: i32 = 4;
c: bool = false;
[registers]
r0: bool = false;
input_file:
- inputs/eq.in
- inputs/gt.in
*/
function main(a: i32, b: i32, c: bool) -> bool {

View File

@ -0,0 +1,7 @@
[main]
a: i32 = 1i32;
b: i32 = 2i32;
c: i32 = 3i32;
[registers]
r0: bool = true;

View File

@ -0,0 +1,7 @@
[main]
a: i32 = 4i32;
b: i32 = 2i32;
c: i32 = 2i32;
[registers]
r0: bool = true;

View File

@ -0,0 +1,7 @@
[main]
a: i32 = 2i32;
b: i32 = 2i32;
c: bool = true;
[registers]
r0: bool = true;

View File

@ -0,0 +1,7 @@
[main]
a: i32 = 5i32;
b: i32 = 4i32;
c: bool = true;
[registers]
r0: bool = true;

View File

@ -0,0 +1,7 @@
[main]
a: i32 = 4i32;
b: i32 = 2i32;
c: bool = true;
[registers]
r0: bool = true;

View File

@ -0,0 +1,7 @@
[main]
a: i32 = 1i32;
b: i32 = 100i32;
c: bool = true;
[registers]
r0: bool = true;

View File

@ -0,0 +1,7 @@
[main]
a: i32 = 2i32;
b: i32 = 4i32;
c: bool = true;
[registers]
r0: bool = false;

View File

@ -0,0 +1,7 @@
[main]
a: i32 = 2i32;
b: i32 = 5i32;
c: i32 = 10i32;
[registers]
r0: bool = false;

View File

@ -0,0 +1,7 @@
[main]
a: i32 = 2i32;
b: i32 = 5i32;
c: bool = true;
[registers]
r0: bool = false;

View File

@ -0,0 +1,6 @@
[main]
a: i32 = 5i32;
b: i32 = -5i32;
[registers]
r0: bool = false;

View File

@ -0,0 +1,6 @@
[main]
a: i32 = -5i32;
b: i32 = 5i32;
[registers]
r0: bool = false;

View File

@ -0,0 +1,7 @@
[main]
a: i32 = 100i32;
b: i32 = 50i32;
c: i32 = 50i32;
[registers]
r0: bool = false;

View File

@ -0,0 +1,8 @@
[main]
s: bool = true;
a: i32 = 10i32;
b: i32 = 5i32;
c: i32 = 10i32;
[registers]
r0: bool = false;

View File

@ -0,0 +1,8 @@
[main]
s: bool = false;
a: i32 = 10i32;
b: i32 = 5i32;
c: i32 = 5i32;
[registers]
r0: bool = false;

View File

@ -1,23 +1,9 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i32_l.in: |
[main]
a: i32 = 1;
b: i32 = 100;
c: bool = true;
[registers]
r0: bool = true;
- i32_e.in: |
[main]
a: i32 = 2;
b: i32 = 2;
c: bool = true;
[registers]
r0: bool = true;
input_file:
- inputs/eq.in
- inputs/le.in
*/
function main(a: i32, b: i32, c: bool) -> bool {

View File

@ -1,23 +1,9 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i32_l.in: |
[main]
a: i32 = 2;
b: i32 = 4;
c: bool = true;
[registers]
r0: bool = false;
- i32_e.in: |
[main]
a: i32 = 2;
b: i32 = 2;
c: bool = false;
[registers]
r0: bool = false;
input_file:
- inputs/eq.in
- inputs/lt.in
*/
function main(a: i32, b: i32, c: bool) -> bool{

View File

@ -1,15 +1,9 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i32.in: |
[main]
a: i32 = 2;
b: i32 = 5;
c: i32 = 10;
input_file:
- inputs/mul.in
[registers]
r0: bool = false;
*/
function main(a: i32, b: i32, c: i32) -> bool {

View File

@ -1,23 +1,9 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i32_ne.in: |
[main]
a: i32 = 2;
b: i32 = 5;
c: bool = true;
[registers]
r0: bool = false;
- i32_e.in: |
[main]
a: i32 = 5;
b: i32 = 5;
c: bool = false;
[registers]
r0: bool = false;
input_file:
- inputs/eq.in
- inputs/ne.in
*/
function main(a: i32, b: i32, c: bool) -> bool{

View File

@ -1,21 +1,9 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i32.in: |
[main]
a: i32 = 5;
b: i32 = -5;
[registers]
r0: bool = false;
- i32.in: |
[main]
a: i32 = -5;
b: i32 = 5;
[registers]
r0: bool = false;
input_file:
- inputs/neg.in
- inputs/neg_rev.in
*/
function main(a: i32, b: i32) -> bool {

View File

@ -1,13 +1,8 @@
/*
namespace: Compile
expectation: Pass
inputs:
- dummy.in: |
[main]
y: bool = true;
[registers]
r0: bool = false;
input_file:
- ../input/dummy.in
*/
function main(y: bool) -> bool {

View File

@ -1,15 +1,8 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i32.in: |
[main]
a: i32 = 100;
b: i32 = 50;
c: i32 = 50;
[registers]
r0: bool = false;
input_file:
- inputs/sub.in
*/
function main(a: i32, b: i32, c: i32) -> bool {

View File

@ -1,25 +1,9 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i32.in: |
[main]
s: bool = true;
a: i32 = 10i32;
b: i32 = 5i32;
c: i32 = 10i32;
[registers]
r0: bool = false;
- i32_rev.in: |
[main]
s: bool = false;
a: i32 = 10i32;
b: i32 = 5i32;
c: i32 = 5i32;
[registers]
r0: bool = false;
input_file:
- inputs/tern.in
- inputs/tern_rev.in
*/
function main(s: bool, a: i32, b: i32, c: i32) -> bool {

View File

@ -1,15 +1,7 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i64.in: |
[main]
a: i64 = 1;
b: i64 = 2;
c: i64 = 3;
[registers]
r0: bool = true;
input_file: inputs/add.in
*/
function main(a: i64, b: i64, c: i64) -> bool {

View File

@ -1,11 +1,7 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i64.in: |
[main]
a: i64 = 1i64;
b: i64 = 1i64;
input_file: inputs/eq.in
*/
function main(a: i64, b: i64) -> bool {

View File

@ -1,15 +1,7 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i64.in: |
[main]
a: i64 = 4;
b: i64 = 2;
c: i64 = 2;
[registers]
r0: bool = true;
input_file: inputs/div.in
*/
function main(a: i64, b: i64, c: i64) -> bool {

View File

@ -1,15 +1,7 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i64.in: |
[main]
a: i64 = 2;
b: i64 = 2;
c: bool = true;
[registers]
r0: bool = true;
input_file: inputs/eq.in
*/
function main(a: i64, b: i64, c: bool) -> bool {

View File

@ -1,23 +1,9 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i64_e.in: |
[main]
a: i64 = 4;
b: i64 = 4;
c: bool = true;
[registers]
r0: bool = true;
- i64_g.in: |
[main]
a: i64 = 5;
b: i64 = 4;
c: bool = true;
[registers]
r0: bool = true;
input_file:
- inputs/eq.in
- inputs/ge.in
*/
function main(a: i64, b: i64, c: bool) -> bool {

View File

@ -1,23 +1,9 @@
/*
namespace: Compile
expectation: Pass
inputs:
- i64_g.in: |
[main]
a: i64 = 4;
b: i64 = 2;
c: bool = true;
[registers]
r0: bool = true;
- i64_e.in: |
[main]
a: i64 = 4;
b: i64 = 4;
c: bool = false;
[registers]
r0: bool = false;
input_file:
- inputs/eq.in
- inputs/gt.in
*/
function main(a: i64, b: i64, c: bool) -> bool {

View File

@ -0,0 +1,7 @@
[main]
a: i64 = 1i64;
b: i64 = 2i64;
c: i64 = 3i64;
[registers]
r0: bool = true;

View File

@ -0,0 +1,7 @@
[main]
a: i64 = 4i64;
b: i64 = 2i64;
c: i64 = 2i64;
[registers]
r0: bool = true;

View File

@ -0,0 +1,7 @@
[main]
a: i64 = 2i64;
b: i64 = 2i64;
c: bool = true;
[registers]
r0: bool = true;

View File

@ -0,0 +1,7 @@
[main]
a: i64 = 5i64;
b: i64 = 4i64;
c: bool = true;
[registers]
r0: bool = true;

View File

@ -0,0 +1,7 @@
[main]
a: i64 = 4i64;
b: i64 = 2i64;
c: bool = true;
[registers]
r0: bool = true;

View File

@ -0,0 +1,7 @@
[main]
a: i64 = 1i64;
b: i64 = 100i64;
c: bool = true;
[registers]
r0: bool = true;

View File

@ -0,0 +1,7 @@
[main]
a: i64 = 2i64;
b: i64 = 4i64;
c: bool = true;
[registers]
r0: bool = false;

View File

@ -0,0 +1,7 @@
[main]
a: i64 = 2i64;
b: i64 = 5i64;
c: i64 = 10i64;
[registers]
r0: bool = false;

Some files were not shown because too many files have changed in this diff Show More