feat: port the client to MyGo native UI (0.3.0)

Switch from Asuka to MyGo, keeping the API client and the feature set:

- servers: saved servers, passwordless and password login, proxy,
  self-signed certificates, per-server device tokens (Keystore), connect
  form, instance list sheet with switch/disconnect
- sessions: virtualized list, search, new session, rename/archive/delete,
  running indicator, event stream keeps it live
- chat: pushed window with system back bar, streaming Markdown via
  ui/markdown, reasoning and tool rows with image previews, footer menu
  (read aloud via a Kotlin TTS plugin, copy, fork), user message menu
  (copy, revert, fork), context usage ring and detail sheet, attachments
  (photos/files via the document picker), permissions
- release builds allow plain http:// LAN servers (Go's net/http dials
  directly, no cleartext manifest needed)
- a local fork of MyGo (third_party/mygo) lowers the Android host's
  minSdk to 24 (Android 7.0); Go 1.27.4 via mise

Version 0.3.0.
This commit is contained in:
OpenChamber committed 2026-11-18 13:22:59 +08:00
1 parent 2fb4a8ea79
commit 6c0ee61750
2538 files changed
+675779 -4792

No files matched your search

@@ -0,0 +1,29 @@
uniform vec2 U0[4];
void F0(out vec2 l0[2]);
void F1(out vec2 l0[2]);
void F0(out vec2 l0[2]) {
vec2 l1[2];
l1[0] = vec2(0);
l1[1] = vec2(0);
l0[0] = l1[0];
l0[1] = l1[1];
return;
}
void F1(out vec2 l0[2]) {
vec2 l1[2];
l1[0] = vec2(0);
l1[1] = vec2(0);
vec2 l2[2];
l2[0] = vec2(0);
l2[1] = vec2(0);
(l1)[0] = vec2(1.0);
l2[0] = l1[0];
l2[1] = l1[1];
(l2)[1] = vec2(2.0);
l0[0] = l2[0];
l0[1] = l2[1];
return;
}
+14
View File
@@ -0,0 +1,14 @@
package main
var Array [4]vec2
func Foo() [2]vec2 {
var x [2]vec2
return x
}
func Bar() [2]vec2 {
x := [2]vec2{vec2(1)}
x[1] = vec2(2)
return x
}
@@ -0,0 +1,12 @@
void F0(bool front_facing, thread array<float2, 3>& l0);
void F0(bool front_facing, thread array<float2, 3>& l0) {
array<float2, 2> l1 = {};
array<float2, 3> l2 = {};
{
array<float2, 2> l2 = {};
l2 = l1;
}
l0 = l2;
return;
}
@@ -0,0 +1,22 @@
void F0(out vec2 l0[3]);
void F0(out vec2 l0[3]) {
vec2 l1[2];
l1[0] = vec2(0);
l1[1] = vec2(0);
vec2 l2[3];
l2[0] = vec2(0);
l2[1] = vec2(0);
l2[2] = vec2(0);
{
vec2 l2[2];
l2[0] = vec2(0);
l2[1] = vec2(0);
l2[0] = l1[0];
l2[1] = l1[1];
}
l0[0] = l2[0];
l0[1] = l2[1];
l0[2] = l2[2];
return;
}
+12
View File
@@ -0,0 +1,12 @@
package main
func Foo() [3]vec2 {
var a [2]vec2
{
var b [2]vec2
b = a
_ = b
}
var c [3]vec2
return c
}
@@ -0,0 +1,14 @@
void F0(void);
void F0(void) {
float l0[2];
l0[0] = float(0);
l0[1] = float(0);
float l1[2];
l1[0] = float(0);
l1[1] = float(0);
(l0)[0] = 1.0;
l1[0] = l0[0];
l1[1] = l0[1];
return;
}
+7
View File
@@ -0,0 +1,7 @@
package main
func Foo() {
a := [2]float{1}
_ = a
return
}
@@ -0,0 +1,8 @@
vec4 F0(in vec2 l0);
vec4 F0(in vec2 l0) {
float l1 = float(0);
l1 = 0.0;
l1 = (l1) + (1.0);
return vec4(l0, l1, l1);
}
+8
View File
@@ -0,0 +1,8 @@
package main
func Foo(foo vec2) vec4 {
var r1 float
r1 = 0.0
r1 += 1.0
return vec4(foo, r1, r1)
}
@@ -0,0 +1,19 @@
vec4 F0(in vec2 l0);
void F1(out float l0, out float l1);
vec4 F0(in vec2 l0) {
float l1 = float(0);
float l2 = float(0);
float l3 = float(0);
float l4 = float(0);
F1(l3, l4);
l1 = l3;
l2 = l4;
return vec4(l0, l1, l2);
}
void F1(out float l0, out float l1) {
l0 = 0.0;
l1 = 0.0;
return;
}
@@ -0,0 +1,11 @@
package main
func Foo(foo vec2) vec4 {
var r1, r2 float
r1, r2 = Bar()
return vec4(foo, r1, r2)
}
func Bar() (float, float) {
return 0, 0
}
@@ -0,0 +1,13 @@
vec2 F0(void);
vec2 F0(void) {
float l0 = float(0);
float l1 = float(0);
float l2 = float(0);
float l3 = float(0);
l1 = 1.0;
l3 = 2.0;
l0 = l1;
l2 = l3;
return vec2(l0, l2);
}
@@ -0,0 +1,6 @@
package main
func Foo() vec2 {
r1, r2 := 1.0, 2.0
return vec2(r1, r2)
}
@@ -0,0 +1,9 @@
bool F0(bool front_facing, float l0, float l1);
bool F0(bool front_facing, float l0, float l1) {
float l2 = float(0);
float l3 = float(0);
l2 = atan((l1) / (l0));
l3 = atan2(l1, l0);
return (l2) == (l3);
}
@@ -0,0 +1,9 @@
bool F0(in float l0, in float l1);
bool F0(in float l0, in float l1) {
float l2 = float(0);
float l3 = float(0);
l2 = atan((l1) / (l0));
l3 = atan(l1, l0);
return (l2) == (l3);
}
+7
View File
@@ -0,0 +1,7 @@
package main
func Foo(x, y float) bool {
a := atan(y / x)
b := atan2(y, x)
return a == b
}
@@ -0,0 +1,26 @@
void F0(out int l0, out int l1);
void F1(void);
void F0(out int l0, out int l1) {
l0 = 1;
l1 = 1;
return;
}
void F1(void) {
int l0 = 0;
int l1 = 0;
int l2 = 0;
int l3 = 0;
int l4 = 0;
int l5 = 0;
int l6 = 0;
int l7 = 0;
int l8 = 0;
int l9 = 0;
F0(l0, l1);
F0(l2, l3);
l4 = l2;
F0(l6, l7);
l9 = l7;
}
+12
View File
@@ -0,0 +1,12 @@
package main
func Foo() (int, int) {
return 1, 1
}
func Bar() {
_, _ = Foo()
a, _ := Foo()
_, b := Foo()
_, _ = a, b
}
@@ -0,0 +1,20 @@
vec4 F0(in vec2 l0);
vec4 F0(in vec2 l0) {
vec4 l1 = vec4(0);
{
vec3 l2 = vec3(0);
(l1).x = (l0).x;
{
vec4 l3 = vec4(0);
(l1).y = (l2).y;
(l1).z = (l3).z;
}
{
vec4 l3 = vec4(0);
(l1).y = (l2).y;
(l1).z = (l3).z;
}
}
return l1;
}
+20
View File
@@ -0,0 +1,20 @@
package main
func Foo(foo vec2) vec4 {
var r vec4
{
r.x = foo.x
var foo vec3
{
r.y = foo.y
var foo vec4
r.z = foo.z
}
{
r.y = foo.y
var foo vec4
r.z = foo.z
}
}
return r
}
@@ -0,0 +1,12 @@
vec2 F0(void);
vec2 F0(void) {
bool l0 = false;
l0 = true;
{
int l1 = 0;
l1 = 0;
return vec2(float(l1));
}
return vec2(1.0);
}
+11
View File
@@ -0,0 +1,11 @@
package main
func Foo() vec2 {
x := true
{
x := 0
return vec2(float(x))
}
_ = x
return vec2(1)
}
@@ -0,0 +1,21 @@
vec4 F0(in vec2 l0);
vec4 F0(in vec2 l0) {
vec4 l1 = vec4(0);
{
vec3 l2 = vec3(0);
vec3 l3 = vec3(0);
(l1).x = (l0).x;
{
vec4 l3 = vec4(0);
(l1).y = (l2).y;
(l1).z = (l3).z;
}
{
vec4 l4 = vec4(0);
(l1).y = (l2).y;
(l1).z = (l3).z;
}
}
return l1;
}
+22
View File
@@ -0,0 +1,22 @@
package main
func Foo(foo vec2) vec4 {
var r vec4
{
r.x = foo.x
var foo vec3
{
r.y = foo.y
var foo vec4
r.z = foo.z
}
var bar vec3
{
r.y = foo.y
var foo vec4
r.z = bar.z
_ = foo
}
}
return r
}
@@ -0,0 +1,5 @@
bool F0(void);
bool F0(void) {
return true;
}
+5
View File
@@ -0,0 +1,5 @@
package main
func Foo() bool {
return 1.0 == 1.0
}
@@ -0,0 +1,10 @@
vec2 F0(in vec2 l0);
vec2 F1(in vec2 l0);
vec2 F0(in vec2 l0) {
return F1(l0);
}
vec2 F1(in vec2 l0) {
return l0;
}
+9
View File
@@ -0,0 +1,9 @@
package main
func Foo(x vec2) vec2 {
return Bar(x)
}
func Bar(x vec2) vec2 {
return x
}
@@ -0,0 +1,19 @@
vec2 F0(in vec2 l0);
void F1(in float l0, out float l1, out float l2);
vec2 F0(in vec2 l0) {
float l1 = float(0);
float l2 = float(0);
float l3 = float(0);
float l4 = float(0);
F1((l0).x, l1, l2);
l3 = l1;
l4 = l2;
return vec2(l3, l4);
}
void F1(in float l0, out float l1, out float l2) {
l1 = l0;
l2 = l0;
return;
}
@@ -0,0 +1,10 @@
package main
func Foo(x vec2) vec2 {
var xx, yx float = Bar(x.x)
return vec2(xx, yx)
}
func Bar(x float) (float, float) {
return x, x
}
@@ -0,0 +1,17 @@
void F0(in vec2 l0);
void F1(in float l0, in float l1, out float l2, out float l3);
void F0(in vec2 l0) {
float l1 = float(0);
float l2 = float(0);
float l3 = float(0);
float l4 = float(0);
F1((l0).x, (l0).y, l1, l2);
F1(l1, l2, l3, l4);
}
void F1(in float l0, in float l1, out float l2, out float l3) {
l2 = l0;
l3 = l1;
return;
}
@@ -0,0 +1,9 @@
package main
func Foo(x vec2) {
Bar(Bar(x.x, x.y))
}
func Bar(x, y float) (float, float) {
return x, y
}
@@ -0,0 +1,5 @@
vec2 F0(void);
vec2 F0(void) {
return vec2(3.5000000000e+00);
}
+8
View File
@@ -0,0 +1,8 @@
package main
const a = 1
const b = 2 + 0.5
func Foo() vec2 {
return vec2(a + b)
}
@@ -0,0 +1,5 @@
vec2 F0(void);
vec2 F0(void) {
return vec2(3.5000000000e+00);
}
+7
View File
@@ -0,0 +1,7 @@
package main
func Foo() vec2 {
const a = 1
const b = a + 2 + 0.5
return vec2(b)
}
@@ -0,0 +1,22 @@
void F0(void);
void F0(void) {
int l0 = 0;
int l1 = 0;
float l2 = float(0);
int l3 = 0;
int l4 = 0;
int l5 = 0;
float l6 = float(0);
float l7 = float(0);
bool l8 = false;
l0 = 1;
l1 = 1;
l2 = 1.0;
l3 = 1;
l5 = 1;
l7 = 1.0;
l4 = l5;
l6 = l7;
l8 = false;
}
+23
View File
@@ -0,0 +1,23 @@
package main
const a = 1
const b float = 1
const c int = 1
const d, e = 1, 1.0
const f = false
func Foo() {
l0 := 1
la := a
lb := b
lc := c
ld, le := d, e
lf := f
_ = l0
_ = la
_ = lb
_ = lc
_ = ld
_ = le
_ = lf
}
@@ -0,0 +1,20 @@
int F0(in int l0);
float F1(in float l0);
int F2(void);
float F3(void);
int F0(in int l0) {
return (1) + (l0);
}
float F1(in float l0) {
return (1.0) + (l0);
}
int F2(void) {
return F0(1);
}
float F3(void) {
return F1(1.0);
}
+21
View File
@@ -0,0 +1,21 @@
package main
func Foo(x int) int {
const a = 1
return a + x
}
func Bar(x float) float {
const a = 1
return a + x
}
func Baz() int {
const a = 1
return Foo(a)
}
func Qux() float {
const a = 1
return Bar(a)
}
@@ -0,0 +1,7 @@
vec4 F0(in vec2 l0);
vec4 F0(in vec2 l0) {
vec4 l1 = vec4(0);
l1 = vec4(l0, 0.0, 1.0);
return l1;
}
+6
View File
@@ -0,0 +1,6 @@
package main
func Foo(foo vec2) vec4 {
r := vec4(foo, 0, 1)
return r
}
@@ -0,0 +1,14 @@
vec2 F0(void);
vec2 F1(void);
vec2 F0(void) {
vec2 l0 = vec2(0);
vec2 l1 = vec2(0);
l0 = (1.0) * (F1());
l1 = (F1()) * (1.0);
return l0;
}
vec2 F1(void) {
return vec2(0.0);
}
+12
View File
@@ -0,0 +1,12 @@
package main
func Foo() vec2 {
x0 := 1 * Bar()
x1 := Bar() * 1
_ = x1
return x0
}
func Bar() vec2 {
return vec2(0)
}
@@ -0,0 +1,19 @@
vec4 F0(in vec2 l0);
void F1(out float l0, out float l1);
vec4 F0(in vec2 l0) {
float l1 = float(0);
float l2 = float(0);
float l3 = float(0);
float l4 = float(0);
F1(l1, l2);
l3 = l1;
l4 = l2;
return vec4(l0, l3, l3);
}
void F1(out float l0, out float l1) {
l0 = 0.0;
l1 = 0.0;
return;
}
@@ -0,0 +1,11 @@
package main
func Foo(foo vec2) vec4 {
r1, r2 := Bar()
_ = r2
return vec4(foo, r1, r1)
}
func Bar() (float, float) {
return 0, 0
}
@@ -0,0 +1,60 @@
vec2 F0(in float l0);
vec2 F1(void);
float F2(in float l0);
void F3(out float l0);
void F4(out float l0, out float l1);
vec2 F0(in float l0) {
float l1 = float(0);
float l2 = float(0);
float l3 = float(0);
float l4 = float(0);
l1 = l0;
l2 = 1.0;
l4 = l1;
l1 = l2;
l3 = l4;
return vec2(l1, l3);
}
vec2 F1(void) {
float l0 = float(0);
float l1 = float(0);
float l2 = float(0);
float l3 = float(0);
l0 = 1.0;
F4(l1, l2);
l3 = l1;
l0 = l2;
return vec2(l0, l3);
}
float F2(in float l0) {
float l1 = float(0);
float l2 = float(0);
float l3 = float(0);
l1 = 2.0;
l3 = l0;
l0 = l1;
l2 = l3;
return (l0) + (l2);
}
void F3(out float l0) {
float l1 = float(0);
float l2 = float(0);
float l3 = float(0);
l0 = float(0);
l1 = 1.0;
l3 = 2.0;
l0 = l1;
l2 = l3;
l0 = (l0) + (l2);
return;
}
void F4(out float l0, out float l1) {
l0 = 0.0;
l1 = 0.0;
return;
}
@@ -0,0 +1,28 @@
package main
func Foo(x float) vec2 {
a := x
a, b := 1.0, a
return vec2(a, b)
}
func Foo2() vec2 {
a := 1.0
b, a := Bar()
return vec2(a, b)
}
func Foo3(x float) float {
x, y := 2.0, x
return x + y
}
func Foo4() (r float) {
r, s := 1.0, 2.0
r += s
return
}
func Bar() (float, float) {
return 0, 0
}
@@ -0,0 +1,18 @@
float F0(in float l0);
float F0(in float l0) {
float l1 = float(0);
l1 = 0.0;
{
float l2 = float(0);
float l3 = float(0);
float l4 = float(0);
float l5 = float(0);
l3 = 1.0;
l5 = l0;
l2 = l3;
l4 = l5;
l1 = (l2) + (l4);
}
return l1;
}
@@ -0,0 +1,10 @@
package main
func Foo(x float) float {
y := 0.0
{
x, z := 1.0, x
y = x + z
}
return y
}
@@ -0,0 +1,7 @@
vec4 F0(in vec2 l0);
vec4 F0(in vec2 l0) {
vec4 l1 = vec4(0);
l1 = (vec4(0.0)) * (vec4(0.0));
return l1;
}
@@ -0,0 +1,6 @@
package main
func Foo(foo vec2) vec4 {
r := vec4(0.0) * vec4(0.0)
return r
}
@@ -0,0 +1,15 @@
vec2 F0(void);
vec2 F0(void) {
vec2 l0 = vec2(0);
vec2 l2 = vec2(0);
l0 = vec2(0.0);
for (int l1 = 0; l1 < 100; l1++) {
(l0).x = ((l0).x) + (float(l1));
}
l2 = vec2(0.0);
for (float l3 = 10.0; l3 >= 0.0; l3 -= 2.0) {
(l2).x = ((l2).x) + (float(l3));
}
return l0;
}
+14
View File
@@ -0,0 +1,14 @@
package main
func Foo() vec2 {
v := vec2(0)
for i := 0; i < 100; i++ {
v.x += float(i)
}
v2 := vec2(0)
for i := 10.0; i >= 0; i -= 2 {
v2.x += float(i)
}
_ = v2
return v
}
@@ -0,0 +1,21 @@
vec2 F0(void);
vec2 F0(void) {
vec2 l0 = vec2(0);
vec2 l2 = vec2(0);
l0 = vec2(0.0);
for (int l1 = 0; l1 < 100; l1++) {
(l0).x = ((l0).x) + (float(l1));
if (((l0).x) >= (100.0)) {
break;
}
}
l2 = vec2(0.0);
for (float l3 = 10.0; l3 >= 0.0; l3 -= 2.0) {
if (((l2).x) < (100.0)) {
continue;
}
(l2).x = ((l2).x) + (l3);
}
return l0;
}
+19
View File
@@ -0,0 +1,19 @@
package main
func Foo() vec2 {
v := vec2(0)
for i := 0; i < 100; i++ {
v.x += float(i)
if v.x >= 100 {
break
}
}
v2 := vec2(0)
for i := 10.0; i >= 0; i -= 2 {
if v2.x < 100 {
continue
}
v2.x += i
}
return v
}
@@ -0,0 +1,19 @@
vec2 F0(void);
vec2 F0(void) {
vec2 l0 = vec2(0);
vec2 l2 = vec2(0);
l0 = vec2(0.0);
for (int l1 = 0; l1 < 100; l1++) {
vec2 l2 = vec2(0);
l2 = vec2(0.0);
l0 = l2;
}
l2 = vec2(0.0);
for (int l3 = 0; l3 < 100; l3++) {
vec2 l4 = vec2(0);
l4 = vec2(0.0);
l2 = l4;
}
return l0;
}
+16
View File
@@ -0,0 +1,16 @@
package main
func Foo() vec2 {
v := vec2(0)
for i := 0; i < 100; i++ {
v2 := vec2(0)
v = v2
}
v3 := vec2(0)
for i := 0; i < 100; i++ {
v4 := vec2(0)
v3 = v4
}
_ = v3
return v
}
@@ -0,0 +1,20 @@
int F0(in int l0);
int F1(void);
int F0(in int l0) {
return l0;
}
int F1(void) {
int l0 = 0;
int l2 = 0;
l0 = 0;
for (int l1 = 0; l1 < 10; l1++) {
int l2 = 0;
l2 = F0(l1);
l0 = (l0) + (l2);
}
l2 = 0;
l0 = (l0) + (l2);
return l0;
}
+16
View File
@@ -0,0 +1,16 @@
package main
func Ident(x int) int {
return x
}
func Foo() int {
sum := 0
for i := 0; i < 10; i++ {
x := Ident(i)
sum += x
}
y := 0
sum += y
return sum
}
@@ -0,0 +1,33 @@
uniform float U0;
uniform float U1;
uniform float U2;
int F0(in int l0);
vec4 F1(in vec4 l0);
int F0(in int l0) {
return l0;
}
vec4 F1(in vec4 l0) {
int l1 = 0;
int l3 = 0;
l1 = 0;
for (int l2 = 0; l2 < 10; l2++) {
int l3 = 0;
l3 = F0(l2);
l1 = (l1) + (l3);
for (int l4 = 0; l4 < 10; l4++) {
int l5 = 0;
l5 = F0(l4);
l1 = (l1) + (l5);
}
}
l3 = 0;
l1 = (l1) + (l3);
return vec4(float(l1));
}
void main(void) {
fragColor = F1(gl_FragCoord);
}
@@ -0,0 +1,30 @@
uniform float U0;
uniform float U1;
uniform float U2;
in vec2 A0;
int F0(in int l0);
int F0(in int l0) {
return l0;
}
void main(void) {
int l0 = 0;
int l2 = 0;
l0 = 0;
for (int l1 = 0; l1 < 10; l1++) {
int l2 = 0;
l2 = F0(l1);
l0 = (l0) + (l2);
for (int l3 = 0; l3 < 10; l3++) {
int l4 = 0;
l4 = F0(l3);
l0 = (l0) + (l4);
}
}
l2 = 0;
l0 = (l0) + (l2);
gl_Position = vec4(float(l0));
return;
}
+41
View File
@@ -0,0 +1,41 @@
package main
var (
U0 float
U1 float
U2 float
)
func Ident(x int) int {
return x
}
func Vertex(pos vec2) vec4 {
sum := 0
for i := 0; i < 10; i++ {
x := Ident(i)
sum += x
for j := 0; j < 10; j++ {
x := Ident(j)
sum += x
}
}
y := 0
sum += y
return vec4(float(sum))
}
func Fragment(pos vec4) vec4 {
sum := 0
for i := 0; i < 10; i++ {
x := Ident(i)
sum += x
for j := 0; j < 10; j++ {
x := Ident(j)
sum += x
}
}
y := 0
sum += y
return vec4(float(sum))
}
@@ -0,0 +1,48 @@
#version 150
int modInt(int x, int y) {
return x - y*(x/y);
}
ivec2 modInt(ivec2 x, int y) {
return x - y*(x/y);
}
ivec3 modInt(ivec3 x, int y) {
return x - y*(x/y);
}
ivec4 modInt(ivec4 x, int y) {
return x - y*(x/y);
}
ivec2 modInt(ivec2 x, ivec2 y) {
return x - y*(x/y);
}
ivec3 modInt(ivec3 x, ivec3 y) {
return x - y*(x/y);
}
ivec4 modInt(ivec4 x, ivec4 y) {
return x - y*(x/y);
}
int F0(void);
int F0(void) {
int l0 = 0;
l0 = 0;
for (int l1 = 0; l1 < 10; l1++) {
l0 = (l0) + (l1);
}
for (int l2 = 0; l2 < 4; l2++) {
for (int l3 = 0; l3 < 4; l3++) {
l0 = (l0) + ((l2) * (l3));
}
}
for (int l3 = 0; l3 < 3; l3++) {
l0 = (l0) + (1);
}
return l0;
}
+18
View File
@@ -0,0 +1,18 @@
package main
func Foo() int {
sum := 0
for i := range 10 {
sum += i
}
const n = 4
for i := range n {
for j := range n {
sum += i * j
}
}
for range 3 {
sum++
}
return sum
}
@@ -0,0 +1,59 @@
#version 150
int modInt(int x, int y) {
return x - y*(x/y);
}
ivec2 modInt(ivec2 x, int y) {
return x - y*(x/y);
}
ivec3 modInt(ivec3 x, int y) {
return x - y*(x/y);
}
ivec4 modInt(ivec4 x, int y) {
return x - y*(x/y);
}
ivec2 modInt(ivec2 x, ivec2 y) {
return x - y*(x/y);
}
ivec3 modInt(ivec3 x, ivec3 y) {
return x - y*(x/y);
}
ivec4 modInt(ivec4 x, ivec4 y) {
return x - y*(x/y);
}
uniform vec2 U0[4];
float F0(void);
float F0(void) {
float l0[3];
l0[0] = float(0);
l0[1] = float(0);
l0[2] = float(0);
float l1 = float(0);
float l5 = float(0);
vec2 l7 = vec2(0);
l1 = 0.0;
for (int l2 = 0; l2 < 3; l2++) {
l1 = (l1) + (1.0);
}
for (int l3 = 0; l3 < 3; l3++) {
l1 = (l1) + ((l0)[l3]);
}
for (int l4 = 0; l4 < 3; l4++) {
l5 = (l0)[l4];
l1 = (l1) + ((float(l4)) * (l5));
}
for (int l6 = 0; l6 < 4; l6++) {
l7 = (U0)[l6];
l1 = (l1) + ((l7).x);
}
return l1;
}
@@ -0,0 +1,21 @@
package main
var U [4]vec2
func Foo() float {
var a [3]float
sum := 0.0
for range a {
sum += 1
}
for i := range a {
sum += a[i]
}
for i, v := range a {
sum += float(i) * v
}
for _, v := range U {
sum += v.x
}
return sum
}
@@ -0,0 +1,5 @@
vec4 F0(in vec2 l0);
vec4 F0(in vec2 l0) {
return vec4(0.0);
}
+5
View File
@@ -0,0 +1,5 @@
package main
func Foo(foo vec2) vec4 {
return vec4(0)
}
@@ -0,0 +1,5 @@
vec4 F0(in vec2 l0);
vec4 F0(in vec2 l0) {
return vec4(l0, 0.0, 1.0);
}
@@ -0,0 +1,5 @@
package main
func Foo(foo vec2) vec4 {
return vec4(foo, 0, 1)
}
@@ -0,0 +1,9 @@
void F0(in vec4 l0, out float l1, out float l2, out float l3, out float l4);
void F0(in vec4 l0, out float l1, out float l2, out float l3, out float l4) {
l1 = (l0).x;
l2 = (l0).y;
l3 = (l0).z;
l4 = (l0).w;
return;
}
@@ -0,0 +1,5 @@
package main
func Foo(foo vec4) (float, float, float, float) {
return foo.x, foo.y, foo.z, foo.w
}
@@ -0,0 +1,10 @@
vec2 F0(void);
vec2 F0(void) {
bool l0 = false;
l0 = true;
if (l0) {
return vec2(0.0);
}
return vec2(1.0);
}
+9
View File
@@ -0,0 +1,9 @@
package main
func Foo() vec2 {
x := true
if x {
return vec2(0)
}
return vec2(1)
}
@@ -0,0 +1,11 @@
vec2 F0(void);
vec2 F0(void) {
bool l0 = false;
l0 = true;
if (l0) {
return vec2(0.0);
} else {
return vec2(1.0);
}
}
+10
View File
@@ -0,0 +1,10 @@
package main
func Foo() vec2 {
x := true
if x {
return vec2(0)
} else {
return vec2(1)
}
}
@@ -0,0 +1,14 @@
vec2 F0(in vec2 l0);
vec2 F0(in vec2 l0) {
vec2 l1 = vec2(0);
l1 = vec2(0.0);
{
vec2 l2 = vec2(0);
l2 = vec2(1.0);
if (((l2).x) == (1.0)) {
return l2;
}
}
return l1;
}
+9
View File
@@ -0,0 +1,9 @@
package main
func Foo(x vec2) vec2 {
v := vec2(0)
if v := vec2(1); v.x == 1 {
return v
}
return v
}
@@ -0,0 +1,11 @@
vec2 F0(void);
vec2 F0(void) {
int l0 = 0;
int l1 = 0;
l0 = 0;
l0 = (l0) + (1);
l1 = 1;
l1 = (l1) - (1);
return vec2(float(l0), float(l1));
}
+9
View File
@@ -0,0 +1,9 @@
package main
func Foo() vec2 {
l0 := 0
l0++
l1 := 1
l1--
return vec2(float(l0), float(l1))
}
@@ -0,0 +1,7 @@
float4 F0(in float4 l0);
float4 F0(in float4 l0) {
float4 l1 = 0.0;
l1 = mul(l0, float4x4FromScalar(1.0));
return l1;
}
@@ -0,0 +1,7 @@
vec4 F0(in vec4 l0);
vec4 F0(in vec4 l0) {
vec4 l1 = vec4(0);
l1 = (mat4(1.0)) * (l0);
return l1;
}
@@ -0,0 +1,6 @@
package main
func Foo(v vec4) vec4 {
v2 := mat4(1) * v
return v2
}
@@ -0,0 +1,12 @@
vec4 F0(in vec4 l0);
vec4 F0(in vec4 l0) {
if (true) {
return l0;
}
return l0;
}
void main(void) {
fragColor = F0(gl_FragCoord);
}
@@ -0,0 +1,10 @@
in vec2 A0;
void main(void) {
if (true) {
gl_Position = vec4(A0, 0.0, 1.0);
return;
}
gl_Position = vec4(A0, 0.0, 1.0);
return;
}
+15
View File
@@ -0,0 +1,15 @@
package main
func Vertex(position vec2) vec4 {
if true {
return vec4(position, 0, 1)
}
return vec4(position, 0, 1)
}
func Fragment(position vec4) vec4 {
if true {
return position
}
return position
}
@@ -0,0 +1,13 @@
vec4 F0(in vec4 l0);
vec4 F0(in vec4 l0) {
vec4 l1 = vec4(0);
for (float l2 = 0.0; l2 < 4.0; l2++) {
(l1).x = ((l1).x) + ((l2) * (1.0000000000e-02));
}
return l1;
}
void main(void) {
fragColor = F0(gl_FragCoord);
}
@@ -0,0 +1,10 @@
in vec2 A0;
void main(void) {
vec4 l0 = vec4(0);
for (float l1 = 0.0; l1 < 4.0; l1++) {
(l0).x = ((l0).x) + ((l1) * (1.0000000000e-02));
}
gl_Position = l0;
return;
}
+17
View File
@@ -0,0 +1,17 @@
package main
func Vertex(position vec2) vec4 {
var v vec4
for i := 0.0; i < 4.0; i++ {
v.x += i * 0.01
}
return v
}
func Fragment(position vec4) vec4 {
var v vec4
for i := 0.0; i < 4.0; i++ {
v.x += i * 0.01
}
return v
}
@@ -0,0 +1,25 @@
vec2 F0(void);
vec2 F0(void) {
vec2 l0 = vec2(0);
vec2 l1 = vec2(0);
vec2 l2 = vec2(0);
vec2 l3 = vec2(0);
vec2 l4 = vec2(0);
vec2 l5 = vec2(0);
vec2 l6 = vec2(0);
vec2 l7 = vec2(0);
vec2 l8 = vec2(0);
vec2 l9 = vec2(0);
l2 = l1;
l3 = l0;
l0 = l2;
l1 = l3;
l7 = l5;
l8 = l6;
l9 = l4;
l4 = l7;
l5 = l8;
l6 = l9;
return l0;
}
@@ -0,0 +1,9 @@
package main
func Foo() vec2 {
var a, b vec2
a, b = b, a
var c, d, e vec2
c, d, e = d, e, c
return a
}
@@ -0,0 +1,7 @@
int F0(in float l0);
int F0(in float l0) {
int l1 = 0;
l1 = int(l0);
return l1;
}
@@ -0,0 +1,6 @@
package main
func Foo(f float) int {
x := int(f)
return x
}
@@ -0,0 +1,10 @@
int F0(void);
int F0(void) {
int l0 = 0;
l0 = 1;
l0 = (l0) * (2);
l0 = (l0) + (2);
l0 = (2) - (l0);
return l0;
}
@@ -0,0 +1,9 @@
package main
func Foo() int {
x := 1
x *= 2
x = x + 2
x = 2 - x
return x
}
@@ -0,0 +1,19 @@
void F2(void);
void F3(void);
vec4 F5(in vec4 l0);
void F2(void) {
}
void F3(void) {
F2();
}
vec4 F5(in vec4 l0) {
F3();
return vec4(0.0);
}
void main(void) {
fragColor = F5(gl_FragCoord);
}
@@ -0,0 +1,29 @@
in vec2 A0;
void F0(void);
void F1(void);
void F2(void);
void F3(void);
void F0(void) {
F1();
F2();
}
void F1(void) {
F2();
F3();
}
void F2(void) {
}
void F3(void) {
F2();
}
void main(void) {
F0();
gl_Position = vec4(0.0);
return;
}
+35
View File
@@ -0,0 +1,35 @@
package main
func Foo() {
Bar()
Baz()
}
func Bar() {
Baz()
Quux()
}
func Baz() {
}
func Quux() {
Baz()
}
func NeverCalled() {
Foo()
Bar()
Baz()
Quux()
}
func Vertex(pos vec2) vec4 {
Foo()
return vec4(0)
}
func Fragment(pos vec4) vec4 {
Quux()
return vec4(0)
}
@@ -0,0 +1,5 @@
float F0(void);
float F0(void) {
return (sin(1.0000000000e-01)) + (cos(2.0000000000e-01));
}
Loaded 100 of 2538 files, more files were not shown because too many files have changed in this diff. Show more