// Generated by ReScript, PLEASE EDIT WITH CARE

import * as OptArg from "./OptArg.js";

console.log(OptArg.bar(undefined, 3, 3, 4));

function foo(xOpt, y) {
  var x = xOpt !== undefined ? xOpt : 3;
  return x + y | 0;
}

function bar(param) {
  var x = 12;
  return x + 3 | 0;
}

console.log(bar);

function notSuppressesOptArgs(xOpt, yOpt, zOpt, w) {
  var x = xOpt !== undefined ? xOpt : 1;
  var y = yOpt !== undefined ? yOpt : 2;
  var z = zOpt !== undefined ? zOpt : 3;
  return ((x + y | 0) + z | 0) + w | 0;
}

notSuppressesOptArgs(undefined, undefined, undefined, 3);

function liveSuppressesOptArgs(xOpt, yOpt, zOpt, w) {
  var x = xOpt !== undefined ? xOpt : 1;
  var y = yOpt !== undefined ? yOpt : 2;
  var z = zOpt !== undefined ? zOpt : 3;
  return ((x + y | 0) + z | 0) + w | 0;
}

liveSuppressesOptArgs(3, undefined, undefined, 3);

export {
  foo ,
  bar ,
  notSuppressesOptArgs ,
  liveSuppressesOptArgs ,
  
}
/*  Not a pure module */
