-
Notifications
You must be signed in to change notification settings - Fork 0
/
input_test
executable file
·88 lines (62 loc) · 884 Bytes
/
input_test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
package nomePkg
import "import1"
//Bla Bla BLa
import (
"import2"
"etcetc"
)
var (
puntatoreRune *rune
carattere rune = 'c'
)
//Inferisce da solo il tipo
var z = 2
var c = 'c'
func testPar(x int, e int cnst) int {
return 2
}
func tFun (x int ,t int) int {
var z [4]int
var y int
var k *int
y = &k
z[3][22] = 3
*k = 2
for 1 < k {
y = &k+12
}
for {
//loop infinito
}
return cFun(y,t+4)
}
/*
yacc -> yet another comment commentato
*/
func cFun(x int valres, i rune) int {
var b = true
var exp int = 2
var flt = 230.1
if b {
flt = (flt^exp)
} else {
flt = ((flt^exp)*12)/exp
}
for i=0 ; i < x ; i = i+1 {
flt = flt +1
}
switch x {
case 0: i = 'c'
case 2: if carattere == '$' {
//Niente da fare qua
} else {
z = carattere * 2
}
default: if b {
flt = (flt^exp)
} else {
flt = ((flt^exp)*12)/exp
}
}
return (x+i^x)
}