static int test_0_vtype_phi() { VTypePhi v1 = new VTypePhi() { i = 1 }; VTypePhi v2 = new VTypePhi() { i = 2 }; if (vtype_phi(v1, v2, true) != 1) { return(1); } if (vtype_phi(v1, v2, false) != 2) { return(2); } return(0); }
static int test_0_vtype_phi () { VTypePhi v1 = new VTypePhi () { i = 1 }; VTypePhi v2 = new VTypePhi () { i = 2 }; if (vtype_phi (v1, v2, true) != 1) return 1; if (vtype_phi (v1, v2, false) != 2) return 2; return 0; }
static int vtype_phi (VTypePhi v1, VTypePhi v2, bool first) { VTypePhi v = first ? v1 : v2; return v.i; }
static int vtype_phi(VTypePhi v1, VTypePhi v2, bool first) { VTypePhi v = first ? v1 : v2; return(v.i); }