Esempio n. 1
0
void f0(void) {
  result = 1;
  
  bool_mul(bool_id(1));
  aggr_mul(aggr_id((AggrTy) { 2, 3, 5}));
  empty_mul(empty_id((EmptyTy) {}));
  scalar_mul(scalar_id(7));
  complex_mul(complex_id(11 + 13i));
  
  // This call should be eliminated.
  if (result != 2 * 3 * 5 * 7 * 11 * 13 * 53)
    g0();
}
Esempio n. 2
0
 void XMLAstVisitor::visit(ScalarId *node) {
     xml::Node scalar_id("Id", xml::Namespace::ct);
     scalar_id.setContent(node->toString());
     this->setValue(scalar_id);
 }