// Generated by ReScript, PLEASE EDIT WITH CARE


function doWithA(a) {
  if (typeof a !== "object") {
    if (a === "One") {
      console.log("aaa");
      return;
    }
    console.log("threeeee");
    return;
  } else {
    console.log("twwwoooo");
    return;
  }
}

function doWithB(b) {
  if (typeof b !== "object") {
    if (b === "One") {
      console.log("aaa");
      return;
    }
    console.log("twwwoooo");
    return;
  } else {
    console.log("twwwoooo");
    return;
  }
}

function lookup(b) {
  if (typeof b === "object") {
    return doWithA(b);
  }
  switch (b) {
    case "Four" :
      console.log("four");
      return;
    case "Five" :
      console.log("five");
      return;
    default:
      return doWithA(b);
  }
}

function lookup2(d) {
  if (typeof d !== "object") {
    switch (d) {
      case "Four" :
      case "Five" :
        return doWithB(d);
      case "Six" :
        console.log("Got rest of d");
        return;
      default:
        return doWithA(d);
    }
  } else {
    if (d.TAG !== "Seven") {
      return doWithA(d);
    }
    console.log("Got rest of d");
    return;
  }
}

export {
  doWithA,
  doWithB,
  lookup,
  lookup2,
}
/* No side effect */
