Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • theo.putegnat/infosec-ecomp
  • damien.armillon/infosec-ecomp
  • mouhamed.sougou/infosec-ecomp
  • cidre-public/compilation/infosec-ecomp
4 results
Show changes
Showing
with 178 additions and 0 deletions
SYM_VOID
SYM_IDENTIFIER(f)
SYM_LPARENTHESIS
SYM_INT
SYM_IDENTIFIER(x)
SYM_RPARENTHESIS
SYM_LBRACE
SYM_IDENTIFIER(print)
SYM_LPARENTHESIS
SYM_IDENTIFIER(x)
SYM_RPARENTHESIS
SYM_SEMICOLON
SYM_RETURN
SYM_IDENTIFIER(x)
SYM_SEMICOLON
SYM_RBRACE
SYM_INT
SYM_IDENTIFIER(main)
SYM_LPARENTHESIS
SYM_RPARENTHESIS
SYM_LBRACE
SYM_INT
SYM_IDENTIFIER(x)
SYM_ASSIGN
SYM_IDENTIFIER(f)
SYM_LPARENTHESIS
SYM_INTEGER(3)
SYM_RPARENTHESIS
SYM_SEMICOLON
SYM_RETURN
SYM_IDENTIFIER(x)
SYM_SEMICOLON
SYM_RBRACE
SYM_EOF
int f(int x, int y){
return x + y;
}
int main(){
return f(3,4,5);
}
SYM_INT
SYM_IDENTIFIER(f)
SYM_LPARENTHESIS
SYM_INT
SYM_IDENTIFIER(x)
SYM_COMMA
SYM_INT
SYM_IDENTIFIER(y)
SYM_RPARENTHESIS
SYM_LBRACE
SYM_RETURN
SYM_IDENTIFIER(x)
SYM_PLUS
SYM_IDENTIFIER(y)
SYM_SEMICOLON
SYM_RBRACE
SYM_INT
SYM_IDENTIFIER(main)
SYM_LPARENTHESIS
SYM_RPARENTHESIS
SYM_LBRACE
SYM_RETURN
SYM_IDENTIFIER(f)
SYM_LPARENTHESIS
SYM_INTEGER(3)
SYM_COMMA
SYM_INTEGER(4)
SYM_COMMA
SYM_INTEGER(5)
SYM_RPARENTHESIS
SYM_SEMICOLON
SYM_RBRACE
SYM_EOF
int main(){
return a+3;
}
{"output": "", "error": "Unknown variable a\n", "retval": null}
\ No newline at end of file
{"output": "", "error": "Unknown variable a\n", "retval": null}
\ No newline at end of file
SYM_INT
SYM_IDENTIFIER(main)
SYM_LPARENTHESIS
SYM_RPARENTHESIS
SYM_LBRACE
SYM_RETURN
SYM_IDENTIFIER(a)
SYM_PLUS
SYM_INTEGER(3)
SYM_SEMICOLON
SYM_RBRACE
SYM_EOF
int main(){
int x = 8;
int y = 15;
int z = 4 * x + y;
return 1;
}
{"output": "", "error": null, "retval": 1}
\ No newline at end of file
{"output": "", "error": null, "retval": 1}
\ No newline at end of file
SYM_INT
SYM_IDENTIFIER(main)
SYM_LPARENTHESIS
SYM_RPARENTHESIS
SYM_LBRACE
SYM_INT
SYM_IDENTIFIER(x)
SYM_ASSIGN
SYM_INTEGER(8)
SYM_SEMICOLON
SYM_INT
SYM_IDENTIFIER(y)
SYM_ASSIGN
SYM_INTEGER(15)
SYM_SEMICOLON
SYM_INT
SYM_IDENTIFIER(z)
SYM_ASSIGN
SYM_INTEGER(4)
SYM_ASTERISK
SYM_IDENTIFIER(x)
SYM_PLUS
SYM_IDENTIFIER(y)
SYM_SEMICOLON
SYM_RETURN
SYM_INTEGER(1)
SYM_SEMICOLON
SYM_RBRACE
SYM_EOF
int main(){
void x;
return 0;
}
SYM_INT
SYM_IDENTIFIER(main)
SYM_LPARENTHESIS
SYM_RPARENTHESIS
SYM_LBRACE
SYM_VOID
SYM_IDENTIFIER(x)
SYM_SEMICOLON
SYM_RETURN
SYM_INTEGER(0)
SYM_SEMICOLON
SYM_RBRACE
SYM_EOF
int main(){
int x = 5;
x = 6;
return x;
}
{"output": "", "error": null, "retval": 6}
\ No newline at end of file
{"output": "", "error": null, "retval": 6}
\ No newline at end of file
SYM_INT
SYM_IDENTIFIER(main)
SYM_LPARENTHESIS
SYM_RPARENTHESIS
SYM_LBRACE
SYM_INT
SYM_IDENTIFIER(x)
SYM_ASSIGN
SYM_INTEGER(5)
SYM_SEMICOLON
SYM_IDENTIFIER(x)
SYM_ASSIGN
SYM_INTEGER(6)
SYM_SEMICOLON
SYM_RETURN
SYM_IDENTIFIER(x)
SYM_SEMICOLON
SYM_RBRACE
SYM_EOF
int f(int a, int b){
return a + 2 * b;
}
int main(){
return f(8,3);
}
{"output": "", "error": null, "retval": 14}
\ No newline at end of file
{"output": "", "error": null, "retval": 14}
\ No newline at end of file