# include "firm.h"
# include "irdump.h"
-/*
- * das leere FIRM Programm
- */
-
/**
-* This file constructs the ir for the following pseudo-program:
-*
-* main() {
-* int a = 0;
-* int b = 1;
-*
-* if (a > 2)
-* { a = b; }
-* else
-* { b = 2; }
-*
-* return a, b;
-**/
+ * This file constructs the ir for the following pseudo-program:
+ *
+ * main() {
+ * int a = 0;
+ * int b = 1;
+ *
+ * if (a > 2)
+ * { a = b; }
+ * else
+ * { b = 2; }
+ *
+ * return a, b;
+ */
int main(int argc, char **argv)
{
/* the expression that evaluates the condition */
c2 = new_Const (mode_Is, new_tarval_from_long (2, mode_Is));
- cmpGt = new_Proj(new_Cmp(get_value(0, mode_Is), c2), mode_b, Gt);
+ cmpGt = new_Proj(new_Cmp(get_value(0, mode_Is), c2), mode_b, pn_Cmp_Gt);
/* the conditional branch */
x = new_Cond (cmpGt);