#include <metal_stdlib>
using namespace metal;

[[max_total_threads_per_threadgroup(1)]]
kernel void v() {
  float const low = 1.0f;
  float const high = 0.0f;
  float const x_val = 0.5f;
  float const v_1 = clamp(((x_val - low) / (high - low)), 0.0f, 1.0f);
  float const res = (v_1 * (v_1 * (3.0f - (2.0f * v_1))));
}
