-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Erro raro na checagem de consisterncia dos parametros de funcao
- Loading branch information
1 parent
379847f
commit 584ff49
Showing
5 changed files
with
56 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,12 @@ | ||
a : short 0 ; | ||
a1 : long 1 ; | ||
i : long 0 ; | ||
v : long [ 10 ] 0 0 0 0 true 0 0 0 0 0 ; | ||
mat : long [ 10 ] ; | ||
f : float 10.55 ; | ||
c : byte 'x' ; | ||
d : byte 65 ; | ||
falsiane : bool TRUE ; | ||
long main ( ) { | ||
a = true ; | ||
v # 3.4 = 2 ; | ||
v # 2 = v[10 - 1 ]; | ||
for ( i = 1 to 10 ) print i " " ; | ||
read hihiUpsy ; | ||
print " Digite um numero: \n" ; | ||
read i ; | ||
while ( i < 10 ) { | ||
a = incn(a , 1 ); | ||
i = i + 1 ; | ||
}; | ||
print "Incrementado algumas vezes fica " a "\n" ; | ||
when ( a == 5 ) then print "Parou no meio\n" ; | ||
when ( a == 11 ) then ; | ||
when ( a == 11 ) then ; | ||
; | ||
; | ||
; | ||
{ | ||
; | ||
}; | ||
{ | ||
v : long [ 4 ] 0 0 0 0 ; | ||
a2 : short 0 ; | ||
long incn2 ( long x , float n ) return main(); | ||
long incn3 ( ) return main(); | ||
long incn ( long x , long n ) { | ||
a2 = incn3(); | ||
return a2 + n ; | ||
}; | ||
long main ( ) { | ||
a2 = 2 ; | ||
}; | ||
long incn ( long x , long n ) return x + n ; | ||
short voidfunc ( ) ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// UFRGS - Compiladores - Marcelo Johann - 2017/1 | ||
|
||
v: long[4] 0 0 0 0; | ||
|
||
a2: short 0; | ||
|
||
long incn2 (long x, float n) | ||
return main(); | ||
|
||
long incn3 () | ||
return main(); | ||
|
||
long incn (long x, long n) | ||
{ | ||
//v#true = 2; | ||
a2 = incn3(); | ||
return a2+n; | ||
}; | ||
|
||
|
||
|
||
|
||
|
||
long main() | ||
{ | ||
a2 = 2; | ||
//v#3.4 = 2; | ||
//v#2 = v[10-1]; | ||
}; | ||
|
||
short voidfunc() ; | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters