JGESN2Z4ON5VXCCVBUJDKUHFRDI5IFDKGB5FJRKJEYSLM5PQCMEAC
if (opts.skip_size <= 1) {
@compileError("Skip size must be >= 1!\n");
}
if (opts.skip_size <= 1) @compileError("Skip size must be >= 1!\n");
// This must be > 0 as level is in [0..max_level) range.
const ml: usize = opts.max_level orelse
@as(usize, @intFromFloat(std.math.log(f32, opts.skip_size, @as(f32, @floatFromInt(opts.items)))));
if (ml == 0) @compileError("Options.max_level must be > 0");
/// This must be > 0 as level is in [0..max_level) and Node.height is in [1..max_level] range.
const max_level = opts.max_level orelse
@as(usize, @intFromFloat(std.math.log(f32, opts.skip_size, @as(f32, @floatFromInt(opts.items)))));
const max_level = ml;
var preds: [max_level]?*Node = undefined;
var succs: [max_level]?*Node = undefined;
var preds: [max_level]?*Node = [_]?*Node{null} ** max_level;
std.debug.assert(preds.len == max_level);
var succs: [max_level]?*Node = [_]?*Node{null} ** max_level;
std.debug.assert(succs.len == max_level);
var preds: [max_level]?*Node = undefined;
var succs: [max_level]?*Node = undefined;
var preds: [max_level]?*Node = [_]?*Node{null} ** max_level;
std.debug.assert(preds.len == max_level);
var succs: [max_level]?*Node = [_]?*Node{null} ** max_level;
std.debug.assert(succs.len == max_level);
var preds: [max_level]?*Node = undefined;
var succs: [max_level]?*Node = undefined;
var preds: [max_level]?*Node = [_]?*Node{null} ** max_level;
std.debug.assert(preds.len == max_level);
var succs: [max_level]?*Node = [_]?*Node{null} ** max_level;
std.debug.assert(succs.len == max_level);