🔥🔥🔥 all cg tests working!!
This commit is contained in:
@ -3,11 +3,12 @@
|
|||||||
#include "std.alpha"
|
#include "std.alpha"
|
||||||
|
|
||||||
entry (arg) := {
|
entry (arg) := {
|
||||||
[Boolean:b; Boolean: c; Boolean: d]
|
[Boolean:b; Boolean: c; Boolean: d; integer: result]
|
||||||
|
|
||||||
z := true;
|
z := true;
|
||||||
d := false;
|
d := false;
|
||||||
d := c & d;
|
d := c & d;
|
||||||
|
|
||||||
|
result := printBoolean(d);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
@ -3,11 +3,12 @@
|
|||||||
#include "std.alpha"
|
#include "std.alpha"
|
||||||
|
|
||||||
entry (arg) := {
|
entry (arg) := {
|
||||||
[integer:x; integer:y]
|
[integer:x; integer:y; integer: result]
|
||||||
|
|
||||||
y := 1;
|
x := 24;
|
||||||
x := 3;
|
y := 3;
|
||||||
y := x / y;
|
y := x / y;
|
||||||
|
|
||||||
|
result := printInteger(y);
|
||||||
return y;
|
return y;
|
||||||
}
|
}
|
@ -3,11 +3,12 @@
|
|||||||
#include "std.alpha"
|
#include "std.alpha"
|
||||||
|
|
||||||
entry (arg) := {
|
entry (arg) := {
|
||||||
[Boolean: b; integer: x; integer: y]
|
[Boolean: b; integer: x; integer: y; integer: result]
|
||||||
|
|
||||||
x := 1;
|
x := 1;
|
||||||
y := 2;
|
y := 2;
|
||||||
b := x = y;
|
b := x = y;
|
||||||
|
|
||||||
|
result := printBoolean(b);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
@ -3,11 +3,12 @@
|
|||||||
#include "std.alpha"
|
#include "std.alpha"
|
||||||
|
|
||||||
entry (arg) := {
|
entry (arg) := {
|
||||||
[Boolean: b; integer: x; integer: y]
|
[Boolean: b; integer: x; integer: y; integer: result]
|
||||||
|
|
||||||
x := 1;
|
x := 1;
|
||||||
y := 2;
|
y := 2;
|
||||||
b := x < y;
|
b := x < y;
|
||||||
|
|
||||||
|
result := printBoolean(b);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -3,11 +3,12 @@
|
|||||||
#include "std.alpha"
|
#include "std.alpha"
|
||||||
|
|
||||||
entry (arg) := {
|
entry (arg) := {
|
||||||
[integer:x; integer:y]
|
[integer:x; integer:y; integer: result]
|
||||||
|
|
||||||
y := 1;
|
x := 4;
|
||||||
x := 3;
|
y := 20;
|
||||||
y := x % y;
|
y := y % x;
|
||||||
|
|
||||||
|
result := printInteger(y);
|
||||||
return y;
|
return y;
|
||||||
}
|
}
|
@ -3,11 +3,12 @@
|
|||||||
#include "std.alpha"
|
#include "std.alpha"
|
||||||
|
|
||||||
entry (arg) := {
|
entry (arg) := {
|
||||||
[integer:x; integer:y]
|
[integer:x; integer:y; integer: result]
|
||||||
|
|
||||||
y := 1;
|
|
||||||
x := 3;
|
x := 3;
|
||||||
y := x * x;
|
y := 20;
|
||||||
|
y := x * y;
|
||||||
|
|
||||||
|
result := printInteger(y);
|
||||||
return y;
|
return y;
|
||||||
}
|
}
|
@ -3,10 +3,11 @@
|
|||||||
#include "std.alpha"
|
#include "std.alpha"
|
||||||
|
|
||||||
entry (arg) := {
|
entry (arg) := {
|
||||||
[integer:x; integer:y]
|
[integer:x; integer:y; integer: result]
|
||||||
|
|
||||||
x := 3;
|
x := 3;
|
||||||
y := -x;
|
y := -x;
|
||||||
|
|
||||||
|
result := printInteger(y);
|
||||||
return y;
|
return y;
|
||||||
}
|
}
|
@ -3,10 +3,11 @@
|
|||||||
#include "std.alpha"
|
#include "std.alpha"
|
||||||
|
|
||||||
entry (arg) := {
|
entry (arg) := {
|
||||||
[Boolean: c; Boolean: d]
|
[Boolean: c; Boolean: d; integer: result]
|
||||||
|
|
||||||
c := true;
|
c := true;
|
||||||
d := !c;
|
d := !c;
|
||||||
|
|
||||||
|
result := printBoolean(d);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
@ -3,11 +3,12 @@
|
|||||||
#include "std.alpha"
|
#include "std.alpha"
|
||||||
|
|
||||||
entry (arg) := {
|
entry (arg) := {
|
||||||
[Boolean:b; Boolean: c; Boolean: d]
|
[Boolean:b; Boolean: c; Boolean: d; integer: result]
|
||||||
|
|
||||||
c := true;
|
c := true;
|
||||||
d := false;
|
d := false;
|
||||||
d := c | d;
|
d := c | d;
|
||||||
return 1;
|
|
||||||
|
|
||||||
|
result := printBoolean(d);
|
||||||
|
return 1;
|
||||||
}
|
}
|
@ -3,11 +3,12 @@
|
|||||||
#include "std.alpha"
|
#include "std.alpha"
|
||||||
|
|
||||||
entry (arg) := {
|
entry (arg) := {
|
||||||
[integer:x; integer:y]
|
[integer:x; integer:y; integer: result]
|
||||||
|
|
||||||
y := 1;
|
y := 1;
|
||||||
x := 3;
|
x := 3;
|
||||||
y := x - y;
|
y := x - y;
|
||||||
|
|
||||||
|
result := printInteger(y);
|
||||||
return y;
|
return y;
|
||||||
}
|
}
|
Reference in New Issue
Block a user