content
stringlengths 7
1.05M
|
---|
def compare(s, m):
""" Compute a scatter plot
Args:
s (ndarray): astrocat's true position over time
m (ndarray): astrocat's measured position over time according to the sensor
"""
fig = plt.figure()
ax = fig.add_subplot(111)
sbounds = 1.1*max(max(np.abs(s)), max(np.abs(m)))
ax.plot([-sbounds, sbounds], [-sbounds, sbounds], 'k') # plot line of equality
ax.set_xlabel('state')
ax.set_ylabel('measurement')
ax.set_aspect('equal')
# Complete a scatter plot: true state versus measurements
plt.scatter(s, m, marker='.', color='red', s=100)
# Set parameters
np.random.seed(0)
D = 0.9 # parameter in s(t)
T = 50 # total time duration
s0 = 5. # initial condition of s at time 0
sigma_p = 2 # amount of noise in the actuators of astrocat's propulsion unit
sigma_measurements = 4 # amount of noise in astrocat's collar
# Simulate Astrocat
s = simulate(D, s0, sigma_p, T)
# Take measurement from collar
m = read_collar(s, sigma_measurements)
# Visualize true vs measured states
with plt.xkcd():
compare(s,m)
|
FLOAT_PRECISION = 3
DEFAULT_MIN_TIME_IN_HOUR = 0
DEFAULT_MAX_TIME_IN_HOUR = 230
MINUTES_IN_AN_HOUR = 60
FS = "Fs"
FOIL = "Foil"
FG = "Fg"
PRES = "pressure"
DISCHARGE = "discharge"
WATER = "Fw"
PAA = "Fpaa"
DEFAULT_PENICILLIN_RECIPE_ORDER = [FS, FOIL, FG, PRES, DISCHARGE, WATER, PAA]
FS_DEFAULT_PROFILE = [
{"time": 3, "value": 8},
{"time": 12, "value": 15},
{"time": 16, "value": 30},
{"time": 20, "value": 75},
{"time": 24, "value": 150},
{"time": 28, "value": 30},
{"time": 32, "value": 37},
{"time": 36, "value": 43},
{"time": 40, "value": 47},
{"time": 44, "value": 51},
{"time": 48, "value": 57},
{"time": 52, "value": 61},
{"time": 56, "value": 65},
{"time": 60, "value": 72},
{"time": 64, "value": 76},
{"time": 68, "value": 80},
{"time": 72, "value": 84},
{"time": 76, "value": 90},
{"time": 80, "value": 116},
{"time": 160, "value": 90},
{"time": 230, "value": 80}
]
FOIL_DEFAULT_PROFILE = [
{"time": 4, "value": 22},
{"time": 16, "value": 30},
{"time": 56, "value": 35},
{"time": 60, "value": 34},
{"time": 64, "value": 33},
{"time": 68, "value": 32},
{"time": 72, "value": 31},
{"time": 76, "value": 30},
{"time": 80, "value": 29},
{"time": 230, "value": 23},
]
FG_DEFAULT_PROFILE = [
{"time": 8, "value": 30},
{"time": 20, "value": 42},
{"time": 40, "value": 55},
{"time": 90, "value": 60},
{"time": 200, "value": 75},
{"time": 230, "value": 65}
]
PRESS_DEFAULT_PROFILE = [
{"time": 12.4, "value": 0.6},
{"time": 25, "value": 0.7},
{"time": 30, "value": 0.8},
{"time": 40, "value": 0.9},
{"time": 100, "value": 1.1},
{"time": 150, "value": 1},
{"time": 200, "value": 0.9},
{"time": 230, "value": 0.9},
]
DISCHARGE_DEFAULT_PROFILE = [
{"time": 100, "value": 0},
{"time": 102, "value": 4000},
{"time": 130, "value": 0},
{"time": 132, "value": 4000},
{"time": 150, "value": 0},
{"time": 152, "value": 4000},
{"time": 170, "value": 0},
{"time": 172, "value": 4000},
{"time": 190, "value": 0},
{"time": 192, "value": 4000},
{"time": 210, "value": 0},
{"time": 212, "value": 4000},
{"time": 230, "value": 0}
]
WATER_DEFAULT_PROFILE = [
{"time": 50, "value": 0},
{"time": 75, "value": 500},
{"time": 150, "value": 100},
{"time": 160, "value": 0},
{"time": 170, "value": 400},
{"time": 200, "value": 150},
{"time": 230, "value": 250}
]
PAA_DEFAULT_PROFILE = [
{"time": 5, "value": 5},
{"time": 40, "value": 0},
{"time": 200, "value": 10},
{"time": 230, "value": 4}
]
|
def singleton(class_):
instances = {}
def getinstance(*args, **kwargs):
if class_ not in instances:
instances[class_] = class_(*args, **kwargs)
return instances[class_]
return getinstance
@singleton
class MyClass():
def test(self):
print(id(self))
class Singleton(object):
_instance = None
def __new__(class_, *args, **kwargs):
if not isinstance(class_._instance, class_):
class_._instance = object.__new__(class_, *args, **kwargs)
return class_._instance
class MyRealClass(Singleton):
def test(self):
print(id(self))
|
""" Drop unnecessary information """
def drop_dict(directory, dict_list):
"""drop record"""
target_dict_list = dict_list
target_dict_list = list(filter(
lambda any_dict:(directory not in any_dict["name"]) or ("stat" in any_dict),
target_dict_list))
target_dict_list = list(filter(
lambda any_dict:(directory not in any_dict["name"]) or ("time" in any_dict),
target_dict_list))
target_dict_list = list(filter(
lambda any_dict:any_dict.pop("stat") if any_dict["name"] == directory else any_dict,
target_dict_list))
return target_dict_list
def drop_dir_info(target_dict_list):
"""drop process"""
min_layer = min(map(
lambda any_dict:any_dict["name"].count("/"),
target_dict_list))
min_dict_list = list(filter(
lambda any_dict:any_dict["name"].count("/") == min_layer,
target_dict_list))
min_dict = min_dict_list[0]
min_dir = min_dict["name"]
drop_list = min_dir.split("/")
drop_dir_list = drop_list[:-2]
drop_dir_list = [] if drop_dir_list == [] else drop_dir_list + [""]
drop_dir_text = ",".join(drop_dir_list)
drop_dir_text = drop_dir_text.replace(",", "/")
temp_dict_list = []
for any_dict in target_dict_list:
any_dict["name"] = any_dict["name"].replace(drop_dir_text, "")
temp_dict_list.append(any_dict)
target_dict_list = temp_dict_list
return target_dict_list
|
class BaseTextOpinionsLinkageInstancesProvider(object):
def iter_instances(self, text_opinion_linkage):
raise NotImplementedError()
@staticmethod
def provide_label(text_opinion_linkage):
return text_opinion_linkage.First.Sentiment
|
class SkyblockProfileMember:
def __init__(self, member_data: dict) -> None:
"""
Parameters
----------
data: dict
The JSON data received from the Hypixel API.
"""
self.COIN_PURSE = member_data["coin_purse"]
self.DEATH_COUNT = member_data["death_count"]
self.FAIRY_SOULS_COLLECTED = member_data.get("fairy_souls_collected")
self.FISHING_TREASURE_COUNT = member_data.get("fishing_treasure_caught")
self.STATS = member_data["stats"]
self.OBJECTIVES = member_data["objectives"]
self.CRAFTED_GENERATORS = member_data.get("crafted_generators")
self.VISITED_ZONES = member_data.get("visited_zones")
self.ACHIEVEMENT_SPAWNED_ISLAND_TYPES = member_data.get(
"achievement_spawned_island_types"
)
self.SLAYER_QUEST = member_data.get("slayer_quest")
self.SLAYER_BOSSES = member_data.get("slayer_bosses")
self.PETS = member_data["pets"]
self.GRIFFIN = member_data["griffin"]
self.UNLOCKED_COLLECTION_TIERS = member_data.get("unlocked_coll_tiers")
self.SKILLS = {
"alchemy": member_data.get("experience_skill_alchemy"),
"farming": member_data.get("experience_skill_farming"),
"taming": member_data.get("experience_skill_taming"),
"enchanting": member_data.get("experience_skill_enchanting"),
"fishing": member_data.get("experience_skill_fishing"),
"foraging": member_data.get("experience_skill_foraging"),
"carpentry": member_data.get("experience_skill_carpentry"),
"runecrafting": member_data.get("experience_skill_runecrafting"),
"combat": member_data.get("experience_skill_combat"),
"mining": member_data.get("experience_skill_mining"),
}
self.COLLECTION = member_data.get("collection")
|
# AC 05
# Nathalia Escarlate - RA 1800179
# Tiberio Cruz - Ra 1800110
#Crie uma função que receba como parâmetro um número natural N e devolva o termial deste valor.
#Obs: crie 5 testes automatizados para a função (casos errados e casos corretos)
def termial(n):
n_termial = 0
for i in range(1,n+1):
n_termial += i
return(n_termial)
def test_termial1():
assert termial(7) == 28
def test_termial2():
assert termial(5) == 15
def test_termial3():
assert termial(88) == 44
def test_termial4():
assert termial(32) == 80
def test_termial5():
assert termial(2) == 2
|
"""
常见的颜色名称
"""
color_dict={
"almond":(239,222,205),
"amaranth":(229,43,80),
"amazon":(59,122,87),
"amber":(255,191,0),
"sae":(255,126,0),
"amethyst":(153,102,204),
"ao":(0,128,0),
"apricot":(251,206,177),
"aqua":(0,255,255),
"aquamarine":(127,255,212),
"arsenic":(59,68,75),
"artichoke":(143,151,121),
"asparagus":(135,169,107),
"auburn":(165,42,42),
"aureolin":(253,238,0),
"aurometalsaurus":(110,127,128),
"avocado":(86,130,3),
"azure":(0,127,255),
"bazaar":(152,119,123),
"beaver":(159,129,112),
"beige":(245,245,220),
"bisque":(255,228,196),
"bistre":(61,43,31),
"bittersweet":(254,111,94),
"black":(0,0,0),
"blond":(250,240,190),
"blue":(0,0,255),
"blueberry":(79,134,247),
"bluebonnet":(28,28,240),
"blush":(222,93,131),
"bole":(121,68,59),
"bone":(227,218,201),
"boysenberry":(135,50,96),
"brass":(181,166,66),
"bronze":(205,127,50),
"brown":(165,42,42),
"bubbles":(231,254,255),
"buff":(240,220,130),
"burgundy":(128,0,32),
"burlywood":(222,184,135),
"byzantine":(189,51,164),
"byzantium":(112,41,99),
"cadet":(83,104,114),
"camel":(193,154,107),
"capri":(0,191,255),
"cardinal":(196,30,58),
"carmine":(150,0,24),
"carnelian":(179,27,27),
"catawba":(112,54,66),
"ceil":(146,161,207),
"celadon":(172,225,175),
"celeste":(178,255,255),
"cerise":(222,49,99),
"cerulean":(0,123,167),
"chamoisee":(160,120,90),
"champagne":(247,231,206),
"charcoal":(54,69,79),
"chartreuse":(127,255,0),
"cherry":(222,49,99),
"chestnut":(149,69,53),
"chocolate":(210,105,30),
"cinereous":(152,129,123),
"cinnabar":(227,66,52),
"cinnamon":(210,105,30),
"citrine":(228,208,10),
"citron":(159,169,31),
"claret":(127,23,52),
"coal":(124,185,232),
"cobalt":(0,71,171),
"coconut":(150,90,62),
"coffee":(111,78,55),
"copper":(184,115,51),
"coquelicot":(255,56,0),
"coral":(255,127,80),
"cordovan":(137,63,69),
"corn":(251,236,93),
"cornsilk":(255,248,220),
"cream":(255,253,208),
"crimson":(220,20,60),
"cyan":(0,255,255),
"daffodil":(255,255,49),
"dandelion":(240,225,48),
"deer":(186,135,89),
"denim":(21,96,189),
"desert":(193,154,107),
"desire":(234,60,83),
"diamond":(185,242,255),
"dirt":(155,118,83),
"drab":(150,113,23),
"ebony":(85,93,80),
"ecru":(194,178,128),
"eggplant":(97,64,81),
"eggshell":(240,234,214),
"emerald":(80,200,120),
"eminence":(108,48,130),
"eucalyptus":(68,215,168),
"fallow":(193,154,107),
"fandango":(181,51,137),
"fawn":(229,170,112),
"feldgrau":(77,93,83),
"feldspar":(253,213,177),
"firebrick":(178,34,34),
"flame":(226,88,34),
"flattery":(107,68,35),
"flavescent":(247,233,142),
"flax":(238,220,130),
"flirt":(162,0,109),
"folly":(255,0,79),
"fuchsia":(255,0,255),
"fulvous":(228,132,0),
"gainsboro":(220,220,220),
"gamboge":(228,155,15),
"ginger":(176,101,0),
"glaucous":(96,130,182),
"glitter":(230,232,250),
"gold":(255,215,0),
"goldenrod":(218,165,32),
"grape":(111,45,168),
"gray":(128,128,128),
"green":(0,255,0),
"grullo":(169,154,134),
"harlequin":(63,255,0),
"heliotrope":(223,115,255),
"honeydew":(240,255,240),
"iceberg":(113,166,210),
"icterine":(252,247,94),
"imperial":(96,47,107),
"inchworm":(178,236,93),
"independence":(76,81,109),
"indigo":(75,0,130),
"iris":(90,79,207),
"irresistible":(179,68,108),
"isabelline":(244,240,236),
"ivory":(255,255,240),
"jade":(0,168,107),
"jasmine":(248,222,126),
"jasper":(215,59,62),
"jet":(52,52,52),
"jonquil":(244,202,22),
"keppel":(58,176,158),
"khaki":(195,176,145),
"kobe":(136,45,23),
"kobi":(231,159,196),
"lava":(207,16,32),
"lavender":(230,230,250),
"lemon":(255,247,0),
"liberty":(84,90,167),
"licorice":(26,17,16),
"lilac":(200,162,200),
"lime":(191,255,0),
"limerick":(157,194,9),
"linen":(250,240,230),
"lion":(193,154,107),
"liver":(103,76,71),
"livid":(102,153,204),
"lumber":(255,228,205),
"lust":(230,32,32),
"magenta":(255,0,255),
"magnolia":(248,244,255),
"mahogany":(192,64,0),
"maize":(251,236,93),
"malachite":(11,218,81),
"manatee":(151,154,170),
"mantis":(116,195,101),
"maroon":(128,0,0),
"mauve":(224,176,255),
"mauvelous":(239,152,170),
"melon":(253,188,180),
"mindaro":(227,249,136),
"mint":(62,180,137),
"moccasin":(250,235,215),
"mulberry":(197,75,140),
"mustard":(255,219,88),
"nyanza":(233,255,219),
"ochre":(204,119,34),
"olive":(128,128,0),
"olivine":(154,185,115),
"onyx":(53,56,57),
"orange":(255,165,0),
"orchid":(218,112,214),
"patriarch":(128,0,128),
"peach":(255,229,180),
"pear":(209,226,49),
"pearl":(234,224,200),
"peridot":(230,226,0),
"periwinkle":(204,204,255),
"persimmon":(236,88,0),
"peru":(205,133,63),
"phlox":(223,0,255),
"pink":(255,192,203),
"pistachio":(147,197,114),
"platinum":(229,228,226),
"plum":(221,160,221),
"popstar":(190,79,98),
"prune":(112,28,28),
"puce":(204,136,153),
"pumpkin":(255,117,24),
"purple":(128,0,128),
"purpureus":(154,78,174),
"quartz":(81,72,79),
"rackley":(93,138,168),
"rajah":(251,171,96),
"raspberry":(227,11,93),
"razzmatazz":(227,37,107),
"red":(255,0,0),
"redwood":(164,90,82),
"regalia":(82,45,128),
"rhythm":(119,118,150),
"rose":(255,0,127),
"rosewood":(101,0,11),
"ruber":(206,70,118),
"ruby":(224,17,95),
"ruddy":(255,0,40),
"rufous":(168,28,7),
"russet":(128,70,27),
"rust":(183,65,14),
"saffron":(244,196,48),
"sage":(188,184,138),
"salmon":(250,128,114),
"sand":(194,178,128),
"sandstorm":(236,213,64),
"sangria":(146,0,10),
"sapphire":(15,82,186),
"scarlet":(255,36,0),
"seashell":(255,245,238),
"sepia":(112,66,20),
"shadow":(138,121,93),
"shampoo":(255,207,241),
"sienna":(136,45,23),
"silver":(192,192,192),
"sinopia":(203,65,11),
"skobeloff":(0,116,116),
"smalt":(0,51,153),
"smitten":(200,65,134),
"smoke":(115,130,118),
"snow":(255,250,250),
"soap":(206,200,239),
"stizza":(153,0,0),
"stormcloud":(79,102,106),
"straw":(228,217,111),
"strawberry":(252,90,141),
"sunglow":(255,204,51),
"sunray":(227,171,87),
"sunset":(250,214,165),
"tan":(210,180,140),
"tangelo":(249,77,0),
"tangerine":(242,133,0),
"taupe":(72,60,50),
"teal":(0,128,128),
"telemagenta":(207,52,118),
"thistle":(216,191,216),
"timberwolf":(219,215,210),
"tomato":(255,99,71),
"toolbox":(116,108,192),
"topaz":(255,200,124),
"tulip":(255,135,141),
"tumbleweed":(222,170,136),
"turquoise":(64,224,208),
"tuscan":(250,214,165),
"tuscany":(192,153,153),
"ube":(136,120,195),
"ultramarine":(18,10,143),
"umber":(99,81,71),
"urobilin":(225,173,33),
"vanilla":(243,229,171),
"verdigris":(67,179,174),
"vermilion":(227,66,52),
"veronica":(160,32,240),
"violet":(143,0,255),
"viridian":(64,130,109),
"waterspout":(164,244,249),
"wenge":(100,84,82),
"wheat":(245,222,179),
"white":(255,255,255),
"wine":(114,47,55),
"wisteria":(201,160,220),
"xanadu":(115,134,120),
"yellow":(255,255,0),
"zaffre":(0,20,168),
"light_blue":(173,216,230),
"light_brown":(181,101,29),
"light_cyan":(224,255,255),
"light_gray":(211,211,211),
"light_green":(144,238,144),
"light_pink":(255,182,193),
"light_yellow":(255,255,224),
}
|
def pattern_occurence(pattern, dna):
list_occurences=[]
k = len(pattern)
for i in range(len(dna)-k+1):
if(dna[i:i+k]==pattern):
list_occurences.append(i)
return list_occurences
def main():
with open('datasets/rosalind_ba1d.txt') as input_file:
pattern, dna = input_file.read().strip().split('\n')
list_occurences = pattern_occurence(pattern, dna)
print(' '.join(list(map(str, list_occurences))))
with open('solutions/rosalind_ba1d.txt', 'w') as output_file:
output_file.write(' '.join(list(map(str, list_occurences))))
if(__name__=='__main__'):
main()
|
# Licensed to the .NET Foundation under one or more agreements.
# The .NET Foundation licenses this file to you under the Apache 2.0 License.
# See the LICENSE file in the project root for more information.
# generated by generate_indicestest.py
def test_indices(self):
def t(i, j, k, l, r):
rr = slice(i, j, k).indices(l)
self.assertEqual(rr, r, "slice({i}, {j}, {k}).indices({l}) != {r}: {rr}".format(i=i, j=j, k=k, l=l, r=r, rr=rr))
t(None, None, None, 0, (0, 0, 1))
t(None, None, None, 1, (0, 1, 1))
t(None, None, None, 5, (0, 5, 1))
t(None, None, None, 10, (0, 10, 1))
t(None, None, None, 100, (0, 100, 1))
t(None, None, None, 2147483647, (0, 2147483647, 1))
t(None, None, None, 9223372036854775808, (0, 9223372036854775808, 1))
t(None, None, -5, 0, (-1, -1, -5))
t(None, None, -5, 1, (0, -1, -5))
t(None, None, -5, 5, (4, -1, -5))
t(None, None, -5, 10, (9, -1, -5))
t(None, None, -5, 100, (99, -1, -5))
t(None, None, -5, 2147483647, (2147483646, -1, -5))
t(None, None, -5, 9223372036854775808, (9223372036854775807, -1, -5))
t(None, None, -3, 0, (-1, -1, -3))
t(None, None, -3, 1, (0, -1, -3))
t(None, None, -3, 5, (4, -1, -3))
t(None, None, -3, 10, (9, -1, -3))
t(None, None, -3, 100, (99, -1, -3))
t(None, None, -3, 2147483647, (2147483646, -1, -3))
t(None, None, -3, 9223372036854775808, (9223372036854775807, -1, -3))
t(None, None, -1, 0, (-1, -1, -1))
t(None, None, -1, 1, (0, -1, -1))
t(None, None, -1, 5, (4, -1, -1))
t(None, None, -1, 10, (9, -1, -1))
t(None, None, -1, 100, (99, -1, -1))
t(None, None, -1, 2147483647, (2147483646, -1, -1))
t(None, None, -1, 9223372036854775808, (9223372036854775807, -1, -1))
t(None, None, 1, 0, (0, 0, 1))
t(None, None, 1, 1, (0, 1, 1))
t(None, None, 1, 5, (0, 5, 1))
t(None, None, 1, 10, (0, 10, 1))
t(None, None, 1, 100, (0, 100, 1))
t(None, None, 1, 2147483647, (0, 2147483647, 1))
t(None, None, 1, 9223372036854775808, (0, 9223372036854775808, 1))
t(None, None, 5, 0, (0, 0, 5))
t(None, None, 5, 1, (0, 1, 5))
t(None, None, 5, 5, (0, 5, 5))
t(None, None, 5, 10, (0, 10, 5))
t(None, None, 5, 100, (0, 100, 5))
t(None, None, 5, 2147483647, (0, 2147483647, 5))
t(None, None, 5, 9223372036854775808, (0, 9223372036854775808, 5))
t(None, None, 20, 0, (0, 0, 20))
t(None, None, 20, 1, (0, 1, 20))
t(None, None, 20, 5, (0, 5, 20))
t(None, None, 20, 10, (0, 10, 20))
t(None, None, 20, 100, (0, 100, 20))
t(None, None, 20, 2147483647, (0, 2147483647, 20))
t(None, None, 20, 9223372036854775808, (0, 9223372036854775808, 20))
t(None, None, 2147483647, 0, (0, 0, 2147483647))
t(None, None, 2147483647, 1, (0, 1, 2147483647))
t(None, None, 2147483647, 5, (0, 5, 2147483647))
t(None, None, 2147483647, 10, (0, 10, 2147483647))
t(None, None, 2147483647, 100, (0, 100, 2147483647))
t(None, None, 2147483647, 2147483647, (0, 2147483647, 2147483647))
t(None, None, 2147483647, 9223372036854775808, (0, 9223372036854775808, 2147483647))
t(None, None, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(None, None, 9223372036854775808, 1, (0, 1, 9223372036854775808))
t(None, None, 9223372036854775808, 5, (0, 5, 9223372036854775808))
t(None, None, 9223372036854775808, 10, (0, 10, 9223372036854775808))
t(None, None, 9223372036854775808, 100, (0, 100, 9223372036854775808))
t(None, None, 9223372036854775808, 2147483647, (0, 2147483647, 9223372036854775808))
t(None, None, 9223372036854775808, 9223372036854775808, (0, 9223372036854775808, 9223372036854775808))
t(None, -7, None, 0, (0, 0, 1))
t(None, -7, None, 1, (0, 0, 1))
t(None, -7, None, 5, (0, 0, 1))
t(None, -7, None, 10, (0, 3, 1))
t(None, -7, None, 100, (0, 93, 1))
t(None, -7, None, 2147483647, (0, 2147483640, 1))
t(None, -7, None, 9223372036854775808, (0, 9223372036854775801, 1))
t(None, -7, -5, 0, (-1, -1, -5))
t(None, -7, -5, 1, (0, -1, -5))
t(None, -7, -5, 5, (4, -1, -5))
t(None, -7, -5, 10, (9, 3, -5))
t(None, -7, -5, 100, (99, 93, -5))
t(None, -7, -5, 2147483647, (2147483646, 2147483640, -5))
t(None, -7, -5, 9223372036854775808, (9223372036854775807, 9223372036854775801, -5))
t(None, -7, -3, 0, (-1, -1, -3))
t(None, -7, -3, 1, (0, -1, -3))
t(None, -7, -3, 5, (4, -1, -3))
t(None, -7, -3, 10, (9, 3, -3))
t(None, -7, -3, 100, (99, 93, -3))
t(None, -7, -3, 2147483647, (2147483646, 2147483640, -3))
t(None, -7, -3, 9223372036854775808, (9223372036854775807, 9223372036854775801, -3))
t(None, -7, -1, 0, (-1, -1, -1))
t(None, -7, -1, 1, (0, -1, -1))
t(None, -7, -1, 5, (4, -1, -1))
t(None, -7, -1, 10, (9, 3, -1))
t(None, -7, -1, 100, (99, 93, -1))
t(None, -7, -1, 2147483647, (2147483646, 2147483640, -1))
t(None, -7, -1, 9223372036854775808, (9223372036854775807, 9223372036854775801, -1))
t(None, -7, 1, 0, (0, 0, 1))
t(None, -7, 1, 1, (0, 0, 1))
t(None, -7, 1, 5, (0, 0, 1))
t(None, -7, 1, 10, (0, 3, 1))
t(None, -7, 1, 100, (0, 93, 1))
t(None, -7, 1, 2147483647, (0, 2147483640, 1))
t(None, -7, 1, 9223372036854775808, (0, 9223372036854775801, 1))
t(None, -7, 5, 0, (0, 0, 5))
t(None, -7, 5, 1, (0, 0, 5))
t(None, -7, 5, 5, (0, 0, 5))
t(None, -7, 5, 10, (0, 3, 5))
t(None, -7, 5, 100, (0, 93, 5))
t(None, -7, 5, 2147483647, (0, 2147483640, 5))
t(None, -7, 5, 9223372036854775808, (0, 9223372036854775801, 5))
t(None, -7, 20, 0, (0, 0, 20))
t(None, -7, 20, 1, (0, 0, 20))
t(None, -7, 20, 5, (0, 0, 20))
t(None, -7, 20, 10, (0, 3, 20))
t(None, -7, 20, 100, (0, 93, 20))
t(None, -7, 20, 2147483647, (0, 2147483640, 20))
t(None, -7, 20, 9223372036854775808, (0, 9223372036854775801, 20))
t(None, -7, 2147483647, 0, (0, 0, 2147483647))
t(None, -7, 2147483647, 1, (0, 0, 2147483647))
t(None, -7, 2147483647, 5, (0, 0, 2147483647))
t(None, -7, 2147483647, 10, (0, 3, 2147483647))
t(None, -7, 2147483647, 100, (0, 93, 2147483647))
t(None, -7, 2147483647, 2147483647, (0, 2147483640, 2147483647))
t(None, -7, 2147483647, 9223372036854775808, (0, 9223372036854775801, 2147483647))
t(None, -7, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(None, -7, 9223372036854775808, 1, (0, 0, 9223372036854775808))
t(None, -7, 9223372036854775808, 5, (0, 0, 9223372036854775808))
t(None, -7, 9223372036854775808, 10, (0, 3, 9223372036854775808))
t(None, -7, 9223372036854775808, 100, (0, 93, 9223372036854775808))
t(None, -7, 9223372036854775808, 2147483647, (0, 2147483640, 9223372036854775808))
t(None, -7, 9223372036854775808, 9223372036854775808, (0, 9223372036854775801, 9223372036854775808))
t(None, -2, None, 0, (0, 0, 1))
t(None, -2, None, 1, (0, 0, 1))
t(None, -2, None, 5, (0, 3, 1))
t(None, -2, None, 10, (0, 8, 1))
t(None, -2, None, 100, (0, 98, 1))
t(None, -2, None, 2147483647, (0, 2147483645, 1))
t(None, -2, None, 9223372036854775808, (0, 9223372036854775806, 1))
t(None, -2, -5, 0, (-1, -1, -5))
t(None, -2, -5, 1, (0, -1, -5))
t(None, -2, -5, 5, (4, 3, -5))
t(None, -2, -5, 10, (9, 8, -5))
t(None, -2, -5, 100, (99, 98, -5))
t(None, -2, -5, 2147483647, (2147483646, 2147483645, -5))
t(None, -2, -5, 9223372036854775808, (9223372036854775807, 9223372036854775806, -5))
t(None, -2, -3, 0, (-1, -1, -3))
t(None, -2, -3, 1, (0, -1, -3))
t(None, -2, -3, 5, (4, 3, -3))
t(None, -2, -3, 10, (9, 8, -3))
t(None, -2, -3, 100, (99, 98, -3))
t(None, -2, -3, 2147483647, (2147483646, 2147483645, -3))
t(None, -2, -3, 9223372036854775808, (9223372036854775807, 9223372036854775806, -3))
t(None, -2, -1, 0, (-1, -1, -1))
t(None, -2, -1, 1, (0, -1, -1))
t(None, -2, -1, 5, (4, 3, -1))
t(None, -2, -1, 10, (9, 8, -1))
t(None, -2, -1, 100, (99, 98, -1))
t(None, -2, -1, 2147483647, (2147483646, 2147483645, -1))
t(None, -2, -1, 9223372036854775808, (9223372036854775807, 9223372036854775806, -1))
t(None, -2, 1, 0, (0, 0, 1))
t(None, -2, 1, 1, (0, 0, 1))
t(None, -2, 1, 5, (0, 3, 1))
t(None, -2, 1, 10, (0, 8, 1))
t(None, -2, 1, 100, (0, 98, 1))
t(None, -2, 1, 2147483647, (0, 2147483645, 1))
t(None, -2, 1, 9223372036854775808, (0, 9223372036854775806, 1))
t(None, -2, 5, 0, (0, 0, 5))
t(None, -2, 5, 1, (0, 0, 5))
t(None, -2, 5, 5, (0, 3, 5))
t(None, -2, 5, 10, (0, 8, 5))
t(None, -2, 5, 100, (0, 98, 5))
t(None, -2, 5, 2147483647, (0, 2147483645, 5))
t(None, -2, 5, 9223372036854775808, (0, 9223372036854775806, 5))
t(None, -2, 20, 0, (0, 0, 20))
t(None, -2, 20, 1, (0, 0, 20))
t(None, -2, 20, 5, (0, 3, 20))
t(None, -2, 20, 10, (0, 8, 20))
t(None, -2, 20, 100, (0, 98, 20))
t(None, -2, 20, 2147483647, (0, 2147483645, 20))
t(None, -2, 20, 9223372036854775808, (0, 9223372036854775806, 20))
t(None, -2, 2147483647, 0, (0, 0, 2147483647))
t(None, -2, 2147483647, 1, (0, 0, 2147483647))
t(None, -2, 2147483647, 5, (0, 3, 2147483647))
t(None, -2, 2147483647, 10, (0, 8, 2147483647))
t(None, -2, 2147483647, 100, (0, 98, 2147483647))
t(None, -2, 2147483647, 2147483647, (0, 2147483645, 2147483647))
t(None, -2, 2147483647, 9223372036854775808, (0, 9223372036854775806, 2147483647))
t(None, -2, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(None, -2, 9223372036854775808, 1, (0, 0, 9223372036854775808))
t(None, -2, 9223372036854775808, 5, (0, 3, 9223372036854775808))
t(None, -2, 9223372036854775808, 10, (0, 8, 9223372036854775808))
t(None, -2, 9223372036854775808, 100, (0, 98, 9223372036854775808))
t(None, -2, 9223372036854775808, 2147483647, (0, 2147483645, 9223372036854775808))
t(None, -2, 9223372036854775808, 9223372036854775808, (0, 9223372036854775806, 9223372036854775808))
t(None, 0, None, 0, (0, 0, 1))
t(None, 0, None, 1, (0, 0, 1))
t(None, 0, None, 5, (0, 0, 1))
t(None, 0, None, 10, (0, 0, 1))
t(None, 0, None, 100, (0, 0, 1))
t(None, 0, None, 2147483647, (0, 0, 1))
t(None, 0, None, 9223372036854775808, (0, 0, 1))
t(None, 0, -5, 0, (-1, -1, -5))
t(None, 0, -5, 1, (0, 0, -5))
t(None, 0, -5, 5, (4, 0, -5))
t(None, 0, -5, 10, (9, 0, -5))
t(None, 0, -5, 100, (99, 0, -5))
t(None, 0, -5, 2147483647, (2147483646, 0, -5))
t(None, 0, -5, 9223372036854775808, (9223372036854775807, 0, -5))
t(None, 0, -3, 0, (-1, -1, -3))
t(None, 0, -3, 1, (0, 0, -3))
t(None, 0, -3, 5, (4, 0, -3))
t(None, 0, -3, 10, (9, 0, -3))
t(None, 0, -3, 100, (99, 0, -3))
t(None, 0, -3, 2147483647, (2147483646, 0, -3))
t(None, 0, -3, 9223372036854775808, (9223372036854775807, 0, -3))
t(None, 0, -1, 0, (-1, -1, -1))
t(None, 0, -1, 1, (0, 0, -1))
t(None, 0, -1, 5, (4, 0, -1))
t(None, 0, -1, 10, (9, 0, -1))
t(None, 0, -1, 100, (99, 0, -1))
t(None, 0, -1, 2147483647, (2147483646, 0, -1))
t(None, 0, -1, 9223372036854775808, (9223372036854775807, 0, -1))
t(None, 0, 1, 0, (0, 0, 1))
t(None, 0, 1, 1, (0, 0, 1))
t(None, 0, 1, 5, (0, 0, 1))
t(None, 0, 1, 10, (0, 0, 1))
t(None, 0, 1, 100, (0, 0, 1))
t(None, 0, 1, 2147483647, (0, 0, 1))
t(None, 0, 1, 9223372036854775808, (0, 0, 1))
t(None, 0, 5, 0, (0, 0, 5))
t(None, 0, 5, 1, (0, 0, 5))
t(None, 0, 5, 5, (0, 0, 5))
t(None, 0, 5, 10, (0, 0, 5))
t(None, 0, 5, 100, (0, 0, 5))
t(None, 0, 5, 2147483647, (0, 0, 5))
t(None, 0, 5, 9223372036854775808, (0, 0, 5))
t(None, 0, 20, 0, (0, 0, 20))
t(None, 0, 20, 1, (0, 0, 20))
t(None, 0, 20, 5, (0, 0, 20))
t(None, 0, 20, 10, (0, 0, 20))
t(None, 0, 20, 100, (0, 0, 20))
t(None, 0, 20, 2147483647, (0, 0, 20))
t(None, 0, 20, 9223372036854775808, (0, 0, 20))
t(None, 0, 2147483647, 0, (0, 0, 2147483647))
t(None, 0, 2147483647, 1, (0, 0, 2147483647))
t(None, 0, 2147483647, 5, (0, 0, 2147483647))
t(None, 0, 2147483647, 10, (0, 0, 2147483647))
t(None, 0, 2147483647, 100, (0, 0, 2147483647))
t(None, 0, 2147483647, 2147483647, (0, 0, 2147483647))
t(None, 0, 2147483647, 9223372036854775808, (0, 0, 2147483647))
t(None, 0, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(None, 0, 9223372036854775808, 1, (0, 0, 9223372036854775808))
t(None, 0, 9223372036854775808, 5, (0, 0, 9223372036854775808))
t(None, 0, 9223372036854775808, 10, (0, 0, 9223372036854775808))
t(None, 0, 9223372036854775808, 100, (0, 0, 9223372036854775808))
t(None, 0, 9223372036854775808, 2147483647, (0, 0, 9223372036854775808))
t(None, 0, 9223372036854775808, 9223372036854775808, (0, 0, 9223372036854775808))
t(None, 1, None, 0, (0, 0, 1))
t(None, 1, None, 1, (0, 1, 1))
t(None, 1, None, 5, (0, 1, 1))
t(None, 1, None, 10, (0, 1, 1))
t(None, 1, None, 100, (0, 1, 1))
t(None, 1, None, 2147483647, (0, 1, 1))
t(None, 1, None, 9223372036854775808, (0, 1, 1))
t(None, 1, -5, 0, (-1, -1, -5))
t(None, 1, -5, 1, (0, 0, -5))
t(None, 1, -5, 5, (4, 1, -5))
t(None, 1, -5, 10, (9, 1, -5))
t(None, 1, -5, 100, (99, 1, -5))
t(None, 1, -5, 2147483647, (2147483646, 1, -5))
t(None, 1, -5, 9223372036854775808, (9223372036854775807, 1, -5))
t(None, 1, -3, 0, (-1, -1, -3))
t(None, 1, -3, 1, (0, 0, -3))
t(None, 1, -3, 5, (4, 1, -3))
t(None, 1, -3, 10, (9, 1, -3))
t(None, 1, -3, 100, (99, 1, -3))
t(None, 1, -3, 2147483647, (2147483646, 1, -3))
t(None, 1, -3, 9223372036854775808, (9223372036854775807, 1, -3))
t(None, 1, -1, 0, (-1, -1, -1))
t(None, 1, -1, 1, (0, 0, -1))
t(None, 1, -1, 5, (4, 1, -1))
t(None, 1, -1, 10, (9, 1, -1))
t(None, 1, -1, 100, (99, 1, -1))
t(None, 1, -1, 2147483647, (2147483646, 1, -1))
t(None, 1, -1, 9223372036854775808, (9223372036854775807, 1, -1))
t(None, 1, 1, 0, (0, 0, 1))
t(None, 1, 1, 1, (0, 1, 1))
t(None, 1, 1, 5, (0, 1, 1))
t(None, 1, 1, 10, (0, 1, 1))
t(None, 1, 1, 100, (0, 1, 1))
t(None, 1, 1, 2147483647, (0, 1, 1))
t(None, 1, 1, 9223372036854775808, (0, 1, 1))
t(None, 1, 5, 0, (0, 0, 5))
t(None, 1, 5, 1, (0, 1, 5))
t(None, 1, 5, 5, (0, 1, 5))
t(None, 1, 5, 10, (0, 1, 5))
t(None, 1, 5, 100, (0, 1, 5))
t(None, 1, 5, 2147483647, (0, 1, 5))
t(None, 1, 5, 9223372036854775808, (0, 1, 5))
t(None, 1, 20, 0, (0, 0, 20))
t(None, 1, 20, 1, (0, 1, 20))
t(None, 1, 20, 5, (0, 1, 20))
t(None, 1, 20, 10, (0, 1, 20))
t(None, 1, 20, 100, (0, 1, 20))
t(None, 1, 20, 2147483647, (0, 1, 20))
t(None, 1, 20, 9223372036854775808, (0, 1, 20))
t(None, 1, 2147483647, 0, (0, 0, 2147483647))
t(None, 1, 2147483647, 1, (0, 1, 2147483647))
t(None, 1, 2147483647, 5, (0, 1, 2147483647))
t(None, 1, 2147483647, 10, (0, 1, 2147483647))
t(None, 1, 2147483647, 100, (0, 1, 2147483647))
t(None, 1, 2147483647, 2147483647, (0, 1, 2147483647))
t(None, 1, 2147483647, 9223372036854775808, (0, 1, 2147483647))
t(None, 1, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(None, 1, 9223372036854775808, 1, (0, 1, 9223372036854775808))
t(None, 1, 9223372036854775808, 5, (0, 1, 9223372036854775808))
t(None, 1, 9223372036854775808, 10, (0, 1, 9223372036854775808))
t(None, 1, 9223372036854775808, 100, (0, 1, 9223372036854775808))
t(None, 1, 9223372036854775808, 2147483647, (0, 1, 9223372036854775808))
t(None, 1, 9223372036854775808, 9223372036854775808, (0, 1, 9223372036854775808))
t(None, 6, None, 0, (0, 0, 1))
t(None, 6, None, 1, (0, 1, 1))
t(None, 6, None, 5, (0, 5, 1))
t(None, 6, None, 10, (0, 6, 1))
t(None, 6, None, 100, (0, 6, 1))
t(None, 6, None, 2147483647, (0, 6, 1))
t(None, 6, None, 9223372036854775808, (0, 6, 1))
t(None, 6, -5, 0, (-1, -1, -5))
t(None, 6, -5, 1, (0, 0, -5))
t(None, 6, -5, 5, (4, 4, -5))
t(None, 6, -5, 10, (9, 6, -5))
t(None, 6, -5, 100, (99, 6, -5))
t(None, 6, -5, 2147483647, (2147483646, 6, -5))
t(None, 6, -5, 9223372036854775808, (9223372036854775807, 6, -5))
t(None, 6, -3, 0, (-1, -1, -3))
t(None, 6, -3, 1, (0, 0, -3))
t(None, 6, -3, 5, (4, 4, -3))
t(None, 6, -3, 10, (9, 6, -3))
t(None, 6, -3, 100, (99, 6, -3))
t(None, 6, -3, 2147483647, (2147483646, 6, -3))
t(None, 6, -3, 9223372036854775808, (9223372036854775807, 6, -3))
t(None, 6, -1, 0, (-1, -1, -1))
t(None, 6, -1, 1, (0, 0, -1))
t(None, 6, -1, 5, (4, 4, -1))
t(None, 6, -1, 10, (9, 6, -1))
t(None, 6, -1, 100, (99, 6, -1))
t(None, 6, -1, 2147483647, (2147483646, 6, -1))
t(None, 6, -1, 9223372036854775808, (9223372036854775807, 6, -1))
t(None, 6, 1, 0, (0, 0, 1))
t(None, 6, 1, 1, (0, 1, 1))
t(None, 6, 1, 5, (0, 5, 1))
t(None, 6, 1, 10, (0, 6, 1))
t(None, 6, 1, 100, (0, 6, 1))
t(None, 6, 1, 2147483647, (0, 6, 1))
t(None, 6, 1, 9223372036854775808, (0, 6, 1))
t(None, 6, 5, 0, (0, 0, 5))
t(None, 6, 5, 1, (0, 1, 5))
t(None, 6, 5, 5, (0, 5, 5))
t(None, 6, 5, 10, (0, 6, 5))
t(None, 6, 5, 100, (0, 6, 5))
t(None, 6, 5, 2147483647, (0, 6, 5))
t(None, 6, 5, 9223372036854775808, (0, 6, 5))
t(None, 6, 20, 0, (0, 0, 20))
t(None, 6, 20, 1, (0, 1, 20))
t(None, 6, 20, 5, (0, 5, 20))
t(None, 6, 20, 10, (0, 6, 20))
t(None, 6, 20, 100, (0, 6, 20))
t(None, 6, 20, 2147483647, (0, 6, 20))
t(None, 6, 20, 9223372036854775808, (0, 6, 20))
t(None, 6, 2147483647, 0, (0, 0, 2147483647))
t(None, 6, 2147483647, 1, (0, 1, 2147483647))
t(None, 6, 2147483647, 5, (0, 5, 2147483647))
t(None, 6, 2147483647, 10, (0, 6, 2147483647))
t(None, 6, 2147483647, 100, (0, 6, 2147483647))
t(None, 6, 2147483647, 2147483647, (0, 6, 2147483647))
t(None, 6, 2147483647, 9223372036854775808, (0, 6, 2147483647))
t(None, 6, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(None, 6, 9223372036854775808, 1, (0, 1, 9223372036854775808))
t(None, 6, 9223372036854775808, 5, (0, 5, 9223372036854775808))
t(None, 6, 9223372036854775808, 10, (0, 6, 9223372036854775808))
t(None, 6, 9223372036854775808, 100, (0, 6, 9223372036854775808))
t(None, 6, 9223372036854775808, 2147483647, (0, 6, 9223372036854775808))
t(None, 6, 9223372036854775808, 9223372036854775808, (0, 6, 9223372036854775808))
t(None, 10, None, 0, (0, 0, 1))
t(None, 10, None, 1, (0, 1, 1))
t(None, 10, None, 5, (0, 5, 1))
t(None, 10, None, 10, (0, 10, 1))
t(None, 10, None, 100, (0, 10, 1))
t(None, 10, None, 2147483647, (0, 10, 1))
t(None, 10, None, 9223372036854775808, (0, 10, 1))
t(None, 10, -5, 0, (-1, -1, -5))
t(None, 10, -5, 1, (0, 0, -5))
t(None, 10, -5, 5, (4, 4, -5))
t(None, 10, -5, 10, (9, 9, -5))
t(None, 10, -5, 100, (99, 10, -5))
t(None, 10, -5, 2147483647, (2147483646, 10, -5))
t(None, 10, -5, 9223372036854775808, (9223372036854775807, 10, -5))
t(None, 10, -3, 0, (-1, -1, -3))
t(None, 10, -3, 1, (0, 0, -3))
t(None, 10, -3, 5, (4, 4, -3))
t(None, 10, -3, 10, (9, 9, -3))
t(None, 10, -3, 100, (99, 10, -3))
t(None, 10, -3, 2147483647, (2147483646, 10, -3))
t(None, 10, -3, 9223372036854775808, (9223372036854775807, 10, -3))
t(None, 10, -1, 0, (-1, -1, -1))
t(None, 10, -1, 1, (0, 0, -1))
t(None, 10, -1, 5, (4, 4, -1))
t(None, 10, -1, 10, (9, 9, -1))
t(None, 10, -1, 100, (99, 10, -1))
t(None, 10, -1, 2147483647, (2147483646, 10, -1))
t(None, 10, -1, 9223372036854775808, (9223372036854775807, 10, -1))
t(None, 10, 1, 0, (0, 0, 1))
t(None, 10, 1, 1, (0, 1, 1))
t(None, 10, 1, 5, (0, 5, 1))
t(None, 10, 1, 10, (0, 10, 1))
t(None, 10, 1, 100, (0, 10, 1))
t(None, 10, 1, 2147483647, (0, 10, 1))
t(None, 10, 1, 9223372036854775808, (0, 10, 1))
t(None, 10, 5, 0, (0, 0, 5))
t(None, 10, 5, 1, (0, 1, 5))
t(None, 10, 5, 5, (0, 5, 5))
t(None, 10, 5, 10, (0, 10, 5))
t(None, 10, 5, 100, (0, 10, 5))
t(None, 10, 5, 2147483647, (0, 10, 5))
t(None, 10, 5, 9223372036854775808, (0, 10, 5))
t(None, 10, 20, 0, (0, 0, 20))
t(None, 10, 20, 1, (0, 1, 20))
t(None, 10, 20, 5, (0, 5, 20))
t(None, 10, 20, 10, (0, 10, 20))
t(None, 10, 20, 100, (0, 10, 20))
t(None, 10, 20, 2147483647, (0, 10, 20))
t(None, 10, 20, 9223372036854775808, (0, 10, 20))
t(None, 10, 2147483647, 0, (0, 0, 2147483647))
t(None, 10, 2147483647, 1, (0, 1, 2147483647))
t(None, 10, 2147483647, 5, (0, 5, 2147483647))
t(None, 10, 2147483647, 10, (0, 10, 2147483647))
t(None, 10, 2147483647, 100, (0, 10, 2147483647))
t(None, 10, 2147483647, 2147483647, (0, 10, 2147483647))
t(None, 10, 2147483647, 9223372036854775808, (0, 10, 2147483647))
t(None, 10, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(None, 10, 9223372036854775808, 1, (0, 1, 9223372036854775808))
t(None, 10, 9223372036854775808, 5, (0, 5, 9223372036854775808))
t(None, 10, 9223372036854775808, 10, (0, 10, 9223372036854775808))
t(None, 10, 9223372036854775808, 100, (0, 10, 9223372036854775808))
t(None, 10, 9223372036854775808, 2147483647, (0, 10, 9223372036854775808))
t(None, 10, 9223372036854775808, 9223372036854775808, (0, 10, 9223372036854775808))
t(None, 2147483647, None, 0, (0, 0, 1))
t(None, 2147483647, None, 1, (0, 1, 1))
t(None, 2147483647, None, 5, (0, 5, 1))
t(None, 2147483647, None, 10, (0, 10, 1))
t(None, 2147483647, None, 100, (0, 100, 1))
t(None, 2147483647, None, 2147483647, (0, 2147483647, 1))
t(None, 2147483647, None, 9223372036854775808, (0, 2147483647, 1))
t(None, 2147483647, -5, 0, (-1, -1, -5))
t(None, 2147483647, -5, 1, (0, 0, -5))
t(None, 2147483647, -5, 5, (4, 4, -5))
t(None, 2147483647, -5, 10, (9, 9, -5))
t(None, 2147483647, -5, 100, (99, 99, -5))
t(None, 2147483647, -5, 2147483647, (2147483646, 2147483646, -5))
t(None, 2147483647, -5, 9223372036854775808, (9223372036854775807, 2147483647, -5))
t(None, 2147483647, -3, 0, (-1, -1, -3))
t(None, 2147483647, -3, 1, (0, 0, -3))
t(None, 2147483647, -3, 5, (4, 4, -3))
t(None, 2147483647, -3, 10, (9, 9, -3))
t(None, 2147483647, -3, 100, (99, 99, -3))
t(None, 2147483647, -3, 2147483647, (2147483646, 2147483646, -3))
t(None, 2147483647, -3, 9223372036854775808, (9223372036854775807, 2147483647, -3))
t(None, 2147483647, -1, 0, (-1, -1, -1))
t(None, 2147483647, -1, 1, (0, 0, -1))
t(None, 2147483647, -1, 5, (4, 4, -1))
t(None, 2147483647, -1, 10, (9, 9, -1))
t(None, 2147483647, -1, 100, (99, 99, -1))
t(None, 2147483647, -1, 2147483647, (2147483646, 2147483646, -1))
t(None, 2147483647, -1, 9223372036854775808, (9223372036854775807, 2147483647, -1))
t(None, 2147483647, 1, 0, (0, 0, 1))
t(None, 2147483647, 1, 1, (0, 1, 1))
t(None, 2147483647, 1, 5, (0, 5, 1))
t(None, 2147483647, 1, 10, (0, 10, 1))
t(None, 2147483647, 1, 100, (0, 100, 1))
t(None, 2147483647, 1, 2147483647, (0, 2147483647, 1))
t(None, 2147483647, 1, 9223372036854775808, (0, 2147483647, 1))
t(None, 2147483647, 5, 0, (0, 0, 5))
t(None, 2147483647, 5, 1, (0, 1, 5))
t(None, 2147483647, 5, 5, (0, 5, 5))
t(None, 2147483647, 5, 10, (0, 10, 5))
t(None, 2147483647, 5, 100, (0, 100, 5))
t(None, 2147483647, 5, 2147483647, (0, 2147483647, 5))
t(None, 2147483647, 5, 9223372036854775808, (0, 2147483647, 5))
t(None, 2147483647, 20, 0, (0, 0, 20))
t(None, 2147483647, 20, 1, (0, 1, 20))
t(None, 2147483647, 20, 5, (0, 5, 20))
t(None, 2147483647, 20, 10, (0, 10, 20))
t(None, 2147483647, 20, 100, (0, 100, 20))
t(None, 2147483647, 20, 2147483647, (0, 2147483647, 20))
t(None, 2147483647, 20, 9223372036854775808, (0, 2147483647, 20))
t(None, 2147483647, 2147483647, 0, (0, 0, 2147483647))
t(None, 2147483647, 2147483647, 1, (0, 1, 2147483647))
t(None, 2147483647, 2147483647, 5, (0, 5, 2147483647))
t(None, 2147483647, 2147483647, 10, (0, 10, 2147483647))
t(None, 2147483647, 2147483647, 100, (0, 100, 2147483647))
t(None, 2147483647, 2147483647, 2147483647, (0, 2147483647, 2147483647))
t(None, 2147483647, 2147483647, 9223372036854775808, (0, 2147483647, 2147483647))
t(None, 2147483647, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(None, 2147483647, 9223372036854775808, 1, (0, 1, 9223372036854775808))
t(None, 2147483647, 9223372036854775808, 5, (0, 5, 9223372036854775808))
t(None, 2147483647, 9223372036854775808, 10, (0, 10, 9223372036854775808))
t(None, 2147483647, 9223372036854775808, 100, (0, 100, 9223372036854775808))
t(None, 2147483647, 9223372036854775808, 2147483647, (0, 2147483647, 9223372036854775808))
t(None, 2147483647, 9223372036854775808, 9223372036854775808, (0, 2147483647, 9223372036854775808))
t(None, 9223372036854775808, None, 0, (0, 0, 1))
t(None, 9223372036854775808, None, 1, (0, 1, 1))
t(None, 9223372036854775808, None, 5, (0, 5, 1))
t(None, 9223372036854775808, None, 10, (0, 10, 1))
t(None, 9223372036854775808, None, 100, (0, 100, 1))
t(None, 9223372036854775808, None, 2147483647, (0, 2147483647, 1))
t(None, 9223372036854775808, None, 9223372036854775808, (0, 9223372036854775808, 1))
t(None, 9223372036854775808, -5, 0, (-1, -1, -5))
t(None, 9223372036854775808, -5, 1, (0, 0, -5))
t(None, 9223372036854775808, -5, 5, (4, 4, -5))
t(None, 9223372036854775808, -5, 10, (9, 9, -5))
t(None, 9223372036854775808, -5, 100, (99, 99, -5))
t(None, 9223372036854775808, -5, 2147483647, (2147483646, 2147483646, -5))
t(None, 9223372036854775808, -5, 9223372036854775808, (9223372036854775807, 9223372036854775807, -5))
t(None, 9223372036854775808, -3, 0, (-1, -1, -3))
t(None, 9223372036854775808, -3, 1, (0, 0, -3))
t(None, 9223372036854775808, -3, 5, (4, 4, -3))
t(None, 9223372036854775808, -3, 10, (9, 9, -3))
t(None, 9223372036854775808, -3, 100, (99, 99, -3))
t(None, 9223372036854775808, -3, 2147483647, (2147483646, 2147483646, -3))
t(None, 9223372036854775808, -3, 9223372036854775808, (9223372036854775807, 9223372036854775807, -3))
t(None, 9223372036854775808, -1, 0, (-1, -1, -1))
t(None, 9223372036854775808, -1, 1, (0, 0, -1))
t(None, 9223372036854775808, -1, 5, (4, 4, -1))
t(None, 9223372036854775808, -1, 10, (9, 9, -1))
t(None, 9223372036854775808, -1, 100, (99, 99, -1))
t(None, 9223372036854775808, -1, 2147483647, (2147483646, 2147483646, -1))
t(None, 9223372036854775808, -1, 9223372036854775808, (9223372036854775807, 9223372036854775807, -1))
t(None, 9223372036854775808, 1, 0, (0, 0, 1))
t(None, 9223372036854775808, 1, 1, (0, 1, 1))
t(None, 9223372036854775808, 1, 5, (0, 5, 1))
t(None, 9223372036854775808, 1, 10, (0, 10, 1))
t(None, 9223372036854775808, 1, 100, (0, 100, 1))
t(None, 9223372036854775808, 1, 2147483647, (0, 2147483647, 1))
t(None, 9223372036854775808, 1, 9223372036854775808, (0, 9223372036854775808, 1))
t(None, 9223372036854775808, 5, 0, (0, 0, 5))
t(None, 9223372036854775808, 5, 1, (0, 1, 5))
t(None, 9223372036854775808, 5, 5, (0, 5, 5))
t(None, 9223372036854775808, 5, 10, (0, 10, 5))
t(None, 9223372036854775808, 5, 100, (0, 100, 5))
t(None, 9223372036854775808, 5, 2147483647, (0, 2147483647, 5))
t(None, 9223372036854775808, 5, 9223372036854775808, (0, 9223372036854775808, 5))
t(None, 9223372036854775808, 20, 0, (0, 0, 20))
t(None, 9223372036854775808, 20, 1, (0, 1, 20))
t(None, 9223372036854775808, 20, 5, (0, 5, 20))
t(None, 9223372036854775808, 20, 10, (0, 10, 20))
t(None, 9223372036854775808, 20, 100, (0, 100, 20))
t(None, 9223372036854775808, 20, 2147483647, (0, 2147483647, 20))
t(None, 9223372036854775808, 20, 9223372036854775808, (0, 9223372036854775808, 20))
t(None, 9223372036854775808, 2147483647, 0, (0, 0, 2147483647))
t(None, 9223372036854775808, 2147483647, 1, (0, 1, 2147483647))
t(None, 9223372036854775808, 2147483647, 5, (0, 5, 2147483647))
t(None, 9223372036854775808, 2147483647, 10, (0, 10, 2147483647))
t(None, 9223372036854775808, 2147483647, 100, (0, 100, 2147483647))
t(None, 9223372036854775808, 2147483647, 2147483647, (0, 2147483647, 2147483647))
t(None, 9223372036854775808, 2147483647, 9223372036854775808, (0, 9223372036854775808, 2147483647))
t(None, 9223372036854775808, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(None, 9223372036854775808, 9223372036854775808, 1, (0, 1, 9223372036854775808))
t(None, 9223372036854775808, 9223372036854775808, 5, (0, 5, 9223372036854775808))
t(None, 9223372036854775808, 9223372036854775808, 10, (0, 10, 9223372036854775808))
t(None, 9223372036854775808, 9223372036854775808, 100, (0, 100, 9223372036854775808))
t(None, 9223372036854775808, 9223372036854775808, 2147483647, (0, 2147483647, 9223372036854775808))
t(None, 9223372036854775808, 9223372036854775808, 9223372036854775808, (0, 9223372036854775808, 9223372036854775808))
t(-7, None, None, 0, (0, 0, 1))
t(-7, None, None, 1, (0, 1, 1))
t(-7, None, None, 5, (0, 5, 1))
t(-7, None, None, 10, (3, 10, 1))
t(-7, None, None, 100, (93, 100, 1))
t(-7, None, None, 2147483647, (2147483640, 2147483647, 1))
t(-7, None, None, 9223372036854775808, (9223372036854775801, 9223372036854775808, 1))
t(-7, None, -5, 0, (-1, -1, -5))
t(-7, None, -5, 1, (-1, -1, -5))
t(-7, None, -5, 5, (-1, -1, -5))
t(-7, None, -5, 10, (3, -1, -5))
t(-7, None, -5, 100, (93, -1, -5))
t(-7, None, -5, 2147483647, (2147483640, -1, -5))
t(-7, None, -5, 9223372036854775808, (9223372036854775801, -1, -5))
t(-7, None, -3, 0, (-1, -1, -3))
t(-7, None, -3, 1, (-1, -1, -3))
t(-7, None, -3, 5, (-1, -1, -3))
t(-7, None, -3, 10, (3, -1, -3))
t(-7, None, -3, 100, (93, -1, -3))
t(-7, None, -3, 2147483647, (2147483640, -1, -3))
t(-7, None, -3, 9223372036854775808, (9223372036854775801, -1, -3))
t(-7, None, -1, 0, (-1, -1, -1))
t(-7, None, -1, 1, (-1, -1, -1))
t(-7, None, -1, 5, (-1, -1, -1))
t(-7, None, -1, 10, (3, -1, -1))
t(-7, None, -1, 100, (93, -1, -1))
t(-7, None, -1, 2147483647, (2147483640, -1, -1))
t(-7, None, -1, 9223372036854775808, (9223372036854775801, -1, -1))
t(-7, None, 1, 0, (0, 0, 1))
t(-7, None, 1, 1, (0, 1, 1))
t(-7, None, 1, 5, (0, 5, 1))
t(-7, None, 1, 10, (3, 10, 1))
t(-7, None, 1, 100, (93, 100, 1))
t(-7, None, 1, 2147483647, (2147483640, 2147483647, 1))
t(-7, None, 1, 9223372036854775808, (9223372036854775801, 9223372036854775808, 1))
t(-7, None, 5, 0, (0, 0, 5))
t(-7, None, 5, 1, (0, 1, 5))
t(-7, None, 5, 5, (0, 5, 5))
t(-7, None, 5, 10, (3, 10, 5))
t(-7, None, 5, 100, (93, 100, 5))
t(-7, None, 5, 2147483647, (2147483640, 2147483647, 5))
t(-7, None, 5, 9223372036854775808, (9223372036854775801, 9223372036854775808, 5))
t(-7, None, 20, 0, (0, 0, 20))
t(-7, None, 20, 1, (0, 1, 20))
t(-7, None, 20, 5, (0, 5, 20))
t(-7, None, 20, 10, (3, 10, 20))
t(-7, None, 20, 100, (93, 100, 20))
t(-7, None, 20, 2147483647, (2147483640, 2147483647, 20))
t(-7, None, 20, 9223372036854775808, (9223372036854775801, 9223372036854775808, 20))
t(-7, None, 2147483647, 0, (0, 0, 2147483647))
t(-7, None, 2147483647, 1, (0, 1, 2147483647))
t(-7, None, 2147483647, 5, (0, 5, 2147483647))
t(-7, None, 2147483647, 10, (3, 10, 2147483647))
t(-7, None, 2147483647, 100, (93, 100, 2147483647))
t(-7, None, 2147483647, 2147483647, (2147483640, 2147483647, 2147483647))
t(-7, None, 2147483647, 9223372036854775808, (9223372036854775801, 9223372036854775808, 2147483647))
t(-7, None, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(-7, None, 9223372036854775808, 1, (0, 1, 9223372036854775808))
t(-7, None, 9223372036854775808, 5, (0, 5, 9223372036854775808))
t(-7, None, 9223372036854775808, 10, (3, 10, 9223372036854775808))
t(-7, None, 9223372036854775808, 100, (93, 100, 9223372036854775808))
t(-7, None, 9223372036854775808, 2147483647, (2147483640, 2147483647, 9223372036854775808))
t(-7, None, 9223372036854775808, 9223372036854775808, (9223372036854775801, 9223372036854775808, 9223372036854775808))
t(-7, -7, None, 0, (0, 0, 1))
t(-7, -7, None, 1, (0, 0, 1))
t(-7, -7, None, 5, (0, 0, 1))
t(-7, -7, None, 10, (3, 3, 1))
t(-7, -7, None, 100, (93, 93, 1))
t(-7, -7, None, 2147483647, (2147483640, 2147483640, 1))
t(-7, -7, None, 9223372036854775808, (9223372036854775801, 9223372036854775801, 1))
t(-7, -7, -5, 0, (-1, -1, -5))
t(-7, -7, -5, 1, (-1, -1, -5))
t(-7, -7, -5, 5, (-1, -1, -5))
t(-7, -7, -5, 10, (3, 3, -5))
t(-7, -7, -5, 100, (93, 93, -5))
t(-7, -7, -5, 2147483647, (2147483640, 2147483640, -5))
t(-7, -7, -5, 9223372036854775808, (9223372036854775801, 9223372036854775801, -5))
t(-7, -7, -3, 0, (-1, -1, -3))
t(-7, -7, -3, 1, (-1, -1, -3))
t(-7, -7, -3, 5, (-1, -1, -3))
t(-7, -7, -3, 10, (3, 3, -3))
t(-7, -7, -3, 100, (93, 93, -3))
t(-7, -7, -3, 2147483647, (2147483640, 2147483640, -3))
t(-7, -7, -3, 9223372036854775808, (9223372036854775801, 9223372036854775801, -3))
t(-7, -7, -1, 0, (-1, -1, -1))
t(-7, -7, -1, 1, (-1, -1, -1))
t(-7, -7, -1, 5, (-1, -1, -1))
t(-7, -7, -1, 10, (3, 3, -1))
t(-7, -7, -1, 100, (93, 93, -1))
t(-7, -7, -1, 2147483647, (2147483640, 2147483640, -1))
t(-7, -7, -1, 9223372036854775808, (9223372036854775801, 9223372036854775801, -1))
t(-7, -7, 1, 0, (0, 0, 1))
t(-7, -7, 1, 1, (0, 0, 1))
t(-7, -7, 1, 5, (0, 0, 1))
t(-7, -7, 1, 10, (3, 3, 1))
t(-7, -7, 1, 100, (93, 93, 1))
t(-7, -7, 1, 2147483647, (2147483640, 2147483640, 1))
t(-7, -7, 1, 9223372036854775808, (9223372036854775801, 9223372036854775801, 1))
t(-7, -7, 5, 0, (0, 0, 5))
t(-7, -7, 5, 1, (0, 0, 5))
t(-7, -7, 5, 5, (0, 0, 5))
t(-7, -7, 5, 10, (3, 3, 5))
t(-7, -7, 5, 100, (93, 93, 5))
t(-7, -7, 5, 2147483647, (2147483640, 2147483640, 5))
t(-7, -7, 5, 9223372036854775808, (9223372036854775801, 9223372036854775801, 5))
t(-7, -7, 20, 0, (0, 0, 20))
t(-7, -7, 20, 1, (0, 0, 20))
t(-7, -7, 20, 5, (0, 0, 20))
t(-7, -7, 20, 10, (3, 3, 20))
t(-7, -7, 20, 100, (93, 93, 20))
t(-7, -7, 20, 2147483647, (2147483640, 2147483640, 20))
t(-7, -7, 20, 9223372036854775808, (9223372036854775801, 9223372036854775801, 20))
t(-7, -7, 2147483647, 0, (0, 0, 2147483647))
t(-7, -7, 2147483647, 1, (0, 0, 2147483647))
t(-7, -7, 2147483647, 5, (0, 0, 2147483647))
t(-7, -7, 2147483647, 10, (3, 3, 2147483647))
t(-7, -7, 2147483647, 100, (93, 93, 2147483647))
t(-7, -7, 2147483647, 2147483647, (2147483640, 2147483640, 2147483647))
t(-7, -7, 2147483647, 9223372036854775808, (9223372036854775801, 9223372036854775801, 2147483647))
t(-7, -7, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(-7, -7, 9223372036854775808, 1, (0, 0, 9223372036854775808))
t(-7, -7, 9223372036854775808, 5, (0, 0, 9223372036854775808))
t(-7, -7, 9223372036854775808, 10, (3, 3, 9223372036854775808))
t(-7, -7, 9223372036854775808, 100, (93, 93, 9223372036854775808))
t(-7, -7, 9223372036854775808, 2147483647, (2147483640, 2147483640, 9223372036854775808))
t(-7, -7, 9223372036854775808, 9223372036854775808, (9223372036854775801, 9223372036854775801, 9223372036854775808))
t(-7, -2, None, 0, (0, 0, 1))
t(-7, -2, None, 1, (0, 0, 1))
t(-7, -2, None, 5, (0, 3, 1))
t(-7, -2, None, 10, (3, 8, 1))
t(-7, -2, None, 100, (93, 98, 1))
t(-7, -2, None, 2147483647, (2147483640, 2147483645, 1))
t(-7, -2, None, 9223372036854775808, (9223372036854775801, 9223372036854775806, 1))
t(-7, -2, -5, 0, (-1, -1, -5))
t(-7, -2, -5, 1, (-1, -1, -5))
t(-7, -2, -5, 5, (-1, 3, -5))
t(-7, -2, -5, 10, (3, 8, -5))
t(-7, -2, -5, 100, (93, 98, -5))
t(-7, -2, -5, 2147483647, (2147483640, 2147483645, -5))
t(-7, -2, -5, 9223372036854775808, (9223372036854775801, 9223372036854775806, -5))
t(-7, -2, -3, 0, (-1, -1, -3))
t(-7, -2, -3, 1, (-1, -1, -3))
t(-7, -2, -3, 5, (-1, 3, -3))
t(-7, -2, -3, 10, (3, 8, -3))
t(-7, -2, -3, 100, (93, 98, -3))
t(-7, -2, -3, 2147483647, (2147483640, 2147483645, -3))
t(-7, -2, -3, 9223372036854775808, (9223372036854775801, 9223372036854775806, -3))
t(-7, -2, -1, 0, (-1, -1, -1))
t(-7, -2, -1, 1, (-1, -1, -1))
t(-7, -2, -1, 5, (-1, 3, -1))
t(-7, -2, -1, 10, (3, 8, -1))
t(-7, -2, -1, 100, (93, 98, -1))
t(-7, -2, -1, 2147483647, (2147483640, 2147483645, -1))
t(-7, -2, -1, 9223372036854775808, (9223372036854775801, 9223372036854775806, -1))
t(-7, -2, 1, 0, (0, 0, 1))
t(-7, -2, 1, 1, (0, 0, 1))
t(-7, -2, 1, 5, (0, 3, 1))
t(-7, -2, 1, 10, (3, 8, 1))
t(-7, -2, 1, 100, (93, 98, 1))
t(-7, -2, 1, 2147483647, (2147483640, 2147483645, 1))
t(-7, -2, 1, 9223372036854775808, (9223372036854775801, 9223372036854775806, 1))
t(-7, -2, 5, 0, (0, 0, 5))
t(-7, -2, 5, 1, (0, 0, 5))
t(-7, -2, 5, 5, (0, 3, 5))
t(-7, -2, 5, 10, (3, 8, 5))
t(-7, -2, 5, 100, (93, 98, 5))
t(-7, -2, 5, 2147483647, (2147483640, 2147483645, 5))
t(-7, -2, 5, 9223372036854775808, (9223372036854775801, 9223372036854775806, 5))
t(-7, -2, 20, 0, (0, 0, 20))
t(-7, -2, 20, 1, (0, 0, 20))
t(-7, -2, 20, 5, (0, 3, 20))
t(-7, -2, 20, 10, (3, 8, 20))
t(-7, -2, 20, 100, (93, 98, 20))
t(-7, -2, 20, 2147483647, (2147483640, 2147483645, 20))
t(-7, -2, 20, 9223372036854775808, (9223372036854775801, 9223372036854775806, 20))
t(-7, -2, 2147483647, 0, (0, 0, 2147483647))
t(-7, -2, 2147483647, 1, (0, 0, 2147483647))
t(-7, -2, 2147483647, 5, (0, 3, 2147483647))
t(-7, -2, 2147483647, 10, (3, 8, 2147483647))
t(-7, -2, 2147483647, 100, (93, 98, 2147483647))
t(-7, -2, 2147483647, 2147483647, (2147483640, 2147483645, 2147483647))
t(-7, -2, 2147483647, 9223372036854775808, (9223372036854775801, 9223372036854775806, 2147483647))
t(-7, -2, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(-7, -2, 9223372036854775808, 1, (0, 0, 9223372036854775808))
t(-7, -2, 9223372036854775808, 5, (0, 3, 9223372036854775808))
t(-7, -2, 9223372036854775808, 10, (3, 8, 9223372036854775808))
t(-7, -2, 9223372036854775808, 100, (93, 98, 9223372036854775808))
t(-7, -2, 9223372036854775808, 2147483647, (2147483640, 2147483645, 9223372036854775808))
t(-7, -2, 9223372036854775808, 9223372036854775808, (9223372036854775801, 9223372036854775806, 9223372036854775808))
t(-7, 0, None, 0, (0, 0, 1))
t(-7, 0, None, 1, (0, 0, 1))
t(-7, 0, None, 5, (0, 0, 1))
t(-7, 0, None, 10, (3, 0, 1))
t(-7, 0, None, 100, (93, 0, 1))
t(-7, 0, None, 2147483647, (2147483640, 0, 1))
t(-7, 0, None, 9223372036854775808, (9223372036854775801, 0, 1))
t(-7, 0, -5, 0, (-1, -1, -5))
t(-7, 0, -5, 1, (-1, 0, -5))
t(-7, 0, -5, 5, (-1, 0, -5))
t(-7, 0, -5, 10, (3, 0, -5))
t(-7, 0, -5, 100, (93, 0, -5))
t(-7, 0, -5, 2147483647, (2147483640, 0, -5))
t(-7, 0, -5, 9223372036854775808, (9223372036854775801, 0, -5))
t(-7, 0, -3, 0, (-1, -1, -3))
t(-7, 0, -3, 1, (-1, 0, -3))
t(-7, 0, -3, 5, (-1, 0, -3))
t(-7, 0, -3, 10, (3, 0, -3))
t(-7, 0, -3, 100, (93, 0, -3))
t(-7, 0, -3, 2147483647, (2147483640, 0, -3))
t(-7, 0, -3, 9223372036854775808, (9223372036854775801, 0, -3))
t(-7, 0, -1, 0, (-1, -1, -1))
t(-7, 0, -1, 1, (-1, 0, -1))
t(-7, 0, -1, 5, (-1, 0, -1))
t(-7, 0, -1, 10, (3, 0, -1))
t(-7, 0, -1, 100, (93, 0, -1))
t(-7, 0, -1, 2147483647, (2147483640, 0, -1))
t(-7, 0, -1, 9223372036854775808, (9223372036854775801, 0, -1))
t(-7, 0, 1, 0, (0, 0, 1))
t(-7, 0, 1, 1, (0, 0, 1))
t(-7, 0, 1, 5, (0, 0, 1))
t(-7, 0, 1, 10, (3, 0, 1))
t(-7, 0, 1, 100, (93, 0, 1))
t(-7, 0, 1, 2147483647, (2147483640, 0, 1))
t(-7, 0, 1, 9223372036854775808, (9223372036854775801, 0, 1))
t(-7, 0, 5, 0, (0, 0, 5))
t(-7, 0, 5, 1, (0, 0, 5))
t(-7, 0, 5, 5, (0, 0, 5))
t(-7, 0, 5, 10, (3, 0, 5))
t(-7, 0, 5, 100, (93, 0, 5))
t(-7, 0, 5, 2147483647, (2147483640, 0, 5))
t(-7, 0, 5, 9223372036854775808, (9223372036854775801, 0, 5))
t(-7, 0, 20, 0, (0, 0, 20))
t(-7, 0, 20, 1, (0, 0, 20))
t(-7, 0, 20, 5, (0, 0, 20))
t(-7, 0, 20, 10, (3, 0, 20))
t(-7, 0, 20, 100, (93, 0, 20))
t(-7, 0, 20, 2147483647, (2147483640, 0, 20))
t(-7, 0, 20, 9223372036854775808, (9223372036854775801, 0, 20))
t(-7, 0, 2147483647, 0, (0, 0, 2147483647))
t(-7, 0, 2147483647, 1, (0, 0, 2147483647))
t(-7, 0, 2147483647, 5, (0, 0, 2147483647))
t(-7, 0, 2147483647, 10, (3, 0, 2147483647))
t(-7, 0, 2147483647, 100, (93, 0, 2147483647))
t(-7, 0, 2147483647, 2147483647, (2147483640, 0, 2147483647))
t(-7, 0, 2147483647, 9223372036854775808, (9223372036854775801, 0, 2147483647))
t(-7, 0, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(-7, 0, 9223372036854775808, 1, (0, 0, 9223372036854775808))
t(-7, 0, 9223372036854775808, 5, (0, 0, 9223372036854775808))
t(-7, 0, 9223372036854775808, 10, (3, 0, 9223372036854775808))
t(-7, 0, 9223372036854775808, 100, (93, 0, 9223372036854775808))
t(-7, 0, 9223372036854775808, 2147483647, (2147483640, 0, 9223372036854775808))
t(-7, 0, 9223372036854775808, 9223372036854775808, (9223372036854775801, 0, 9223372036854775808))
t(-7, 1, None, 0, (0, 0, 1))
t(-7, 1, None, 1, (0, 1, 1))
t(-7, 1, None, 5, (0, 1, 1))
t(-7, 1, None, 10, (3, 1, 1))
t(-7, 1, None, 100, (93, 1, 1))
t(-7, 1, None, 2147483647, (2147483640, 1, 1))
t(-7, 1, None, 9223372036854775808, (9223372036854775801, 1, 1))
t(-7, 1, -5, 0, (-1, -1, -5))
t(-7, 1, -5, 1, (-1, 0, -5))
t(-7, 1, -5, 5, (-1, 1, -5))
t(-7, 1, -5, 10, (3, 1, -5))
t(-7, 1, -5, 100, (93, 1, -5))
t(-7, 1, -5, 2147483647, (2147483640, 1, -5))
t(-7, 1, -5, 9223372036854775808, (9223372036854775801, 1, -5))
t(-7, 1, -3, 0, (-1, -1, -3))
t(-7, 1, -3, 1, (-1, 0, -3))
t(-7, 1, -3, 5, (-1, 1, -3))
t(-7, 1, -3, 10, (3, 1, -3))
t(-7, 1, -3, 100, (93, 1, -3))
t(-7, 1, -3, 2147483647, (2147483640, 1, -3))
t(-7, 1, -3, 9223372036854775808, (9223372036854775801, 1, -3))
t(-7, 1, -1, 0, (-1, -1, -1))
t(-7, 1, -1, 1, (-1, 0, -1))
t(-7, 1, -1, 5, (-1, 1, -1))
t(-7, 1, -1, 10, (3, 1, -1))
t(-7, 1, -1, 100, (93, 1, -1))
t(-7, 1, -1, 2147483647, (2147483640, 1, -1))
t(-7, 1, -1, 9223372036854775808, (9223372036854775801, 1, -1))
t(-7, 1, 1, 0, (0, 0, 1))
t(-7, 1, 1, 1, (0, 1, 1))
t(-7, 1, 1, 5, (0, 1, 1))
t(-7, 1, 1, 10, (3, 1, 1))
t(-7, 1, 1, 100, (93, 1, 1))
t(-7, 1, 1, 2147483647, (2147483640, 1, 1))
t(-7, 1, 1, 9223372036854775808, (9223372036854775801, 1, 1))
t(-7, 1, 5, 0, (0, 0, 5))
t(-7, 1, 5, 1, (0, 1, 5))
t(-7, 1, 5, 5, (0, 1, 5))
t(-7, 1, 5, 10, (3, 1, 5))
t(-7, 1, 5, 100, (93, 1, 5))
t(-7, 1, 5, 2147483647, (2147483640, 1, 5))
t(-7, 1, 5, 9223372036854775808, (9223372036854775801, 1, 5))
t(-7, 1, 20, 0, (0, 0, 20))
t(-7, 1, 20, 1, (0, 1, 20))
t(-7, 1, 20, 5, (0, 1, 20))
t(-7, 1, 20, 10, (3, 1, 20))
t(-7, 1, 20, 100, (93, 1, 20))
t(-7, 1, 20, 2147483647, (2147483640, 1, 20))
t(-7, 1, 20, 9223372036854775808, (9223372036854775801, 1, 20))
t(-7, 1, 2147483647, 0, (0, 0, 2147483647))
t(-7, 1, 2147483647, 1, (0, 1, 2147483647))
t(-7, 1, 2147483647, 5, (0, 1, 2147483647))
t(-7, 1, 2147483647, 10, (3, 1, 2147483647))
t(-7, 1, 2147483647, 100, (93, 1, 2147483647))
t(-7, 1, 2147483647, 2147483647, (2147483640, 1, 2147483647))
t(-7, 1, 2147483647, 9223372036854775808, (9223372036854775801, 1, 2147483647))
t(-7, 1, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(-7, 1, 9223372036854775808, 1, (0, 1, 9223372036854775808))
t(-7, 1, 9223372036854775808, 5, (0, 1, 9223372036854775808))
t(-7, 1, 9223372036854775808, 10, (3, 1, 9223372036854775808))
t(-7, 1, 9223372036854775808, 100, (93, 1, 9223372036854775808))
t(-7, 1, 9223372036854775808, 2147483647, (2147483640, 1, 9223372036854775808))
t(-7, 1, 9223372036854775808, 9223372036854775808, (9223372036854775801, 1, 9223372036854775808))
t(-7, 6, None, 0, (0, 0, 1))
t(-7, 6, None, 1, (0, 1, 1))
t(-7, 6, None, 5, (0, 5, 1))
t(-7, 6, None, 10, (3, 6, 1))
t(-7, 6, None, 100, (93, 6, 1))
t(-7, 6, None, 2147483647, (2147483640, 6, 1))
t(-7, 6, None, 9223372036854775808, (9223372036854775801, 6, 1))
t(-7, 6, -5, 0, (-1, -1, -5))
t(-7, 6, -5, 1, (-1, 0, -5))
t(-7, 6, -5, 5, (-1, 4, -5))
t(-7, 6, -5, 10, (3, 6, -5))
t(-7, 6, -5, 100, (93, 6, -5))
t(-7, 6, -5, 2147483647, (2147483640, 6, -5))
t(-7, 6, -5, 9223372036854775808, (9223372036854775801, 6, -5))
t(-7, 6, -3, 0, (-1, -1, -3))
t(-7, 6, -3, 1, (-1, 0, -3))
t(-7, 6, -3, 5, (-1, 4, -3))
t(-7, 6, -3, 10, (3, 6, -3))
t(-7, 6, -3, 100, (93, 6, -3))
t(-7, 6, -3, 2147483647, (2147483640, 6, -3))
t(-7, 6, -3, 9223372036854775808, (9223372036854775801, 6, -3))
t(-7, 6, -1, 0, (-1, -1, -1))
t(-7, 6, -1, 1, (-1, 0, -1))
t(-7, 6, -1, 5, (-1, 4, -1))
t(-7, 6, -1, 10, (3, 6, -1))
t(-7, 6, -1, 100, (93, 6, -1))
t(-7, 6, -1, 2147483647, (2147483640, 6, -1))
t(-7, 6, -1, 9223372036854775808, (9223372036854775801, 6, -1))
t(-7, 6, 1, 0, (0, 0, 1))
t(-7, 6, 1, 1, (0, 1, 1))
t(-7, 6, 1, 5, (0, 5, 1))
t(-7, 6, 1, 10, (3, 6, 1))
t(-7, 6, 1, 100, (93, 6, 1))
t(-7, 6, 1, 2147483647, (2147483640, 6, 1))
t(-7, 6, 1, 9223372036854775808, (9223372036854775801, 6, 1))
t(-7, 6, 5, 0, (0, 0, 5))
t(-7, 6, 5, 1, (0, 1, 5))
t(-7, 6, 5, 5, (0, 5, 5))
t(-7, 6, 5, 10, (3, 6, 5))
t(-7, 6, 5, 100, (93, 6, 5))
t(-7, 6, 5, 2147483647, (2147483640, 6, 5))
t(-7, 6, 5, 9223372036854775808, (9223372036854775801, 6, 5))
t(-7, 6, 20, 0, (0, 0, 20))
t(-7, 6, 20, 1, (0, 1, 20))
t(-7, 6, 20, 5, (0, 5, 20))
t(-7, 6, 20, 10, (3, 6, 20))
t(-7, 6, 20, 100, (93, 6, 20))
t(-7, 6, 20, 2147483647, (2147483640, 6, 20))
t(-7, 6, 20, 9223372036854775808, (9223372036854775801, 6, 20))
t(-7, 6, 2147483647, 0, (0, 0, 2147483647))
t(-7, 6, 2147483647, 1, (0, 1, 2147483647))
t(-7, 6, 2147483647, 5, (0, 5, 2147483647))
t(-7, 6, 2147483647, 10, (3, 6, 2147483647))
t(-7, 6, 2147483647, 100, (93, 6, 2147483647))
t(-7, 6, 2147483647, 2147483647, (2147483640, 6, 2147483647))
t(-7, 6, 2147483647, 9223372036854775808, (9223372036854775801, 6, 2147483647))
t(-7, 6, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(-7, 6, 9223372036854775808, 1, (0, 1, 9223372036854775808))
t(-7, 6, 9223372036854775808, 5, (0, 5, 9223372036854775808))
t(-7, 6, 9223372036854775808, 10, (3, 6, 9223372036854775808))
t(-7, 6, 9223372036854775808, 100, (93, 6, 9223372036854775808))
t(-7, 6, 9223372036854775808, 2147483647, (2147483640, 6, 9223372036854775808))
t(-7, 6, 9223372036854775808, 9223372036854775808, (9223372036854775801, 6, 9223372036854775808))
t(-7, 10, None, 0, (0, 0, 1))
t(-7, 10, None, 1, (0, 1, 1))
t(-7, 10, None, 5, (0, 5, 1))
t(-7, 10, None, 10, (3, 10, 1))
t(-7, 10, None, 100, (93, 10, 1))
t(-7, 10, None, 2147483647, (2147483640, 10, 1))
t(-7, 10, None, 9223372036854775808, (9223372036854775801, 10, 1))
t(-7, 10, -5, 0, (-1, -1, -5))
t(-7, 10, -5, 1, (-1, 0, -5))
t(-7, 10, -5, 5, (-1, 4, -5))
t(-7, 10, -5, 10, (3, 9, -5))
t(-7, 10, -5, 100, (93, 10, -5))
t(-7, 10, -5, 2147483647, (2147483640, 10, -5))
t(-7, 10, -5, 9223372036854775808, (9223372036854775801, 10, -5))
t(-7, 10, -3, 0, (-1, -1, -3))
t(-7, 10, -3, 1, (-1, 0, -3))
t(-7, 10, -3, 5, (-1, 4, -3))
t(-7, 10, -3, 10, (3, 9, -3))
t(-7, 10, -3, 100, (93, 10, -3))
t(-7, 10, -3, 2147483647, (2147483640, 10, -3))
t(-7, 10, -3, 9223372036854775808, (9223372036854775801, 10, -3))
t(-7, 10, -1, 0, (-1, -1, -1))
t(-7, 10, -1, 1, (-1, 0, -1))
t(-7, 10, -1, 5, (-1, 4, -1))
t(-7, 10, -1, 10, (3, 9, -1))
t(-7, 10, -1, 100, (93, 10, -1))
t(-7, 10, -1, 2147483647, (2147483640, 10, -1))
t(-7, 10, -1, 9223372036854775808, (9223372036854775801, 10, -1))
t(-7, 10, 1, 0, (0, 0, 1))
t(-7, 10, 1, 1, (0, 1, 1))
t(-7, 10, 1, 5, (0, 5, 1))
t(-7, 10, 1, 10, (3, 10, 1))
t(-7, 10, 1, 100, (93, 10, 1))
t(-7, 10, 1, 2147483647, (2147483640, 10, 1))
t(-7, 10, 1, 9223372036854775808, (9223372036854775801, 10, 1))
t(-7, 10, 5, 0, (0, 0, 5))
t(-7, 10, 5, 1, (0, 1, 5))
t(-7, 10, 5, 5, (0, 5, 5))
t(-7, 10, 5, 10, (3, 10, 5))
t(-7, 10, 5, 100, (93, 10, 5))
t(-7, 10, 5, 2147483647, (2147483640, 10, 5))
t(-7, 10, 5, 9223372036854775808, (9223372036854775801, 10, 5))
t(-7, 10, 20, 0, (0, 0, 20))
t(-7, 10, 20, 1, (0, 1, 20))
t(-7, 10, 20, 5, (0, 5, 20))
t(-7, 10, 20, 10, (3, 10, 20))
t(-7, 10, 20, 100, (93, 10, 20))
t(-7, 10, 20, 2147483647, (2147483640, 10, 20))
t(-7, 10, 20, 9223372036854775808, (9223372036854775801, 10, 20))
t(-7, 10, 2147483647, 0, (0, 0, 2147483647))
t(-7, 10, 2147483647, 1, (0, 1, 2147483647))
t(-7, 10, 2147483647, 5, (0, 5, 2147483647))
t(-7, 10, 2147483647, 10, (3, 10, 2147483647))
t(-7, 10, 2147483647, 100, (93, 10, 2147483647))
t(-7, 10, 2147483647, 2147483647, (2147483640, 10, 2147483647))
t(-7, 10, 2147483647, 9223372036854775808, (9223372036854775801, 10, 2147483647))
t(-7, 10, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(-7, 10, 9223372036854775808, 1, (0, 1, 9223372036854775808))
t(-7, 10, 9223372036854775808, 5, (0, 5, 9223372036854775808))
t(-7, 10, 9223372036854775808, 10, (3, 10, 9223372036854775808))
t(-7, 10, 9223372036854775808, 100, (93, 10, 9223372036854775808))
t(-7, 10, 9223372036854775808, 2147483647, (2147483640, 10, 9223372036854775808))
t(-7, 10, 9223372036854775808, 9223372036854775808, (9223372036854775801, 10, 9223372036854775808))
t(-7, 2147483647, None, 0, (0, 0, 1))
t(-7, 2147483647, None, 1, (0, 1, 1))
t(-7, 2147483647, None, 5, (0, 5, 1))
t(-7, 2147483647, None, 10, (3, 10, 1))
t(-7, 2147483647, None, 100, (93, 100, 1))
t(-7, 2147483647, None, 2147483647, (2147483640, 2147483647, 1))
t(-7, 2147483647, None, 9223372036854775808, (9223372036854775801, 2147483647, 1))
t(-7, 2147483647, -5, 0, (-1, -1, -5))
t(-7, 2147483647, -5, 1, (-1, 0, -5))
t(-7, 2147483647, -5, 5, (-1, 4, -5))
t(-7, 2147483647, -5, 10, (3, 9, -5))
t(-7, 2147483647, -5, 100, (93, 99, -5))
t(-7, 2147483647, -5, 2147483647, (2147483640, 2147483646, -5))
t(-7, 2147483647, -5, 9223372036854775808, (9223372036854775801, 2147483647, -5))
t(-7, 2147483647, -3, 0, (-1, -1, -3))
t(-7, 2147483647, -3, 1, (-1, 0, -3))
t(-7, 2147483647, -3, 5, (-1, 4, -3))
t(-7, 2147483647, -3, 10, (3, 9, -3))
t(-7, 2147483647, -3, 100, (93, 99, -3))
t(-7, 2147483647, -3, 2147483647, (2147483640, 2147483646, -3))
t(-7, 2147483647, -3, 9223372036854775808, (9223372036854775801, 2147483647, -3))
t(-7, 2147483647, -1, 0, (-1, -1, -1))
t(-7, 2147483647, -1, 1, (-1, 0, -1))
t(-7, 2147483647, -1, 5, (-1, 4, -1))
t(-7, 2147483647, -1, 10, (3, 9, -1))
t(-7, 2147483647, -1, 100, (93, 99, -1))
t(-7, 2147483647, -1, 2147483647, (2147483640, 2147483646, -1))
t(-7, 2147483647, -1, 9223372036854775808, (9223372036854775801, 2147483647, -1))
t(-7, 2147483647, 1, 0, (0, 0, 1))
t(-7, 2147483647, 1, 1, (0, 1, 1))
t(-7, 2147483647, 1, 5, (0, 5, 1))
t(-7, 2147483647, 1, 10, (3, 10, 1))
t(-7, 2147483647, 1, 100, (93, 100, 1))
t(-7, 2147483647, 1, 2147483647, (2147483640, 2147483647, 1))
t(-7, 2147483647, 1, 9223372036854775808, (9223372036854775801, 2147483647, 1))
t(-7, 2147483647, 5, 0, (0, 0, 5))
t(-7, 2147483647, 5, 1, (0, 1, 5))
t(-7, 2147483647, 5, 5, (0, 5, 5))
t(-7, 2147483647, 5, 10, (3, 10, 5))
t(-7, 2147483647, 5, 100, (93, 100, 5))
t(-7, 2147483647, 5, 2147483647, (2147483640, 2147483647, 5))
t(-7, 2147483647, 5, 9223372036854775808, (9223372036854775801, 2147483647, 5))
t(-7, 2147483647, 20, 0, (0, 0, 20))
t(-7, 2147483647, 20, 1, (0, 1, 20))
t(-7, 2147483647, 20, 5, (0, 5, 20))
t(-7, 2147483647, 20, 10, (3, 10, 20))
t(-7, 2147483647, 20, 100, (93, 100, 20))
t(-7, 2147483647, 20, 2147483647, (2147483640, 2147483647, 20))
t(-7, 2147483647, 20, 9223372036854775808, (9223372036854775801, 2147483647, 20))
t(-7, 2147483647, 2147483647, 0, (0, 0, 2147483647))
t(-7, 2147483647, 2147483647, 1, (0, 1, 2147483647))
t(-7, 2147483647, 2147483647, 5, (0, 5, 2147483647))
t(-7, 2147483647, 2147483647, 10, (3, 10, 2147483647))
t(-7, 2147483647, 2147483647, 100, (93, 100, 2147483647))
t(-7, 2147483647, 2147483647, 2147483647, (2147483640, 2147483647, 2147483647))
t(-7, 2147483647, 2147483647, 9223372036854775808, (9223372036854775801, 2147483647, 2147483647))
t(-7, 2147483647, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(-7, 2147483647, 9223372036854775808, 1, (0, 1, 9223372036854775808))
t(-7, 2147483647, 9223372036854775808, 5, (0, 5, 9223372036854775808))
t(-7, 2147483647, 9223372036854775808, 10, (3, 10, 9223372036854775808))
t(-7, 2147483647, 9223372036854775808, 100, (93, 100, 9223372036854775808))
t(-7, 2147483647, 9223372036854775808, 2147483647, (2147483640, 2147483647, 9223372036854775808))
t(-7, 2147483647, 9223372036854775808, 9223372036854775808, (9223372036854775801, 2147483647, 9223372036854775808))
t(-7, 9223372036854775808, None, 0, (0, 0, 1))
t(-7, 9223372036854775808, None, 1, (0, 1, 1))
t(-7, 9223372036854775808, None, 5, (0, 5, 1))
t(-7, 9223372036854775808, None, 10, (3, 10, 1))
t(-7, 9223372036854775808, None, 100, (93, 100, 1))
t(-7, 9223372036854775808, None, 2147483647, (2147483640, 2147483647, 1))
t(-7, 9223372036854775808, None, 9223372036854775808, (9223372036854775801, 9223372036854775808, 1))
t(-7, 9223372036854775808, -5, 0, (-1, -1, -5))
t(-7, 9223372036854775808, -5, 1, (-1, 0, -5))
t(-7, 9223372036854775808, -5, 5, (-1, 4, -5))
t(-7, 9223372036854775808, -5, 10, (3, 9, -5))
t(-7, 9223372036854775808, -5, 100, (93, 99, -5))
t(-7, 9223372036854775808, -5, 2147483647, (2147483640, 2147483646, -5))
t(-7, 9223372036854775808, -5, 9223372036854775808, (9223372036854775801, 9223372036854775807, -5))
t(-7, 9223372036854775808, -3, 0, (-1, -1, -3))
t(-7, 9223372036854775808, -3, 1, (-1, 0, -3))
t(-7, 9223372036854775808, -3, 5, (-1, 4, -3))
t(-7, 9223372036854775808, -3, 10, (3, 9, -3))
t(-7, 9223372036854775808, -3, 100, (93, 99, -3))
t(-7, 9223372036854775808, -3, 2147483647, (2147483640, 2147483646, -3))
t(-7, 9223372036854775808, -3, 9223372036854775808, (9223372036854775801, 9223372036854775807, -3))
t(-7, 9223372036854775808, -1, 0, (-1, -1, -1))
t(-7, 9223372036854775808, -1, 1, (-1, 0, -1))
t(-7, 9223372036854775808, -1, 5, (-1, 4, -1))
t(-7, 9223372036854775808, -1, 10, (3, 9, -1))
t(-7, 9223372036854775808, -1, 100, (93, 99, -1))
t(-7, 9223372036854775808, -1, 2147483647, (2147483640, 2147483646, -1))
t(-7, 9223372036854775808, -1, 9223372036854775808, (9223372036854775801, 9223372036854775807, -1))
t(-7, 9223372036854775808, 1, 0, (0, 0, 1))
t(-7, 9223372036854775808, 1, 1, (0, 1, 1))
t(-7, 9223372036854775808, 1, 5, (0, 5, 1))
t(-7, 9223372036854775808, 1, 10, (3, 10, 1))
t(-7, 9223372036854775808, 1, 100, (93, 100, 1))
t(-7, 9223372036854775808, 1, 2147483647, (2147483640, 2147483647, 1))
t(-7, 9223372036854775808, 1, 9223372036854775808, (9223372036854775801, 9223372036854775808, 1))
t(-7, 9223372036854775808, 5, 0, (0, 0, 5))
t(-7, 9223372036854775808, 5, 1, (0, 1, 5))
t(-7, 9223372036854775808, 5, 5, (0, 5, 5))
t(-7, 9223372036854775808, 5, 10, (3, 10, 5))
t(-7, 9223372036854775808, 5, 100, (93, 100, 5))
t(-7, 9223372036854775808, 5, 2147483647, (2147483640, 2147483647, 5))
t(-7, 9223372036854775808, 5, 9223372036854775808, (9223372036854775801, 9223372036854775808, 5))
t(-7, 9223372036854775808, 20, 0, (0, 0, 20))
t(-7, 9223372036854775808, 20, 1, (0, 1, 20))
t(-7, 9223372036854775808, 20, 5, (0, 5, 20))
t(-7, 9223372036854775808, 20, 10, (3, 10, 20))
t(-7, 9223372036854775808, 20, 100, (93, 100, 20))
t(-7, 9223372036854775808, 20, 2147483647, (2147483640, 2147483647, 20))
t(-7, 9223372036854775808, 20, 9223372036854775808, (9223372036854775801, 9223372036854775808, 20))
t(-7, 9223372036854775808, 2147483647, 0, (0, 0, 2147483647))
t(-7, 9223372036854775808, 2147483647, 1, (0, 1, 2147483647))
t(-7, 9223372036854775808, 2147483647, 5, (0, 5, 2147483647))
t(-7, 9223372036854775808, 2147483647, 10, (3, 10, 2147483647))
t(-7, 9223372036854775808, 2147483647, 100, (93, 100, 2147483647))
t(-7, 9223372036854775808, 2147483647, 2147483647, (2147483640, 2147483647, 2147483647))
t(-7, 9223372036854775808, 2147483647, 9223372036854775808, (9223372036854775801, 9223372036854775808, 2147483647))
t(-7, 9223372036854775808, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(-7, 9223372036854775808, 9223372036854775808, 1, (0, 1, 9223372036854775808))
t(-7, 9223372036854775808, 9223372036854775808, 5, (0, 5, 9223372036854775808))
t(-7, 9223372036854775808, 9223372036854775808, 10, (3, 10, 9223372036854775808))
t(-7, 9223372036854775808, 9223372036854775808, 100, (93, 100, 9223372036854775808))
t(-7, 9223372036854775808, 9223372036854775808, 2147483647, (2147483640, 2147483647, 9223372036854775808))
t(-7, 9223372036854775808, 9223372036854775808, 9223372036854775808, (9223372036854775801, 9223372036854775808, 9223372036854775808))
t(-2, None, None, 0, (0, 0, 1))
t(-2, None, None, 1, (0, 1, 1))
t(-2, None, None, 5, (3, 5, 1))
t(-2, None, None, 10, (8, 10, 1))
t(-2, None, None, 100, (98, 100, 1))
t(-2, None, None, 2147483647, (2147483645, 2147483647, 1))
t(-2, None, None, 9223372036854775808, (9223372036854775806, 9223372036854775808, 1))
t(-2, None, -5, 0, (-1, -1, -5))
t(-2, None, -5, 1, (-1, -1, -5))
t(-2, None, -5, 5, (3, -1, -5))
t(-2, None, -5, 10, (8, -1, -5))
t(-2, None, -5, 100, (98, -1, -5))
t(-2, None, -5, 2147483647, (2147483645, -1, -5))
t(-2, None, -5, 9223372036854775808, (9223372036854775806, -1, -5))
t(-2, None, -3, 0, (-1, -1, -3))
t(-2, None, -3, 1, (-1, -1, -3))
t(-2, None, -3, 5, (3, -1, -3))
t(-2, None, -3, 10, (8, -1, -3))
t(-2, None, -3, 100, (98, -1, -3))
t(-2, None, -3, 2147483647, (2147483645, -1, -3))
t(-2, None, -3, 9223372036854775808, (9223372036854775806, -1, -3))
t(-2, None, -1, 0, (-1, -1, -1))
t(-2, None, -1, 1, (-1, -1, -1))
t(-2, None, -1, 5, (3, -1, -1))
t(-2, None, -1, 10, (8, -1, -1))
t(-2, None, -1, 100, (98, -1, -1))
t(-2, None, -1, 2147483647, (2147483645, -1, -1))
t(-2, None, -1, 9223372036854775808, (9223372036854775806, -1, -1))
t(-2, None, 1, 0, (0, 0, 1))
t(-2, None, 1, 1, (0, 1, 1))
t(-2, None, 1, 5, (3, 5, 1))
t(-2, None, 1, 10, (8, 10, 1))
t(-2, None, 1, 100, (98, 100, 1))
t(-2, None, 1, 2147483647, (2147483645, 2147483647, 1))
t(-2, None, 1, 9223372036854775808, (9223372036854775806, 9223372036854775808, 1))
t(-2, None, 5, 0, (0, 0, 5))
t(-2, None, 5, 1, (0, 1, 5))
t(-2, None, 5, 5, (3, 5, 5))
t(-2, None, 5, 10, (8, 10, 5))
t(-2, None, 5, 100, (98, 100, 5))
t(-2, None, 5, 2147483647, (2147483645, 2147483647, 5))
t(-2, None, 5, 9223372036854775808, (9223372036854775806, 9223372036854775808, 5))
t(-2, None, 20, 0, (0, 0, 20))
t(-2, None, 20, 1, (0, 1, 20))
t(-2, None, 20, 5, (3, 5, 20))
t(-2, None, 20, 10, (8, 10, 20))
t(-2, None, 20, 100, (98, 100, 20))
t(-2, None, 20, 2147483647, (2147483645, 2147483647, 20))
t(-2, None, 20, 9223372036854775808, (9223372036854775806, 9223372036854775808, 20))
t(-2, None, 2147483647, 0, (0, 0, 2147483647))
t(-2, None, 2147483647, 1, (0, 1, 2147483647))
t(-2, None, 2147483647, 5, (3, 5, 2147483647))
t(-2, None, 2147483647, 10, (8, 10, 2147483647))
t(-2, None, 2147483647, 100, (98, 100, 2147483647))
t(-2, None, 2147483647, 2147483647, (2147483645, 2147483647, 2147483647))
t(-2, None, 2147483647, 9223372036854775808, (9223372036854775806, 9223372036854775808, 2147483647))
t(-2, None, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(-2, None, 9223372036854775808, 1, (0, 1, 9223372036854775808))
t(-2, None, 9223372036854775808, 5, (3, 5, 9223372036854775808))
t(-2, None, 9223372036854775808, 10, (8, 10, 9223372036854775808))
t(-2, None, 9223372036854775808, 100, (98, 100, 9223372036854775808))
t(-2, None, 9223372036854775808, 2147483647, (2147483645, 2147483647, 9223372036854775808))
t(-2, None, 9223372036854775808, 9223372036854775808, (9223372036854775806, 9223372036854775808, 9223372036854775808))
t(-2, -7, None, 0, (0, 0, 1))
t(-2, -7, None, 1, (0, 0, 1))
t(-2, -7, None, 5, (3, 0, 1))
t(-2, -7, None, 10, (8, 3, 1))
t(-2, -7, None, 100, (98, 93, 1))
t(-2, -7, None, 2147483647, (2147483645, 2147483640, 1))
t(-2, -7, None, 9223372036854775808, (9223372036854775806, 9223372036854775801, 1))
t(-2, -7, -5, 0, (-1, -1, -5))
t(-2, -7, -5, 1, (-1, -1, -5))
t(-2, -7, -5, 5, (3, -1, -5))
t(-2, -7, -5, 10, (8, 3, -5))
t(-2, -7, -5, 100, (98, 93, -5))
t(-2, -7, -5, 2147483647, (2147483645, 2147483640, -5))
t(-2, -7, -5, 9223372036854775808, (9223372036854775806, 9223372036854775801, -5))
t(-2, -7, -3, 0, (-1, -1, -3))
t(-2, -7, -3, 1, (-1, -1, -3))
t(-2, -7, -3, 5, (3, -1, -3))
t(-2, -7, -3, 10, (8, 3, -3))
t(-2, -7, -3, 100, (98, 93, -3))
t(-2, -7, -3, 2147483647, (2147483645, 2147483640, -3))
t(-2, -7, -3, 9223372036854775808, (9223372036854775806, 9223372036854775801, -3))
t(-2, -7, -1, 0, (-1, -1, -1))
t(-2, -7, -1, 1, (-1, -1, -1))
t(-2, -7, -1, 5, (3, -1, -1))
t(-2, -7, -1, 10, (8, 3, -1))
t(-2, -7, -1, 100, (98, 93, -1))
t(-2, -7, -1, 2147483647, (2147483645, 2147483640, -1))
t(-2, -7, -1, 9223372036854775808, (9223372036854775806, 9223372036854775801, -1))
t(-2, -7, 1, 0, (0, 0, 1))
t(-2, -7, 1, 1, (0, 0, 1))
t(-2, -7, 1, 5, (3, 0, 1))
t(-2, -7, 1, 10, (8, 3, 1))
t(-2, -7, 1, 100, (98, 93, 1))
t(-2, -7, 1, 2147483647, (2147483645, 2147483640, 1))
t(-2, -7, 1, 9223372036854775808, (9223372036854775806, 9223372036854775801, 1))
t(-2, -7, 5, 0, (0, 0, 5))
t(-2, -7, 5, 1, (0, 0, 5))
t(-2, -7, 5, 5, (3, 0, 5))
t(-2, -7, 5, 10, (8, 3, 5))
t(-2, -7, 5, 100, (98, 93, 5))
t(-2, -7, 5, 2147483647, (2147483645, 2147483640, 5))
t(-2, -7, 5, 9223372036854775808, (9223372036854775806, 9223372036854775801, 5))
t(-2, -7, 20, 0, (0, 0, 20))
t(-2, -7, 20, 1, (0, 0, 20))
t(-2, -7, 20, 5, (3, 0, 20))
t(-2, -7, 20, 10, (8, 3, 20))
t(-2, -7, 20, 100, (98, 93, 20))
t(-2, -7, 20, 2147483647, (2147483645, 2147483640, 20))
t(-2, -7, 20, 9223372036854775808, (9223372036854775806, 9223372036854775801, 20))
t(-2, -7, 2147483647, 0, (0, 0, 2147483647))
t(-2, -7, 2147483647, 1, (0, 0, 2147483647))
t(-2, -7, 2147483647, 5, (3, 0, 2147483647))
t(-2, -7, 2147483647, 10, (8, 3, 2147483647))
t(-2, -7, 2147483647, 100, (98, 93, 2147483647))
t(-2, -7, 2147483647, 2147483647, (2147483645, 2147483640, 2147483647))
t(-2, -7, 2147483647, 9223372036854775808, (9223372036854775806, 9223372036854775801, 2147483647))
t(-2, -7, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(-2, -7, 9223372036854775808, 1, (0, 0, 9223372036854775808))
t(-2, -7, 9223372036854775808, 5, (3, 0, 9223372036854775808))
t(-2, -7, 9223372036854775808, 10, (8, 3, 9223372036854775808))
t(-2, -7, 9223372036854775808, 100, (98, 93, 9223372036854775808))
t(-2, -7, 9223372036854775808, 2147483647, (2147483645, 2147483640, 9223372036854775808))
t(-2, -7, 9223372036854775808, 9223372036854775808, (9223372036854775806, 9223372036854775801, 9223372036854775808))
t(-2, -2, None, 0, (0, 0, 1))
t(-2, -2, None, 1, (0, 0, 1))
t(-2, -2, None, 5, (3, 3, 1))
t(-2, -2, None, 10, (8, 8, 1))
t(-2, -2, None, 100, (98, 98, 1))
t(-2, -2, None, 2147483647, (2147483645, 2147483645, 1))
t(-2, -2, None, 9223372036854775808, (9223372036854775806, 9223372036854775806, 1))
t(-2, -2, -5, 0, (-1, -1, -5))
t(-2, -2, -5, 1, (-1, -1, -5))
t(-2, -2, -5, 5, (3, 3, -5))
t(-2, -2, -5, 10, (8, 8, -5))
t(-2, -2, -5, 100, (98, 98, -5))
t(-2, -2, -5, 2147483647, (2147483645, 2147483645, -5))
t(-2, -2, -5, 9223372036854775808, (9223372036854775806, 9223372036854775806, -5))
t(-2, -2, -3, 0, (-1, -1, -3))
t(-2, -2, -3, 1, (-1, -1, -3))
t(-2, -2, -3, 5, (3, 3, -3))
t(-2, -2, -3, 10, (8, 8, -3))
t(-2, -2, -3, 100, (98, 98, -3))
t(-2, -2, -3, 2147483647, (2147483645, 2147483645, -3))
t(-2, -2, -3, 9223372036854775808, (9223372036854775806, 9223372036854775806, -3))
t(-2, -2, -1, 0, (-1, -1, -1))
t(-2, -2, -1, 1, (-1, -1, -1))
t(-2, -2, -1, 5, (3, 3, -1))
t(-2, -2, -1, 10, (8, 8, -1))
t(-2, -2, -1, 100, (98, 98, -1))
t(-2, -2, -1, 2147483647, (2147483645, 2147483645, -1))
t(-2, -2, -1, 9223372036854775808, (9223372036854775806, 9223372036854775806, -1))
t(-2, -2, 1, 0, (0, 0, 1))
t(-2, -2, 1, 1, (0, 0, 1))
t(-2, -2, 1, 5, (3, 3, 1))
t(-2, -2, 1, 10, (8, 8, 1))
t(-2, -2, 1, 100, (98, 98, 1))
t(-2, -2, 1, 2147483647, (2147483645, 2147483645, 1))
t(-2, -2, 1, 9223372036854775808, (9223372036854775806, 9223372036854775806, 1))
t(-2, -2, 5, 0, (0, 0, 5))
t(-2, -2, 5, 1, (0, 0, 5))
t(-2, -2, 5, 5, (3, 3, 5))
t(-2, -2, 5, 10, (8, 8, 5))
t(-2, -2, 5, 100, (98, 98, 5))
t(-2, -2, 5, 2147483647, (2147483645, 2147483645, 5))
t(-2, -2, 5, 9223372036854775808, (9223372036854775806, 9223372036854775806, 5))
t(-2, -2, 20, 0, (0, 0, 20))
t(-2, -2, 20, 1, (0, 0, 20))
t(-2, -2, 20, 5, (3, 3, 20))
t(-2, -2, 20, 10, (8, 8, 20))
t(-2, -2, 20, 100, (98, 98, 20))
t(-2, -2, 20, 2147483647, (2147483645, 2147483645, 20))
t(-2, -2, 20, 9223372036854775808, (9223372036854775806, 9223372036854775806, 20))
t(-2, -2, 2147483647, 0, (0, 0, 2147483647))
t(-2, -2, 2147483647, 1, (0, 0, 2147483647))
t(-2, -2, 2147483647, 5, (3, 3, 2147483647))
t(-2, -2, 2147483647, 10, (8, 8, 2147483647))
t(-2, -2, 2147483647, 100, (98, 98, 2147483647))
t(-2, -2, 2147483647, 2147483647, (2147483645, 2147483645, 2147483647))
t(-2, -2, 2147483647, 9223372036854775808, (9223372036854775806, 9223372036854775806, 2147483647))
t(-2, -2, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(-2, -2, 9223372036854775808, 1, (0, 0, 9223372036854775808))
t(-2, -2, 9223372036854775808, 5, (3, 3, 9223372036854775808))
t(-2, -2, 9223372036854775808, 10, (8, 8, 9223372036854775808))
t(-2, -2, 9223372036854775808, 100, (98, 98, 9223372036854775808))
t(-2, -2, 9223372036854775808, 2147483647, (2147483645, 2147483645, 9223372036854775808))
t(-2, -2, 9223372036854775808, 9223372036854775808, (9223372036854775806, 9223372036854775806, 9223372036854775808))
t(-2, 0, None, 0, (0, 0, 1))
t(-2, 0, None, 1, (0, 0, 1))
t(-2, 0, None, 5, (3, 0, 1))
t(-2, 0, None, 10, (8, 0, 1))
t(-2, 0, None, 100, (98, 0, 1))
t(-2, 0, None, 2147483647, (2147483645, 0, 1))
t(-2, 0, None, 9223372036854775808, (9223372036854775806, 0, 1))
t(-2, 0, -5, 0, (-1, -1, -5))
t(-2, 0, -5, 1, (-1, 0, -5))
t(-2, 0, -5, 5, (3, 0, -5))
t(-2, 0, -5, 10, (8, 0, -5))
t(-2, 0, -5, 100, (98, 0, -5))
t(-2, 0, -5, 2147483647, (2147483645, 0, -5))
t(-2, 0, -5, 9223372036854775808, (9223372036854775806, 0, -5))
t(-2, 0, -3, 0, (-1, -1, -3))
t(-2, 0, -3, 1, (-1, 0, -3))
t(-2, 0, -3, 5, (3, 0, -3))
t(-2, 0, -3, 10, (8, 0, -3))
t(-2, 0, -3, 100, (98, 0, -3))
t(-2, 0, -3, 2147483647, (2147483645, 0, -3))
t(-2, 0, -3, 9223372036854775808, (9223372036854775806, 0, -3))
t(-2, 0, -1, 0, (-1, -1, -1))
t(-2, 0, -1, 1, (-1, 0, -1))
t(-2, 0, -1, 5, (3, 0, -1))
t(-2, 0, -1, 10, (8, 0, -1))
t(-2, 0, -1, 100, (98, 0, -1))
t(-2, 0, -1, 2147483647, (2147483645, 0, -1))
t(-2, 0, -1, 9223372036854775808, (9223372036854775806, 0, -1))
t(-2, 0, 1, 0, (0, 0, 1))
t(-2, 0, 1, 1, (0, 0, 1))
t(-2, 0, 1, 5, (3, 0, 1))
t(-2, 0, 1, 10, (8, 0, 1))
t(-2, 0, 1, 100, (98, 0, 1))
t(-2, 0, 1, 2147483647, (2147483645, 0, 1))
t(-2, 0, 1, 9223372036854775808, (9223372036854775806, 0, 1))
t(-2, 0, 5, 0, (0, 0, 5))
t(-2, 0, 5, 1, (0, 0, 5))
t(-2, 0, 5, 5, (3, 0, 5))
t(-2, 0, 5, 10, (8, 0, 5))
t(-2, 0, 5, 100, (98, 0, 5))
t(-2, 0, 5, 2147483647, (2147483645, 0, 5))
t(-2, 0, 5, 9223372036854775808, (9223372036854775806, 0, 5))
t(-2, 0, 20, 0, (0, 0, 20))
t(-2, 0, 20, 1, (0, 0, 20))
t(-2, 0, 20, 5, (3, 0, 20))
t(-2, 0, 20, 10, (8, 0, 20))
t(-2, 0, 20, 100, (98, 0, 20))
t(-2, 0, 20, 2147483647, (2147483645, 0, 20))
t(-2, 0, 20, 9223372036854775808, (9223372036854775806, 0, 20))
t(-2, 0, 2147483647, 0, (0, 0, 2147483647))
t(-2, 0, 2147483647, 1, (0, 0, 2147483647))
t(-2, 0, 2147483647, 5, (3, 0, 2147483647))
t(-2, 0, 2147483647, 10, (8, 0, 2147483647))
t(-2, 0, 2147483647, 100, (98, 0, 2147483647))
t(-2, 0, 2147483647, 2147483647, (2147483645, 0, 2147483647))
t(-2, 0, 2147483647, 9223372036854775808, (9223372036854775806, 0, 2147483647))
t(-2, 0, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(-2, 0, 9223372036854775808, 1, (0, 0, 9223372036854775808))
t(-2, 0, 9223372036854775808, 5, (3, 0, 9223372036854775808))
t(-2, 0, 9223372036854775808, 10, (8, 0, 9223372036854775808))
t(-2, 0, 9223372036854775808, 100, (98, 0, 9223372036854775808))
t(-2, 0, 9223372036854775808, 2147483647, (2147483645, 0, 9223372036854775808))
t(-2, 0, 9223372036854775808, 9223372036854775808, (9223372036854775806, 0, 9223372036854775808))
t(-2, 1, None, 0, (0, 0, 1))
t(-2, 1, None, 1, (0, 1, 1))
t(-2, 1, None, 5, (3, 1, 1))
t(-2, 1, None, 10, (8, 1, 1))
t(-2, 1, None, 100, (98, 1, 1))
t(-2, 1, None, 2147483647, (2147483645, 1, 1))
t(-2, 1, None, 9223372036854775808, (9223372036854775806, 1, 1))
t(-2, 1, -5, 0, (-1, -1, -5))
t(-2, 1, -5, 1, (-1, 0, -5))
t(-2, 1, -5, 5, (3, 1, -5))
t(-2, 1, -5, 10, (8, 1, -5))
t(-2, 1, -5, 100, (98, 1, -5))
t(-2, 1, -5, 2147483647, (2147483645, 1, -5))
t(-2, 1, -5, 9223372036854775808, (9223372036854775806, 1, -5))
t(-2, 1, -3, 0, (-1, -1, -3))
t(-2, 1, -3, 1, (-1, 0, -3))
t(-2, 1, -3, 5, (3, 1, -3))
t(-2, 1, -3, 10, (8, 1, -3))
t(-2, 1, -3, 100, (98, 1, -3))
t(-2, 1, -3, 2147483647, (2147483645, 1, -3))
t(-2, 1, -3, 9223372036854775808, (9223372036854775806, 1, -3))
t(-2, 1, -1, 0, (-1, -1, -1))
t(-2, 1, -1, 1, (-1, 0, -1))
t(-2, 1, -1, 5, (3, 1, -1))
t(-2, 1, -1, 10, (8, 1, -1))
t(-2, 1, -1, 100, (98, 1, -1))
t(-2, 1, -1, 2147483647, (2147483645, 1, -1))
t(-2, 1, -1, 9223372036854775808, (9223372036854775806, 1, -1))
t(-2, 1, 1, 0, (0, 0, 1))
t(-2, 1, 1, 1, (0, 1, 1))
t(-2, 1, 1, 5, (3, 1, 1))
t(-2, 1, 1, 10, (8, 1, 1))
t(-2, 1, 1, 100, (98, 1, 1))
t(-2, 1, 1, 2147483647, (2147483645, 1, 1))
t(-2, 1, 1, 9223372036854775808, (9223372036854775806, 1, 1))
t(-2, 1, 5, 0, (0, 0, 5))
t(-2, 1, 5, 1, (0, 1, 5))
t(-2, 1, 5, 5, (3, 1, 5))
t(-2, 1, 5, 10, (8, 1, 5))
t(-2, 1, 5, 100, (98, 1, 5))
t(-2, 1, 5, 2147483647, (2147483645, 1, 5))
t(-2, 1, 5, 9223372036854775808, (9223372036854775806, 1, 5))
t(-2, 1, 20, 0, (0, 0, 20))
t(-2, 1, 20, 1, (0, 1, 20))
t(-2, 1, 20, 5, (3, 1, 20))
t(-2, 1, 20, 10, (8, 1, 20))
t(-2, 1, 20, 100, (98, 1, 20))
t(-2, 1, 20, 2147483647, (2147483645, 1, 20))
t(-2, 1, 20, 9223372036854775808, (9223372036854775806, 1, 20))
t(-2, 1, 2147483647, 0, (0, 0, 2147483647))
t(-2, 1, 2147483647, 1, (0, 1, 2147483647))
t(-2, 1, 2147483647, 5, (3, 1, 2147483647))
t(-2, 1, 2147483647, 10, (8, 1, 2147483647))
t(-2, 1, 2147483647, 100, (98, 1, 2147483647))
t(-2, 1, 2147483647, 2147483647, (2147483645, 1, 2147483647))
t(-2, 1, 2147483647, 9223372036854775808, (9223372036854775806, 1, 2147483647))
t(-2, 1, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(-2, 1, 9223372036854775808, 1, (0, 1, 9223372036854775808))
t(-2, 1, 9223372036854775808, 5, (3, 1, 9223372036854775808))
t(-2, 1, 9223372036854775808, 10, (8, 1, 9223372036854775808))
t(-2, 1, 9223372036854775808, 100, (98, 1, 9223372036854775808))
t(-2, 1, 9223372036854775808, 2147483647, (2147483645, 1, 9223372036854775808))
t(-2, 1, 9223372036854775808, 9223372036854775808, (9223372036854775806, 1, 9223372036854775808))
t(-2, 6, None, 0, (0, 0, 1))
t(-2, 6, None, 1, (0, 1, 1))
t(-2, 6, None, 5, (3, 5, 1))
t(-2, 6, None, 10, (8, 6, 1))
t(-2, 6, None, 100, (98, 6, 1))
t(-2, 6, None, 2147483647, (2147483645, 6, 1))
t(-2, 6, None, 9223372036854775808, (9223372036854775806, 6, 1))
t(-2, 6, -5, 0, (-1, -1, -5))
t(-2, 6, -5, 1, (-1, 0, -5))
t(-2, 6, -5, 5, (3, 4, -5))
t(-2, 6, -5, 10, (8, 6, -5))
t(-2, 6, -5, 100, (98, 6, -5))
t(-2, 6, -5, 2147483647, (2147483645, 6, -5))
t(-2, 6, -5, 9223372036854775808, (9223372036854775806, 6, -5))
t(-2, 6, -3, 0, (-1, -1, -3))
t(-2, 6, -3, 1, (-1, 0, -3))
t(-2, 6, -3, 5, (3, 4, -3))
t(-2, 6, -3, 10, (8, 6, -3))
t(-2, 6, -3, 100, (98, 6, -3))
t(-2, 6, -3, 2147483647, (2147483645, 6, -3))
t(-2, 6, -3, 9223372036854775808, (9223372036854775806, 6, -3))
t(-2, 6, -1, 0, (-1, -1, -1))
t(-2, 6, -1, 1, (-1, 0, -1))
t(-2, 6, -1, 5, (3, 4, -1))
t(-2, 6, -1, 10, (8, 6, -1))
t(-2, 6, -1, 100, (98, 6, -1))
t(-2, 6, -1, 2147483647, (2147483645, 6, -1))
t(-2, 6, -1, 9223372036854775808, (9223372036854775806, 6, -1))
t(-2, 6, 1, 0, (0, 0, 1))
t(-2, 6, 1, 1, (0, 1, 1))
t(-2, 6, 1, 5, (3, 5, 1))
t(-2, 6, 1, 10, (8, 6, 1))
t(-2, 6, 1, 100, (98, 6, 1))
t(-2, 6, 1, 2147483647, (2147483645, 6, 1))
t(-2, 6, 1, 9223372036854775808, (9223372036854775806, 6, 1))
t(-2, 6, 5, 0, (0, 0, 5))
t(-2, 6, 5, 1, (0, 1, 5))
t(-2, 6, 5, 5, (3, 5, 5))
t(-2, 6, 5, 10, (8, 6, 5))
t(-2, 6, 5, 100, (98, 6, 5))
t(-2, 6, 5, 2147483647, (2147483645, 6, 5))
t(-2, 6, 5, 9223372036854775808, (9223372036854775806, 6, 5))
t(-2, 6, 20, 0, (0, 0, 20))
t(-2, 6, 20, 1, (0, 1, 20))
t(-2, 6, 20, 5, (3, 5, 20))
t(-2, 6, 20, 10, (8, 6, 20))
t(-2, 6, 20, 100, (98, 6, 20))
t(-2, 6, 20, 2147483647, (2147483645, 6, 20))
t(-2, 6, 20, 9223372036854775808, (9223372036854775806, 6, 20))
t(-2, 6, 2147483647, 0, (0, 0, 2147483647))
t(-2, 6, 2147483647, 1, (0, 1, 2147483647))
t(-2, 6, 2147483647, 5, (3, 5, 2147483647))
t(-2, 6, 2147483647, 10, (8, 6, 2147483647))
t(-2, 6, 2147483647, 100, (98, 6, 2147483647))
t(-2, 6, 2147483647, 2147483647, (2147483645, 6, 2147483647))
t(-2, 6, 2147483647, 9223372036854775808, (9223372036854775806, 6, 2147483647))
t(-2, 6, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(-2, 6, 9223372036854775808, 1, (0, 1, 9223372036854775808))
t(-2, 6, 9223372036854775808, 5, (3, 5, 9223372036854775808))
t(-2, 6, 9223372036854775808, 10, (8, 6, 9223372036854775808))
t(-2, 6, 9223372036854775808, 100, (98, 6, 9223372036854775808))
t(-2, 6, 9223372036854775808, 2147483647, (2147483645, 6, 9223372036854775808))
t(-2, 6, 9223372036854775808, 9223372036854775808, (9223372036854775806, 6, 9223372036854775808))
t(-2, 10, None, 0, (0, 0, 1))
t(-2, 10, None, 1, (0, 1, 1))
t(-2, 10, None, 5, (3, 5, 1))
t(-2, 10, None, 10, (8, 10, 1))
t(-2, 10, None, 100, (98, 10, 1))
t(-2, 10, None, 2147483647, (2147483645, 10, 1))
t(-2, 10, None, 9223372036854775808, (9223372036854775806, 10, 1))
t(-2, 10, -5, 0, (-1, -1, -5))
t(-2, 10, -5, 1, (-1, 0, -5))
t(-2, 10, -5, 5, (3, 4, -5))
t(-2, 10, -5, 10, (8, 9, -5))
t(-2, 10, -5, 100, (98, 10, -5))
t(-2, 10, -5, 2147483647, (2147483645, 10, -5))
t(-2, 10, -5, 9223372036854775808, (9223372036854775806, 10, -5))
t(-2, 10, -3, 0, (-1, -1, -3))
t(-2, 10, -3, 1, (-1, 0, -3))
t(-2, 10, -3, 5, (3, 4, -3))
t(-2, 10, -3, 10, (8, 9, -3))
t(-2, 10, -3, 100, (98, 10, -3))
t(-2, 10, -3, 2147483647, (2147483645, 10, -3))
t(-2, 10, -3, 9223372036854775808, (9223372036854775806, 10, -3))
t(-2, 10, -1, 0, (-1, -1, -1))
t(-2, 10, -1, 1, (-1, 0, -1))
t(-2, 10, -1, 5, (3, 4, -1))
t(-2, 10, -1, 10, (8, 9, -1))
t(-2, 10, -1, 100, (98, 10, -1))
t(-2, 10, -1, 2147483647, (2147483645, 10, -1))
t(-2, 10, -1, 9223372036854775808, (9223372036854775806, 10, -1))
t(-2, 10, 1, 0, (0, 0, 1))
t(-2, 10, 1, 1, (0, 1, 1))
t(-2, 10, 1, 5, (3, 5, 1))
t(-2, 10, 1, 10, (8, 10, 1))
t(-2, 10, 1, 100, (98, 10, 1))
t(-2, 10, 1, 2147483647, (2147483645, 10, 1))
t(-2, 10, 1, 9223372036854775808, (9223372036854775806, 10, 1))
t(-2, 10, 5, 0, (0, 0, 5))
t(-2, 10, 5, 1, (0, 1, 5))
t(-2, 10, 5, 5, (3, 5, 5))
t(-2, 10, 5, 10, (8, 10, 5))
t(-2, 10, 5, 100, (98, 10, 5))
t(-2, 10, 5, 2147483647, (2147483645, 10, 5))
t(-2, 10, 5, 9223372036854775808, (9223372036854775806, 10, 5))
t(-2, 10, 20, 0, (0, 0, 20))
t(-2, 10, 20, 1, (0, 1, 20))
t(-2, 10, 20, 5, (3, 5, 20))
t(-2, 10, 20, 10, (8, 10, 20))
t(-2, 10, 20, 100, (98, 10, 20))
t(-2, 10, 20, 2147483647, (2147483645, 10, 20))
t(-2, 10, 20, 9223372036854775808, (9223372036854775806, 10, 20))
t(-2, 10, 2147483647, 0, (0, 0, 2147483647))
t(-2, 10, 2147483647, 1, (0, 1, 2147483647))
t(-2, 10, 2147483647, 5, (3, 5, 2147483647))
t(-2, 10, 2147483647, 10, (8, 10, 2147483647))
t(-2, 10, 2147483647, 100, (98, 10, 2147483647))
t(-2, 10, 2147483647, 2147483647, (2147483645, 10, 2147483647))
t(-2, 10, 2147483647, 9223372036854775808, (9223372036854775806, 10, 2147483647))
t(-2, 10, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(-2, 10, 9223372036854775808, 1, (0, 1, 9223372036854775808))
t(-2, 10, 9223372036854775808, 5, (3, 5, 9223372036854775808))
t(-2, 10, 9223372036854775808, 10, (8, 10, 9223372036854775808))
t(-2, 10, 9223372036854775808, 100, (98, 10, 9223372036854775808))
t(-2, 10, 9223372036854775808, 2147483647, (2147483645, 10, 9223372036854775808))
t(-2, 10, 9223372036854775808, 9223372036854775808, (9223372036854775806, 10, 9223372036854775808))
t(-2, 2147483647, None, 0, (0, 0, 1))
t(-2, 2147483647, None, 1, (0, 1, 1))
t(-2, 2147483647, None, 5, (3, 5, 1))
t(-2, 2147483647, None, 10, (8, 10, 1))
t(-2, 2147483647, None, 100, (98, 100, 1))
t(-2, 2147483647, None, 2147483647, (2147483645, 2147483647, 1))
t(-2, 2147483647, None, 9223372036854775808, (9223372036854775806, 2147483647, 1))
t(-2, 2147483647, -5, 0, (-1, -1, -5))
t(-2, 2147483647, -5, 1, (-1, 0, -5))
t(-2, 2147483647, -5, 5, (3, 4, -5))
t(-2, 2147483647, -5, 10, (8, 9, -5))
t(-2, 2147483647, -5, 100, (98, 99, -5))
t(-2, 2147483647, -5, 2147483647, (2147483645, 2147483646, -5))
t(-2, 2147483647, -5, 9223372036854775808, (9223372036854775806, 2147483647, -5))
t(-2, 2147483647, -3, 0, (-1, -1, -3))
t(-2, 2147483647, -3, 1, (-1, 0, -3))
t(-2, 2147483647, -3, 5, (3, 4, -3))
t(-2, 2147483647, -3, 10, (8, 9, -3))
t(-2, 2147483647, -3, 100, (98, 99, -3))
t(-2, 2147483647, -3, 2147483647, (2147483645, 2147483646, -3))
t(-2, 2147483647, -3, 9223372036854775808, (9223372036854775806, 2147483647, -3))
t(-2, 2147483647, -1, 0, (-1, -1, -1))
t(-2, 2147483647, -1, 1, (-1, 0, -1))
t(-2, 2147483647, -1, 5, (3, 4, -1))
t(-2, 2147483647, -1, 10, (8, 9, -1))
t(-2, 2147483647, -1, 100, (98, 99, -1))
t(-2, 2147483647, -1, 2147483647, (2147483645, 2147483646, -1))
t(-2, 2147483647, -1, 9223372036854775808, (9223372036854775806, 2147483647, -1))
t(-2, 2147483647, 1, 0, (0, 0, 1))
t(-2, 2147483647, 1, 1, (0, 1, 1))
t(-2, 2147483647, 1, 5, (3, 5, 1))
t(-2, 2147483647, 1, 10, (8, 10, 1))
t(-2, 2147483647, 1, 100, (98, 100, 1))
t(-2, 2147483647, 1, 2147483647, (2147483645, 2147483647, 1))
t(-2, 2147483647, 1, 9223372036854775808, (9223372036854775806, 2147483647, 1))
t(-2, 2147483647, 5, 0, (0, 0, 5))
t(-2, 2147483647, 5, 1, (0, 1, 5))
t(-2, 2147483647, 5, 5, (3, 5, 5))
t(-2, 2147483647, 5, 10, (8, 10, 5))
t(-2, 2147483647, 5, 100, (98, 100, 5))
t(-2, 2147483647, 5, 2147483647, (2147483645, 2147483647, 5))
t(-2, 2147483647, 5, 9223372036854775808, (9223372036854775806, 2147483647, 5))
t(-2, 2147483647, 20, 0, (0, 0, 20))
t(-2, 2147483647, 20, 1, (0, 1, 20))
t(-2, 2147483647, 20, 5, (3, 5, 20))
t(-2, 2147483647, 20, 10, (8, 10, 20))
t(-2, 2147483647, 20, 100, (98, 100, 20))
t(-2, 2147483647, 20, 2147483647, (2147483645, 2147483647, 20))
t(-2, 2147483647, 20, 9223372036854775808, (9223372036854775806, 2147483647, 20))
t(-2, 2147483647, 2147483647, 0, (0, 0, 2147483647))
t(-2, 2147483647, 2147483647, 1, (0, 1, 2147483647))
t(-2, 2147483647, 2147483647, 5, (3, 5, 2147483647))
t(-2, 2147483647, 2147483647, 10, (8, 10, 2147483647))
t(-2, 2147483647, 2147483647, 100, (98, 100, 2147483647))
t(-2, 2147483647, 2147483647, 2147483647, (2147483645, 2147483647, 2147483647))
t(-2, 2147483647, 2147483647, 9223372036854775808, (9223372036854775806, 2147483647, 2147483647))
t(-2, 2147483647, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(-2, 2147483647, 9223372036854775808, 1, (0, 1, 9223372036854775808))
t(-2, 2147483647, 9223372036854775808, 5, (3, 5, 9223372036854775808))
t(-2, 2147483647, 9223372036854775808, 10, (8, 10, 9223372036854775808))
t(-2, 2147483647, 9223372036854775808, 100, (98, 100, 9223372036854775808))
t(-2, 2147483647, 9223372036854775808, 2147483647, (2147483645, 2147483647, 9223372036854775808))
t(-2, 2147483647, 9223372036854775808, 9223372036854775808, (9223372036854775806, 2147483647, 9223372036854775808))
t(-2, 9223372036854775808, None, 0, (0, 0, 1))
t(-2, 9223372036854775808, None, 1, (0, 1, 1))
t(-2, 9223372036854775808, None, 5, (3, 5, 1))
t(-2, 9223372036854775808, None, 10, (8, 10, 1))
t(-2, 9223372036854775808, None, 100, (98, 100, 1))
t(-2, 9223372036854775808, None, 2147483647, (2147483645, 2147483647, 1))
t(-2, 9223372036854775808, None, 9223372036854775808, (9223372036854775806, 9223372036854775808, 1))
t(-2, 9223372036854775808, -5, 0, (-1, -1, -5))
t(-2, 9223372036854775808, -5, 1, (-1, 0, -5))
t(-2, 9223372036854775808, -5, 5, (3, 4, -5))
t(-2, 9223372036854775808, -5, 10, (8, 9, -5))
t(-2, 9223372036854775808, -5, 100, (98, 99, -5))
t(-2, 9223372036854775808, -5, 2147483647, (2147483645, 2147483646, -5))
t(-2, 9223372036854775808, -5, 9223372036854775808, (9223372036854775806, 9223372036854775807, -5))
t(-2, 9223372036854775808, -3, 0, (-1, -1, -3))
t(-2, 9223372036854775808, -3, 1, (-1, 0, -3))
t(-2, 9223372036854775808, -3, 5, (3, 4, -3))
t(-2, 9223372036854775808, -3, 10, (8, 9, -3))
t(-2, 9223372036854775808, -3, 100, (98, 99, -3))
t(-2, 9223372036854775808, -3, 2147483647, (2147483645, 2147483646, -3))
t(-2, 9223372036854775808, -3, 9223372036854775808, (9223372036854775806, 9223372036854775807, -3))
t(-2, 9223372036854775808, -1, 0, (-1, -1, -1))
t(-2, 9223372036854775808, -1, 1, (-1, 0, -1))
t(-2, 9223372036854775808, -1, 5, (3, 4, -1))
t(-2, 9223372036854775808, -1, 10, (8, 9, -1))
t(-2, 9223372036854775808, -1, 100, (98, 99, -1))
t(-2, 9223372036854775808, -1, 2147483647, (2147483645, 2147483646, -1))
t(-2, 9223372036854775808, -1, 9223372036854775808, (9223372036854775806, 9223372036854775807, -1))
t(-2, 9223372036854775808, 1, 0, (0, 0, 1))
t(-2, 9223372036854775808, 1, 1, (0, 1, 1))
t(-2, 9223372036854775808, 1, 5, (3, 5, 1))
t(-2, 9223372036854775808, 1, 10, (8, 10, 1))
t(-2, 9223372036854775808, 1, 100, (98, 100, 1))
t(-2, 9223372036854775808, 1, 2147483647, (2147483645, 2147483647, 1))
t(-2, 9223372036854775808, 1, 9223372036854775808, (9223372036854775806, 9223372036854775808, 1))
t(-2, 9223372036854775808, 5, 0, (0, 0, 5))
t(-2, 9223372036854775808, 5, 1, (0, 1, 5))
t(-2, 9223372036854775808, 5, 5, (3, 5, 5))
t(-2, 9223372036854775808, 5, 10, (8, 10, 5))
t(-2, 9223372036854775808, 5, 100, (98, 100, 5))
t(-2, 9223372036854775808, 5, 2147483647, (2147483645, 2147483647, 5))
t(-2, 9223372036854775808, 5, 9223372036854775808, (9223372036854775806, 9223372036854775808, 5))
t(-2, 9223372036854775808, 20, 0, (0, 0, 20))
t(-2, 9223372036854775808, 20, 1, (0, 1, 20))
t(-2, 9223372036854775808, 20, 5, (3, 5, 20))
t(-2, 9223372036854775808, 20, 10, (8, 10, 20))
t(-2, 9223372036854775808, 20, 100, (98, 100, 20))
t(-2, 9223372036854775808, 20, 2147483647, (2147483645, 2147483647, 20))
t(-2, 9223372036854775808, 20, 9223372036854775808, (9223372036854775806, 9223372036854775808, 20))
t(-2, 9223372036854775808, 2147483647, 0, (0, 0, 2147483647))
t(-2, 9223372036854775808, 2147483647, 1, (0, 1, 2147483647))
t(-2, 9223372036854775808, 2147483647, 5, (3, 5, 2147483647))
t(-2, 9223372036854775808, 2147483647, 10, (8, 10, 2147483647))
t(-2, 9223372036854775808, 2147483647, 100, (98, 100, 2147483647))
t(-2, 9223372036854775808, 2147483647, 2147483647, (2147483645, 2147483647, 2147483647))
t(-2, 9223372036854775808, 2147483647, 9223372036854775808, (9223372036854775806, 9223372036854775808, 2147483647))
t(-2, 9223372036854775808, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(-2, 9223372036854775808, 9223372036854775808, 1, (0, 1, 9223372036854775808))
t(-2, 9223372036854775808, 9223372036854775808, 5, (3, 5, 9223372036854775808))
t(-2, 9223372036854775808, 9223372036854775808, 10, (8, 10, 9223372036854775808))
t(-2, 9223372036854775808, 9223372036854775808, 100, (98, 100, 9223372036854775808))
t(-2, 9223372036854775808, 9223372036854775808, 2147483647, (2147483645, 2147483647, 9223372036854775808))
t(-2, 9223372036854775808, 9223372036854775808, 9223372036854775808, (9223372036854775806, 9223372036854775808, 9223372036854775808))
t(0, None, None, 0, (0, 0, 1))
t(0, None, None, 1, (0, 1, 1))
t(0, None, None, 5, (0, 5, 1))
t(0, None, None, 10, (0, 10, 1))
t(0, None, None, 100, (0, 100, 1))
t(0, None, None, 2147483647, (0, 2147483647, 1))
t(0, None, None, 9223372036854775808, (0, 9223372036854775808, 1))
t(0, None, -5, 0, (-1, -1, -5))
t(0, None, -5, 1, (0, -1, -5))
t(0, None, -5, 5, (0, -1, -5))
t(0, None, -5, 10, (0, -1, -5))
t(0, None, -5, 100, (0, -1, -5))
t(0, None, -5, 2147483647, (0, -1, -5))
t(0, None, -5, 9223372036854775808, (0, -1, -5))
t(0, None, -3, 0, (-1, -1, -3))
t(0, None, -3, 1, (0, -1, -3))
t(0, None, -3, 5, (0, -1, -3))
t(0, None, -3, 10, (0, -1, -3))
t(0, None, -3, 100, (0, -1, -3))
t(0, None, -3, 2147483647, (0, -1, -3))
t(0, None, -3, 9223372036854775808, (0, -1, -3))
t(0, None, -1, 0, (-1, -1, -1))
t(0, None, -1, 1, (0, -1, -1))
t(0, None, -1, 5, (0, -1, -1))
t(0, None, -1, 10, (0, -1, -1))
t(0, None, -1, 100, (0, -1, -1))
t(0, None, -1, 2147483647, (0, -1, -1))
t(0, None, -1, 9223372036854775808, (0, -1, -1))
t(0, None, 1, 0, (0, 0, 1))
t(0, None, 1, 1, (0, 1, 1))
t(0, None, 1, 5, (0, 5, 1))
t(0, None, 1, 10, (0, 10, 1))
t(0, None, 1, 100, (0, 100, 1))
t(0, None, 1, 2147483647, (0, 2147483647, 1))
t(0, None, 1, 9223372036854775808, (0, 9223372036854775808, 1))
t(0, None, 5, 0, (0, 0, 5))
t(0, None, 5, 1, (0, 1, 5))
t(0, None, 5, 5, (0, 5, 5))
t(0, None, 5, 10, (0, 10, 5))
t(0, None, 5, 100, (0, 100, 5))
t(0, None, 5, 2147483647, (0, 2147483647, 5))
t(0, None, 5, 9223372036854775808, (0, 9223372036854775808, 5))
t(0, None, 20, 0, (0, 0, 20))
t(0, None, 20, 1, (0, 1, 20))
t(0, None, 20, 5, (0, 5, 20))
t(0, None, 20, 10, (0, 10, 20))
t(0, None, 20, 100, (0, 100, 20))
t(0, None, 20, 2147483647, (0, 2147483647, 20))
t(0, None, 20, 9223372036854775808, (0, 9223372036854775808, 20))
t(0, None, 2147483647, 0, (0, 0, 2147483647))
t(0, None, 2147483647, 1, (0, 1, 2147483647))
t(0, None, 2147483647, 5, (0, 5, 2147483647))
t(0, None, 2147483647, 10, (0, 10, 2147483647))
t(0, None, 2147483647, 100, (0, 100, 2147483647))
t(0, None, 2147483647, 2147483647, (0, 2147483647, 2147483647))
t(0, None, 2147483647, 9223372036854775808, (0, 9223372036854775808, 2147483647))
t(0, None, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(0, None, 9223372036854775808, 1, (0, 1, 9223372036854775808))
t(0, None, 9223372036854775808, 5, (0, 5, 9223372036854775808))
t(0, None, 9223372036854775808, 10, (0, 10, 9223372036854775808))
t(0, None, 9223372036854775808, 100, (0, 100, 9223372036854775808))
t(0, None, 9223372036854775808, 2147483647, (0, 2147483647, 9223372036854775808))
t(0, None, 9223372036854775808, 9223372036854775808, (0, 9223372036854775808, 9223372036854775808))
t(0, -7, None, 0, (0, 0, 1))
t(0, -7, None, 1, (0, 0, 1))
t(0, -7, None, 5, (0, 0, 1))
t(0, -7, None, 10, (0, 3, 1))
t(0, -7, None, 100, (0, 93, 1))
t(0, -7, None, 2147483647, (0, 2147483640, 1))
t(0, -7, None, 9223372036854775808, (0, 9223372036854775801, 1))
t(0, -7, -5, 0, (-1, -1, -5))
t(0, -7, -5, 1, (0, -1, -5))
t(0, -7, -5, 5, (0, -1, -5))
t(0, -7, -5, 10, (0, 3, -5))
t(0, -7, -5, 100, (0, 93, -5))
t(0, -7, -5, 2147483647, (0, 2147483640, -5))
t(0, -7, -5, 9223372036854775808, (0, 9223372036854775801, -5))
t(0, -7, -3, 0, (-1, -1, -3))
t(0, -7, -3, 1, (0, -1, -3))
t(0, -7, -3, 5, (0, -1, -3))
t(0, -7, -3, 10, (0, 3, -3))
t(0, -7, -3, 100, (0, 93, -3))
t(0, -7, -3, 2147483647, (0, 2147483640, -3))
t(0, -7, -3, 9223372036854775808, (0, 9223372036854775801, -3))
t(0, -7, -1, 0, (-1, -1, -1))
t(0, -7, -1, 1, (0, -1, -1))
t(0, -7, -1, 5, (0, -1, -1))
t(0, -7, -1, 10, (0, 3, -1))
t(0, -7, -1, 100, (0, 93, -1))
t(0, -7, -1, 2147483647, (0, 2147483640, -1))
t(0, -7, -1, 9223372036854775808, (0, 9223372036854775801, -1))
t(0, -7, 1, 0, (0, 0, 1))
t(0, -7, 1, 1, (0, 0, 1))
t(0, -7, 1, 5, (0, 0, 1))
t(0, -7, 1, 10, (0, 3, 1))
t(0, -7, 1, 100, (0, 93, 1))
t(0, -7, 1, 2147483647, (0, 2147483640, 1))
t(0, -7, 1, 9223372036854775808, (0, 9223372036854775801, 1))
t(0, -7, 5, 0, (0, 0, 5))
t(0, -7, 5, 1, (0, 0, 5))
t(0, -7, 5, 5, (0, 0, 5))
t(0, -7, 5, 10, (0, 3, 5))
t(0, -7, 5, 100, (0, 93, 5))
t(0, -7, 5, 2147483647, (0, 2147483640, 5))
t(0, -7, 5, 9223372036854775808, (0, 9223372036854775801, 5))
t(0, -7, 20, 0, (0, 0, 20))
t(0, -7, 20, 1, (0, 0, 20))
t(0, -7, 20, 5, (0, 0, 20))
t(0, -7, 20, 10, (0, 3, 20))
t(0, -7, 20, 100, (0, 93, 20))
t(0, -7, 20, 2147483647, (0, 2147483640, 20))
t(0, -7, 20, 9223372036854775808, (0, 9223372036854775801, 20))
t(0, -7, 2147483647, 0, (0, 0, 2147483647))
t(0, -7, 2147483647, 1, (0, 0, 2147483647))
t(0, -7, 2147483647, 5, (0, 0, 2147483647))
t(0, -7, 2147483647, 10, (0, 3, 2147483647))
t(0, -7, 2147483647, 100, (0, 93, 2147483647))
t(0, -7, 2147483647, 2147483647, (0, 2147483640, 2147483647))
t(0, -7, 2147483647, 9223372036854775808, (0, 9223372036854775801, 2147483647))
t(0, -7, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(0, -7, 9223372036854775808, 1, (0, 0, 9223372036854775808))
t(0, -7, 9223372036854775808, 5, (0, 0, 9223372036854775808))
t(0, -7, 9223372036854775808, 10, (0, 3, 9223372036854775808))
t(0, -7, 9223372036854775808, 100, (0, 93, 9223372036854775808))
t(0, -7, 9223372036854775808, 2147483647, (0, 2147483640, 9223372036854775808))
t(0, -7, 9223372036854775808, 9223372036854775808, (0, 9223372036854775801, 9223372036854775808))
t(0, -2, None, 0, (0, 0, 1))
t(0, -2, None, 1, (0, 0, 1))
t(0, -2, None, 5, (0, 3, 1))
t(0, -2, None, 10, (0, 8, 1))
t(0, -2, None, 100, (0, 98, 1))
t(0, -2, None, 2147483647, (0, 2147483645, 1))
t(0, -2, None, 9223372036854775808, (0, 9223372036854775806, 1))
t(0, -2, -5, 0, (-1, -1, -5))
t(0, -2, -5, 1, (0, -1, -5))
t(0, -2, -5, 5, (0, 3, -5))
t(0, -2, -5, 10, (0, 8, -5))
t(0, -2, -5, 100, (0, 98, -5))
t(0, -2, -5, 2147483647, (0, 2147483645, -5))
t(0, -2, -5, 9223372036854775808, (0, 9223372036854775806, -5))
t(0, -2, -3, 0, (-1, -1, -3))
t(0, -2, -3, 1, (0, -1, -3))
t(0, -2, -3, 5, (0, 3, -3))
t(0, -2, -3, 10, (0, 8, -3))
t(0, -2, -3, 100, (0, 98, -3))
t(0, -2, -3, 2147483647, (0, 2147483645, -3))
t(0, -2, -3, 9223372036854775808, (0, 9223372036854775806, -3))
t(0, -2, -1, 0, (-1, -1, -1))
t(0, -2, -1, 1, (0, -1, -1))
t(0, -2, -1, 5, (0, 3, -1))
t(0, -2, -1, 10, (0, 8, -1))
t(0, -2, -1, 100, (0, 98, -1))
t(0, -2, -1, 2147483647, (0, 2147483645, -1))
t(0, -2, -1, 9223372036854775808, (0, 9223372036854775806, -1))
t(0, -2, 1, 0, (0, 0, 1))
t(0, -2, 1, 1, (0, 0, 1))
t(0, -2, 1, 5, (0, 3, 1))
t(0, -2, 1, 10, (0, 8, 1))
t(0, -2, 1, 100, (0, 98, 1))
t(0, -2, 1, 2147483647, (0, 2147483645, 1))
t(0, -2, 1, 9223372036854775808, (0, 9223372036854775806, 1))
t(0, -2, 5, 0, (0, 0, 5))
t(0, -2, 5, 1, (0, 0, 5))
t(0, -2, 5, 5, (0, 3, 5))
t(0, -2, 5, 10, (0, 8, 5))
t(0, -2, 5, 100, (0, 98, 5))
t(0, -2, 5, 2147483647, (0, 2147483645, 5))
t(0, -2, 5, 9223372036854775808, (0, 9223372036854775806, 5))
t(0, -2, 20, 0, (0, 0, 20))
t(0, -2, 20, 1, (0, 0, 20))
t(0, -2, 20, 5, (0, 3, 20))
t(0, -2, 20, 10, (0, 8, 20))
t(0, -2, 20, 100, (0, 98, 20))
t(0, -2, 20, 2147483647, (0, 2147483645, 20))
t(0, -2, 20, 9223372036854775808, (0, 9223372036854775806, 20))
t(0, -2, 2147483647, 0, (0, 0, 2147483647))
t(0, -2, 2147483647, 1, (0, 0, 2147483647))
t(0, -2, 2147483647, 5, (0, 3, 2147483647))
t(0, -2, 2147483647, 10, (0, 8, 2147483647))
t(0, -2, 2147483647, 100, (0, 98, 2147483647))
t(0, -2, 2147483647, 2147483647, (0, 2147483645, 2147483647))
t(0, -2, 2147483647, 9223372036854775808, (0, 9223372036854775806, 2147483647))
t(0, -2, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(0, -2, 9223372036854775808, 1, (0, 0, 9223372036854775808))
t(0, -2, 9223372036854775808, 5, (0, 3, 9223372036854775808))
t(0, -2, 9223372036854775808, 10, (0, 8, 9223372036854775808))
t(0, -2, 9223372036854775808, 100, (0, 98, 9223372036854775808))
t(0, -2, 9223372036854775808, 2147483647, (0, 2147483645, 9223372036854775808))
t(0, -2, 9223372036854775808, 9223372036854775808, (0, 9223372036854775806, 9223372036854775808))
t(0, 0, None, 0, (0, 0, 1))
t(0, 0, None, 1, (0, 0, 1))
t(0, 0, None, 5, (0, 0, 1))
t(0, 0, None, 10, (0, 0, 1))
t(0, 0, None, 100, (0, 0, 1))
t(0, 0, None, 2147483647, (0, 0, 1))
t(0, 0, None, 9223372036854775808, (0, 0, 1))
t(0, 0, -5, 0, (-1, -1, -5))
t(0, 0, -5, 1, (0, 0, -5))
t(0, 0, -5, 5, (0, 0, -5))
t(0, 0, -5, 10, (0, 0, -5))
t(0, 0, -5, 100, (0, 0, -5))
t(0, 0, -5, 2147483647, (0, 0, -5))
t(0, 0, -5, 9223372036854775808, (0, 0, -5))
t(0, 0, -3, 0, (-1, -1, -3))
t(0, 0, -3, 1, (0, 0, -3))
t(0, 0, -3, 5, (0, 0, -3))
t(0, 0, -3, 10, (0, 0, -3))
t(0, 0, -3, 100, (0, 0, -3))
t(0, 0, -3, 2147483647, (0, 0, -3))
t(0, 0, -3, 9223372036854775808, (0, 0, -3))
t(0, 0, -1, 0, (-1, -1, -1))
t(0, 0, -1, 1, (0, 0, -1))
t(0, 0, -1, 5, (0, 0, -1))
t(0, 0, -1, 10, (0, 0, -1))
t(0, 0, -1, 100, (0, 0, -1))
t(0, 0, -1, 2147483647, (0, 0, -1))
t(0, 0, -1, 9223372036854775808, (0, 0, -1))
t(0, 0, 1, 0, (0, 0, 1))
t(0, 0, 1, 1, (0, 0, 1))
t(0, 0, 1, 5, (0, 0, 1))
t(0, 0, 1, 10, (0, 0, 1))
t(0, 0, 1, 100, (0, 0, 1))
t(0, 0, 1, 2147483647, (0, 0, 1))
t(0, 0, 1, 9223372036854775808, (0, 0, 1))
t(0, 0, 5, 0, (0, 0, 5))
t(0, 0, 5, 1, (0, 0, 5))
t(0, 0, 5, 5, (0, 0, 5))
t(0, 0, 5, 10, (0, 0, 5))
t(0, 0, 5, 100, (0, 0, 5))
t(0, 0, 5, 2147483647, (0, 0, 5))
t(0, 0, 5, 9223372036854775808, (0, 0, 5))
t(0, 0, 20, 0, (0, 0, 20))
t(0, 0, 20, 1, (0, 0, 20))
t(0, 0, 20, 5, (0, 0, 20))
t(0, 0, 20, 10, (0, 0, 20))
t(0, 0, 20, 100, (0, 0, 20))
t(0, 0, 20, 2147483647, (0, 0, 20))
t(0, 0, 20, 9223372036854775808, (0, 0, 20))
t(0, 0, 2147483647, 0, (0, 0, 2147483647))
t(0, 0, 2147483647, 1, (0, 0, 2147483647))
t(0, 0, 2147483647, 5, (0, 0, 2147483647))
t(0, 0, 2147483647, 10, (0, 0, 2147483647))
t(0, 0, 2147483647, 100, (0, 0, 2147483647))
t(0, 0, 2147483647, 2147483647, (0, 0, 2147483647))
t(0, 0, 2147483647, 9223372036854775808, (0, 0, 2147483647))
t(0, 0, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(0, 0, 9223372036854775808, 1, (0, 0, 9223372036854775808))
t(0, 0, 9223372036854775808, 5, (0, 0, 9223372036854775808))
t(0, 0, 9223372036854775808, 10, (0, 0, 9223372036854775808))
t(0, 0, 9223372036854775808, 100, (0, 0, 9223372036854775808))
t(0, 0, 9223372036854775808, 2147483647, (0, 0, 9223372036854775808))
t(0, 0, 9223372036854775808, 9223372036854775808, (0, 0, 9223372036854775808))
t(0, 1, None, 0, (0, 0, 1))
t(0, 1, None, 1, (0, 1, 1))
t(0, 1, None, 5, (0, 1, 1))
t(0, 1, None, 10, (0, 1, 1))
t(0, 1, None, 100, (0, 1, 1))
t(0, 1, None, 2147483647, (0, 1, 1))
t(0, 1, None, 9223372036854775808, (0, 1, 1))
t(0, 1, -5, 0, (-1, -1, -5))
t(0, 1, -5, 1, (0, 0, -5))
t(0, 1, -5, 5, (0, 1, -5))
t(0, 1, -5, 10, (0, 1, -5))
t(0, 1, -5, 100, (0, 1, -5))
t(0, 1, -5, 2147483647, (0, 1, -5))
t(0, 1, -5, 9223372036854775808, (0, 1, -5))
t(0, 1, -3, 0, (-1, -1, -3))
t(0, 1, -3, 1, (0, 0, -3))
t(0, 1, -3, 5, (0, 1, -3))
t(0, 1, -3, 10, (0, 1, -3))
t(0, 1, -3, 100, (0, 1, -3))
t(0, 1, -3, 2147483647, (0, 1, -3))
t(0, 1, -3, 9223372036854775808, (0, 1, -3))
t(0, 1, -1, 0, (-1, -1, -1))
t(0, 1, -1, 1, (0, 0, -1))
t(0, 1, -1, 5, (0, 1, -1))
t(0, 1, -1, 10, (0, 1, -1))
t(0, 1, -1, 100, (0, 1, -1))
t(0, 1, -1, 2147483647, (0, 1, -1))
t(0, 1, -1, 9223372036854775808, (0, 1, -1))
t(0, 1, 1, 0, (0, 0, 1))
t(0, 1, 1, 1, (0, 1, 1))
t(0, 1, 1, 5, (0, 1, 1))
t(0, 1, 1, 10, (0, 1, 1))
t(0, 1, 1, 100, (0, 1, 1))
t(0, 1, 1, 2147483647, (0, 1, 1))
t(0, 1, 1, 9223372036854775808, (0, 1, 1))
t(0, 1, 5, 0, (0, 0, 5))
t(0, 1, 5, 1, (0, 1, 5))
t(0, 1, 5, 5, (0, 1, 5))
t(0, 1, 5, 10, (0, 1, 5))
t(0, 1, 5, 100, (0, 1, 5))
t(0, 1, 5, 2147483647, (0, 1, 5))
t(0, 1, 5, 9223372036854775808, (0, 1, 5))
t(0, 1, 20, 0, (0, 0, 20))
t(0, 1, 20, 1, (0, 1, 20))
t(0, 1, 20, 5, (0, 1, 20))
t(0, 1, 20, 10, (0, 1, 20))
t(0, 1, 20, 100, (0, 1, 20))
t(0, 1, 20, 2147483647, (0, 1, 20))
t(0, 1, 20, 9223372036854775808, (0, 1, 20))
t(0, 1, 2147483647, 0, (0, 0, 2147483647))
t(0, 1, 2147483647, 1, (0, 1, 2147483647))
t(0, 1, 2147483647, 5, (0, 1, 2147483647))
t(0, 1, 2147483647, 10, (0, 1, 2147483647))
t(0, 1, 2147483647, 100, (0, 1, 2147483647))
t(0, 1, 2147483647, 2147483647, (0, 1, 2147483647))
t(0, 1, 2147483647, 9223372036854775808, (0, 1, 2147483647))
t(0, 1, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(0, 1, 9223372036854775808, 1, (0, 1, 9223372036854775808))
t(0, 1, 9223372036854775808, 5, (0, 1, 9223372036854775808))
t(0, 1, 9223372036854775808, 10, (0, 1, 9223372036854775808))
t(0, 1, 9223372036854775808, 100, (0, 1, 9223372036854775808))
t(0, 1, 9223372036854775808, 2147483647, (0, 1, 9223372036854775808))
t(0, 1, 9223372036854775808, 9223372036854775808, (0, 1, 9223372036854775808))
t(0, 6, None, 0, (0, 0, 1))
t(0, 6, None, 1, (0, 1, 1))
t(0, 6, None, 5, (0, 5, 1))
t(0, 6, None, 10, (0, 6, 1))
t(0, 6, None, 100, (0, 6, 1))
t(0, 6, None, 2147483647, (0, 6, 1))
t(0, 6, None, 9223372036854775808, (0, 6, 1))
t(0, 6, -5, 0, (-1, -1, -5))
t(0, 6, -5, 1, (0, 0, -5))
t(0, 6, -5, 5, (0, 4, -5))
t(0, 6, -5, 10, (0, 6, -5))
t(0, 6, -5, 100, (0, 6, -5))
t(0, 6, -5, 2147483647, (0, 6, -5))
t(0, 6, -5, 9223372036854775808, (0, 6, -5))
t(0, 6, -3, 0, (-1, -1, -3))
t(0, 6, -3, 1, (0, 0, -3))
t(0, 6, -3, 5, (0, 4, -3))
t(0, 6, -3, 10, (0, 6, -3))
t(0, 6, -3, 100, (0, 6, -3))
t(0, 6, -3, 2147483647, (0, 6, -3))
t(0, 6, -3, 9223372036854775808, (0, 6, -3))
t(0, 6, -1, 0, (-1, -1, -1))
t(0, 6, -1, 1, (0, 0, -1))
t(0, 6, -1, 5, (0, 4, -1))
t(0, 6, -1, 10, (0, 6, -1))
t(0, 6, -1, 100, (0, 6, -1))
t(0, 6, -1, 2147483647, (0, 6, -1))
t(0, 6, -1, 9223372036854775808, (0, 6, -1))
t(0, 6, 1, 0, (0, 0, 1))
t(0, 6, 1, 1, (0, 1, 1))
t(0, 6, 1, 5, (0, 5, 1))
t(0, 6, 1, 10, (0, 6, 1))
t(0, 6, 1, 100, (0, 6, 1))
t(0, 6, 1, 2147483647, (0, 6, 1))
t(0, 6, 1, 9223372036854775808, (0, 6, 1))
t(0, 6, 5, 0, (0, 0, 5))
t(0, 6, 5, 1, (0, 1, 5))
t(0, 6, 5, 5, (0, 5, 5))
t(0, 6, 5, 10, (0, 6, 5))
t(0, 6, 5, 100, (0, 6, 5))
t(0, 6, 5, 2147483647, (0, 6, 5))
t(0, 6, 5, 9223372036854775808, (0, 6, 5))
t(0, 6, 20, 0, (0, 0, 20))
t(0, 6, 20, 1, (0, 1, 20))
t(0, 6, 20, 5, (0, 5, 20))
t(0, 6, 20, 10, (0, 6, 20))
t(0, 6, 20, 100, (0, 6, 20))
t(0, 6, 20, 2147483647, (0, 6, 20))
t(0, 6, 20, 9223372036854775808, (0, 6, 20))
t(0, 6, 2147483647, 0, (0, 0, 2147483647))
t(0, 6, 2147483647, 1, (0, 1, 2147483647))
t(0, 6, 2147483647, 5, (0, 5, 2147483647))
t(0, 6, 2147483647, 10, (0, 6, 2147483647))
t(0, 6, 2147483647, 100, (0, 6, 2147483647))
t(0, 6, 2147483647, 2147483647, (0, 6, 2147483647))
t(0, 6, 2147483647, 9223372036854775808, (0, 6, 2147483647))
t(0, 6, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(0, 6, 9223372036854775808, 1, (0, 1, 9223372036854775808))
t(0, 6, 9223372036854775808, 5, (0, 5, 9223372036854775808))
t(0, 6, 9223372036854775808, 10, (0, 6, 9223372036854775808))
t(0, 6, 9223372036854775808, 100, (0, 6, 9223372036854775808))
t(0, 6, 9223372036854775808, 2147483647, (0, 6, 9223372036854775808))
t(0, 6, 9223372036854775808, 9223372036854775808, (0, 6, 9223372036854775808))
t(0, 10, None, 0, (0, 0, 1))
t(0, 10, None, 1, (0, 1, 1))
t(0, 10, None, 5, (0, 5, 1))
t(0, 10, None, 10, (0, 10, 1))
t(0, 10, None, 100, (0, 10, 1))
t(0, 10, None, 2147483647, (0, 10, 1))
t(0, 10, None, 9223372036854775808, (0, 10, 1))
t(0, 10, -5, 0, (-1, -1, -5))
t(0, 10, -5, 1, (0, 0, -5))
t(0, 10, -5, 5, (0, 4, -5))
t(0, 10, -5, 10, (0, 9, -5))
t(0, 10, -5, 100, (0, 10, -5))
t(0, 10, -5, 2147483647, (0, 10, -5))
t(0, 10, -5, 9223372036854775808, (0, 10, -5))
t(0, 10, -3, 0, (-1, -1, -3))
t(0, 10, -3, 1, (0, 0, -3))
t(0, 10, -3, 5, (0, 4, -3))
t(0, 10, -3, 10, (0, 9, -3))
t(0, 10, -3, 100, (0, 10, -3))
t(0, 10, -3, 2147483647, (0, 10, -3))
t(0, 10, -3, 9223372036854775808, (0, 10, -3))
t(0, 10, -1, 0, (-1, -1, -1))
t(0, 10, -1, 1, (0, 0, -1))
t(0, 10, -1, 5, (0, 4, -1))
t(0, 10, -1, 10, (0, 9, -1))
t(0, 10, -1, 100, (0, 10, -1))
t(0, 10, -1, 2147483647, (0, 10, -1))
t(0, 10, -1, 9223372036854775808, (0, 10, -1))
t(0, 10, 1, 0, (0, 0, 1))
t(0, 10, 1, 1, (0, 1, 1))
t(0, 10, 1, 5, (0, 5, 1))
t(0, 10, 1, 10, (0, 10, 1))
t(0, 10, 1, 100, (0, 10, 1))
t(0, 10, 1, 2147483647, (0, 10, 1))
t(0, 10, 1, 9223372036854775808, (0, 10, 1))
t(0, 10, 5, 0, (0, 0, 5))
t(0, 10, 5, 1, (0, 1, 5))
t(0, 10, 5, 5, (0, 5, 5))
t(0, 10, 5, 10, (0, 10, 5))
t(0, 10, 5, 100, (0, 10, 5))
t(0, 10, 5, 2147483647, (0, 10, 5))
t(0, 10, 5, 9223372036854775808, (0, 10, 5))
t(0, 10, 20, 0, (0, 0, 20))
t(0, 10, 20, 1, (0, 1, 20))
t(0, 10, 20, 5, (0, 5, 20))
t(0, 10, 20, 10, (0, 10, 20))
t(0, 10, 20, 100, (0, 10, 20))
t(0, 10, 20, 2147483647, (0, 10, 20))
t(0, 10, 20, 9223372036854775808, (0, 10, 20))
t(0, 10, 2147483647, 0, (0, 0, 2147483647))
t(0, 10, 2147483647, 1, (0, 1, 2147483647))
t(0, 10, 2147483647, 5, (0, 5, 2147483647))
t(0, 10, 2147483647, 10, (0, 10, 2147483647))
t(0, 10, 2147483647, 100, (0, 10, 2147483647))
t(0, 10, 2147483647, 2147483647, (0, 10, 2147483647))
t(0, 10, 2147483647, 9223372036854775808, (0, 10, 2147483647))
t(0, 10, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(0, 10, 9223372036854775808, 1, (0, 1, 9223372036854775808))
t(0, 10, 9223372036854775808, 5, (0, 5, 9223372036854775808))
t(0, 10, 9223372036854775808, 10, (0, 10, 9223372036854775808))
t(0, 10, 9223372036854775808, 100, (0, 10, 9223372036854775808))
t(0, 10, 9223372036854775808, 2147483647, (0, 10, 9223372036854775808))
t(0, 10, 9223372036854775808, 9223372036854775808, (0, 10, 9223372036854775808))
t(0, 2147483647, None, 0, (0, 0, 1))
t(0, 2147483647, None, 1, (0, 1, 1))
t(0, 2147483647, None, 5, (0, 5, 1))
t(0, 2147483647, None, 10, (0, 10, 1))
t(0, 2147483647, None, 100, (0, 100, 1))
t(0, 2147483647, None, 2147483647, (0, 2147483647, 1))
t(0, 2147483647, None, 9223372036854775808, (0, 2147483647, 1))
t(0, 2147483647, -5, 0, (-1, -1, -5))
t(0, 2147483647, -5, 1, (0, 0, -5))
t(0, 2147483647, -5, 5, (0, 4, -5))
t(0, 2147483647, -5, 10, (0, 9, -5))
t(0, 2147483647, -5, 100, (0, 99, -5))
t(0, 2147483647, -5, 2147483647, (0, 2147483646, -5))
t(0, 2147483647, -5, 9223372036854775808, (0, 2147483647, -5))
t(0, 2147483647, -3, 0, (-1, -1, -3))
t(0, 2147483647, -3, 1, (0, 0, -3))
t(0, 2147483647, -3, 5, (0, 4, -3))
t(0, 2147483647, -3, 10, (0, 9, -3))
t(0, 2147483647, -3, 100, (0, 99, -3))
t(0, 2147483647, -3, 2147483647, (0, 2147483646, -3))
t(0, 2147483647, -3, 9223372036854775808, (0, 2147483647, -3))
t(0, 2147483647, -1, 0, (-1, -1, -1))
t(0, 2147483647, -1, 1, (0, 0, -1))
t(0, 2147483647, -1, 5, (0, 4, -1))
t(0, 2147483647, -1, 10, (0, 9, -1))
t(0, 2147483647, -1, 100, (0, 99, -1))
t(0, 2147483647, -1, 2147483647, (0, 2147483646, -1))
t(0, 2147483647, -1, 9223372036854775808, (0, 2147483647, -1))
t(0, 2147483647, 1, 0, (0, 0, 1))
t(0, 2147483647, 1, 1, (0, 1, 1))
t(0, 2147483647, 1, 5, (0, 5, 1))
t(0, 2147483647, 1, 10, (0, 10, 1))
t(0, 2147483647, 1, 100, (0, 100, 1))
t(0, 2147483647, 1, 2147483647, (0, 2147483647, 1))
t(0, 2147483647, 1, 9223372036854775808, (0, 2147483647, 1))
t(0, 2147483647, 5, 0, (0, 0, 5))
t(0, 2147483647, 5, 1, (0, 1, 5))
t(0, 2147483647, 5, 5, (0, 5, 5))
t(0, 2147483647, 5, 10, (0, 10, 5))
t(0, 2147483647, 5, 100, (0, 100, 5))
t(0, 2147483647, 5, 2147483647, (0, 2147483647, 5))
t(0, 2147483647, 5, 9223372036854775808, (0, 2147483647, 5))
t(0, 2147483647, 20, 0, (0, 0, 20))
t(0, 2147483647, 20, 1, (0, 1, 20))
t(0, 2147483647, 20, 5, (0, 5, 20))
t(0, 2147483647, 20, 10, (0, 10, 20))
t(0, 2147483647, 20, 100, (0, 100, 20))
t(0, 2147483647, 20, 2147483647, (0, 2147483647, 20))
t(0, 2147483647, 20, 9223372036854775808, (0, 2147483647, 20))
t(0, 2147483647, 2147483647, 0, (0, 0, 2147483647))
t(0, 2147483647, 2147483647, 1, (0, 1, 2147483647))
t(0, 2147483647, 2147483647, 5, (0, 5, 2147483647))
t(0, 2147483647, 2147483647, 10, (0, 10, 2147483647))
t(0, 2147483647, 2147483647, 100, (0, 100, 2147483647))
t(0, 2147483647, 2147483647, 2147483647, (0, 2147483647, 2147483647))
t(0, 2147483647, 2147483647, 9223372036854775808, (0, 2147483647, 2147483647))
t(0, 2147483647, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(0, 2147483647, 9223372036854775808, 1, (0, 1, 9223372036854775808))
t(0, 2147483647, 9223372036854775808, 5, (0, 5, 9223372036854775808))
t(0, 2147483647, 9223372036854775808, 10, (0, 10, 9223372036854775808))
t(0, 2147483647, 9223372036854775808, 100, (0, 100, 9223372036854775808))
t(0, 2147483647, 9223372036854775808, 2147483647, (0, 2147483647, 9223372036854775808))
t(0, 2147483647, 9223372036854775808, 9223372036854775808, (0, 2147483647, 9223372036854775808))
t(0, 9223372036854775808, None, 0, (0, 0, 1))
t(0, 9223372036854775808, None, 1, (0, 1, 1))
t(0, 9223372036854775808, None, 5, (0, 5, 1))
t(0, 9223372036854775808, None, 10, (0, 10, 1))
t(0, 9223372036854775808, None, 100, (0, 100, 1))
t(0, 9223372036854775808, None, 2147483647, (0, 2147483647, 1))
t(0, 9223372036854775808, None, 9223372036854775808, (0, 9223372036854775808, 1))
t(0, 9223372036854775808, -5, 0, (-1, -1, -5))
t(0, 9223372036854775808, -5, 1, (0, 0, -5))
t(0, 9223372036854775808, -5, 5, (0, 4, -5))
t(0, 9223372036854775808, -5, 10, (0, 9, -5))
t(0, 9223372036854775808, -5, 100, (0, 99, -5))
t(0, 9223372036854775808, -5, 2147483647, (0, 2147483646, -5))
t(0, 9223372036854775808, -5, 9223372036854775808, (0, 9223372036854775807, -5))
t(0, 9223372036854775808, -3, 0, (-1, -1, -3))
t(0, 9223372036854775808, -3, 1, (0, 0, -3))
t(0, 9223372036854775808, -3, 5, (0, 4, -3))
t(0, 9223372036854775808, -3, 10, (0, 9, -3))
t(0, 9223372036854775808, -3, 100, (0, 99, -3))
t(0, 9223372036854775808, -3, 2147483647, (0, 2147483646, -3))
t(0, 9223372036854775808, -3, 9223372036854775808, (0, 9223372036854775807, -3))
t(0, 9223372036854775808, -1, 0, (-1, -1, -1))
t(0, 9223372036854775808, -1, 1, (0, 0, -1))
t(0, 9223372036854775808, -1, 5, (0, 4, -1))
t(0, 9223372036854775808, -1, 10, (0, 9, -1))
t(0, 9223372036854775808, -1, 100, (0, 99, -1))
t(0, 9223372036854775808, -1, 2147483647, (0, 2147483646, -1))
t(0, 9223372036854775808, -1, 9223372036854775808, (0, 9223372036854775807, -1))
t(0, 9223372036854775808, 1, 0, (0, 0, 1))
t(0, 9223372036854775808, 1, 1, (0, 1, 1))
t(0, 9223372036854775808, 1, 5, (0, 5, 1))
t(0, 9223372036854775808, 1, 10, (0, 10, 1))
t(0, 9223372036854775808, 1, 100, (0, 100, 1))
t(0, 9223372036854775808, 1, 2147483647, (0, 2147483647, 1))
t(0, 9223372036854775808, 1, 9223372036854775808, (0, 9223372036854775808, 1))
t(0, 9223372036854775808, 5, 0, (0, 0, 5))
t(0, 9223372036854775808, 5, 1, (0, 1, 5))
t(0, 9223372036854775808, 5, 5, (0, 5, 5))
t(0, 9223372036854775808, 5, 10, (0, 10, 5))
t(0, 9223372036854775808, 5, 100, (0, 100, 5))
t(0, 9223372036854775808, 5, 2147483647, (0, 2147483647, 5))
t(0, 9223372036854775808, 5, 9223372036854775808, (0, 9223372036854775808, 5))
t(0, 9223372036854775808, 20, 0, (0, 0, 20))
t(0, 9223372036854775808, 20, 1, (0, 1, 20))
t(0, 9223372036854775808, 20, 5, (0, 5, 20))
t(0, 9223372036854775808, 20, 10, (0, 10, 20))
t(0, 9223372036854775808, 20, 100, (0, 100, 20))
t(0, 9223372036854775808, 20, 2147483647, (0, 2147483647, 20))
t(0, 9223372036854775808, 20, 9223372036854775808, (0, 9223372036854775808, 20))
t(0, 9223372036854775808, 2147483647, 0, (0, 0, 2147483647))
t(0, 9223372036854775808, 2147483647, 1, (0, 1, 2147483647))
t(0, 9223372036854775808, 2147483647, 5, (0, 5, 2147483647))
t(0, 9223372036854775808, 2147483647, 10, (0, 10, 2147483647))
t(0, 9223372036854775808, 2147483647, 100, (0, 100, 2147483647))
t(0, 9223372036854775808, 2147483647, 2147483647, (0, 2147483647, 2147483647))
t(0, 9223372036854775808, 2147483647, 9223372036854775808, (0, 9223372036854775808, 2147483647))
t(0, 9223372036854775808, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(0, 9223372036854775808, 9223372036854775808, 1, (0, 1, 9223372036854775808))
t(0, 9223372036854775808, 9223372036854775808, 5, (0, 5, 9223372036854775808))
t(0, 9223372036854775808, 9223372036854775808, 10, (0, 10, 9223372036854775808))
t(0, 9223372036854775808, 9223372036854775808, 100, (0, 100, 9223372036854775808))
t(0, 9223372036854775808, 9223372036854775808, 2147483647, (0, 2147483647, 9223372036854775808))
t(0, 9223372036854775808, 9223372036854775808, 9223372036854775808, (0, 9223372036854775808, 9223372036854775808))
t(1, None, None, 0, (0, 0, 1))
t(1, None, None, 1, (1, 1, 1))
t(1, None, None, 5, (1, 5, 1))
t(1, None, None, 10, (1, 10, 1))
t(1, None, None, 100, (1, 100, 1))
t(1, None, None, 2147483647, (1, 2147483647, 1))
t(1, None, None, 9223372036854775808, (1, 9223372036854775808, 1))
t(1, None, -5, 0, (-1, -1, -5))
t(1, None, -5, 1, (0, -1, -5))
t(1, None, -5, 5, (1, -1, -5))
t(1, None, -5, 10, (1, -1, -5))
t(1, None, -5, 100, (1, -1, -5))
t(1, None, -5, 2147483647, (1, -1, -5))
t(1, None, -5, 9223372036854775808, (1, -1, -5))
t(1, None, -3, 0, (-1, -1, -3))
t(1, None, -3, 1, (0, -1, -3))
t(1, None, -3, 5, (1, -1, -3))
t(1, None, -3, 10, (1, -1, -3))
t(1, None, -3, 100, (1, -1, -3))
t(1, None, -3, 2147483647, (1, -1, -3))
t(1, None, -3, 9223372036854775808, (1, -1, -3))
t(1, None, -1, 0, (-1, -1, -1))
t(1, None, -1, 1, (0, -1, -1))
t(1, None, -1, 5, (1, -1, -1))
t(1, None, -1, 10, (1, -1, -1))
t(1, None, -1, 100, (1, -1, -1))
t(1, None, -1, 2147483647, (1, -1, -1))
t(1, None, -1, 9223372036854775808, (1, -1, -1))
t(1, None, 1, 0, (0, 0, 1))
t(1, None, 1, 1, (1, 1, 1))
t(1, None, 1, 5, (1, 5, 1))
t(1, None, 1, 10, (1, 10, 1))
t(1, None, 1, 100, (1, 100, 1))
t(1, None, 1, 2147483647, (1, 2147483647, 1))
t(1, None, 1, 9223372036854775808, (1, 9223372036854775808, 1))
t(1, None, 5, 0, (0, 0, 5))
t(1, None, 5, 1, (1, 1, 5))
t(1, None, 5, 5, (1, 5, 5))
t(1, None, 5, 10, (1, 10, 5))
t(1, None, 5, 100, (1, 100, 5))
t(1, None, 5, 2147483647, (1, 2147483647, 5))
t(1, None, 5, 9223372036854775808, (1, 9223372036854775808, 5))
t(1, None, 20, 0, (0, 0, 20))
t(1, None, 20, 1, (1, 1, 20))
t(1, None, 20, 5, (1, 5, 20))
t(1, None, 20, 10, (1, 10, 20))
t(1, None, 20, 100, (1, 100, 20))
t(1, None, 20, 2147483647, (1, 2147483647, 20))
t(1, None, 20, 9223372036854775808, (1, 9223372036854775808, 20))
t(1, None, 2147483647, 0, (0, 0, 2147483647))
t(1, None, 2147483647, 1, (1, 1, 2147483647))
t(1, None, 2147483647, 5, (1, 5, 2147483647))
t(1, None, 2147483647, 10, (1, 10, 2147483647))
t(1, None, 2147483647, 100, (1, 100, 2147483647))
t(1, None, 2147483647, 2147483647, (1, 2147483647, 2147483647))
t(1, None, 2147483647, 9223372036854775808, (1, 9223372036854775808, 2147483647))
t(1, None, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(1, None, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(1, None, 9223372036854775808, 5, (1, 5, 9223372036854775808))
t(1, None, 9223372036854775808, 10, (1, 10, 9223372036854775808))
t(1, None, 9223372036854775808, 100, (1, 100, 9223372036854775808))
t(1, None, 9223372036854775808, 2147483647, (1, 2147483647, 9223372036854775808))
t(1, None, 9223372036854775808, 9223372036854775808, (1, 9223372036854775808, 9223372036854775808))
t(1, -7, None, 0, (0, 0, 1))
t(1, -7, None, 1, (1, 0, 1))
t(1, -7, None, 5, (1, 0, 1))
t(1, -7, None, 10, (1, 3, 1))
t(1, -7, None, 100, (1, 93, 1))
t(1, -7, None, 2147483647, (1, 2147483640, 1))
t(1, -7, None, 9223372036854775808, (1, 9223372036854775801, 1))
t(1, -7, -5, 0, (-1, -1, -5))
t(1, -7, -5, 1, (0, -1, -5))
t(1, -7, -5, 5, (1, -1, -5))
t(1, -7, -5, 10, (1, 3, -5))
t(1, -7, -5, 100, (1, 93, -5))
t(1, -7, -5, 2147483647, (1, 2147483640, -5))
t(1, -7, -5, 9223372036854775808, (1, 9223372036854775801, -5))
t(1, -7, -3, 0, (-1, -1, -3))
t(1, -7, -3, 1, (0, -1, -3))
t(1, -7, -3, 5, (1, -1, -3))
t(1, -7, -3, 10, (1, 3, -3))
t(1, -7, -3, 100, (1, 93, -3))
t(1, -7, -3, 2147483647, (1, 2147483640, -3))
t(1, -7, -3, 9223372036854775808, (1, 9223372036854775801, -3))
t(1, -7, -1, 0, (-1, -1, -1))
t(1, -7, -1, 1, (0, -1, -1))
t(1, -7, -1, 5, (1, -1, -1))
t(1, -7, -1, 10, (1, 3, -1))
t(1, -7, -1, 100, (1, 93, -1))
t(1, -7, -1, 2147483647, (1, 2147483640, -1))
t(1, -7, -1, 9223372036854775808, (1, 9223372036854775801, -1))
t(1, -7, 1, 0, (0, 0, 1))
t(1, -7, 1, 1, (1, 0, 1))
t(1, -7, 1, 5, (1, 0, 1))
t(1, -7, 1, 10, (1, 3, 1))
t(1, -7, 1, 100, (1, 93, 1))
t(1, -7, 1, 2147483647, (1, 2147483640, 1))
t(1, -7, 1, 9223372036854775808, (1, 9223372036854775801, 1))
t(1, -7, 5, 0, (0, 0, 5))
t(1, -7, 5, 1, (1, 0, 5))
t(1, -7, 5, 5, (1, 0, 5))
t(1, -7, 5, 10, (1, 3, 5))
t(1, -7, 5, 100, (1, 93, 5))
t(1, -7, 5, 2147483647, (1, 2147483640, 5))
t(1, -7, 5, 9223372036854775808, (1, 9223372036854775801, 5))
t(1, -7, 20, 0, (0, 0, 20))
t(1, -7, 20, 1, (1, 0, 20))
t(1, -7, 20, 5, (1, 0, 20))
t(1, -7, 20, 10, (1, 3, 20))
t(1, -7, 20, 100, (1, 93, 20))
t(1, -7, 20, 2147483647, (1, 2147483640, 20))
t(1, -7, 20, 9223372036854775808, (1, 9223372036854775801, 20))
t(1, -7, 2147483647, 0, (0, 0, 2147483647))
t(1, -7, 2147483647, 1, (1, 0, 2147483647))
t(1, -7, 2147483647, 5, (1, 0, 2147483647))
t(1, -7, 2147483647, 10, (1, 3, 2147483647))
t(1, -7, 2147483647, 100, (1, 93, 2147483647))
t(1, -7, 2147483647, 2147483647, (1, 2147483640, 2147483647))
t(1, -7, 2147483647, 9223372036854775808, (1, 9223372036854775801, 2147483647))
t(1, -7, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(1, -7, 9223372036854775808, 1, (1, 0, 9223372036854775808))
t(1, -7, 9223372036854775808, 5, (1, 0, 9223372036854775808))
t(1, -7, 9223372036854775808, 10, (1, 3, 9223372036854775808))
t(1, -7, 9223372036854775808, 100, (1, 93, 9223372036854775808))
t(1, -7, 9223372036854775808, 2147483647, (1, 2147483640, 9223372036854775808))
t(1, -7, 9223372036854775808, 9223372036854775808, (1, 9223372036854775801, 9223372036854775808))
t(1, -2, None, 0, (0, 0, 1))
t(1, -2, None, 1, (1, 0, 1))
t(1, -2, None, 5, (1, 3, 1))
t(1, -2, None, 10, (1, 8, 1))
t(1, -2, None, 100, (1, 98, 1))
t(1, -2, None, 2147483647, (1, 2147483645, 1))
t(1, -2, None, 9223372036854775808, (1, 9223372036854775806, 1))
t(1, -2, -5, 0, (-1, -1, -5))
t(1, -2, -5, 1, (0, -1, -5))
t(1, -2, -5, 5, (1, 3, -5))
t(1, -2, -5, 10, (1, 8, -5))
t(1, -2, -5, 100, (1, 98, -5))
t(1, -2, -5, 2147483647, (1, 2147483645, -5))
t(1, -2, -5, 9223372036854775808, (1, 9223372036854775806, -5))
t(1, -2, -3, 0, (-1, -1, -3))
t(1, -2, -3, 1, (0, -1, -3))
t(1, -2, -3, 5, (1, 3, -3))
t(1, -2, -3, 10, (1, 8, -3))
t(1, -2, -3, 100, (1, 98, -3))
t(1, -2, -3, 2147483647, (1, 2147483645, -3))
t(1, -2, -3, 9223372036854775808, (1, 9223372036854775806, -3))
t(1, -2, -1, 0, (-1, -1, -1))
t(1, -2, -1, 1, (0, -1, -1))
t(1, -2, -1, 5, (1, 3, -1))
t(1, -2, -1, 10, (1, 8, -1))
t(1, -2, -1, 100, (1, 98, -1))
t(1, -2, -1, 2147483647, (1, 2147483645, -1))
t(1, -2, -1, 9223372036854775808, (1, 9223372036854775806, -1))
t(1, -2, 1, 0, (0, 0, 1))
t(1, -2, 1, 1, (1, 0, 1))
t(1, -2, 1, 5, (1, 3, 1))
t(1, -2, 1, 10, (1, 8, 1))
t(1, -2, 1, 100, (1, 98, 1))
t(1, -2, 1, 2147483647, (1, 2147483645, 1))
t(1, -2, 1, 9223372036854775808, (1, 9223372036854775806, 1))
t(1, -2, 5, 0, (0, 0, 5))
t(1, -2, 5, 1, (1, 0, 5))
t(1, -2, 5, 5, (1, 3, 5))
t(1, -2, 5, 10, (1, 8, 5))
t(1, -2, 5, 100, (1, 98, 5))
t(1, -2, 5, 2147483647, (1, 2147483645, 5))
t(1, -2, 5, 9223372036854775808, (1, 9223372036854775806, 5))
t(1, -2, 20, 0, (0, 0, 20))
t(1, -2, 20, 1, (1, 0, 20))
t(1, -2, 20, 5, (1, 3, 20))
t(1, -2, 20, 10, (1, 8, 20))
t(1, -2, 20, 100, (1, 98, 20))
t(1, -2, 20, 2147483647, (1, 2147483645, 20))
t(1, -2, 20, 9223372036854775808, (1, 9223372036854775806, 20))
t(1, -2, 2147483647, 0, (0, 0, 2147483647))
t(1, -2, 2147483647, 1, (1, 0, 2147483647))
t(1, -2, 2147483647, 5, (1, 3, 2147483647))
t(1, -2, 2147483647, 10, (1, 8, 2147483647))
t(1, -2, 2147483647, 100, (1, 98, 2147483647))
t(1, -2, 2147483647, 2147483647, (1, 2147483645, 2147483647))
t(1, -2, 2147483647, 9223372036854775808, (1, 9223372036854775806, 2147483647))
t(1, -2, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(1, -2, 9223372036854775808, 1, (1, 0, 9223372036854775808))
t(1, -2, 9223372036854775808, 5, (1, 3, 9223372036854775808))
t(1, -2, 9223372036854775808, 10, (1, 8, 9223372036854775808))
t(1, -2, 9223372036854775808, 100, (1, 98, 9223372036854775808))
t(1, -2, 9223372036854775808, 2147483647, (1, 2147483645, 9223372036854775808))
t(1, -2, 9223372036854775808, 9223372036854775808, (1, 9223372036854775806, 9223372036854775808))
t(1, 0, None, 0, (0, 0, 1))
t(1, 0, None, 1, (1, 0, 1))
t(1, 0, None, 5, (1, 0, 1))
t(1, 0, None, 10, (1, 0, 1))
t(1, 0, None, 100, (1, 0, 1))
t(1, 0, None, 2147483647, (1, 0, 1))
t(1, 0, None, 9223372036854775808, (1, 0, 1))
t(1, 0, -5, 0, (-1, -1, -5))
t(1, 0, -5, 1, (0, 0, -5))
t(1, 0, -5, 5, (1, 0, -5))
t(1, 0, -5, 10, (1, 0, -5))
t(1, 0, -5, 100, (1, 0, -5))
t(1, 0, -5, 2147483647, (1, 0, -5))
t(1, 0, -5, 9223372036854775808, (1, 0, -5))
t(1, 0, -3, 0, (-1, -1, -3))
t(1, 0, -3, 1, (0, 0, -3))
t(1, 0, -3, 5, (1, 0, -3))
t(1, 0, -3, 10, (1, 0, -3))
t(1, 0, -3, 100, (1, 0, -3))
t(1, 0, -3, 2147483647, (1, 0, -3))
t(1, 0, -3, 9223372036854775808, (1, 0, -3))
t(1, 0, -1, 0, (-1, -1, -1))
t(1, 0, -1, 1, (0, 0, -1))
t(1, 0, -1, 5, (1, 0, -1))
t(1, 0, -1, 10, (1, 0, -1))
t(1, 0, -1, 100, (1, 0, -1))
t(1, 0, -1, 2147483647, (1, 0, -1))
t(1, 0, -1, 9223372036854775808, (1, 0, -1))
t(1, 0, 1, 0, (0, 0, 1))
t(1, 0, 1, 1, (1, 0, 1))
t(1, 0, 1, 5, (1, 0, 1))
t(1, 0, 1, 10, (1, 0, 1))
t(1, 0, 1, 100, (1, 0, 1))
t(1, 0, 1, 2147483647, (1, 0, 1))
t(1, 0, 1, 9223372036854775808, (1, 0, 1))
t(1, 0, 5, 0, (0, 0, 5))
t(1, 0, 5, 1, (1, 0, 5))
t(1, 0, 5, 5, (1, 0, 5))
t(1, 0, 5, 10, (1, 0, 5))
t(1, 0, 5, 100, (1, 0, 5))
t(1, 0, 5, 2147483647, (1, 0, 5))
t(1, 0, 5, 9223372036854775808, (1, 0, 5))
t(1, 0, 20, 0, (0, 0, 20))
t(1, 0, 20, 1, (1, 0, 20))
t(1, 0, 20, 5, (1, 0, 20))
t(1, 0, 20, 10, (1, 0, 20))
t(1, 0, 20, 100, (1, 0, 20))
t(1, 0, 20, 2147483647, (1, 0, 20))
t(1, 0, 20, 9223372036854775808, (1, 0, 20))
t(1, 0, 2147483647, 0, (0, 0, 2147483647))
t(1, 0, 2147483647, 1, (1, 0, 2147483647))
t(1, 0, 2147483647, 5, (1, 0, 2147483647))
t(1, 0, 2147483647, 10, (1, 0, 2147483647))
t(1, 0, 2147483647, 100, (1, 0, 2147483647))
t(1, 0, 2147483647, 2147483647, (1, 0, 2147483647))
t(1, 0, 2147483647, 9223372036854775808, (1, 0, 2147483647))
t(1, 0, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(1, 0, 9223372036854775808, 1, (1, 0, 9223372036854775808))
t(1, 0, 9223372036854775808, 5, (1, 0, 9223372036854775808))
t(1, 0, 9223372036854775808, 10, (1, 0, 9223372036854775808))
t(1, 0, 9223372036854775808, 100, (1, 0, 9223372036854775808))
t(1, 0, 9223372036854775808, 2147483647, (1, 0, 9223372036854775808))
t(1, 0, 9223372036854775808, 9223372036854775808, (1, 0, 9223372036854775808))
t(1, 1, None, 0, (0, 0, 1))
t(1, 1, None, 1, (1, 1, 1))
t(1, 1, None, 5, (1, 1, 1))
t(1, 1, None, 10, (1, 1, 1))
t(1, 1, None, 100, (1, 1, 1))
t(1, 1, None, 2147483647, (1, 1, 1))
t(1, 1, None, 9223372036854775808, (1, 1, 1))
t(1, 1, -5, 0, (-1, -1, -5))
t(1, 1, -5, 1, (0, 0, -5))
t(1, 1, -5, 5, (1, 1, -5))
t(1, 1, -5, 10, (1, 1, -5))
t(1, 1, -5, 100, (1, 1, -5))
t(1, 1, -5, 2147483647, (1, 1, -5))
t(1, 1, -5, 9223372036854775808, (1, 1, -5))
t(1, 1, -3, 0, (-1, -1, -3))
t(1, 1, -3, 1, (0, 0, -3))
t(1, 1, -3, 5, (1, 1, -3))
t(1, 1, -3, 10, (1, 1, -3))
t(1, 1, -3, 100, (1, 1, -3))
t(1, 1, -3, 2147483647, (1, 1, -3))
t(1, 1, -3, 9223372036854775808, (1, 1, -3))
t(1, 1, -1, 0, (-1, -1, -1))
t(1, 1, -1, 1, (0, 0, -1))
t(1, 1, -1, 5, (1, 1, -1))
t(1, 1, -1, 10, (1, 1, -1))
t(1, 1, -1, 100, (1, 1, -1))
t(1, 1, -1, 2147483647, (1, 1, -1))
t(1, 1, -1, 9223372036854775808, (1, 1, -1))
t(1, 1, 1, 0, (0, 0, 1))
t(1, 1, 1, 1, (1, 1, 1))
t(1, 1, 1, 5, (1, 1, 1))
t(1, 1, 1, 10, (1, 1, 1))
t(1, 1, 1, 100, (1, 1, 1))
t(1, 1, 1, 2147483647, (1, 1, 1))
t(1, 1, 1, 9223372036854775808, (1, 1, 1))
t(1, 1, 5, 0, (0, 0, 5))
t(1, 1, 5, 1, (1, 1, 5))
t(1, 1, 5, 5, (1, 1, 5))
t(1, 1, 5, 10, (1, 1, 5))
t(1, 1, 5, 100, (1, 1, 5))
t(1, 1, 5, 2147483647, (1, 1, 5))
t(1, 1, 5, 9223372036854775808, (1, 1, 5))
t(1, 1, 20, 0, (0, 0, 20))
t(1, 1, 20, 1, (1, 1, 20))
t(1, 1, 20, 5, (1, 1, 20))
t(1, 1, 20, 10, (1, 1, 20))
t(1, 1, 20, 100, (1, 1, 20))
t(1, 1, 20, 2147483647, (1, 1, 20))
t(1, 1, 20, 9223372036854775808, (1, 1, 20))
t(1, 1, 2147483647, 0, (0, 0, 2147483647))
t(1, 1, 2147483647, 1, (1, 1, 2147483647))
t(1, 1, 2147483647, 5, (1, 1, 2147483647))
t(1, 1, 2147483647, 10, (1, 1, 2147483647))
t(1, 1, 2147483647, 100, (1, 1, 2147483647))
t(1, 1, 2147483647, 2147483647, (1, 1, 2147483647))
t(1, 1, 2147483647, 9223372036854775808, (1, 1, 2147483647))
t(1, 1, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(1, 1, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(1, 1, 9223372036854775808, 5, (1, 1, 9223372036854775808))
t(1, 1, 9223372036854775808, 10, (1, 1, 9223372036854775808))
t(1, 1, 9223372036854775808, 100, (1, 1, 9223372036854775808))
t(1, 1, 9223372036854775808, 2147483647, (1, 1, 9223372036854775808))
t(1, 1, 9223372036854775808, 9223372036854775808, (1, 1, 9223372036854775808))
t(1, 6, None, 0, (0, 0, 1))
t(1, 6, None, 1, (1, 1, 1))
t(1, 6, None, 5, (1, 5, 1))
t(1, 6, None, 10, (1, 6, 1))
t(1, 6, None, 100, (1, 6, 1))
t(1, 6, None, 2147483647, (1, 6, 1))
t(1, 6, None, 9223372036854775808, (1, 6, 1))
t(1, 6, -5, 0, (-1, -1, -5))
t(1, 6, -5, 1, (0, 0, -5))
t(1, 6, -5, 5, (1, 4, -5))
t(1, 6, -5, 10, (1, 6, -5))
t(1, 6, -5, 100, (1, 6, -5))
t(1, 6, -5, 2147483647, (1, 6, -5))
t(1, 6, -5, 9223372036854775808, (1, 6, -5))
t(1, 6, -3, 0, (-1, -1, -3))
t(1, 6, -3, 1, (0, 0, -3))
t(1, 6, -3, 5, (1, 4, -3))
t(1, 6, -3, 10, (1, 6, -3))
t(1, 6, -3, 100, (1, 6, -3))
t(1, 6, -3, 2147483647, (1, 6, -3))
t(1, 6, -3, 9223372036854775808, (1, 6, -3))
t(1, 6, -1, 0, (-1, -1, -1))
t(1, 6, -1, 1, (0, 0, -1))
t(1, 6, -1, 5, (1, 4, -1))
t(1, 6, -1, 10, (1, 6, -1))
t(1, 6, -1, 100, (1, 6, -1))
t(1, 6, -1, 2147483647, (1, 6, -1))
t(1, 6, -1, 9223372036854775808, (1, 6, -1))
t(1, 6, 1, 0, (0, 0, 1))
t(1, 6, 1, 1, (1, 1, 1))
t(1, 6, 1, 5, (1, 5, 1))
t(1, 6, 1, 10, (1, 6, 1))
t(1, 6, 1, 100, (1, 6, 1))
t(1, 6, 1, 2147483647, (1, 6, 1))
t(1, 6, 1, 9223372036854775808, (1, 6, 1))
t(1, 6, 5, 0, (0, 0, 5))
t(1, 6, 5, 1, (1, 1, 5))
t(1, 6, 5, 5, (1, 5, 5))
t(1, 6, 5, 10, (1, 6, 5))
t(1, 6, 5, 100, (1, 6, 5))
t(1, 6, 5, 2147483647, (1, 6, 5))
t(1, 6, 5, 9223372036854775808, (1, 6, 5))
t(1, 6, 20, 0, (0, 0, 20))
t(1, 6, 20, 1, (1, 1, 20))
t(1, 6, 20, 5, (1, 5, 20))
t(1, 6, 20, 10, (1, 6, 20))
t(1, 6, 20, 100, (1, 6, 20))
t(1, 6, 20, 2147483647, (1, 6, 20))
t(1, 6, 20, 9223372036854775808, (1, 6, 20))
t(1, 6, 2147483647, 0, (0, 0, 2147483647))
t(1, 6, 2147483647, 1, (1, 1, 2147483647))
t(1, 6, 2147483647, 5, (1, 5, 2147483647))
t(1, 6, 2147483647, 10, (1, 6, 2147483647))
t(1, 6, 2147483647, 100, (1, 6, 2147483647))
t(1, 6, 2147483647, 2147483647, (1, 6, 2147483647))
t(1, 6, 2147483647, 9223372036854775808, (1, 6, 2147483647))
t(1, 6, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(1, 6, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(1, 6, 9223372036854775808, 5, (1, 5, 9223372036854775808))
t(1, 6, 9223372036854775808, 10, (1, 6, 9223372036854775808))
t(1, 6, 9223372036854775808, 100, (1, 6, 9223372036854775808))
t(1, 6, 9223372036854775808, 2147483647, (1, 6, 9223372036854775808))
t(1, 6, 9223372036854775808, 9223372036854775808, (1, 6, 9223372036854775808))
t(1, 10, None, 0, (0, 0, 1))
t(1, 10, None, 1, (1, 1, 1))
t(1, 10, None, 5, (1, 5, 1))
t(1, 10, None, 10, (1, 10, 1))
t(1, 10, None, 100, (1, 10, 1))
t(1, 10, None, 2147483647, (1, 10, 1))
t(1, 10, None, 9223372036854775808, (1, 10, 1))
t(1, 10, -5, 0, (-1, -1, -5))
t(1, 10, -5, 1, (0, 0, -5))
t(1, 10, -5, 5, (1, 4, -5))
t(1, 10, -5, 10, (1, 9, -5))
t(1, 10, -5, 100, (1, 10, -5))
t(1, 10, -5, 2147483647, (1, 10, -5))
t(1, 10, -5, 9223372036854775808, (1, 10, -5))
t(1, 10, -3, 0, (-1, -1, -3))
t(1, 10, -3, 1, (0, 0, -3))
t(1, 10, -3, 5, (1, 4, -3))
t(1, 10, -3, 10, (1, 9, -3))
t(1, 10, -3, 100, (1, 10, -3))
t(1, 10, -3, 2147483647, (1, 10, -3))
t(1, 10, -3, 9223372036854775808, (1, 10, -3))
t(1, 10, -1, 0, (-1, -1, -1))
t(1, 10, -1, 1, (0, 0, -1))
t(1, 10, -1, 5, (1, 4, -1))
t(1, 10, -1, 10, (1, 9, -1))
t(1, 10, -1, 100, (1, 10, -1))
t(1, 10, -1, 2147483647, (1, 10, -1))
t(1, 10, -1, 9223372036854775808, (1, 10, -1))
t(1, 10, 1, 0, (0, 0, 1))
t(1, 10, 1, 1, (1, 1, 1))
t(1, 10, 1, 5, (1, 5, 1))
t(1, 10, 1, 10, (1, 10, 1))
t(1, 10, 1, 100, (1, 10, 1))
t(1, 10, 1, 2147483647, (1, 10, 1))
t(1, 10, 1, 9223372036854775808, (1, 10, 1))
t(1, 10, 5, 0, (0, 0, 5))
t(1, 10, 5, 1, (1, 1, 5))
t(1, 10, 5, 5, (1, 5, 5))
t(1, 10, 5, 10, (1, 10, 5))
t(1, 10, 5, 100, (1, 10, 5))
t(1, 10, 5, 2147483647, (1, 10, 5))
t(1, 10, 5, 9223372036854775808, (1, 10, 5))
t(1, 10, 20, 0, (0, 0, 20))
t(1, 10, 20, 1, (1, 1, 20))
t(1, 10, 20, 5, (1, 5, 20))
t(1, 10, 20, 10, (1, 10, 20))
t(1, 10, 20, 100, (1, 10, 20))
t(1, 10, 20, 2147483647, (1, 10, 20))
t(1, 10, 20, 9223372036854775808, (1, 10, 20))
t(1, 10, 2147483647, 0, (0, 0, 2147483647))
t(1, 10, 2147483647, 1, (1, 1, 2147483647))
t(1, 10, 2147483647, 5, (1, 5, 2147483647))
t(1, 10, 2147483647, 10, (1, 10, 2147483647))
t(1, 10, 2147483647, 100, (1, 10, 2147483647))
t(1, 10, 2147483647, 2147483647, (1, 10, 2147483647))
t(1, 10, 2147483647, 9223372036854775808, (1, 10, 2147483647))
t(1, 10, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(1, 10, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(1, 10, 9223372036854775808, 5, (1, 5, 9223372036854775808))
t(1, 10, 9223372036854775808, 10, (1, 10, 9223372036854775808))
t(1, 10, 9223372036854775808, 100, (1, 10, 9223372036854775808))
t(1, 10, 9223372036854775808, 2147483647, (1, 10, 9223372036854775808))
t(1, 10, 9223372036854775808, 9223372036854775808, (1, 10, 9223372036854775808))
t(1, 2147483647, None, 0, (0, 0, 1))
t(1, 2147483647, None, 1, (1, 1, 1))
t(1, 2147483647, None, 5, (1, 5, 1))
t(1, 2147483647, None, 10, (1, 10, 1))
t(1, 2147483647, None, 100, (1, 100, 1))
t(1, 2147483647, None, 2147483647, (1, 2147483647, 1))
t(1, 2147483647, None, 9223372036854775808, (1, 2147483647, 1))
t(1, 2147483647, -5, 0, (-1, -1, -5))
t(1, 2147483647, -5, 1, (0, 0, -5))
t(1, 2147483647, -5, 5, (1, 4, -5))
t(1, 2147483647, -5, 10, (1, 9, -5))
t(1, 2147483647, -5, 100, (1, 99, -5))
t(1, 2147483647, -5, 2147483647, (1, 2147483646, -5))
t(1, 2147483647, -5, 9223372036854775808, (1, 2147483647, -5))
t(1, 2147483647, -3, 0, (-1, -1, -3))
t(1, 2147483647, -3, 1, (0, 0, -3))
t(1, 2147483647, -3, 5, (1, 4, -3))
t(1, 2147483647, -3, 10, (1, 9, -3))
t(1, 2147483647, -3, 100, (1, 99, -3))
t(1, 2147483647, -3, 2147483647, (1, 2147483646, -3))
t(1, 2147483647, -3, 9223372036854775808, (1, 2147483647, -3))
t(1, 2147483647, -1, 0, (-1, -1, -1))
t(1, 2147483647, -1, 1, (0, 0, -1))
t(1, 2147483647, -1, 5, (1, 4, -1))
t(1, 2147483647, -1, 10, (1, 9, -1))
t(1, 2147483647, -1, 100, (1, 99, -1))
t(1, 2147483647, -1, 2147483647, (1, 2147483646, -1))
t(1, 2147483647, -1, 9223372036854775808, (1, 2147483647, -1))
t(1, 2147483647, 1, 0, (0, 0, 1))
t(1, 2147483647, 1, 1, (1, 1, 1))
t(1, 2147483647, 1, 5, (1, 5, 1))
t(1, 2147483647, 1, 10, (1, 10, 1))
t(1, 2147483647, 1, 100, (1, 100, 1))
t(1, 2147483647, 1, 2147483647, (1, 2147483647, 1))
t(1, 2147483647, 1, 9223372036854775808, (1, 2147483647, 1))
t(1, 2147483647, 5, 0, (0, 0, 5))
t(1, 2147483647, 5, 1, (1, 1, 5))
t(1, 2147483647, 5, 5, (1, 5, 5))
t(1, 2147483647, 5, 10, (1, 10, 5))
t(1, 2147483647, 5, 100, (1, 100, 5))
t(1, 2147483647, 5, 2147483647, (1, 2147483647, 5))
t(1, 2147483647, 5, 9223372036854775808, (1, 2147483647, 5))
t(1, 2147483647, 20, 0, (0, 0, 20))
t(1, 2147483647, 20, 1, (1, 1, 20))
t(1, 2147483647, 20, 5, (1, 5, 20))
t(1, 2147483647, 20, 10, (1, 10, 20))
t(1, 2147483647, 20, 100, (1, 100, 20))
t(1, 2147483647, 20, 2147483647, (1, 2147483647, 20))
t(1, 2147483647, 20, 9223372036854775808, (1, 2147483647, 20))
t(1, 2147483647, 2147483647, 0, (0, 0, 2147483647))
t(1, 2147483647, 2147483647, 1, (1, 1, 2147483647))
t(1, 2147483647, 2147483647, 5, (1, 5, 2147483647))
t(1, 2147483647, 2147483647, 10, (1, 10, 2147483647))
t(1, 2147483647, 2147483647, 100, (1, 100, 2147483647))
t(1, 2147483647, 2147483647, 2147483647, (1, 2147483647, 2147483647))
t(1, 2147483647, 2147483647, 9223372036854775808, (1, 2147483647, 2147483647))
t(1, 2147483647, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(1, 2147483647, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(1, 2147483647, 9223372036854775808, 5, (1, 5, 9223372036854775808))
t(1, 2147483647, 9223372036854775808, 10, (1, 10, 9223372036854775808))
t(1, 2147483647, 9223372036854775808, 100, (1, 100, 9223372036854775808))
t(1, 2147483647, 9223372036854775808, 2147483647, (1, 2147483647, 9223372036854775808))
t(1, 2147483647, 9223372036854775808, 9223372036854775808, (1, 2147483647, 9223372036854775808))
t(1, 9223372036854775808, None, 0, (0, 0, 1))
t(1, 9223372036854775808, None, 1, (1, 1, 1))
t(1, 9223372036854775808, None, 5, (1, 5, 1))
t(1, 9223372036854775808, None, 10, (1, 10, 1))
t(1, 9223372036854775808, None, 100, (1, 100, 1))
t(1, 9223372036854775808, None, 2147483647, (1, 2147483647, 1))
t(1, 9223372036854775808, None, 9223372036854775808, (1, 9223372036854775808, 1))
t(1, 9223372036854775808, -5, 0, (-1, -1, -5))
t(1, 9223372036854775808, -5, 1, (0, 0, -5))
t(1, 9223372036854775808, -5, 5, (1, 4, -5))
t(1, 9223372036854775808, -5, 10, (1, 9, -5))
t(1, 9223372036854775808, -5, 100, (1, 99, -5))
t(1, 9223372036854775808, -5, 2147483647, (1, 2147483646, -5))
t(1, 9223372036854775808, -5, 9223372036854775808, (1, 9223372036854775807, -5))
t(1, 9223372036854775808, -3, 0, (-1, -1, -3))
t(1, 9223372036854775808, -3, 1, (0, 0, -3))
t(1, 9223372036854775808, -3, 5, (1, 4, -3))
t(1, 9223372036854775808, -3, 10, (1, 9, -3))
t(1, 9223372036854775808, -3, 100, (1, 99, -3))
t(1, 9223372036854775808, -3, 2147483647, (1, 2147483646, -3))
t(1, 9223372036854775808, -3, 9223372036854775808, (1, 9223372036854775807, -3))
t(1, 9223372036854775808, -1, 0, (-1, -1, -1))
t(1, 9223372036854775808, -1, 1, (0, 0, -1))
t(1, 9223372036854775808, -1, 5, (1, 4, -1))
t(1, 9223372036854775808, -1, 10, (1, 9, -1))
t(1, 9223372036854775808, -1, 100, (1, 99, -1))
t(1, 9223372036854775808, -1, 2147483647, (1, 2147483646, -1))
t(1, 9223372036854775808, -1, 9223372036854775808, (1, 9223372036854775807, -1))
t(1, 9223372036854775808, 1, 0, (0, 0, 1))
t(1, 9223372036854775808, 1, 1, (1, 1, 1))
t(1, 9223372036854775808, 1, 5, (1, 5, 1))
t(1, 9223372036854775808, 1, 10, (1, 10, 1))
t(1, 9223372036854775808, 1, 100, (1, 100, 1))
t(1, 9223372036854775808, 1, 2147483647, (1, 2147483647, 1))
t(1, 9223372036854775808, 1, 9223372036854775808, (1, 9223372036854775808, 1))
t(1, 9223372036854775808, 5, 0, (0, 0, 5))
t(1, 9223372036854775808, 5, 1, (1, 1, 5))
t(1, 9223372036854775808, 5, 5, (1, 5, 5))
t(1, 9223372036854775808, 5, 10, (1, 10, 5))
t(1, 9223372036854775808, 5, 100, (1, 100, 5))
t(1, 9223372036854775808, 5, 2147483647, (1, 2147483647, 5))
t(1, 9223372036854775808, 5, 9223372036854775808, (1, 9223372036854775808, 5))
t(1, 9223372036854775808, 20, 0, (0, 0, 20))
t(1, 9223372036854775808, 20, 1, (1, 1, 20))
t(1, 9223372036854775808, 20, 5, (1, 5, 20))
t(1, 9223372036854775808, 20, 10, (1, 10, 20))
t(1, 9223372036854775808, 20, 100, (1, 100, 20))
t(1, 9223372036854775808, 20, 2147483647, (1, 2147483647, 20))
t(1, 9223372036854775808, 20, 9223372036854775808, (1, 9223372036854775808, 20))
t(1, 9223372036854775808, 2147483647, 0, (0, 0, 2147483647))
t(1, 9223372036854775808, 2147483647, 1, (1, 1, 2147483647))
t(1, 9223372036854775808, 2147483647, 5, (1, 5, 2147483647))
t(1, 9223372036854775808, 2147483647, 10, (1, 10, 2147483647))
t(1, 9223372036854775808, 2147483647, 100, (1, 100, 2147483647))
t(1, 9223372036854775808, 2147483647, 2147483647, (1, 2147483647, 2147483647))
t(1, 9223372036854775808, 2147483647, 9223372036854775808, (1, 9223372036854775808, 2147483647))
t(1, 9223372036854775808, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(1, 9223372036854775808, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(1, 9223372036854775808, 9223372036854775808, 5, (1, 5, 9223372036854775808))
t(1, 9223372036854775808, 9223372036854775808, 10, (1, 10, 9223372036854775808))
t(1, 9223372036854775808, 9223372036854775808, 100, (1, 100, 9223372036854775808))
t(1, 9223372036854775808, 9223372036854775808, 2147483647, (1, 2147483647, 9223372036854775808))
t(1, 9223372036854775808, 9223372036854775808, 9223372036854775808, (1, 9223372036854775808, 9223372036854775808))
t(6, None, None, 0, (0, 0, 1))
t(6, None, None, 1, (1, 1, 1))
t(6, None, None, 5, (5, 5, 1))
t(6, None, None, 10, (6, 10, 1))
t(6, None, None, 100, (6, 100, 1))
t(6, None, None, 2147483647, (6, 2147483647, 1))
t(6, None, None, 9223372036854775808, (6, 9223372036854775808, 1))
t(6, None, -5, 0, (-1, -1, -5))
t(6, None, -5, 1, (0, -1, -5))
t(6, None, -5, 5, (4, -1, -5))
t(6, None, -5, 10, (6, -1, -5))
t(6, None, -5, 100, (6, -1, -5))
t(6, None, -5, 2147483647, (6, -1, -5))
t(6, None, -5, 9223372036854775808, (6, -1, -5))
t(6, None, -3, 0, (-1, -1, -3))
t(6, None, -3, 1, (0, -1, -3))
t(6, None, -3, 5, (4, -1, -3))
t(6, None, -3, 10, (6, -1, -3))
t(6, None, -3, 100, (6, -1, -3))
t(6, None, -3, 2147483647, (6, -1, -3))
t(6, None, -3, 9223372036854775808, (6, -1, -3))
t(6, None, -1, 0, (-1, -1, -1))
t(6, None, -1, 1, (0, -1, -1))
t(6, None, -1, 5, (4, -1, -1))
t(6, None, -1, 10, (6, -1, -1))
t(6, None, -1, 100, (6, -1, -1))
t(6, None, -1, 2147483647, (6, -1, -1))
t(6, None, -1, 9223372036854775808, (6, -1, -1))
t(6, None, 1, 0, (0, 0, 1))
t(6, None, 1, 1, (1, 1, 1))
t(6, None, 1, 5, (5, 5, 1))
t(6, None, 1, 10, (6, 10, 1))
t(6, None, 1, 100, (6, 100, 1))
t(6, None, 1, 2147483647, (6, 2147483647, 1))
t(6, None, 1, 9223372036854775808, (6, 9223372036854775808, 1))
t(6, None, 5, 0, (0, 0, 5))
t(6, None, 5, 1, (1, 1, 5))
t(6, None, 5, 5, (5, 5, 5))
t(6, None, 5, 10, (6, 10, 5))
t(6, None, 5, 100, (6, 100, 5))
t(6, None, 5, 2147483647, (6, 2147483647, 5))
t(6, None, 5, 9223372036854775808, (6, 9223372036854775808, 5))
t(6, None, 20, 0, (0, 0, 20))
t(6, None, 20, 1, (1, 1, 20))
t(6, None, 20, 5, (5, 5, 20))
t(6, None, 20, 10, (6, 10, 20))
t(6, None, 20, 100, (6, 100, 20))
t(6, None, 20, 2147483647, (6, 2147483647, 20))
t(6, None, 20, 9223372036854775808, (6, 9223372036854775808, 20))
t(6, None, 2147483647, 0, (0, 0, 2147483647))
t(6, None, 2147483647, 1, (1, 1, 2147483647))
t(6, None, 2147483647, 5, (5, 5, 2147483647))
t(6, None, 2147483647, 10, (6, 10, 2147483647))
t(6, None, 2147483647, 100, (6, 100, 2147483647))
t(6, None, 2147483647, 2147483647, (6, 2147483647, 2147483647))
t(6, None, 2147483647, 9223372036854775808, (6, 9223372036854775808, 2147483647))
t(6, None, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(6, None, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(6, None, 9223372036854775808, 5, (5, 5, 9223372036854775808))
t(6, None, 9223372036854775808, 10, (6, 10, 9223372036854775808))
t(6, None, 9223372036854775808, 100, (6, 100, 9223372036854775808))
t(6, None, 9223372036854775808, 2147483647, (6, 2147483647, 9223372036854775808))
t(6, None, 9223372036854775808, 9223372036854775808, (6, 9223372036854775808, 9223372036854775808))
t(6, -7, None, 0, (0, 0, 1))
t(6, -7, None, 1, (1, 0, 1))
t(6, -7, None, 5, (5, 0, 1))
t(6, -7, None, 10, (6, 3, 1))
t(6, -7, None, 100, (6, 93, 1))
t(6, -7, None, 2147483647, (6, 2147483640, 1))
t(6, -7, None, 9223372036854775808, (6, 9223372036854775801, 1))
t(6, -7, -5, 0, (-1, -1, -5))
t(6, -7, -5, 1, (0, -1, -5))
t(6, -7, -5, 5, (4, -1, -5))
t(6, -7, -5, 10, (6, 3, -5))
t(6, -7, -5, 100, (6, 93, -5))
t(6, -7, -5, 2147483647, (6, 2147483640, -5))
t(6, -7, -5, 9223372036854775808, (6, 9223372036854775801, -5))
t(6, -7, -3, 0, (-1, -1, -3))
t(6, -7, -3, 1, (0, -1, -3))
t(6, -7, -3, 5, (4, -1, -3))
t(6, -7, -3, 10, (6, 3, -3))
t(6, -7, -3, 100, (6, 93, -3))
t(6, -7, -3, 2147483647, (6, 2147483640, -3))
t(6, -7, -3, 9223372036854775808, (6, 9223372036854775801, -3))
t(6, -7, -1, 0, (-1, -1, -1))
t(6, -7, -1, 1, (0, -1, -1))
t(6, -7, -1, 5, (4, -1, -1))
t(6, -7, -1, 10, (6, 3, -1))
t(6, -7, -1, 100, (6, 93, -1))
t(6, -7, -1, 2147483647, (6, 2147483640, -1))
t(6, -7, -1, 9223372036854775808, (6, 9223372036854775801, -1))
t(6, -7, 1, 0, (0, 0, 1))
t(6, -7, 1, 1, (1, 0, 1))
t(6, -7, 1, 5, (5, 0, 1))
t(6, -7, 1, 10, (6, 3, 1))
t(6, -7, 1, 100, (6, 93, 1))
t(6, -7, 1, 2147483647, (6, 2147483640, 1))
t(6, -7, 1, 9223372036854775808, (6, 9223372036854775801, 1))
t(6, -7, 5, 0, (0, 0, 5))
t(6, -7, 5, 1, (1, 0, 5))
t(6, -7, 5, 5, (5, 0, 5))
t(6, -7, 5, 10, (6, 3, 5))
t(6, -7, 5, 100, (6, 93, 5))
t(6, -7, 5, 2147483647, (6, 2147483640, 5))
t(6, -7, 5, 9223372036854775808, (6, 9223372036854775801, 5))
t(6, -7, 20, 0, (0, 0, 20))
t(6, -7, 20, 1, (1, 0, 20))
t(6, -7, 20, 5, (5, 0, 20))
t(6, -7, 20, 10, (6, 3, 20))
t(6, -7, 20, 100, (6, 93, 20))
t(6, -7, 20, 2147483647, (6, 2147483640, 20))
t(6, -7, 20, 9223372036854775808, (6, 9223372036854775801, 20))
t(6, -7, 2147483647, 0, (0, 0, 2147483647))
t(6, -7, 2147483647, 1, (1, 0, 2147483647))
t(6, -7, 2147483647, 5, (5, 0, 2147483647))
t(6, -7, 2147483647, 10, (6, 3, 2147483647))
t(6, -7, 2147483647, 100, (6, 93, 2147483647))
t(6, -7, 2147483647, 2147483647, (6, 2147483640, 2147483647))
t(6, -7, 2147483647, 9223372036854775808, (6, 9223372036854775801, 2147483647))
t(6, -7, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(6, -7, 9223372036854775808, 1, (1, 0, 9223372036854775808))
t(6, -7, 9223372036854775808, 5, (5, 0, 9223372036854775808))
t(6, -7, 9223372036854775808, 10, (6, 3, 9223372036854775808))
t(6, -7, 9223372036854775808, 100, (6, 93, 9223372036854775808))
t(6, -7, 9223372036854775808, 2147483647, (6, 2147483640, 9223372036854775808))
t(6, -7, 9223372036854775808, 9223372036854775808, (6, 9223372036854775801, 9223372036854775808))
t(6, -2, None, 0, (0, 0, 1))
t(6, -2, None, 1, (1, 0, 1))
t(6, -2, None, 5, (5, 3, 1))
t(6, -2, None, 10, (6, 8, 1))
t(6, -2, None, 100, (6, 98, 1))
t(6, -2, None, 2147483647, (6, 2147483645, 1))
t(6, -2, None, 9223372036854775808, (6, 9223372036854775806, 1))
t(6, -2, -5, 0, (-1, -1, -5))
t(6, -2, -5, 1, (0, -1, -5))
t(6, -2, -5, 5, (4, 3, -5))
t(6, -2, -5, 10, (6, 8, -5))
t(6, -2, -5, 100, (6, 98, -5))
t(6, -2, -5, 2147483647, (6, 2147483645, -5))
t(6, -2, -5, 9223372036854775808, (6, 9223372036854775806, -5))
t(6, -2, -3, 0, (-1, -1, -3))
t(6, -2, -3, 1, (0, -1, -3))
t(6, -2, -3, 5, (4, 3, -3))
t(6, -2, -3, 10, (6, 8, -3))
t(6, -2, -3, 100, (6, 98, -3))
t(6, -2, -3, 2147483647, (6, 2147483645, -3))
t(6, -2, -3, 9223372036854775808, (6, 9223372036854775806, -3))
t(6, -2, -1, 0, (-1, -1, -1))
t(6, -2, -1, 1, (0, -1, -1))
t(6, -2, -1, 5, (4, 3, -1))
t(6, -2, -1, 10, (6, 8, -1))
t(6, -2, -1, 100, (6, 98, -1))
t(6, -2, -1, 2147483647, (6, 2147483645, -1))
t(6, -2, -1, 9223372036854775808, (6, 9223372036854775806, -1))
t(6, -2, 1, 0, (0, 0, 1))
t(6, -2, 1, 1, (1, 0, 1))
t(6, -2, 1, 5, (5, 3, 1))
t(6, -2, 1, 10, (6, 8, 1))
t(6, -2, 1, 100, (6, 98, 1))
t(6, -2, 1, 2147483647, (6, 2147483645, 1))
t(6, -2, 1, 9223372036854775808, (6, 9223372036854775806, 1))
t(6, -2, 5, 0, (0, 0, 5))
t(6, -2, 5, 1, (1, 0, 5))
t(6, -2, 5, 5, (5, 3, 5))
t(6, -2, 5, 10, (6, 8, 5))
t(6, -2, 5, 100, (6, 98, 5))
t(6, -2, 5, 2147483647, (6, 2147483645, 5))
t(6, -2, 5, 9223372036854775808, (6, 9223372036854775806, 5))
t(6, -2, 20, 0, (0, 0, 20))
t(6, -2, 20, 1, (1, 0, 20))
t(6, -2, 20, 5, (5, 3, 20))
t(6, -2, 20, 10, (6, 8, 20))
t(6, -2, 20, 100, (6, 98, 20))
t(6, -2, 20, 2147483647, (6, 2147483645, 20))
t(6, -2, 20, 9223372036854775808, (6, 9223372036854775806, 20))
t(6, -2, 2147483647, 0, (0, 0, 2147483647))
t(6, -2, 2147483647, 1, (1, 0, 2147483647))
t(6, -2, 2147483647, 5, (5, 3, 2147483647))
t(6, -2, 2147483647, 10, (6, 8, 2147483647))
t(6, -2, 2147483647, 100, (6, 98, 2147483647))
t(6, -2, 2147483647, 2147483647, (6, 2147483645, 2147483647))
t(6, -2, 2147483647, 9223372036854775808, (6, 9223372036854775806, 2147483647))
t(6, -2, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(6, -2, 9223372036854775808, 1, (1, 0, 9223372036854775808))
t(6, -2, 9223372036854775808, 5, (5, 3, 9223372036854775808))
t(6, -2, 9223372036854775808, 10, (6, 8, 9223372036854775808))
t(6, -2, 9223372036854775808, 100, (6, 98, 9223372036854775808))
t(6, -2, 9223372036854775808, 2147483647, (6, 2147483645, 9223372036854775808))
t(6, -2, 9223372036854775808, 9223372036854775808, (6, 9223372036854775806, 9223372036854775808))
t(6, 0, None, 0, (0, 0, 1))
t(6, 0, None, 1, (1, 0, 1))
t(6, 0, None, 5, (5, 0, 1))
t(6, 0, None, 10, (6, 0, 1))
t(6, 0, None, 100, (6, 0, 1))
t(6, 0, None, 2147483647, (6, 0, 1))
t(6, 0, None, 9223372036854775808, (6, 0, 1))
t(6, 0, -5, 0, (-1, -1, -5))
t(6, 0, -5, 1, (0, 0, -5))
t(6, 0, -5, 5, (4, 0, -5))
t(6, 0, -5, 10, (6, 0, -5))
t(6, 0, -5, 100, (6, 0, -5))
t(6, 0, -5, 2147483647, (6, 0, -5))
t(6, 0, -5, 9223372036854775808, (6, 0, -5))
t(6, 0, -3, 0, (-1, -1, -3))
t(6, 0, -3, 1, (0, 0, -3))
t(6, 0, -3, 5, (4, 0, -3))
t(6, 0, -3, 10, (6, 0, -3))
t(6, 0, -3, 100, (6, 0, -3))
t(6, 0, -3, 2147483647, (6, 0, -3))
t(6, 0, -3, 9223372036854775808, (6, 0, -3))
t(6, 0, -1, 0, (-1, -1, -1))
t(6, 0, -1, 1, (0, 0, -1))
t(6, 0, -1, 5, (4, 0, -1))
t(6, 0, -1, 10, (6, 0, -1))
t(6, 0, -1, 100, (6, 0, -1))
t(6, 0, -1, 2147483647, (6, 0, -1))
t(6, 0, -1, 9223372036854775808, (6, 0, -1))
t(6, 0, 1, 0, (0, 0, 1))
t(6, 0, 1, 1, (1, 0, 1))
t(6, 0, 1, 5, (5, 0, 1))
t(6, 0, 1, 10, (6, 0, 1))
t(6, 0, 1, 100, (6, 0, 1))
t(6, 0, 1, 2147483647, (6, 0, 1))
t(6, 0, 1, 9223372036854775808, (6, 0, 1))
t(6, 0, 5, 0, (0, 0, 5))
t(6, 0, 5, 1, (1, 0, 5))
t(6, 0, 5, 5, (5, 0, 5))
t(6, 0, 5, 10, (6, 0, 5))
t(6, 0, 5, 100, (6, 0, 5))
t(6, 0, 5, 2147483647, (6, 0, 5))
t(6, 0, 5, 9223372036854775808, (6, 0, 5))
t(6, 0, 20, 0, (0, 0, 20))
t(6, 0, 20, 1, (1, 0, 20))
t(6, 0, 20, 5, (5, 0, 20))
t(6, 0, 20, 10, (6, 0, 20))
t(6, 0, 20, 100, (6, 0, 20))
t(6, 0, 20, 2147483647, (6, 0, 20))
t(6, 0, 20, 9223372036854775808, (6, 0, 20))
t(6, 0, 2147483647, 0, (0, 0, 2147483647))
t(6, 0, 2147483647, 1, (1, 0, 2147483647))
t(6, 0, 2147483647, 5, (5, 0, 2147483647))
t(6, 0, 2147483647, 10, (6, 0, 2147483647))
t(6, 0, 2147483647, 100, (6, 0, 2147483647))
t(6, 0, 2147483647, 2147483647, (6, 0, 2147483647))
t(6, 0, 2147483647, 9223372036854775808, (6, 0, 2147483647))
t(6, 0, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(6, 0, 9223372036854775808, 1, (1, 0, 9223372036854775808))
t(6, 0, 9223372036854775808, 5, (5, 0, 9223372036854775808))
t(6, 0, 9223372036854775808, 10, (6, 0, 9223372036854775808))
t(6, 0, 9223372036854775808, 100, (6, 0, 9223372036854775808))
t(6, 0, 9223372036854775808, 2147483647, (6, 0, 9223372036854775808))
t(6, 0, 9223372036854775808, 9223372036854775808, (6, 0, 9223372036854775808))
t(6, 1, None, 0, (0, 0, 1))
t(6, 1, None, 1, (1, 1, 1))
t(6, 1, None, 5, (5, 1, 1))
t(6, 1, None, 10, (6, 1, 1))
t(6, 1, None, 100, (6, 1, 1))
t(6, 1, None, 2147483647, (6, 1, 1))
t(6, 1, None, 9223372036854775808, (6, 1, 1))
t(6, 1, -5, 0, (-1, -1, -5))
t(6, 1, -5, 1, (0, 0, -5))
t(6, 1, -5, 5, (4, 1, -5))
t(6, 1, -5, 10, (6, 1, -5))
t(6, 1, -5, 100, (6, 1, -5))
t(6, 1, -5, 2147483647, (6, 1, -5))
t(6, 1, -5, 9223372036854775808, (6, 1, -5))
t(6, 1, -3, 0, (-1, -1, -3))
t(6, 1, -3, 1, (0, 0, -3))
t(6, 1, -3, 5, (4, 1, -3))
t(6, 1, -3, 10, (6, 1, -3))
t(6, 1, -3, 100, (6, 1, -3))
t(6, 1, -3, 2147483647, (6, 1, -3))
t(6, 1, -3, 9223372036854775808, (6, 1, -3))
t(6, 1, -1, 0, (-1, -1, -1))
t(6, 1, -1, 1, (0, 0, -1))
t(6, 1, -1, 5, (4, 1, -1))
t(6, 1, -1, 10, (6, 1, -1))
t(6, 1, -1, 100, (6, 1, -1))
t(6, 1, -1, 2147483647, (6, 1, -1))
t(6, 1, -1, 9223372036854775808, (6, 1, -1))
t(6, 1, 1, 0, (0, 0, 1))
t(6, 1, 1, 1, (1, 1, 1))
t(6, 1, 1, 5, (5, 1, 1))
t(6, 1, 1, 10, (6, 1, 1))
t(6, 1, 1, 100, (6, 1, 1))
t(6, 1, 1, 2147483647, (6, 1, 1))
t(6, 1, 1, 9223372036854775808, (6, 1, 1))
t(6, 1, 5, 0, (0, 0, 5))
t(6, 1, 5, 1, (1, 1, 5))
t(6, 1, 5, 5, (5, 1, 5))
t(6, 1, 5, 10, (6, 1, 5))
t(6, 1, 5, 100, (6, 1, 5))
t(6, 1, 5, 2147483647, (6, 1, 5))
t(6, 1, 5, 9223372036854775808, (6, 1, 5))
t(6, 1, 20, 0, (0, 0, 20))
t(6, 1, 20, 1, (1, 1, 20))
t(6, 1, 20, 5, (5, 1, 20))
t(6, 1, 20, 10, (6, 1, 20))
t(6, 1, 20, 100, (6, 1, 20))
t(6, 1, 20, 2147483647, (6, 1, 20))
t(6, 1, 20, 9223372036854775808, (6, 1, 20))
t(6, 1, 2147483647, 0, (0, 0, 2147483647))
t(6, 1, 2147483647, 1, (1, 1, 2147483647))
t(6, 1, 2147483647, 5, (5, 1, 2147483647))
t(6, 1, 2147483647, 10, (6, 1, 2147483647))
t(6, 1, 2147483647, 100, (6, 1, 2147483647))
t(6, 1, 2147483647, 2147483647, (6, 1, 2147483647))
t(6, 1, 2147483647, 9223372036854775808, (6, 1, 2147483647))
t(6, 1, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(6, 1, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(6, 1, 9223372036854775808, 5, (5, 1, 9223372036854775808))
t(6, 1, 9223372036854775808, 10, (6, 1, 9223372036854775808))
t(6, 1, 9223372036854775808, 100, (6, 1, 9223372036854775808))
t(6, 1, 9223372036854775808, 2147483647, (6, 1, 9223372036854775808))
t(6, 1, 9223372036854775808, 9223372036854775808, (6, 1, 9223372036854775808))
t(6, 6, None, 0, (0, 0, 1))
t(6, 6, None, 1, (1, 1, 1))
t(6, 6, None, 5, (5, 5, 1))
t(6, 6, None, 10, (6, 6, 1))
t(6, 6, None, 100, (6, 6, 1))
t(6, 6, None, 2147483647, (6, 6, 1))
t(6, 6, None, 9223372036854775808, (6, 6, 1))
t(6, 6, -5, 0, (-1, -1, -5))
t(6, 6, -5, 1, (0, 0, -5))
t(6, 6, -5, 5, (4, 4, -5))
t(6, 6, -5, 10, (6, 6, -5))
t(6, 6, -5, 100, (6, 6, -5))
t(6, 6, -5, 2147483647, (6, 6, -5))
t(6, 6, -5, 9223372036854775808, (6, 6, -5))
t(6, 6, -3, 0, (-1, -1, -3))
t(6, 6, -3, 1, (0, 0, -3))
t(6, 6, -3, 5, (4, 4, -3))
t(6, 6, -3, 10, (6, 6, -3))
t(6, 6, -3, 100, (6, 6, -3))
t(6, 6, -3, 2147483647, (6, 6, -3))
t(6, 6, -3, 9223372036854775808, (6, 6, -3))
t(6, 6, -1, 0, (-1, -1, -1))
t(6, 6, -1, 1, (0, 0, -1))
t(6, 6, -1, 5, (4, 4, -1))
t(6, 6, -1, 10, (6, 6, -1))
t(6, 6, -1, 100, (6, 6, -1))
t(6, 6, -1, 2147483647, (6, 6, -1))
t(6, 6, -1, 9223372036854775808, (6, 6, -1))
t(6, 6, 1, 0, (0, 0, 1))
t(6, 6, 1, 1, (1, 1, 1))
t(6, 6, 1, 5, (5, 5, 1))
t(6, 6, 1, 10, (6, 6, 1))
t(6, 6, 1, 100, (6, 6, 1))
t(6, 6, 1, 2147483647, (6, 6, 1))
t(6, 6, 1, 9223372036854775808, (6, 6, 1))
t(6, 6, 5, 0, (0, 0, 5))
t(6, 6, 5, 1, (1, 1, 5))
t(6, 6, 5, 5, (5, 5, 5))
t(6, 6, 5, 10, (6, 6, 5))
t(6, 6, 5, 100, (6, 6, 5))
t(6, 6, 5, 2147483647, (6, 6, 5))
t(6, 6, 5, 9223372036854775808, (6, 6, 5))
t(6, 6, 20, 0, (0, 0, 20))
t(6, 6, 20, 1, (1, 1, 20))
t(6, 6, 20, 5, (5, 5, 20))
t(6, 6, 20, 10, (6, 6, 20))
t(6, 6, 20, 100, (6, 6, 20))
t(6, 6, 20, 2147483647, (6, 6, 20))
t(6, 6, 20, 9223372036854775808, (6, 6, 20))
t(6, 6, 2147483647, 0, (0, 0, 2147483647))
t(6, 6, 2147483647, 1, (1, 1, 2147483647))
t(6, 6, 2147483647, 5, (5, 5, 2147483647))
t(6, 6, 2147483647, 10, (6, 6, 2147483647))
t(6, 6, 2147483647, 100, (6, 6, 2147483647))
t(6, 6, 2147483647, 2147483647, (6, 6, 2147483647))
t(6, 6, 2147483647, 9223372036854775808, (6, 6, 2147483647))
t(6, 6, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(6, 6, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(6, 6, 9223372036854775808, 5, (5, 5, 9223372036854775808))
t(6, 6, 9223372036854775808, 10, (6, 6, 9223372036854775808))
t(6, 6, 9223372036854775808, 100, (6, 6, 9223372036854775808))
t(6, 6, 9223372036854775808, 2147483647, (6, 6, 9223372036854775808))
t(6, 6, 9223372036854775808, 9223372036854775808, (6, 6, 9223372036854775808))
t(6, 10, None, 0, (0, 0, 1))
t(6, 10, None, 1, (1, 1, 1))
t(6, 10, None, 5, (5, 5, 1))
t(6, 10, None, 10, (6, 10, 1))
t(6, 10, None, 100, (6, 10, 1))
t(6, 10, None, 2147483647, (6, 10, 1))
t(6, 10, None, 9223372036854775808, (6, 10, 1))
t(6, 10, -5, 0, (-1, -1, -5))
t(6, 10, -5, 1, (0, 0, -5))
t(6, 10, -5, 5, (4, 4, -5))
t(6, 10, -5, 10, (6, 9, -5))
t(6, 10, -5, 100, (6, 10, -5))
t(6, 10, -5, 2147483647, (6, 10, -5))
t(6, 10, -5, 9223372036854775808, (6, 10, -5))
t(6, 10, -3, 0, (-1, -1, -3))
t(6, 10, -3, 1, (0, 0, -3))
t(6, 10, -3, 5, (4, 4, -3))
t(6, 10, -3, 10, (6, 9, -3))
t(6, 10, -3, 100, (6, 10, -3))
t(6, 10, -3, 2147483647, (6, 10, -3))
t(6, 10, -3, 9223372036854775808, (6, 10, -3))
t(6, 10, -1, 0, (-1, -1, -1))
t(6, 10, -1, 1, (0, 0, -1))
t(6, 10, -1, 5, (4, 4, -1))
t(6, 10, -1, 10, (6, 9, -1))
t(6, 10, -1, 100, (6, 10, -1))
t(6, 10, -1, 2147483647, (6, 10, -1))
t(6, 10, -1, 9223372036854775808, (6, 10, -1))
t(6, 10, 1, 0, (0, 0, 1))
t(6, 10, 1, 1, (1, 1, 1))
t(6, 10, 1, 5, (5, 5, 1))
t(6, 10, 1, 10, (6, 10, 1))
t(6, 10, 1, 100, (6, 10, 1))
t(6, 10, 1, 2147483647, (6, 10, 1))
t(6, 10, 1, 9223372036854775808, (6, 10, 1))
t(6, 10, 5, 0, (0, 0, 5))
t(6, 10, 5, 1, (1, 1, 5))
t(6, 10, 5, 5, (5, 5, 5))
t(6, 10, 5, 10, (6, 10, 5))
t(6, 10, 5, 100, (6, 10, 5))
t(6, 10, 5, 2147483647, (6, 10, 5))
t(6, 10, 5, 9223372036854775808, (6, 10, 5))
t(6, 10, 20, 0, (0, 0, 20))
t(6, 10, 20, 1, (1, 1, 20))
t(6, 10, 20, 5, (5, 5, 20))
t(6, 10, 20, 10, (6, 10, 20))
t(6, 10, 20, 100, (6, 10, 20))
t(6, 10, 20, 2147483647, (6, 10, 20))
t(6, 10, 20, 9223372036854775808, (6, 10, 20))
t(6, 10, 2147483647, 0, (0, 0, 2147483647))
t(6, 10, 2147483647, 1, (1, 1, 2147483647))
t(6, 10, 2147483647, 5, (5, 5, 2147483647))
t(6, 10, 2147483647, 10, (6, 10, 2147483647))
t(6, 10, 2147483647, 100, (6, 10, 2147483647))
t(6, 10, 2147483647, 2147483647, (6, 10, 2147483647))
t(6, 10, 2147483647, 9223372036854775808, (6, 10, 2147483647))
t(6, 10, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(6, 10, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(6, 10, 9223372036854775808, 5, (5, 5, 9223372036854775808))
t(6, 10, 9223372036854775808, 10, (6, 10, 9223372036854775808))
t(6, 10, 9223372036854775808, 100, (6, 10, 9223372036854775808))
t(6, 10, 9223372036854775808, 2147483647, (6, 10, 9223372036854775808))
t(6, 10, 9223372036854775808, 9223372036854775808, (6, 10, 9223372036854775808))
t(6, 2147483647, None, 0, (0, 0, 1))
t(6, 2147483647, None, 1, (1, 1, 1))
t(6, 2147483647, None, 5, (5, 5, 1))
t(6, 2147483647, None, 10, (6, 10, 1))
t(6, 2147483647, None, 100, (6, 100, 1))
t(6, 2147483647, None, 2147483647, (6, 2147483647, 1))
t(6, 2147483647, None, 9223372036854775808, (6, 2147483647, 1))
t(6, 2147483647, -5, 0, (-1, -1, -5))
t(6, 2147483647, -5, 1, (0, 0, -5))
t(6, 2147483647, -5, 5, (4, 4, -5))
t(6, 2147483647, -5, 10, (6, 9, -5))
t(6, 2147483647, -5, 100, (6, 99, -5))
t(6, 2147483647, -5, 2147483647, (6, 2147483646, -5))
t(6, 2147483647, -5, 9223372036854775808, (6, 2147483647, -5))
t(6, 2147483647, -3, 0, (-1, -1, -3))
t(6, 2147483647, -3, 1, (0, 0, -3))
t(6, 2147483647, -3, 5, (4, 4, -3))
t(6, 2147483647, -3, 10, (6, 9, -3))
t(6, 2147483647, -3, 100, (6, 99, -3))
t(6, 2147483647, -3, 2147483647, (6, 2147483646, -3))
t(6, 2147483647, -3, 9223372036854775808, (6, 2147483647, -3))
t(6, 2147483647, -1, 0, (-1, -1, -1))
t(6, 2147483647, -1, 1, (0, 0, -1))
t(6, 2147483647, -1, 5, (4, 4, -1))
t(6, 2147483647, -1, 10, (6, 9, -1))
t(6, 2147483647, -1, 100, (6, 99, -1))
t(6, 2147483647, -1, 2147483647, (6, 2147483646, -1))
t(6, 2147483647, -1, 9223372036854775808, (6, 2147483647, -1))
t(6, 2147483647, 1, 0, (0, 0, 1))
t(6, 2147483647, 1, 1, (1, 1, 1))
t(6, 2147483647, 1, 5, (5, 5, 1))
t(6, 2147483647, 1, 10, (6, 10, 1))
t(6, 2147483647, 1, 100, (6, 100, 1))
t(6, 2147483647, 1, 2147483647, (6, 2147483647, 1))
t(6, 2147483647, 1, 9223372036854775808, (6, 2147483647, 1))
t(6, 2147483647, 5, 0, (0, 0, 5))
t(6, 2147483647, 5, 1, (1, 1, 5))
t(6, 2147483647, 5, 5, (5, 5, 5))
t(6, 2147483647, 5, 10, (6, 10, 5))
t(6, 2147483647, 5, 100, (6, 100, 5))
t(6, 2147483647, 5, 2147483647, (6, 2147483647, 5))
t(6, 2147483647, 5, 9223372036854775808, (6, 2147483647, 5))
t(6, 2147483647, 20, 0, (0, 0, 20))
t(6, 2147483647, 20, 1, (1, 1, 20))
t(6, 2147483647, 20, 5, (5, 5, 20))
t(6, 2147483647, 20, 10, (6, 10, 20))
t(6, 2147483647, 20, 100, (6, 100, 20))
t(6, 2147483647, 20, 2147483647, (6, 2147483647, 20))
t(6, 2147483647, 20, 9223372036854775808, (6, 2147483647, 20))
t(6, 2147483647, 2147483647, 0, (0, 0, 2147483647))
t(6, 2147483647, 2147483647, 1, (1, 1, 2147483647))
t(6, 2147483647, 2147483647, 5, (5, 5, 2147483647))
t(6, 2147483647, 2147483647, 10, (6, 10, 2147483647))
t(6, 2147483647, 2147483647, 100, (6, 100, 2147483647))
t(6, 2147483647, 2147483647, 2147483647, (6, 2147483647, 2147483647))
t(6, 2147483647, 2147483647, 9223372036854775808, (6, 2147483647, 2147483647))
t(6, 2147483647, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(6, 2147483647, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(6, 2147483647, 9223372036854775808, 5, (5, 5, 9223372036854775808))
t(6, 2147483647, 9223372036854775808, 10, (6, 10, 9223372036854775808))
t(6, 2147483647, 9223372036854775808, 100, (6, 100, 9223372036854775808))
t(6, 2147483647, 9223372036854775808, 2147483647, (6, 2147483647, 9223372036854775808))
t(6, 2147483647, 9223372036854775808, 9223372036854775808, (6, 2147483647, 9223372036854775808))
t(6, 9223372036854775808, None, 0, (0, 0, 1))
t(6, 9223372036854775808, None, 1, (1, 1, 1))
t(6, 9223372036854775808, None, 5, (5, 5, 1))
t(6, 9223372036854775808, None, 10, (6, 10, 1))
t(6, 9223372036854775808, None, 100, (6, 100, 1))
t(6, 9223372036854775808, None, 2147483647, (6, 2147483647, 1))
t(6, 9223372036854775808, None, 9223372036854775808, (6, 9223372036854775808, 1))
t(6, 9223372036854775808, -5, 0, (-1, -1, -5))
t(6, 9223372036854775808, -5, 1, (0, 0, -5))
t(6, 9223372036854775808, -5, 5, (4, 4, -5))
t(6, 9223372036854775808, -5, 10, (6, 9, -5))
t(6, 9223372036854775808, -5, 100, (6, 99, -5))
t(6, 9223372036854775808, -5, 2147483647, (6, 2147483646, -5))
t(6, 9223372036854775808, -5, 9223372036854775808, (6, 9223372036854775807, -5))
t(6, 9223372036854775808, -3, 0, (-1, -1, -3))
t(6, 9223372036854775808, -3, 1, (0, 0, -3))
t(6, 9223372036854775808, -3, 5, (4, 4, -3))
t(6, 9223372036854775808, -3, 10, (6, 9, -3))
t(6, 9223372036854775808, -3, 100, (6, 99, -3))
t(6, 9223372036854775808, -3, 2147483647, (6, 2147483646, -3))
t(6, 9223372036854775808, -3, 9223372036854775808, (6, 9223372036854775807, -3))
t(6, 9223372036854775808, -1, 0, (-1, -1, -1))
t(6, 9223372036854775808, -1, 1, (0, 0, -1))
t(6, 9223372036854775808, -1, 5, (4, 4, -1))
t(6, 9223372036854775808, -1, 10, (6, 9, -1))
t(6, 9223372036854775808, -1, 100, (6, 99, -1))
t(6, 9223372036854775808, -1, 2147483647, (6, 2147483646, -1))
t(6, 9223372036854775808, -1, 9223372036854775808, (6, 9223372036854775807, -1))
t(6, 9223372036854775808, 1, 0, (0, 0, 1))
t(6, 9223372036854775808, 1, 1, (1, 1, 1))
t(6, 9223372036854775808, 1, 5, (5, 5, 1))
t(6, 9223372036854775808, 1, 10, (6, 10, 1))
t(6, 9223372036854775808, 1, 100, (6, 100, 1))
t(6, 9223372036854775808, 1, 2147483647, (6, 2147483647, 1))
t(6, 9223372036854775808, 1, 9223372036854775808, (6, 9223372036854775808, 1))
t(6, 9223372036854775808, 5, 0, (0, 0, 5))
t(6, 9223372036854775808, 5, 1, (1, 1, 5))
t(6, 9223372036854775808, 5, 5, (5, 5, 5))
t(6, 9223372036854775808, 5, 10, (6, 10, 5))
t(6, 9223372036854775808, 5, 100, (6, 100, 5))
t(6, 9223372036854775808, 5, 2147483647, (6, 2147483647, 5))
t(6, 9223372036854775808, 5, 9223372036854775808, (6, 9223372036854775808, 5))
t(6, 9223372036854775808, 20, 0, (0, 0, 20))
t(6, 9223372036854775808, 20, 1, (1, 1, 20))
t(6, 9223372036854775808, 20, 5, (5, 5, 20))
t(6, 9223372036854775808, 20, 10, (6, 10, 20))
t(6, 9223372036854775808, 20, 100, (6, 100, 20))
t(6, 9223372036854775808, 20, 2147483647, (6, 2147483647, 20))
t(6, 9223372036854775808, 20, 9223372036854775808, (6, 9223372036854775808, 20))
t(6, 9223372036854775808, 2147483647, 0, (0, 0, 2147483647))
t(6, 9223372036854775808, 2147483647, 1, (1, 1, 2147483647))
t(6, 9223372036854775808, 2147483647, 5, (5, 5, 2147483647))
t(6, 9223372036854775808, 2147483647, 10, (6, 10, 2147483647))
t(6, 9223372036854775808, 2147483647, 100, (6, 100, 2147483647))
t(6, 9223372036854775808, 2147483647, 2147483647, (6, 2147483647, 2147483647))
t(6, 9223372036854775808, 2147483647, 9223372036854775808, (6, 9223372036854775808, 2147483647))
t(6, 9223372036854775808, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(6, 9223372036854775808, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(6, 9223372036854775808, 9223372036854775808, 5, (5, 5, 9223372036854775808))
t(6, 9223372036854775808, 9223372036854775808, 10, (6, 10, 9223372036854775808))
t(6, 9223372036854775808, 9223372036854775808, 100, (6, 100, 9223372036854775808))
t(6, 9223372036854775808, 9223372036854775808, 2147483647, (6, 2147483647, 9223372036854775808))
t(6, 9223372036854775808, 9223372036854775808, 9223372036854775808, (6, 9223372036854775808, 9223372036854775808))
t(10, None, None, 0, (0, 0, 1))
t(10, None, None, 1, (1, 1, 1))
t(10, None, None, 5, (5, 5, 1))
t(10, None, None, 10, (10, 10, 1))
t(10, None, None, 100, (10, 100, 1))
t(10, None, None, 2147483647, (10, 2147483647, 1))
t(10, None, None, 9223372036854775808, (10, 9223372036854775808, 1))
t(10, None, -5, 0, (-1, -1, -5))
t(10, None, -5, 1, (0, -1, -5))
t(10, None, -5, 5, (4, -1, -5))
t(10, None, -5, 10, (9, -1, -5))
t(10, None, -5, 100, (10, -1, -5))
t(10, None, -5, 2147483647, (10, -1, -5))
t(10, None, -5, 9223372036854775808, (10, -1, -5))
t(10, None, -3, 0, (-1, -1, -3))
t(10, None, -3, 1, (0, -1, -3))
t(10, None, -3, 5, (4, -1, -3))
t(10, None, -3, 10, (9, -1, -3))
t(10, None, -3, 100, (10, -1, -3))
t(10, None, -3, 2147483647, (10, -1, -3))
t(10, None, -3, 9223372036854775808, (10, -1, -3))
t(10, None, -1, 0, (-1, -1, -1))
t(10, None, -1, 1, (0, -1, -1))
t(10, None, -1, 5, (4, -1, -1))
t(10, None, -1, 10, (9, -1, -1))
t(10, None, -1, 100, (10, -1, -1))
t(10, None, -1, 2147483647, (10, -1, -1))
t(10, None, -1, 9223372036854775808, (10, -1, -1))
t(10, None, 1, 0, (0, 0, 1))
t(10, None, 1, 1, (1, 1, 1))
t(10, None, 1, 5, (5, 5, 1))
t(10, None, 1, 10, (10, 10, 1))
t(10, None, 1, 100, (10, 100, 1))
t(10, None, 1, 2147483647, (10, 2147483647, 1))
t(10, None, 1, 9223372036854775808, (10, 9223372036854775808, 1))
t(10, None, 5, 0, (0, 0, 5))
t(10, None, 5, 1, (1, 1, 5))
t(10, None, 5, 5, (5, 5, 5))
t(10, None, 5, 10, (10, 10, 5))
t(10, None, 5, 100, (10, 100, 5))
t(10, None, 5, 2147483647, (10, 2147483647, 5))
t(10, None, 5, 9223372036854775808, (10, 9223372036854775808, 5))
t(10, None, 20, 0, (0, 0, 20))
t(10, None, 20, 1, (1, 1, 20))
t(10, None, 20, 5, (5, 5, 20))
t(10, None, 20, 10, (10, 10, 20))
t(10, None, 20, 100, (10, 100, 20))
t(10, None, 20, 2147483647, (10, 2147483647, 20))
t(10, None, 20, 9223372036854775808, (10, 9223372036854775808, 20))
t(10, None, 2147483647, 0, (0, 0, 2147483647))
t(10, None, 2147483647, 1, (1, 1, 2147483647))
t(10, None, 2147483647, 5, (5, 5, 2147483647))
t(10, None, 2147483647, 10, (10, 10, 2147483647))
t(10, None, 2147483647, 100, (10, 100, 2147483647))
t(10, None, 2147483647, 2147483647, (10, 2147483647, 2147483647))
t(10, None, 2147483647, 9223372036854775808, (10, 9223372036854775808, 2147483647))
t(10, None, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(10, None, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(10, None, 9223372036854775808, 5, (5, 5, 9223372036854775808))
t(10, None, 9223372036854775808, 10, (10, 10, 9223372036854775808))
t(10, None, 9223372036854775808, 100, (10, 100, 9223372036854775808))
t(10, None, 9223372036854775808, 2147483647, (10, 2147483647, 9223372036854775808))
t(10, None, 9223372036854775808, 9223372036854775808, (10, 9223372036854775808, 9223372036854775808))
t(10, -7, None, 0, (0, 0, 1))
t(10, -7, None, 1, (1, 0, 1))
t(10, -7, None, 5, (5, 0, 1))
t(10, -7, None, 10, (10, 3, 1))
t(10, -7, None, 100, (10, 93, 1))
t(10, -7, None, 2147483647, (10, 2147483640, 1))
t(10, -7, None, 9223372036854775808, (10, 9223372036854775801, 1))
t(10, -7, -5, 0, (-1, -1, -5))
t(10, -7, -5, 1, (0, -1, -5))
t(10, -7, -5, 5, (4, -1, -5))
t(10, -7, -5, 10, (9, 3, -5))
t(10, -7, -5, 100, (10, 93, -5))
t(10, -7, -5, 2147483647, (10, 2147483640, -5))
t(10, -7, -5, 9223372036854775808, (10, 9223372036854775801, -5))
t(10, -7, -3, 0, (-1, -1, -3))
t(10, -7, -3, 1, (0, -1, -3))
t(10, -7, -3, 5, (4, -1, -3))
t(10, -7, -3, 10, (9, 3, -3))
t(10, -7, -3, 100, (10, 93, -3))
t(10, -7, -3, 2147483647, (10, 2147483640, -3))
t(10, -7, -3, 9223372036854775808, (10, 9223372036854775801, -3))
t(10, -7, -1, 0, (-1, -1, -1))
t(10, -7, -1, 1, (0, -1, -1))
t(10, -7, -1, 5, (4, -1, -1))
t(10, -7, -1, 10, (9, 3, -1))
t(10, -7, -1, 100, (10, 93, -1))
t(10, -7, -1, 2147483647, (10, 2147483640, -1))
t(10, -7, -1, 9223372036854775808, (10, 9223372036854775801, -1))
t(10, -7, 1, 0, (0, 0, 1))
t(10, -7, 1, 1, (1, 0, 1))
t(10, -7, 1, 5, (5, 0, 1))
t(10, -7, 1, 10, (10, 3, 1))
t(10, -7, 1, 100, (10, 93, 1))
t(10, -7, 1, 2147483647, (10, 2147483640, 1))
t(10, -7, 1, 9223372036854775808, (10, 9223372036854775801, 1))
t(10, -7, 5, 0, (0, 0, 5))
t(10, -7, 5, 1, (1, 0, 5))
t(10, -7, 5, 5, (5, 0, 5))
t(10, -7, 5, 10, (10, 3, 5))
t(10, -7, 5, 100, (10, 93, 5))
t(10, -7, 5, 2147483647, (10, 2147483640, 5))
t(10, -7, 5, 9223372036854775808, (10, 9223372036854775801, 5))
t(10, -7, 20, 0, (0, 0, 20))
t(10, -7, 20, 1, (1, 0, 20))
t(10, -7, 20, 5, (5, 0, 20))
t(10, -7, 20, 10, (10, 3, 20))
t(10, -7, 20, 100, (10, 93, 20))
t(10, -7, 20, 2147483647, (10, 2147483640, 20))
t(10, -7, 20, 9223372036854775808, (10, 9223372036854775801, 20))
t(10, -7, 2147483647, 0, (0, 0, 2147483647))
t(10, -7, 2147483647, 1, (1, 0, 2147483647))
t(10, -7, 2147483647, 5, (5, 0, 2147483647))
t(10, -7, 2147483647, 10, (10, 3, 2147483647))
t(10, -7, 2147483647, 100, (10, 93, 2147483647))
t(10, -7, 2147483647, 2147483647, (10, 2147483640, 2147483647))
t(10, -7, 2147483647, 9223372036854775808, (10, 9223372036854775801, 2147483647))
t(10, -7, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(10, -7, 9223372036854775808, 1, (1, 0, 9223372036854775808))
t(10, -7, 9223372036854775808, 5, (5, 0, 9223372036854775808))
t(10, -7, 9223372036854775808, 10, (10, 3, 9223372036854775808))
t(10, -7, 9223372036854775808, 100, (10, 93, 9223372036854775808))
t(10, -7, 9223372036854775808, 2147483647, (10, 2147483640, 9223372036854775808))
t(10, -7, 9223372036854775808, 9223372036854775808, (10, 9223372036854775801, 9223372036854775808))
t(10, -2, None, 0, (0, 0, 1))
t(10, -2, None, 1, (1, 0, 1))
t(10, -2, None, 5, (5, 3, 1))
t(10, -2, None, 10, (10, 8, 1))
t(10, -2, None, 100, (10, 98, 1))
t(10, -2, None, 2147483647, (10, 2147483645, 1))
t(10, -2, None, 9223372036854775808, (10, 9223372036854775806, 1))
t(10, -2, -5, 0, (-1, -1, -5))
t(10, -2, -5, 1, (0, -1, -5))
t(10, -2, -5, 5, (4, 3, -5))
t(10, -2, -5, 10, (9, 8, -5))
t(10, -2, -5, 100, (10, 98, -5))
t(10, -2, -5, 2147483647, (10, 2147483645, -5))
t(10, -2, -5, 9223372036854775808, (10, 9223372036854775806, -5))
t(10, -2, -3, 0, (-1, -1, -3))
t(10, -2, -3, 1, (0, -1, -3))
t(10, -2, -3, 5, (4, 3, -3))
t(10, -2, -3, 10, (9, 8, -3))
t(10, -2, -3, 100, (10, 98, -3))
t(10, -2, -3, 2147483647, (10, 2147483645, -3))
t(10, -2, -3, 9223372036854775808, (10, 9223372036854775806, -3))
t(10, -2, -1, 0, (-1, -1, -1))
t(10, -2, -1, 1, (0, -1, -1))
t(10, -2, -1, 5, (4, 3, -1))
t(10, -2, -1, 10, (9, 8, -1))
t(10, -2, -1, 100, (10, 98, -1))
t(10, -2, -1, 2147483647, (10, 2147483645, -1))
t(10, -2, -1, 9223372036854775808, (10, 9223372036854775806, -1))
t(10, -2, 1, 0, (0, 0, 1))
t(10, -2, 1, 1, (1, 0, 1))
t(10, -2, 1, 5, (5, 3, 1))
t(10, -2, 1, 10, (10, 8, 1))
t(10, -2, 1, 100, (10, 98, 1))
t(10, -2, 1, 2147483647, (10, 2147483645, 1))
t(10, -2, 1, 9223372036854775808, (10, 9223372036854775806, 1))
t(10, -2, 5, 0, (0, 0, 5))
t(10, -2, 5, 1, (1, 0, 5))
t(10, -2, 5, 5, (5, 3, 5))
t(10, -2, 5, 10, (10, 8, 5))
t(10, -2, 5, 100, (10, 98, 5))
t(10, -2, 5, 2147483647, (10, 2147483645, 5))
t(10, -2, 5, 9223372036854775808, (10, 9223372036854775806, 5))
t(10, -2, 20, 0, (0, 0, 20))
t(10, -2, 20, 1, (1, 0, 20))
t(10, -2, 20, 5, (5, 3, 20))
t(10, -2, 20, 10, (10, 8, 20))
t(10, -2, 20, 100, (10, 98, 20))
t(10, -2, 20, 2147483647, (10, 2147483645, 20))
t(10, -2, 20, 9223372036854775808, (10, 9223372036854775806, 20))
t(10, -2, 2147483647, 0, (0, 0, 2147483647))
t(10, -2, 2147483647, 1, (1, 0, 2147483647))
t(10, -2, 2147483647, 5, (5, 3, 2147483647))
t(10, -2, 2147483647, 10, (10, 8, 2147483647))
t(10, -2, 2147483647, 100, (10, 98, 2147483647))
t(10, -2, 2147483647, 2147483647, (10, 2147483645, 2147483647))
t(10, -2, 2147483647, 9223372036854775808, (10, 9223372036854775806, 2147483647))
t(10, -2, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(10, -2, 9223372036854775808, 1, (1, 0, 9223372036854775808))
t(10, -2, 9223372036854775808, 5, (5, 3, 9223372036854775808))
t(10, -2, 9223372036854775808, 10, (10, 8, 9223372036854775808))
t(10, -2, 9223372036854775808, 100, (10, 98, 9223372036854775808))
t(10, -2, 9223372036854775808, 2147483647, (10, 2147483645, 9223372036854775808))
t(10, -2, 9223372036854775808, 9223372036854775808, (10, 9223372036854775806, 9223372036854775808))
t(10, 0, None, 0, (0, 0, 1))
t(10, 0, None, 1, (1, 0, 1))
t(10, 0, None, 5, (5, 0, 1))
t(10, 0, None, 10, (10, 0, 1))
t(10, 0, None, 100, (10, 0, 1))
t(10, 0, None, 2147483647, (10, 0, 1))
t(10, 0, None, 9223372036854775808, (10, 0, 1))
t(10, 0, -5, 0, (-1, -1, -5))
t(10, 0, -5, 1, (0, 0, -5))
t(10, 0, -5, 5, (4, 0, -5))
t(10, 0, -5, 10, (9, 0, -5))
t(10, 0, -5, 100, (10, 0, -5))
t(10, 0, -5, 2147483647, (10, 0, -5))
t(10, 0, -5, 9223372036854775808, (10, 0, -5))
t(10, 0, -3, 0, (-1, -1, -3))
t(10, 0, -3, 1, (0, 0, -3))
t(10, 0, -3, 5, (4, 0, -3))
t(10, 0, -3, 10, (9, 0, -3))
t(10, 0, -3, 100, (10, 0, -3))
t(10, 0, -3, 2147483647, (10, 0, -3))
t(10, 0, -3, 9223372036854775808, (10, 0, -3))
t(10, 0, -1, 0, (-1, -1, -1))
t(10, 0, -1, 1, (0, 0, -1))
t(10, 0, -1, 5, (4, 0, -1))
t(10, 0, -1, 10, (9, 0, -1))
t(10, 0, -1, 100, (10, 0, -1))
t(10, 0, -1, 2147483647, (10, 0, -1))
t(10, 0, -1, 9223372036854775808, (10, 0, -1))
t(10, 0, 1, 0, (0, 0, 1))
t(10, 0, 1, 1, (1, 0, 1))
t(10, 0, 1, 5, (5, 0, 1))
t(10, 0, 1, 10, (10, 0, 1))
t(10, 0, 1, 100, (10, 0, 1))
t(10, 0, 1, 2147483647, (10, 0, 1))
t(10, 0, 1, 9223372036854775808, (10, 0, 1))
t(10, 0, 5, 0, (0, 0, 5))
t(10, 0, 5, 1, (1, 0, 5))
t(10, 0, 5, 5, (5, 0, 5))
t(10, 0, 5, 10, (10, 0, 5))
t(10, 0, 5, 100, (10, 0, 5))
t(10, 0, 5, 2147483647, (10, 0, 5))
t(10, 0, 5, 9223372036854775808, (10, 0, 5))
t(10, 0, 20, 0, (0, 0, 20))
t(10, 0, 20, 1, (1, 0, 20))
t(10, 0, 20, 5, (5, 0, 20))
t(10, 0, 20, 10, (10, 0, 20))
t(10, 0, 20, 100, (10, 0, 20))
t(10, 0, 20, 2147483647, (10, 0, 20))
t(10, 0, 20, 9223372036854775808, (10, 0, 20))
t(10, 0, 2147483647, 0, (0, 0, 2147483647))
t(10, 0, 2147483647, 1, (1, 0, 2147483647))
t(10, 0, 2147483647, 5, (5, 0, 2147483647))
t(10, 0, 2147483647, 10, (10, 0, 2147483647))
t(10, 0, 2147483647, 100, (10, 0, 2147483647))
t(10, 0, 2147483647, 2147483647, (10, 0, 2147483647))
t(10, 0, 2147483647, 9223372036854775808, (10, 0, 2147483647))
t(10, 0, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(10, 0, 9223372036854775808, 1, (1, 0, 9223372036854775808))
t(10, 0, 9223372036854775808, 5, (5, 0, 9223372036854775808))
t(10, 0, 9223372036854775808, 10, (10, 0, 9223372036854775808))
t(10, 0, 9223372036854775808, 100, (10, 0, 9223372036854775808))
t(10, 0, 9223372036854775808, 2147483647, (10, 0, 9223372036854775808))
t(10, 0, 9223372036854775808, 9223372036854775808, (10, 0, 9223372036854775808))
t(10, 1, None, 0, (0, 0, 1))
t(10, 1, None, 1, (1, 1, 1))
t(10, 1, None, 5, (5, 1, 1))
t(10, 1, None, 10, (10, 1, 1))
t(10, 1, None, 100, (10, 1, 1))
t(10, 1, None, 2147483647, (10, 1, 1))
t(10, 1, None, 9223372036854775808, (10, 1, 1))
t(10, 1, -5, 0, (-1, -1, -5))
t(10, 1, -5, 1, (0, 0, -5))
t(10, 1, -5, 5, (4, 1, -5))
t(10, 1, -5, 10, (9, 1, -5))
t(10, 1, -5, 100, (10, 1, -5))
t(10, 1, -5, 2147483647, (10, 1, -5))
t(10, 1, -5, 9223372036854775808, (10, 1, -5))
t(10, 1, -3, 0, (-1, -1, -3))
t(10, 1, -3, 1, (0, 0, -3))
t(10, 1, -3, 5, (4, 1, -3))
t(10, 1, -3, 10, (9, 1, -3))
t(10, 1, -3, 100, (10, 1, -3))
t(10, 1, -3, 2147483647, (10, 1, -3))
t(10, 1, -3, 9223372036854775808, (10, 1, -3))
t(10, 1, -1, 0, (-1, -1, -1))
t(10, 1, -1, 1, (0, 0, -1))
t(10, 1, -1, 5, (4, 1, -1))
t(10, 1, -1, 10, (9, 1, -1))
t(10, 1, -1, 100, (10, 1, -1))
t(10, 1, -1, 2147483647, (10, 1, -1))
t(10, 1, -1, 9223372036854775808, (10, 1, -1))
t(10, 1, 1, 0, (0, 0, 1))
t(10, 1, 1, 1, (1, 1, 1))
t(10, 1, 1, 5, (5, 1, 1))
t(10, 1, 1, 10, (10, 1, 1))
t(10, 1, 1, 100, (10, 1, 1))
t(10, 1, 1, 2147483647, (10, 1, 1))
t(10, 1, 1, 9223372036854775808, (10, 1, 1))
t(10, 1, 5, 0, (0, 0, 5))
t(10, 1, 5, 1, (1, 1, 5))
t(10, 1, 5, 5, (5, 1, 5))
t(10, 1, 5, 10, (10, 1, 5))
t(10, 1, 5, 100, (10, 1, 5))
t(10, 1, 5, 2147483647, (10, 1, 5))
t(10, 1, 5, 9223372036854775808, (10, 1, 5))
t(10, 1, 20, 0, (0, 0, 20))
t(10, 1, 20, 1, (1, 1, 20))
t(10, 1, 20, 5, (5, 1, 20))
t(10, 1, 20, 10, (10, 1, 20))
t(10, 1, 20, 100, (10, 1, 20))
t(10, 1, 20, 2147483647, (10, 1, 20))
t(10, 1, 20, 9223372036854775808, (10, 1, 20))
t(10, 1, 2147483647, 0, (0, 0, 2147483647))
t(10, 1, 2147483647, 1, (1, 1, 2147483647))
t(10, 1, 2147483647, 5, (5, 1, 2147483647))
t(10, 1, 2147483647, 10, (10, 1, 2147483647))
t(10, 1, 2147483647, 100, (10, 1, 2147483647))
t(10, 1, 2147483647, 2147483647, (10, 1, 2147483647))
t(10, 1, 2147483647, 9223372036854775808, (10, 1, 2147483647))
t(10, 1, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(10, 1, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(10, 1, 9223372036854775808, 5, (5, 1, 9223372036854775808))
t(10, 1, 9223372036854775808, 10, (10, 1, 9223372036854775808))
t(10, 1, 9223372036854775808, 100, (10, 1, 9223372036854775808))
t(10, 1, 9223372036854775808, 2147483647, (10, 1, 9223372036854775808))
t(10, 1, 9223372036854775808, 9223372036854775808, (10, 1, 9223372036854775808))
t(10, 6, None, 0, (0, 0, 1))
t(10, 6, None, 1, (1, 1, 1))
t(10, 6, None, 5, (5, 5, 1))
t(10, 6, None, 10, (10, 6, 1))
t(10, 6, None, 100, (10, 6, 1))
t(10, 6, None, 2147483647, (10, 6, 1))
t(10, 6, None, 9223372036854775808, (10, 6, 1))
t(10, 6, -5, 0, (-1, -1, -5))
t(10, 6, -5, 1, (0, 0, -5))
t(10, 6, -5, 5, (4, 4, -5))
t(10, 6, -5, 10, (9, 6, -5))
t(10, 6, -5, 100, (10, 6, -5))
t(10, 6, -5, 2147483647, (10, 6, -5))
t(10, 6, -5, 9223372036854775808, (10, 6, -5))
t(10, 6, -3, 0, (-1, -1, -3))
t(10, 6, -3, 1, (0, 0, -3))
t(10, 6, -3, 5, (4, 4, -3))
t(10, 6, -3, 10, (9, 6, -3))
t(10, 6, -3, 100, (10, 6, -3))
t(10, 6, -3, 2147483647, (10, 6, -3))
t(10, 6, -3, 9223372036854775808, (10, 6, -3))
t(10, 6, -1, 0, (-1, -1, -1))
t(10, 6, -1, 1, (0, 0, -1))
t(10, 6, -1, 5, (4, 4, -1))
t(10, 6, -1, 10, (9, 6, -1))
t(10, 6, -1, 100, (10, 6, -1))
t(10, 6, -1, 2147483647, (10, 6, -1))
t(10, 6, -1, 9223372036854775808, (10, 6, -1))
t(10, 6, 1, 0, (0, 0, 1))
t(10, 6, 1, 1, (1, 1, 1))
t(10, 6, 1, 5, (5, 5, 1))
t(10, 6, 1, 10, (10, 6, 1))
t(10, 6, 1, 100, (10, 6, 1))
t(10, 6, 1, 2147483647, (10, 6, 1))
t(10, 6, 1, 9223372036854775808, (10, 6, 1))
t(10, 6, 5, 0, (0, 0, 5))
t(10, 6, 5, 1, (1, 1, 5))
t(10, 6, 5, 5, (5, 5, 5))
t(10, 6, 5, 10, (10, 6, 5))
t(10, 6, 5, 100, (10, 6, 5))
t(10, 6, 5, 2147483647, (10, 6, 5))
t(10, 6, 5, 9223372036854775808, (10, 6, 5))
t(10, 6, 20, 0, (0, 0, 20))
t(10, 6, 20, 1, (1, 1, 20))
t(10, 6, 20, 5, (5, 5, 20))
t(10, 6, 20, 10, (10, 6, 20))
t(10, 6, 20, 100, (10, 6, 20))
t(10, 6, 20, 2147483647, (10, 6, 20))
t(10, 6, 20, 9223372036854775808, (10, 6, 20))
t(10, 6, 2147483647, 0, (0, 0, 2147483647))
t(10, 6, 2147483647, 1, (1, 1, 2147483647))
t(10, 6, 2147483647, 5, (5, 5, 2147483647))
t(10, 6, 2147483647, 10, (10, 6, 2147483647))
t(10, 6, 2147483647, 100, (10, 6, 2147483647))
t(10, 6, 2147483647, 2147483647, (10, 6, 2147483647))
t(10, 6, 2147483647, 9223372036854775808, (10, 6, 2147483647))
t(10, 6, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(10, 6, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(10, 6, 9223372036854775808, 5, (5, 5, 9223372036854775808))
t(10, 6, 9223372036854775808, 10, (10, 6, 9223372036854775808))
t(10, 6, 9223372036854775808, 100, (10, 6, 9223372036854775808))
t(10, 6, 9223372036854775808, 2147483647, (10, 6, 9223372036854775808))
t(10, 6, 9223372036854775808, 9223372036854775808, (10, 6, 9223372036854775808))
t(10, 10, None, 0, (0, 0, 1))
t(10, 10, None, 1, (1, 1, 1))
t(10, 10, None, 5, (5, 5, 1))
t(10, 10, None, 10, (10, 10, 1))
t(10, 10, None, 100, (10, 10, 1))
t(10, 10, None, 2147483647, (10, 10, 1))
t(10, 10, None, 9223372036854775808, (10, 10, 1))
t(10, 10, -5, 0, (-1, -1, -5))
t(10, 10, -5, 1, (0, 0, -5))
t(10, 10, -5, 5, (4, 4, -5))
t(10, 10, -5, 10, (9, 9, -5))
t(10, 10, -5, 100, (10, 10, -5))
t(10, 10, -5, 2147483647, (10, 10, -5))
t(10, 10, -5, 9223372036854775808, (10, 10, -5))
t(10, 10, -3, 0, (-1, -1, -3))
t(10, 10, -3, 1, (0, 0, -3))
t(10, 10, -3, 5, (4, 4, -3))
t(10, 10, -3, 10, (9, 9, -3))
t(10, 10, -3, 100, (10, 10, -3))
t(10, 10, -3, 2147483647, (10, 10, -3))
t(10, 10, -3, 9223372036854775808, (10, 10, -3))
t(10, 10, -1, 0, (-1, -1, -1))
t(10, 10, -1, 1, (0, 0, -1))
t(10, 10, -1, 5, (4, 4, -1))
t(10, 10, -1, 10, (9, 9, -1))
t(10, 10, -1, 100, (10, 10, -1))
t(10, 10, -1, 2147483647, (10, 10, -1))
t(10, 10, -1, 9223372036854775808, (10, 10, -1))
t(10, 10, 1, 0, (0, 0, 1))
t(10, 10, 1, 1, (1, 1, 1))
t(10, 10, 1, 5, (5, 5, 1))
t(10, 10, 1, 10, (10, 10, 1))
t(10, 10, 1, 100, (10, 10, 1))
t(10, 10, 1, 2147483647, (10, 10, 1))
t(10, 10, 1, 9223372036854775808, (10, 10, 1))
t(10, 10, 5, 0, (0, 0, 5))
t(10, 10, 5, 1, (1, 1, 5))
t(10, 10, 5, 5, (5, 5, 5))
t(10, 10, 5, 10, (10, 10, 5))
t(10, 10, 5, 100, (10, 10, 5))
t(10, 10, 5, 2147483647, (10, 10, 5))
t(10, 10, 5, 9223372036854775808, (10, 10, 5))
t(10, 10, 20, 0, (0, 0, 20))
t(10, 10, 20, 1, (1, 1, 20))
t(10, 10, 20, 5, (5, 5, 20))
t(10, 10, 20, 10, (10, 10, 20))
t(10, 10, 20, 100, (10, 10, 20))
t(10, 10, 20, 2147483647, (10, 10, 20))
t(10, 10, 20, 9223372036854775808, (10, 10, 20))
t(10, 10, 2147483647, 0, (0, 0, 2147483647))
t(10, 10, 2147483647, 1, (1, 1, 2147483647))
t(10, 10, 2147483647, 5, (5, 5, 2147483647))
t(10, 10, 2147483647, 10, (10, 10, 2147483647))
t(10, 10, 2147483647, 100, (10, 10, 2147483647))
t(10, 10, 2147483647, 2147483647, (10, 10, 2147483647))
t(10, 10, 2147483647, 9223372036854775808, (10, 10, 2147483647))
t(10, 10, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(10, 10, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(10, 10, 9223372036854775808, 5, (5, 5, 9223372036854775808))
t(10, 10, 9223372036854775808, 10, (10, 10, 9223372036854775808))
t(10, 10, 9223372036854775808, 100, (10, 10, 9223372036854775808))
t(10, 10, 9223372036854775808, 2147483647, (10, 10, 9223372036854775808))
t(10, 10, 9223372036854775808, 9223372036854775808, (10, 10, 9223372036854775808))
t(10, 2147483647, None, 0, (0, 0, 1))
t(10, 2147483647, None, 1, (1, 1, 1))
t(10, 2147483647, None, 5, (5, 5, 1))
t(10, 2147483647, None, 10, (10, 10, 1))
t(10, 2147483647, None, 100, (10, 100, 1))
t(10, 2147483647, None, 2147483647, (10, 2147483647, 1))
t(10, 2147483647, None, 9223372036854775808, (10, 2147483647, 1))
t(10, 2147483647, -5, 0, (-1, -1, -5))
t(10, 2147483647, -5, 1, (0, 0, -5))
t(10, 2147483647, -5, 5, (4, 4, -5))
t(10, 2147483647, -5, 10, (9, 9, -5))
t(10, 2147483647, -5, 100, (10, 99, -5))
t(10, 2147483647, -5, 2147483647, (10, 2147483646, -5))
t(10, 2147483647, -5, 9223372036854775808, (10, 2147483647, -5))
t(10, 2147483647, -3, 0, (-1, -1, -3))
t(10, 2147483647, -3, 1, (0, 0, -3))
t(10, 2147483647, -3, 5, (4, 4, -3))
t(10, 2147483647, -3, 10, (9, 9, -3))
t(10, 2147483647, -3, 100, (10, 99, -3))
t(10, 2147483647, -3, 2147483647, (10, 2147483646, -3))
t(10, 2147483647, -3, 9223372036854775808, (10, 2147483647, -3))
t(10, 2147483647, -1, 0, (-1, -1, -1))
t(10, 2147483647, -1, 1, (0, 0, -1))
t(10, 2147483647, -1, 5, (4, 4, -1))
t(10, 2147483647, -1, 10, (9, 9, -1))
t(10, 2147483647, -1, 100, (10, 99, -1))
t(10, 2147483647, -1, 2147483647, (10, 2147483646, -1))
t(10, 2147483647, -1, 9223372036854775808, (10, 2147483647, -1))
t(10, 2147483647, 1, 0, (0, 0, 1))
t(10, 2147483647, 1, 1, (1, 1, 1))
t(10, 2147483647, 1, 5, (5, 5, 1))
t(10, 2147483647, 1, 10, (10, 10, 1))
t(10, 2147483647, 1, 100, (10, 100, 1))
t(10, 2147483647, 1, 2147483647, (10, 2147483647, 1))
t(10, 2147483647, 1, 9223372036854775808, (10, 2147483647, 1))
t(10, 2147483647, 5, 0, (0, 0, 5))
t(10, 2147483647, 5, 1, (1, 1, 5))
t(10, 2147483647, 5, 5, (5, 5, 5))
t(10, 2147483647, 5, 10, (10, 10, 5))
t(10, 2147483647, 5, 100, (10, 100, 5))
t(10, 2147483647, 5, 2147483647, (10, 2147483647, 5))
t(10, 2147483647, 5, 9223372036854775808, (10, 2147483647, 5))
t(10, 2147483647, 20, 0, (0, 0, 20))
t(10, 2147483647, 20, 1, (1, 1, 20))
t(10, 2147483647, 20, 5, (5, 5, 20))
t(10, 2147483647, 20, 10, (10, 10, 20))
t(10, 2147483647, 20, 100, (10, 100, 20))
t(10, 2147483647, 20, 2147483647, (10, 2147483647, 20))
t(10, 2147483647, 20, 9223372036854775808, (10, 2147483647, 20))
t(10, 2147483647, 2147483647, 0, (0, 0, 2147483647))
t(10, 2147483647, 2147483647, 1, (1, 1, 2147483647))
t(10, 2147483647, 2147483647, 5, (5, 5, 2147483647))
t(10, 2147483647, 2147483647, 10, (10, 10, 2147483647))
t(10, 2147483647, 2147483647, 100, (10, 100, 2147483647))
t(10, 2147483647, 2147483647, 2147483647, (10, 2147483647, 2147483647))
t(10, 2147483647, 2147483647, 9223372036854775808, (10, 2147483647, 2147483647))
t(10, 2147483647, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(10, 2147483647, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(10, 2147483647, 9223372036854775808, 5, (5, 5, 9223372036854775808))
t(10, 2147483647, 9223372036854775808, 10, (10, 10, 9223372036854775808))
t(10, 2147483647, 9223372036854775808, 100, (10, 100, 9223372036854775808))
t(10, 2147483647, 9223372036854775808, 2147483647, (10, 2147483647, 9223372036854775808))
t(10, 2147483647, 9223372036854775808, 9223372036854775808, (10, 2147483647, 9223372036854775808))
t(10, 9223372036854775808, None, 0, (0, 0, 1))
t(10, 9223372036854775808, None, 1, (1, 1, 1))
t(10, 9223372036854775808, None, 5, (5, 5, 1))
t(10, 9223372036854775808, None, 10, (10, 10, 1))
t(10, 9223372036854775808, None, 100, (10, 100, 1))
t(10, 9223372036854775808, None, 2147483647, (10, 2147483647, 1))
t(10, 9223372036854775808, None, 9223372036854775808, (10, 9223372036854775808, 1))
t(10, 9223372036854775808, -5, 0, (-1, -1, -5))
t(10, 9223372036854775808, -5, 1, (0, 0, -5))
t(10, 9223372036854775808, -5, 5, (4, 4, -5))
t(10, 9223372036854775808, -5, 10, (9, 9, -5))
t(10, 9223372036854775808, -5, 100, (10, 99, -5))
t(10, 9223372036854775808, -5, 2147483647, (10, 2147483646, -5))
t(10, 9223372036854775808, -5, 9223372036854775808, (10, 9223372036854775807, -5))
t(10, 9223372036854775808, -3, 0, (-1, -1, -3))
t(10, 9223372036854775808, -3, 1, (0, 0, -3))
t(10, 9223372036854775808, -3, 5, (4, 4, -3))
t(10, 9223372036854775808, -3, 10, (9, 9, -3))
t(10, 9223372036854775808, -3, 100, (10, 99, -3))
t(10, 9223372036854775808, -3, 2147483647, (10, 2147483646, -3))
t(10, 9223372036854775808, -3, 9223372036854775808, (10, 9223372036854775807, -3))
t(10, 9223372036854775808, -1, 0, (-1, -1, -1))
t(10, 9223372036854775808, -1, 1, (0, 0, -1))
t(10, 9223372036854775808, -1, 5, (4, 4, -1))
t(10, 9223372036854775808, -1, 10, (9, 9, -1))
t(10, 9223372036854775808, -1, 100, (10, 99, -1))
t(10, 9223372036854775808, -1, 2147483647, (10, 2147483646, -1))
t(10, 9223372036854775808, -1, 9223372036854775808, (10, 9223372036854775807, -1))
t(10, 9223372036854775808, 1, 0, (0, 0, 1))
t(10, 9223372036854775808, 1, 1, (1, 1, 1))
t(10, 9223372036854775808, 1, 5, (5, 5, 1))
t(10, 9223372036854775808, 1, 10, (10, 10, 1))
t(10, 9223372036854775808, 1, 100, (10, 100, 1))
t(10, 9223372036854775808, 1, 2147483647, (10, 2147483647, 1))
t(10, 9223372036854775808, 1, 9223372036854775808, (10, 9223372036854775808, 1))
t(10, 9223372036854775808, 5, 0, (0, 0, 5))
t(10, 9223372036854775808, 5, 1, (1, 1, 5))
t(10, 9223372036854775808, 5, 5, (5, 5, 5))
t(10, 9223372036854775808, 5, 10, (10, 10, 5))
t(10, 9223372036854775808, 5, 100, (10, 100, 5))
t(10, 9223372036854775808, 5, 2147483647, (10, 2147483647, 5))
t(10, 9223372036854775808, 5, 9223372036854775808, (10, 9223372036854775808, 5))
t(10, 9223372036854775808, 20, 0, (0, 0, 20))
t(10, 9223372036854775808, 20, 1, (1, 1, 20))
t(10, 9223372036854775808, 20, 5, (5, 5, 20))
t(10, 9223372036854775808, 20, 10, (10, 10, 20))
t(10, 9223372036854775808, 20, 100, (10, 100, 20))
t(10, 9223372036854775808, 20, 2147483647, (10, 2147483647, 20))
t(10, 9223372036854775808, 20, 9223372036854775808, (10, 9223372036854775808, 20))
t(10, 9223372036854775808, 2147483647, 0, (0, 0, 2147483647))
t(10, 9223372036854775808, 2147483647, 1, (1, 1, 2147483647))
t(10, 9223372036854775808, 2147483647, 5, (5, 5, 2147483647))
t(10, 9223372036854775808, 2147483647, 10, (10, 10, 2147483647))
t(10, 9223372036854775808, 2147483647, 100, (10, 100, 2147483647))
t(10, 9223372036854775808, 2147483647, 2147483647, (10, 2147483647, 2147483647))
t(10, 9223372036854775808, 2147483647, 9223372036854775808, (10, 9223372036854775808, 2147483647))
t(10, 9223372036854775808, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(10, 9223372036854775808, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(10, 9223372036854775808, 9223372036854775808, 5, (5, 5, 9223372036854775808))
t(10, 9223372036854775808, 9223372036854775808, 10, (10, 10, 9223372036854775808))
t(10, 9223372036854775808, 9223372036854775808, 100, (10, 100, 9223372036854775808))
t(10, 9223372036854775808, 9223372036854775808, 2147483647, (10, 2147483647, 9223372036854775808))
t(10, 9223372036854775808, 9223372036854775808, 9223372036854775808, (10, 9223372036854775808, 9223372036854775808))
t(2147483647, None, None, 0, (0, 0, 1))
t(2147483647, None, None, 1, (1, 1, 1))
t(2147483647, None, None, 5, (5, 5, 1))
t(2147483647, None, None, 10, (10, 10, 1))
t(2147483647, None, None, 100, (100, 100, 1))
t(2147483647, None, None, 2147483647, (2147483647, 2147483647, 1))
t(2147483647, None, None, 9223372036854775808, (2147483647, 9223372036854775808, 1))
t(2147483647, None, -5, 0, (-1, -1, -5))
t(2147483647, None, -5, 1, (0, -1, -5))
t(2147483647, None, -5, 5, (4, -1, -5))
t(2147483647, None, -5, 10, (9, -1, -5))
t(2147483647, None, -5, 100, (99, -1, -5))
t(2147483647, None, -5, 2147483647, (2147483646, -1, -5))
t(2147483647, None, -5, 9223372036854775808, (2147483647, -1, -5))
t(2147483647, None, -3, 0, (-1, -1, -3))
t(2147483647, None, -3, 1, (0, -1, -3))
t(2147483647, None, -3, 5, (4, -1, -3))
t(2147483647, None, -3, 10, (9, -1, -3))
t(2147483647, None, -3, 100, (99, -1, -3))
t(2147483647, None, -3, 2147483647, (2147483646, -1, -3))
t(2147483647, None, -3, 9223372036854775808, (2147483647, -1, -3))
t(2147483647, None, -1, 0, (-1, -1, -1))
t(2147483647, None, -1, 1, (0, -1, -1))
t(2147483647, None, -1, 5, (4, -1, -1))
t(2147483647, None, -1, 10, (9, -1, -1))
t(2147483647, None, -1, 100, (99, -1, -1))
t(2147483647, None, -1, 2147483647, (2147483646, -1, -1))
t(2147483647, None, -1, 9223372036854775808, (2147483647, -1, -1))
t(2147483647, None, 1, 0, (0, 0, 1))
t(2147483647, None, 1, 1, (1, 1, 1))
t(2147483647, None, 1, 5, (5, 5, 1))
t(2147483647, None, 1, 10, (10, 10, 1))
t(2147483647, None, 1, 100, (100, 100, 1))
t(2147483647, None, 1, 2147483647, (2147483647, 2147483647, 1))
t(2147483647, None, 1, 9223372036854775808, (2147483647, 9223372036854775808, 1))
t(2147483647, None, 5, 0, (0, 0, 5))
t(2147483647, None, 5, 1, (1, 1, 5))
t(2147483647, None, 5, 5, (5, 5, 5))
t(2147483647, None, 5, 10, (10, 10, 5))
t(2147483647, None, 5, 100, (100, 100, 5))
t(2147483647, None, 5, 2147483647, (2147483647, 2147483647, 5))
t(2147483647, None, 5, 9223372036854775808, (2147483647, 9223372036854775808, 5))
t(2147483647, None, 20, 0, (0, 0, 20))
t(2147483647, None, 20, 1, (1, 1, 20))
t(2147483647, None, 20, 5, (5, 5, 20))
t(2147483647, None, 20, 10, (10, 10, 20))
t(2147483647, None, 20, 100, (100, 100, 20))
t(2147483647, None, 20, 2147483647, (2147483647, 2147483647, 20))
t(2147483647, None, 20, 9223372036854775808, (2147483647, 9223372036854775808, 20))
t(2147483647, None, 2147483647, 0, (0, 0, 2147483647))
t(2147483647, None, 2147483647, 1, (1, 1, 2147483647))
t(2147483647, None, 2147483647, 5, (5, 5, 2147483647))
t(2147483647, None, 2147483647, 10, (10, 10, 2147483647))
t(2147483647, None, 2147483647, 100, (100, 100, 2147483647))
t(2147483647, None, 2147483647, 2147483647, (2147483647, 2147483647, 2147483647))
t(2147483647, None, 2147483647, 9223372036854775808, (2147483647, 9223372036854775808, 2147483647))
t(2147483647, None, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(2147483647, None, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(2147483647, None, 9223372036854775808, 5, (5, 5, 9223372036854775808))
t(2147483647, None, 9223372036854775808, 10, (10, 10, 9223372036854775808))
t(2147483647, None, 9223372036854775808, 100, (100, 100, 9223372036854775808))
t(2147483647, None, 9223372036854775808, 2147483647, (2147483647, 2147483647, 9223372036854775808))
t(2147483647, None, 9223372036854775808, 9223372036854775808, (2147483647, 9223372036854775808, 9223372036854775808))
t(2147483647, -7, None, 0, (0, 0, 1))
t(2147483647, -7, None, 1, (1, 0, 1))
t(2147483647, -7, None, 5, (5, 0, 1))
t(2147483647, -7, None, 10, (10, 3, 1))
t(2147483647, -7, None, 100, (100, 93, 1))
t(2147483647, -7, None, 2147483647, (2147483647, 2147483640, 1))
t(2147483647, -7, None, 9223372036854775808, (2147483647, 9223372036854775801, 1))
t(2147483647, -7, -5, 0, (-1, -1, -5))
t(2147483647, -7, -5, 1, (0, -1, -5))
t(2147483647, -7, -5, 5, (4, -1, -5))
t(2147483647, -7, -5, 10, (9, 3, -5))
t(2147483647, -7, -5, 100, (99, 93, -5))
t(2147483647, -7, -5, 2147483647, (2147483646, 2147483640, -5))
t(2147483647, -7, -5, 9223372036854775808, (2147483647, 9223372036854775801, -5))
t(2147483647, -7, -3, 0, (-1, -1, -3))
t(2147483647, -7, -3, 1, (0, -1, -3))
t(2147483647, -7, -3, 5, (4, -1, -3))
t(2147483647, -7, -3, 10, (9, 3, -3))
t(2147483647, -7, -3, 100, (99, 93, -3))
t(2147483647, -7, -3, 2147483647, (2147483646, 2147483640, -3))
t(2147483647, -7, -3, 9223372036854775808, (2147483647, 9223372036854775801, -3))
t(2147483647, -7, -1, 0, (-1, -1, -1))
t(2147483647, -7, -1, 1, (0, -1, -1))
t(2147483647, -7, -1, 5, (4, -1, -1))
t(2147483647, -7, -1, 10, (9, 3, -1))
t(2147483647, -7, -1, 100, (99, 93, -1))
t(2147483647, -7, -1, 2147483647, (2147483646, 2147483640, -1))
t(2147483647, -7, -1, 9223372036854775808, (2147483647, 9223372036854775801, -1))
t(2147483647, -7, 1, 0, (0, 0, 1))
t(2147483647, -7, 1, 1, (1, 0, 1))
t(2147483647, -7, 1, 5, (5, 0, 1))
t(2147483647, -7, 1, 10, (10, 3, 1))
t(2147483647, -7, 1, 100, (100, 93, 1))
t(2147483647, -7, 1, 2147483647, (2147483647, 2147483640, 1))
t(2147483647, -7, 1, 9223372036854775808, (2147483647, 9223372036854775801, 1))
t(2147483647, -7, 5, 0, (0, 0, 5))
t(2147483647, -7, 5, 1, (1, 0, 5))
t(2147483647, -7, 5, 5, (5, 0, 5))
t(2147483647, -7, 5, 10, (10, 3, 5))
t(2147483647, -7, 5, 100, (100, 93, 5))
t(2147483647, -7, 5, 2147483647, (2147483647, 2147483640, 5))
t(2147483647, -7, 5, 9223372036854775808, (2147483647, 9223372036854775801, 5))
t(2147483647, -7, 20, 0, (0, 0, 20))
t(2147483647, -7, 20, 1, (1, 0, 20))
t(2147483647, -7, 20, 5, (5, 0, 20))
t(2147483647, -7, 20, 10, (10, 3, 20))
t(2147483647, -7, 20, 100, (100, 93, 20))
t(2147483647, -7, 20, 2147483647, (2147483647, 2147483640, 20))
t(2147483647, -7, 20, 9223372036854775808, (2147483647, 9223372036854775801, 20))
t(2147483647, -7, 2147483647, 0, (0, 0, 2147483647))
t(2147483647, -7, 2147483647, 1, (1, 0, 2147483647))
t(2147483647, -7, 2147483647, 5, (5, 0, 2147483647))
t(2147483647, -7, 2147483647, 10, (10, 3, 2147483647))
t(2147483647, -7, 2147483647, 100, (100, 93, 2147483647))
t(2147483647, -7, 2147483647, 2147483647, (2147483647, 2147483640, 2147483647))
t(2147483647, -7, 2147483647, 9223372036854775808, (2147483647, 9223372036854775801, 2147483647))
t(2147483647, -7, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(2147483647, -7, 9223372036854775808, 1, (1, 0, 9223372036854775808))
t(2147483647, -7, 9223372036854775808, 5, (5, 0, 9223372036854775808))
t(2147483647, -7, 9223372036854775808, 10, (10, 3, 9223372036854775808))
t(2147483647, -7, 9223372036854775808, 100, (100, 93, 9223372036854775808))
t(2147483647, -7, 9223372036854775808, 2147483647, (2147483647, 2147483640, 9223372036854775808))
t(2147483647, -7, 9223372036854775808, 9223372036854775808, (2147483647, 9223372036854775801, 9223372036854775808))
t(2147483647, -2, None, 0, (0, 0, 1))
t(2147483647, -2, None, 1, (1, 0, 1))
t(2147483647, -2, None, 5, (5, 3, 1))
t(2147483647, -2, None, 10, (10, 8, 1))
t(2147483647, -2, None, 100, (100, 98, 1))
t(2147483647, -2, None, 2147483647, (2147483647, 2147483645, 1))
t(2147483647, -2, None, 9223372036854775808, (2147483647, 9223372036854775806, 1))
t(2147483647, -2, -5, 0, (-1, -1, -5))
t(2147483647, -2, -5, 1, (0, -1, -5))
t(2147483647, -2, -5, 5, (4, 3, -5))
t(2147483647, -2, -5, 10, (9, 8, -5))
t(2147483647, -2, -5, 100, (99, 98, -5))
t(2147483647, -2, -5, 2147483647, (2147483646, 2147483645, -5))
t(2147483647, -2, -5, 9223372036854775808, (2147483647, 9223372036854775806, -5))
t(2147483647, -2, -3, 0, (-1, -1, -3))
t(2147483647, -2, -3, 1, (0, -1, -3))
t(2147483647, -2, -3, 5, (4, 3, -3))
t(2147483647, -2, -3, 10, (9, 8, -3))
t(2147483647, -2, -3, 100, (99, 98, -3))
t(2147483647, -2, -3, 2147483647, (2147483646, 2147483645, -3))
t(2147483647, -2, -3, 9223372036854775808, (2147483647, 9223372036854775806, -3))
t(2147483647, -2, -1, 0, (-1, -1, -1))
t(2147483647, -2, -1, 1, (0, -1, -1))
t(2147483647, -2, -1, 5, (4, 3, -1))
t(2147483647, -2, -1, 10, (9, 8, -1))
t(2147483647, -2, -1, 100, (99, 98, -1))
t(2147483647, -2, -1, 2147483647, (2147483646, 2147483645, -1))
t(2147483647, -2, -1, 9223372036854775808, (2147483647, 9223372036854775806, -1))
t(2147483647, -2, 1, 0, (0, 0, 1))
t(2147483647, -2, 1, 1, (1, 0, 1))
t(2147483647, -2, 1, 5, (5, 3, 1))
t(2147483647, -2, 1, 10, (10, 8, 1))
t(2147483647, -2, 1, 100, (100, 98, 1))
t(2147483647, -2, 1, 2147483647, (2147483647, 2147483645, 1))
t(2147483647, -2, 1, 9223372036854775808, (2147483647, 9223372036854775806, 1))
t(2147483647, -2, 5, 0, (0, 0, 5))
t(2147483647, -2, 5, 1, (1, 0, 5))
t(2147483647, -2, 5, 5, (5, 3, 5))
t(2147483647, -2, 5, 10, (10, 8, 5))
t(2147483647, -2, 5, 100, (100, 98, 5))
t(2147483647, -2, 5, 2147483647, (2147483647, 2147483645, 5))
t(2147483647, -2, 5, 9223372036854775808, (2147483647, 9223372036854775806, 5))
t(2147483647, -2, 20, 0, (0, 0, 20))
t(2147483647, -2, 20, 1, (1, 0, 20))
t(2147483647, -2, 20, 5, (5, 3, 20))
t(2147483647, -2, 20, 10, (10, 8, 20))
t(2147483647, -2, 20, 100, (100, 98, 20))
t(2147483647, -2, 20, 2147483647, (2147483647, 2147483645, 20))
t(2147483647, -2, 20, 9223372036854775808, (2147483647, 9223372036854775806, 20))
t(2147483647, -2, 2147483647, 0, (0, 0, 2147483647))
t(2147483647, -2, 2147483647, 1, (1, 0, 2147483647))
t(2147483647, -2, 2147483647, 5, (5, 3, 2147483647))
t(2147483647, -2, 2147483647, 10, (10, 8, 2147483647))
t(2147483647, -2, 2147483647, 100, (100, 98, 2147483647))
t(2147483647, -2, 2147483647, 2147483647, (2147483647, 2147483645, 2147483647))
t(2147483647, -2, 2147483647, 9223372036854775808, (2147483647, 9223372036854775806, 2147483647))
t(2147483647, -2, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(2147483647, -2, 9223372036854775808, 1, (1, 0, 9223372036854775808))
t(2147483647, -2, 9223372036854775808, 5, (5, 3, 9223372036854775808))
t(2147483647, -2, 9223372036854775808, 10, (10, 8, 9223372036854775808))
t(2147483647, -2, 9223372036854775808, 100, (100, 98, 9223372036854775808))
t(2147483647, -2, 9223372036854775808, 2147483647, (2147483647, 2147483645, 9223372036854775808))
t(2147483647, -2, 9223372036854775808, 9223372036854775808, (2147483647, 9223372036854775806, 9223372036854775808))
t(2147483647, 0, None, 0, (0, 0, 1))
t(2147483647, 0, None, 1, (1, 0, 1))
t(2147483647, 0, None, 5, (5, 0, 1))
t(2147483647, 0, None, 10, (10, 0, 1))
t(2147483647, 0, None, 100, (100, 0, 1))
t(2147483647, 0, None, 2147483647, (2147483647, 0, 1))
t(2147483647, 0, None, 9223372036854775808, (2147483647, 0, 1))
t(2147483647, 0, -5, 0, (-1, -1, -5))
t(2147483647, 0, -5, 1, (0, 0, -5))
t(2147483647, 0, -5, 5, (4, 0, -5))
t(2147483647, 0, -5, 10, (9, 0, -5))
t(2147483647, 0, -5, 100, (99, 0, -5))
t(2147483647, 0, -5, 2147483647, (2147483646, 0, -5))
t(2147483647, 0, -5, 9223372036854775808, (2147483647, 0, -5))
t(2147483647, 0, -3, 0, (-1, -1, -3))
t(2147483647, 0, -3, 1, (0, 0, -3))
t(2147483647, 0, -3, 5, (4, 0, -3))
t(2147483647, 0, -3, 10, (9, 0, -3))
t(2147483647, 0, -3, 100, (99, 0, -3))
t(2147483647, 0, -3, 2147483647, (2147483646, 0, -3))
t(2147483647, 0, -3, 9223372036854775808, (2147483647, 0, -3))
t(2147483647, 0, -1, 0, (-1, -1, -1))
t(2147483647, 0, -1, 1, (0, 0, -1))
t(2147483647, 0, -1, 5, (4, 0, -1))
t(2147483647, 0, -1, 10, (9, 0, -1))
t(2147483647, 0, -1, 100, (99, 0, -1))
t(2147483647, 0, -1, 2147483647, (2147483646, 0, -1))
t(2147483647, 0, -1, 9223372036854775808, (2147483647, 0, -1))
t(2147483647, 0, 1, 0, (0, 0, 1))
t(2147483647, 0, 1, 1, (1, 0, 1))
t(2147483647, 0, 1, 5, (5, 0, 1))
t(2147483647, 0, 1, 10, (10, 0, 1))
t(2147483647, 0, 1, 100, (100, 0, 1))
t(2147483647, 0, 1, 2147483647, (2147483647, 0, 1))
t(2147483647, 0, 1, 9223372036854775808, (2147483647, 0, 1))
t(2147483647, 0, 5, 0, (0, 0, 5))
t(2147483647, 0, 5, 1, (1, 0, 5))
t(2147483647, 0, 5, 5, (5, 0, 5))
t(2147483647, 0, 5, 10, (10, 0, 5))
t(2147483647, 0, 5, 100, (100, 0, 5))
t(2147483647, 0, 5, 2147483647, (2147483647, 0, 5))
t(2147483647, 0, 5, 9223372036854775808, (2147483647, 0, 5))
t(2147483647, 0, 20, 0, (0, 0, 20))
t(2147483647, 0, 20, 1, (1, 0, 20))
t(2147483647, 0, 20, 5, (5, 0, 20))
t(2147483647, 0, 20, 10, (10, 0, 20))
t(2147483647, 0, 20, 100, (100, 0, 20))
t(2147483647, 0, 20, 2147483647, (2147483647, 0, 20))
t(2147483647, 0, 20, 9223372036854775808, (2147483647, 0, 20))
t(2147483647, 0, 2147483647, 0, (0, 0, 2147483647))
t(2147483647, 0, 2147483647, 1, (1, 0, 2147483647))
t(2147483647, 0, 2147483647, 5, (5, 0, 2147483647))
t(2147483647, 0, 2147483647, 10, (10, 0, 2147483647))
t(2147483647, 0, 2147483647, 100, (100, 0, 2147483647))
t(2147483647, 0, 2147483647, 2147483647, (2147483647, 0, 2147483647))
t(2147483647, 0, 2147483647, 9223372036854775808, (2147483647, 0, 2147483647))
t(2147483647, 0, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(2147483647, 0, 9223372036854775808, 1, (1, 0, 9223372036854775808))
t(2147483647, 0, 9223372036854775808, 5, (5, 0, 9223372036854775808))
t(2147483647, 0, 9223372036854775808, 10, (10, 0, 9223372036854775808))
t(2147483647, 0, 9223372036854775808, 100, (100, 0, 9223372036854775808))
t(2147483647, 0, 9223372036854775808, 2147483647, (2147483647, 0, 9223372036854775808))
t(2147483647, 0, 9223372036854775808, 9223372036854775808, (2147483647, 0, 9223372036854775808))
t(2147483647, 1, None, 0, (0, 0, 1))
t(2147483647, 1, None, 1, (1, 1, 1))
t(2147483647, 1, None, 5, (5, 1, 1))
t(2147483647, 1, None, 10, (10, 1, 1))
t(2147483647, 1, None, 100, (100, 1, 1))
t(2147483647, 1, None, 2147483647, (2147483647, 1, 1))
t(2147483647, 1, None, 9223372036854775808, (2147483647, 1, 1))
t(2147483647, 1, -5, 0, (-1, -1, -5))
t(2147483647, 1, -5, 1, (0, 0, -5))
t(2147483647, 1, -5, 5, (4, 1, -5))
t(2147483647, 1, -5, 10, (9, 1, -5))
t(2147483647, 1, -5, 100, (99, 1, -5))
t(2147483647, 1, -5, 2147483647, (2147483646, 1, -5))
t(2147483647, 1, -5, 9223372036854775808, (2147483647, 1, -5))
t(2147483647, 1, -3, 0, (-1, -1, -3))
t(2147483647, 1, -3, 1, (0, 0, -3))
t(2147483647, 1, -3, 5, (4, 1, -3))
t(2147483647, 1, -3, 10, (9, 1, -3))
t(2147483647, 1, -3, 100, (99, 1, -3))
t(2147483647, 1, -3, 2147483647, (2147483646, 1, -3))
t(2147483647, 1, -3, 9223372036854775808, (2147483647, 1, -3))
t(2147483647, 1, -1, 0, (-1, -1, -1))
t(2147483647, 1, -1, 1, (0, 0, -1))
t(2147483647, 1, -1, 5, (4, 1, -1))
t(2147483647, 1, -1, 10, (9, 1, -1))
t(2147483647, 1, -1, 100, (99, 1, -1))
t(2147483647, 1, -1, 2147483647, (2147483646, 1, -1))
t(2147483647, 1, -1, 9223372036854775808, (2147483647, 1, -1))
t(2147483647, 1, 1, 0, (0, 0, 1))
t(2147483647, 1, 1, 1, (1, 1, 1))
t(2147483647, 1, 1, 5, (5, 1, 1))
t(2147483647, 1, 1, 10, (10, 1, 1))
t(2147483647, 1, 1, 100, (100, 1, 1))
t(2147483647, 1, 1, 2147483647, (2147483647, 1, 1))
t(2147483647, 1, 1, 9223372036854775808, (2147483647, 1, 1))
t(2147483647, 1, 5, 0, (0, 0, 5))
t(2147483647, 1, 5, 1, (1, 1, 5))
t(2147483647, 1, 5, 5, (5, 1, 5))
t(2147483647, 1, 5, 10, (10, 1, 5))
t(2147483647, 1, 5, 100, (100, 1, 5))
t(2147483647, 1, 5, 2147483647, (2147483647, 1, 5))
t(2147483647, 1, 5, 9223372036854775808, (2147483647, 1, 5))
t(2147483647, 1, 20, 0, (0, 0, 20))
t(2147483647, 1, 20, 1, (1, 1, 20))
t(2147483647, 1, 20, 5, (5, 1, 20))
t(2147483647, 1, 20, 10, (10, 1, 20))
t(2147483647, 1, 20, 100, (100, 1, 20))
t(2147483647, 1, 20, 2147483647, (2147483647, 1, 20))
t(2147483647, 1, 20, 9223372036854775808, (2147483647, 1, 20))
t(2147483647, 1, 2147483647, 0, (0, 0, 2147483647))
t(2147483647, 1, 2147483647, 1, (1, 1, 2147483647))
t(2147483647, 1, 2147483647, 5, (5, 1, 2147483647))
t(2147483647, 1, 2147483647, 10, (10, 1, 2147483647))
t(2147483647, 1, 2147483647, 100, (100, 1, 2147483647))
t(2147483647, 1, 2147483647, 2147483647, (2147483647, 1, 2147483647))
t(2147483647, 1, 2147483647, 9223372036854775808, (2147483647, 1, 2147483647))
t(2147483647, 1, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(2147483647, 1, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(2147483647, 1, 9223372036854775808, 5, (5, 1, 9223372036854775808))
t(2147483647, 1, 9223372036854775808, 10, (10, 1, 9223372036854775808))
t(2147483647, 1, 9223372036854775808, 100, (100, 1, 9223372036854775808))
t(2147483647, 1, 9223372036854775808, 2147483647, (2147483647, 1, 9223372036854775808))
t(2147483647, 1, 9223372036854775808, 9223372036854775808, (2147483647, 1, 9223372036854775808))
t(2147483647, 6, None, 0, (0, 0, 1))
t(2147483647, 6, None, 1, (1, 1, 1))
t(2147483647, 6, None, 5, (5, 5, 1))
t(2147483647, 6, None, 10, (10, 6, 1))
t(2147483647, 6, None, 100, (100, 6, 1))
t(2147483647, 6, None, 2147483647, (2147483647, 6, 1))
t(2147483647, 6, None, 9223372036854775808, (2147483647, 6, 1))
t(2147483647, 6, -5, 0, (-1, -1, -5))
t(2147483647, 6, -5, 1, (0, 0, -5))
t(2147483647, 6, -5, 5, (4, 4, -5))
t(2147483647, 6, -5, 10, (9, 6, -5))
t(2147483647, 6, -5, 100, (99, 6, -5))
t(2147483647, 6, -5, 2147483647, (2147483646, 6, -5))
t(2147483647, 6, -5, 9223372036854775808, (2147483647, 6, -5))
t(2147483647, 6, -3, 0, (-1, -1, -3))
t(2147483647, 6, -3, 1, (0, 0, -3))
t(2147483647, 6, -3, 5, (4, 4, -3))
t(2147483647, 6, -3, 10, (9, 6, -3))
t(2147483647, 6, -3, 100, (99, 6, -3))
t(2147483647, 6, -3, 2147483647, (2147483646, 6, -3))
t(2147483647, 6, -3, 9223372036854775808, (2147483647, 6, -3))
t(2147483647, 6, -1, 0, (-1, -1, -1))
t(2147483647, 6, -1, 1, (0, 0, -1))
t(2147483647, 6, -1, 5, (4, 4, -1))
t(2147483647, 6, -1, 10, (9, 6, -1))
t(2147483647, 6, -1, 100, (99, 6, -1))
t(2147483647, 6, -1, 2147483647, (2147483646, 6, -1))
t(2147483647, 6, -1, 9223372036854775808, (2147483647, 6, -1))
t(2147483647, 6, 1, 0, (0, 0, 1))
t(2147483647, 6, 1, 1, (1, 1, 1))
t(2147483647, 6, 1, 5, (5, 5, 1))
t(2147483647, 6, 1, 10, (10, 6, 1))
t(2147483647, 6, 1, 100, (100, 6, 1))
t(2147483647, 6, 1, 2147483647, (2147483647, 6, 1))
t(2147483647, 6, 1, 9223372036854775808, (2147483647, 6, 1))
t(2147483647, 6, 5, 0, (0, 0, 5))
t(2147483647, 6, 5, 1, (1, 1, 5))
t(2147483647, 6, 5, 5, (5, 5, 5))
t(2147483647, 6, 5, 10, (10, 6, 5))
t(2147483647, 6, 5, 100, (100, 6, 5))
t(2147483647, 6, 5, 2147483647, (2147483647, 6, 5))
t(2147483647, 6, 5, 9223372036854775808, (2147483647, 6, 5))
t(2147483647, 6, 20, 0, (0, 0, 20))
t(2147483647, 6, 20, 1, (1, 1, 20))
t(2147483647, 6, 20, 5, (5, 5, 20))
t(2147483647, 6, 20, 10, (10, 6, 20))
t(2147483647, 6, 20, 100, (100, 6, 20))
t(2147483647, 6, 20, 2147483647, (2147483647, 6, 20))
t(2147483647, 6, 20, 9223372036854775808, (2147483647, 6, 20))
t(2147483647, 6, 2147483647, 0, (0, 0, 2147483647))
t(2147483647, 6, 2147483647, 1, (1, 1, 2147483647))
t(2147483647, 6, 2147483647, 5, (5, 5, 2147483647))
t(2147483647, 6, 2147483647, 10, (10, 6, 2147483647))
t(2147483647, 6, 2147483647, 100, (100, 6, 2147483647))
t(2147483647, 6, 2147483647, 2147483647, (2147483647, 6, 2147483647))
t(2147483647, 6, 2147483647, 9223372036854775808, (2147483647, 6, 2147483647))
t(2147483647, 6, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(2147483647, 6, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(2147483647, 6, 9223372036854775808, 5, (5, 5, 9223372036854775808))
t(2147483647, 6, 9223372036854775808, 10, (10, 6, 9223372036854775808))
t(2147483647, 6, 9223372036854775808, 100, (100, 6, 9223372036854775808))
t(2147483647, 6, 9223372036854775808, 2147483647, (2147483647, 6, 9223372036854775808))
t(2147483647, 6, 9223372036854775808, 9223372036854775808, (2147483647, 6, 9223372036854775808))
t(2147483647, 10, None, 0, (0, 0, 1))
t(2147483647, 10, None, 1, (1, 1, 1))
t(2147483647, 10, None, 5, (5, 5, 1))
t(2147483647, 10, None, 10, (10, 10, 1))
t(2147483647, 10, None, 100, (100, 10, 1))
t(2147483647, 10, None, 2147483647, (2147483647, 10, 1))
t(2147483647, 10, None, 9223372036854775808, (2147483647, 10, 1))
t(2147483647, 10, -5, 0, (-1, -1, -5))
t(2147483647, 10, -5, 1, (0, 0, -5))
t(2147483647, 10, -5, 5, (4, 4, -5))
t(2147483647, 10, -5, 10, (9, 9, -5))
t(2147483647, 10, -5, 100, (99, 10, -5))
t(2147483647, 10, -5, 2147483647, (2147483646, 10, -5))
t(2147483647, 10, -5, 9223372036854775808, (2147483647, 10, -5))
t(2147483647, 10, -3, 0, (-1, -1, -3))
t(2147483647, 10, -3, 1, (0, 0, -3))
t(2147483647, 10, -3, 5, (4, 4, -3))
t(2147483647, 10, -3, 10, (9, 9, -3))
t(2147483647, 10, -3, 100, (99, 10, -3))
t(2147483647, 10, -3, 2147483647, (2147483646, 10, -3))
t(2147483647, 10, -3, 9223372036854775808, (2147483647, 10, -3))
t(2147483647, 10, -1, 0, (-1, -1, -1))
t(2147483647, 10, -1, 1, (0, 0, -1))
t(2147483647, 10, -1, 5, (4, 4, -1))
t(2147483647, 10, -1, 10, (9, 9, -1))
t(2147483647, 10, -1, 100, (99, 10, -1))
t(2147483647, 10, -1, 2147483647, (2147483646, 10, -1))
t(2147483647, 10, -1, 9223372036854775808, (2147483647, 10, -1))
t(2147483647, 10, 1, 0, (0, 0, 1))
t(2147483647, 10, 1, 1, (1, 1, 1))
t(2147483647, 10, 1, 5, (5, 5, 1))
t(2147483647, 10, 1, 10, (10, 10, 1))
t(2147483647, 10, 1, 100, (100, 10, 1))
t(2147483647, 10, 1, 2147483647, (2147483647, 10, 1))
t(2147483647, 10, 1, 9223372036854775808, (2147483647, 10, 1))
t(2147483647, 10, 5, 0, (0, 0, 5))
t(2147483647, 10, 5, 1, (1, 1, 5))
t(2147483647, 10, 5, 5, (5, 5, 5))
t(2147483647, 10, 5, 10, (10, 10, 5))
t(2147483647, 10, 5, 100, (100, 10, 5))
t(2147483647, 10, 5, 2147483647, (2147483647, 10, 5))
t(2147483647, 10, 5, 9223372036854775808, (2147483647, 10, 5))
t(2147483647, 10, 20, 0, (0, 0, 20))
t(2147483647, 10, 20, 1, (1, 1, 20))
t(2147483647, 10, 20, 5, (5, 5, 20))
t(2147483647, 10, 20, 10, (10, 10, 20))
t(2147483647, 10, 20, 100, (100, 10, 20))
t(2147483647, 10, 20, 2147483647, (2147483647, 10, 20))
t(2147483647, 10, 20, 9223372036854775808, (2147483647, 10, 20))
t(2147483647, 10, 2147483647, 0, (0, 0, 2147483647))
t(2147483647, 10, 2147483647, 1, (1, 1, 2147483647))
t(2147483647, 10, 2147483647, 5, (5, 5, 2147483647))
t(2147483647, 10, 2147483647, 10, (10, 10, 2147483647))
t(2147483647, 10, 2147483647, 100, (100, 10, 2147483647))
t(2147483647, 10, 2147483647, 2147483647, (2147483647, 10, 2147483647))
t(2147483647, 10, 2147483647, 9223372036854775808, (2147483647, 10, 2147483647))
t(2147483647, 10, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(2147483647, 10, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(2147483647, 10, 9223372036854775808, 5, (5, 5, 9223372036854775808))
t(2147483647, 10, 9223372036854775808, 10, (10, 10, 9223372036854775808))
t(2147483647, 10, 9223372036854775808, 100, (100, 10, 9223372036854775808))
t(2147483647, 10, 9223372036854775808, 2147483647, (2147483647, 10, 9223372036854775808))
t(2147483647, 10, 9223372036854775808, 9223372036854775808, (2147483647, 10, 9223372036854775808))
t(2147483647, 2147483647, None, 0, (0, 0, 1))
t(2147483647, 2147483647, None, 1, (1, 1, 1))
t(2147483647, 2147483647, None, 5, (5, 5, 1))
t(2147483647, 2147483647, None, 10, (10, 10, 1))
t(2147483647, 2147483647, None, 100, (100, 100, 1))
t(2147483647, 2147483647, None, 2147483647, (2147483647, 2147483647, 1))
t(2147483647, 2147483647, None, 9223372036854775808, (2147483647, 2147483647, 1))
t(2147483647, 2147483647, -5, 0, (-1, -1, -5))
t(2147483647, 2147483647, -5, 1, (0, 0, -5))
t(2147483647, 2147483647, -5, 5, (4, 4, -5))
t(2147483647, 2147483647, -5, 10, (9, 9, -5))
t(2147483647, 2147483647, -5, 100, (99, 99, -5))
t(2147483647, 2147483647, -5, 2147483647, (2147483646, 2147483646, -5))
t(2147483647, 2147483647, -5, 9223372036854775808, (2147483647, 2147483647, -5))
t(2147483647, 2147483647, -3, 0, (-1, -1, -3))
t(2147483647, 2147483647, -3, 1, (0, 0, -3))
t(2147483647, 2147483647, -3, 5, (4, 4, -3))
t(2147483647, 2147483647, -3, 10, (9, 9, -3))
t(2147483647, 2147483647, -3, 100, (99, 99, -3))
t(2147483647, 2147483647, -3, 2147483647, (2147483646, 2147483646, -3))
t(2147483647, 2147483647, -3, 9223372036854775808, (2147483647, 2147483647, -3))
t(2147483647, 2147483647, -1, 0, (-1, -1, -1))
t(2147483647, 2147483647, -1, 1, (0, 0, -1))
t(2147483647, 2147483647, -1, 5, (4, 4, -1))
t(2147483647, 2147483647, -1, 10, (9, 9, -1))
t(2147483647, 2147483647, -1, 100, (99, 99, -1))
t(2147483647, 2147483647, -1, 2147483647, (2147483646, 2147483646, -1))
t(2147483647, 2147483647, -1, 9223372036854775808, (2147483647, 2147483647, -1))
t(2147483647, 2147483647, 1, 0, (0, 0, 1))
t(2147483647, 2147483647, 1, 1, (1, 1, 1))
t(2147483647, 2147483647, 1, 5, (5, 5, 1))
t(2147483647, 2147483647, 1, 10, (10, 10, 1))
t(2147483647, 2147483647, 1, 100, (100, 100, 1))
t(2147483647, 2147483647, 1, 2147483647, (2147483647, 2147483647, 1))
t(2147483647, 2147483647, 1, 9223372036854775808, (2147483647, 2147483647, 1))
t(2147483647, 2147483647, 5, 0, (0, 0, 5))
t(2147483647, 2147483647, 5, 1, (1, 1, 5))
t(2147483647, 2147483647, 5, 5, (5, 5, 5))
t(2147483647, 2147483647, 5, 10, (10, 10, 5))
t(2147483647, 2147483647, 5, 100, (100, 100, 5))
t(2147483647, 2147483647, 5, 2147483647, (2147483647, 2147483647, 5))
t(2147483647, 2147483647, 5, 9223372036854775808, (2147483647, 2147483647, 5))
t(2147483647, 2147483647, 20, 0, (0, 0, 20))
t(2147483647, 2147483647, 20, 1, (1, 1, 20))
t(2147483647, 2147483647, 20, 5, (5, 5, 20))
t(2147483647, 2147483647, 20, 10, (10, 10, 20))
t(2147483647, 2147483647, 20, 100, (100, 100, 20))
t(2147483647, 2147483647, 20, 2147483647, (2147483647, 2147483647, 20))
t(2147483647, 2147483647, 20, 9223372036854775808, (2147483647, 2147483647, 20))
t(2147483647, 2147483647, 2147483647, 0, (0, 0, 2147483647))
t(2147483647, 2147483647, 2147483647, 1, (1, 1, 2147483647))
t(2147483647, 2147483647, 2147483647, 5, (5, 5, 2147483647))
t(2147483647, 2147483647, 2147483647, 10, (10, 10, 2147483647))
t(2147483647, 2147483647, 2147483647, 100, (100, 100, 2147483647))
t(2147483647, 2147483647, 2147483647, 2147483647, (2147483647, 2147483647, 2147483647))
t(2147483647, 2147483647, 2147483647, 9223372036854775808, (2147483647, 2147483647, 2147483647))
t(2147483647, 2147483647, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(2147483647, 2147483647, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(2147483647, 2147483647, 9223372036854775808, 5, (5, 5, 9223372036854775808))
t(2147483647, 2147483647, 9223372036854775808, 10, (10, 10, 9223372036854775808))
t(2147483647, 2147483647, 9223372036854775808, 100, (100, 100, 9223372036854775808))
t(2147483647, 2147483647, 9223372036854775808, 2147483647, (2147483647, 2147483647, 9223372036854775808))
t(2147483647, 2147483647, 9223372036854775808, 9223372036854775808, (2147483647, 2147483647, 9223372036854775808))
t(2147483647, 9223372036854775808, None, 0, (0, 0, 1))
t(2147483647, 9223372036854775808, None, 1, (1, 1, 1))
t(2147483647, 9223372036854775808, None, 5, (5, 5, 1))
t(2147483647, 9223372036854775808, None, 10, (10, 10, 1))
t(2147483647, 9223372036854775808, None, 100, (100, 100, 1))
t(2147483647, 9223372036854775808, None, 2147483647, (2147483647, 2147483647, 1))
t(2147483647, 9223372036854775808, None, 9223372036854775808, (2147483647, 9223372036854775808, 1))
t(2147483647, 9223372036854775808, -5, 0, (-1, -1, -5))
t(2147483647, 9223372036854775808, -5, 1, (0, 0, -5))
t(2147483647, 9223372036854775808, -5, 5, (4, 4, -5))
t(2147483647, 9223372036854775808, -5, 10, (9, 9, -5))
t(2147483647, 9223372036854775808, -5, 100, (99, 99, -5))
t(2147483647, 9223372036854775808, -5, 2147483647, (2147483646, 2147483646, -5))
t(2147483647, 9223372036854775808, -5, 9223372036854775808, (2147483647, 9223372036854775807, -5))
t(2147483647, 9223372036854775808, -3, 0, (-1, -1, -3))
t(2147483647, 9223372036854775808, -3, 1, (0, 0, -3))
t(2147483647, 9223372036854775808, -3, 5, (4, 4, -3))
t(2147483647, 9223372036854775808, -3, 10, (9, 9, -3))
t(2147483647, 9223372036854775808, -3, 100, (99, 99, -3))
t(2147483647, 9223372036854775808, -3, 2147483647, (2147483646, 2147483646, -3))
t(2147483647, 9223372036854775808, -3, 9223372036854775808, (2147483647, 9223372036854775807, -3))
t(2147483647, 9223372036854775808, -1, 0, (-1, -1, -1))
t(2147483647, 9223372036854775808, -1, 1, (0, 0, -1))
t(2147483647, 9223372036854775808, -1, 5, (4, 4, -1))
t(2147483647, 9223372036854775808, -1, 10, (9, 9, -1))
t(2147483647, 9223372036854775808, -1, 100, (99, 99, -1))
t(2147483647, 9223372036854775808, -1, 2147483647, (2147483646, 2147483646, -1))
t(2147483647, 9223372036854775808, -1, 9223372036854775808, (2147483647, 9223372036854775807, -1))
t(2147483647, 9223372036854775808, 1, 0, (0, 0, 1))
t(2147483647, 9223372036854775808, 1, 1, (1, 1, 1))
t(2147483647, 9223372036854775808, 1, 5, (5, 5, 1))
t(2147483647, 9223372036854775808, 1, 10, (10, 10, 1))
t(2147483647, 9223372036854775808, 1, 100, (100, 100, 1))
t(2147483647, 9223372036854775808, 1, 2147483647, (2147483647, 2147483647, 1))
t(2147483647, 9223372036854775808, 1, 9223372036854775808, (2147483647, 9223372036854775808, 1))
t(2147483647, 9223372036854775808, 5, 0, (0, 0, 5))
t(2147483647, 9223372036854775808, 5, 1, (1, 1, 5))
t(2147483647, 9223372036854775808, 5, 5, (5, 5, 5))
t(2147483647, 9223372036854775808, 5, 10, (10, 10, 5))
t(2147483647, 9223372036854775808, 5, 100, (100, 100, 5))
t(2147483647, 9223372036854775808, 5, 2147483647, (2147483647, 2147483647, 5))
t(2147483647, 9223372036854775808, 5, 9223372036854775808, (2147483647, 9223372036854775808, 5))
t(2147483647, 9223372036854775808, 20, 0, (0, 0, 20))
t(2147483647, 9223372036854775808, 20, 1, (1, 1, 20))
t(2147483647, 9223372036854775808, 20, 5, (5, 5, 20))
t(2147483647, 9223372036854775808, 20, 10, (10, 10, 20))
t(2147483647, 9223372036854775808, 20, 100, (100, 100, 20))
t(2147483647, 9223372036854775808, 20, 2147483647, (2147483647, 2147483647, 20))
t(2147483647, 9223372036854775808, 20, 9223372036854775808, (2147483647, 9223372036854775808, 20))
t(2147483647, 9223372036854775808, 2147483647, 0, (0, 0, 2147483647))
t(2147483647, 9223372036854775808, 2147483647, 1, (1, 1, 2147483647))
t(2147483647, 9223372036854775808, 2147483647, 5, (5, 5, 2147483647))
t(2147483647, 9223372036854775808, 2147483647, 10, (10, 10, 2147483647))
t(2147483647, 9223372036854775808, 2147483647, 100, (100, 100, 2147483647))
t(2147483647, 9223372036854775808, 2147483647, 2147483647, (2147483647, 2147483647, 2147483647))
t(2147483647, 9223372036854775808, 2147483647, 9223372036854775808, (2147483647, 9223372036854775808, 2147483647))
t(2147483647, 9223372036854775808, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(2147483647, 9223372036854775808, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(2147483647, 9223372036854775808, 9223372036854775808, 5, (5, 5, 9223372036854775808))
t(2147483647, 9223372036854775808, 9223372036854775808, 10, (10, 10, 9223372036854775808))
t(2147483647, 9223372036854775808, 9223372036854775808, 100, (100, 100, 9223372036854775808))
t(2147483647, 9223372036854775808, 9223372036854775808, 2147483647, (2147483647, 2147483647, 9223372036854775808))
t(2147483647, 9223372036854775808, 9223372036854775808, 9223372036854775808, (2147483647, 9223372036854775808, 9223372036854775808))
t(9223372036854775808, None, None, 0, (0, 0, 1))
t(9223372036854775808, None, None, 1, (1, 1, 1))
t(9223372036854775808, None, None, 5, (5, 5, 1))
t(9223372036854775808, None, None, 10, (10, 10, 1))
t(9223372036854775808, None, None, 100, (100, 100, 1))
t(9223372036854775808, None, None, 2147483647, (2147483647, 2147483647, 1))
t(9223372036854775808, None, None, 9223372036854775808, (9223372036854775808, 9223372036854775808, 1))
t(9223372036854775808, None, -5, 0, (-1, -1, -5))
t(9223372036854775808, None, -5, 1, (0, -1, -5))
t(9223372036854775808, None, -5, 5, (4, -1, -5))
t(9223372036854775808, None, -5, 10, (9, -1, -5))
t(9223372036854775808, None, -5, 100, (99, -1, -5))
t(9223372036854775808, None, -5, 2147483647, (2147483646, -1, -5))
t(9223372036854775808, None, -5, 9223372036854775808, (9223372036854775807, -1, -5))
t(9223372036854775808, None, -3, 0, (-1, -1, -3))
t(9223372036854775808, None, -3, 1, (0, -1, -3))
t(9223372036854775808, None, -3, 5, (4, -1, -3))
t(9223372036854775808, None, -3, 10, (9, -1, -3))
t(9223372036854775808, None, -3, 100, (99, -1, -3))
t(9223372036854775808, None, -3, 2147483647, (2147483646, -1, -3))
t(9223372036854775808, None, -3, 9223372036854775808, (9223372036854775807, -1, -3))
t(9223372036854775808, None, -1, 0, (-1, -1, -1))
t(9223372036854775808, None, -1, 1, (0, -1, -1))
t(9223372036854775808, None, -1, 5, (4, -1, -1))
t(9223372036854775808, None, -1, 10, (9, -1, -1))
t(9223372036854775808, None, -1, 100, (99, -1, -1))
t(9223372036854775808, None, -1, 2147483647, (2147483646, -1, -1))
t(9223372036854775808, None, -1, 9223372036854775808, (9223372036854775807, -1, -1))
t(9223372036854775808, None, 1, 0, (0, 0, 1))
t(9223372036854775808, None, 1, 1, (1, 1, 1))
t(9223372036854775808, None, 1, 5, (5, 5, 1))
t(9223372036854775808, None, 1, 10, (10, 10, 1))
t(9223372036854775808, None, 1, 100, (100, 100, 1))
t(9223372036854775808, None, 1, 2147483647, (2147483647, 2147483647, 1))
t(9223372036854775808, None, 1, 9223372036854775808, (9223372036854775808, 9223372036854775808, 1))
t(9223372036854775808, None, 5, 0, (0, 0, 5))
t(9223372036854775808, None, 5, 1, (1, 1, 5))
t(9223372036854775808, None, 5, 5, (5, 5, 5))
t(9223372036854775808, None, 5, 10, (10, 10, 5))
t(9223372036854775808, None, 5, 100, (100, 100, 5))
t(9223372036854775808, None, 5, 2147483647, (2147483647, 2147483647, 5))
t(9223372036854775808, None, 5, 9223372036854775808, (9223372036854775808, 9223372036854775808, 5))
t(9223372036854775808, None, 20, 0, (0, 0, 20))
t(9223372036854775808, None, 20, 1, (1, 1, 20))
t(9223372036854775808, None, 20, 5, (5, 5, 20))
t(9223372036854775808, None, 20, 10, (10, 10, 20))
t(9223372036854775808, None, 20, 100, (100, 100, 20))
t(9223372036854775808, None, 20, 2147483647, (2147483647, 2147483647, 20))
t(9223372036854775808, None, 20, 9223372036854775808, (9223372036854775808, 9223372036854775808, 20))
t(9223372036854775808, None, 2147483647, 0, (0, 0, 2147483647))
t(9223372036854775808, None, 2147483647, 1, (1, 1, 2147483647))
t(9223372036854775808, None, 2147483647, 5, (5, 5, 2147483647))
t(9223372036854775808, None, 2147483647, 10, (10, 10, 2147483647))
t(9223372036854775808, None, 2147483647, 100, (100, 100, 2147483647))
t(9223372036854775808, None, 2147483647, 2147483647, (2147483647, 2147483647, 2147483647))
t(9223372036854775808, None, 2147483647, 9223372036854775808, (9223372036854775808, 9223372036854775808, 2147483647))
t(9223372036854775808, None, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(9223372036854775808, None, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(9223372036854775808, None, 9223372036854775808, 5, (5, 5, 9223372036854775808))
t(9223372036854775808, None, 9223372036854775808, 10, (10, 10, 9223372036854775808))
t(9223372036854775808, None, 9223372036854775808, 100, (100, 100, 9223372036854775808))
t(9223372036854775808, None, 9223372036854775808, 2147483647, (2147483647, 2147483647, 9223372036854775808))
t(9223372036854775808, None, 9223372036854775808, 9223372036854775808, (9223372036854775808, 9223372036854775808, 9223372036854775808))
t(9223372036854775808, -7, None, 0, (0, 0, 1))
t(9223372036854775808, -7, None, 1, (1, 0, 1))
t(9223372036854775808, -7, None, 5, (5, 0, 1))
t(9223372036854775808, -7, None, 10, (10, 3, 1))
t(9223372036854775808, -7, None, 100, (100, 93, 1))
t(9223372036854775808, -7, None, 2147483647, (2147483647, 2147483640, 1))
t(9223372036854775808, -7, None, 9223372036854775808, (9223372036854775808, 9223372036854775801, 1))
t(9223372036854775808, -7, -5, 0, (-1, -1, -5))
t(9223372036854775808, -7, -5, 1, (0, -1, -5))
t(9223372036854775808, -7, -5, 5, (4, -1, -5))
t(9223372036854775808, -7, -5, 10, (9, 3, -5))
t(9223372036854775808, -7, -5, 100, (99, 93, -5))
t(9223372036854775808, -7, -5, 2147483647, (2147483646, 2147483640, -5))
t(9223372036854775808, -7, -5, 9223372036854775808, (9223372036854775807, 9223372036854775801, -5))
t(9223372036854775808, -7, -3, 0, (-1, -1, -3))
t(9223372036854775808, -7, -3, 1, (0, -1, -3))
t(9223372036854775808, -7, -3, 5, (4, -1, -3))
t(9223372036854775808, -7, -3, 10, (9, 3, -3))
t(9223372036854775808, -7, -3, 100, (99, 93, -3))
t(9223372036854775808, -7, -3, 2147483647, (2147483646, 2147483640, -3))
t(9223372036854775808, -7, -3, 9223372036854775808, (9223372036854775807, 9223372036854775801, -3))
t(9223372036854775808, -7, -1, 0, (-1, -1, -1))
t(9223372036854775808, -7, -1, 1, (0, -1, -1))
t(9223372036854775808, -7, -1, 5, (4, -1, -1))
t(9223372036854775808, -7, -1, 10, (9, 3, -1))
t(9223372036854775808, -7, -1, 100, (99, 93, -1))
t(9223372036854775808, -7, -1, 2147483647, (2147483646, 2147483640, -1))
t(9223372036854775808, -7, -1, 9223372036854775808, (9223372036854775807, 9223372036854775801, -1))
t(9223372036854775808, -7, 1, 0, (0, 0, 1))
t(9223372036854775808, -7, 1, 1, (1, 0, 1))
t(9223372036854775808, -7, 1, 5, (5, 0, 1))
t(9223372036854775808, -7, 1, 10, (10, 3, 1))
t(9223372036854775808, -7, 1, 100, (100, 93, 1))
t(9223372036854775808, -7, 1, 2147483647, (2147483647, 2147483640, 1))
t(9223372036854775808, -7, 1, 9223372036854775808, (9223372036854775808, 9223372036854775801, 1))
t(9223372036854775808, -7, 5, 0, (0, 0, 5))
t(9223372036854775808, -7, 5, 1, (1, 0, 5))
t(9223372036854775808, -7, 5, 5, (5, 0, 5))
t(9223372036854775808, -7, 5, 10, (10, 3, 5))
t(9223372036854775808, -7, 5, 100, (100, 93, 5))
t(9223372036854775808, -7, 5, 2147483647, (2147483647, 2147483640, 5))
t(9223372036854775808, -7, 5, 9223372036854775808, (9223372036854775808, 9223372036854775801, 5))
t(9223372036854775808, -7, 20, 0, (0, 0, 20))
t(9223372036854775808, -7, 20, 1, (1, 0, 20))
t(9223372036854775808, -7, 20, 5, (5, 0, 20))
t(9223372036854775808, -7, 20, 10, (10, 3, 20))
t(9223372036854775808, -7, 20, 100, (100, 93, 20))
t(9223372036854775808, -7, 20, 2147483647, (2147483647, 2147483640, 20))
t(9223372036854775808, -7, 20, 9223372036854775808, (9223372036854775808, 9223372036854775801, 20))
t(9223372036854775808, -7, 2147483647, 0, (0, 0, 2147483647))
t(9223372036854775808, -7, 2147483647, 1, (1, 0, 2147483647))
t(9223372036854775808, -7, 2147483647, 5, (5, 0, 2147483647))
t(9223372036854775808, -7, 2147483647, 10, (10, 3, 2147483647))
t(9223372036854775808, -7, 2147483647, 100, (100, 93, 2147483647))
t(9223372036854775808, -7, 2147483647, 2147483647, (2147483647, 2147483640, 2147483647))
t(9223372036854775808, -7, 2147483647, 9223372036854775808, (9223372036854775808, 9223372036854775801, 2147483647))
t(9223372036854775808, -7, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(9223372036854775808, -7, 9223372036854775808, 1, (1, 0, 9223372036854775808))
t(9223372036854775808, -7, 9223372036854775808, 5, (5, 0, 9223372036854775808))
t(9223372036854775808, -7, 9223372036854775808, 10, (10, 3, 9223372036854775808))
t(9223372036854775808, -7, 9223372036854775808, 100, (100, 93, 9223372036854775808))
t(9223372036854775808, -7, 9223372036854775808, 2147483647, (2147483647, 2147483640, 9223372036854775808))
t(9223372036854775808, -7, 9223372036854775808, 9223372036854775808, (9223372036854775808, 9223372036854775801, 9223372036854775808))
t(9223372036854775808, -2, None, 0, (0, 0, 1))
t(9223372036854775808, -2, None, 1, (1, 0, 1))
t(9223372036854775808, -2, None, 5, (5, 3, 1))
t(9223372036854775808, -2, None, 10, (10, 8, 1))
t(9223372036854775808, -2, None, 100, (100, 98, 1))
t(9223372036854775808, -2, None, 2147483647, (2147483647, 2147483645, 1))
t(9223372036854775808, -2, None, 9223372036854775808, (9223372036854775808, 9223372036854775806, 1))
t(9223372036854775808, -2, -5, 0, (-1, -1, -5))
t(9223372036854775808, -2, -5, 1, (0, -1, -5))
t(9223372036854775808, -2, -5, 5, (4, 3, -5))
t(9223372036854775808, -2, -5, 10, (9, 8, -5))
t(9223372036854775808, -2, -5, 100, (99, 98, -5))
t(9223372036854775808, -2, -5, 2147483647, (2147483646, 2147483645, -5))
t(9223372036854775808, -2, -5, 9223372036854775808, (9223372036854775807, 9223372036854775806, -5))
t(9223372036854775808, -2, -3, 0, (-1, -1, -3))
t(9223372036854775808, -2, -3, 1, (0, -1, -3))
t(9223372036854775808, -2, -3, 5, (4, 3, -3))
t(9223372036854775808, -2, -3, 10, (9, 8, -3))
t(9223372036854775808, -2, -3, 100, (99, 98, -3))
t(9223372036854775808, -2, -3, 2147483647, (2147483646, 2147483645, -3))
t(9223372036854775808, -2, -3, 9223372036854775808, (9223372036854775807, 9223372036854775806, -3))
t(9223372036854775808, -2, -1, 0, (-1, -1, -1))
t(9223372036854775808, -2, -1, 1, (0, -1, -1))
t(9223372036854775808, -2, -1, 5, (4, 3, -1))
t(9223372036854775808, -2, -1, 10, (9, 8, -1))
t(9223372036854775808, -2, -1, 100, (99, 98, -1))
t(9223372036854775808, -2, -1, 2147483647, (2147483646, 2147483645, -1))
t(9223372036854775808, -2, -1, 9223372036854775808, (9223372036854775807, 9223372036854775806, -1))
t(9223372036854775808, -2, 1, 0, (0, 0, 1))
t(9223372036854775808, -2, 1, 1, (1, 0, 1))
t(9223372036854775808, -2, 1, 5, (5, 3, 1))
t(9223372036854775808, -2, 1, 10, (10, 8, 1))
t(9223372036854775808, -2, 1, 100, (100, 98, 1))
t(9223372036854775808, -2, 1, 2147483647, (2147483647, 2147483645, 1))
t(9223372036854775808, -2, 1, 9223372036854775808, (9223372036854775808, 9223372036854775806, 1))
t(9223372036854775808, -2, 5, 0, (0, 0, 5))
t(9223372036854775808, -2, 5, 1, (1, 0, 5))
t(9223372036854775808, -2, 5, 5, (5, 3, 5))
t(9223372036854775808, -2, 5, 10, (10, 8, 5))
t(9223372036854775808, -2, 5, 100, (100, 98, 5))
t(9223372036854775808, -2, 5, 2147483647, (2147483647, 2147483645, 5))
t(9223372036854775808, -2, 5, 9223372036854775808, (9223372036854775808, 9223372036854775806, 5))
t(9223372036854775808, -2, 20, 0, (0, 0, 20))
t(9223372036854775808, -2, 20, 1, (1, 0, 20))
t(9223372036854775808, -2, 20, 5, (5, 3, 20))
t(9223372036854775808, -2, 20, 10, (10, 8, 20))
t(9223372036854775808, -2, 20, 100, (100, 98, 20))
t(9223372036854775808, -2, 20, 2147483647, (2147483647, 2147483645, 20))
t(9223372036854775808, -2, 20, 9223372036854775808, (9223372036854775808, 9223372036854775806, 20))
t(9223372036854775808, -2, 2147483647, 0, (0, 0, 2147483647))
t(9223372036854775808, -2, 2147483647, 1, (1, 0, 2147483647))
t(9223372036854775808, -2, 2147483647, 5, (5, 3, 2147483647))
t(9223372036854775808, -2, 2147483647, 10, (10, 8, 2147483647))
t(9223372036854775808, -2, 2147483647, 100, (100, 98, 2147483647))
t(9223372036854775808, -2, 2147483647, 2147483647, (2147483647, 2147483645, 2147483647))
t(9223372036854775808, -2, 2147483647, 9223372036854775808, (9223372036854775808, 9223372036854775806, 2147483647))
t(9223372036854775808, -2, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(9223372036854775808, -2, 9223372036854775808, 1, (1, 0, 9223372036854775808))
t(9223372036854775808, -2, 9223372036854775808, 5, (5, 3, 9223372036854775808))
t(9223372036854775808, -2, 9223372036854775808, 10, (10, 8, 9223372036854775808))
t(9223372036854775808, -2, 9223372036854775808, 100, (100, 98, 9223372036854775808))
t(9223372036854775808, -2, 9223372036854775808, 2147483647, (2147483647, 2147483645, 9223372036854775808))
t(9223372036854775808, -2, 9223372036854775808, 9223372036854775808, (9223372036854775808, 9223372036854775806, 9223372036854775808))
t(9223372036854775808, 0, None, 0, (0, 0, 1))
t(9223372036854775808, 0, None, 1, (1, 0, 1))
t(9223372036854775808, 0, None, 5, (5, 0, 1))
t(9223372036854775808, 0, None, 10, (10, 0, 1))
t(9223372036854775808, 0, None, 100, (100, 0, 1))
t(9223372036854775808, 0, None, 2147483647, (2147483647, 0, 1))
t(9223372036854775808, 0, None, 9223372036854775808, (9223372036854775808, 0, 1))
t(9223372036854775808, 0, -5, 0, (-1, -1, -5))
t(9223372036854775808, 0, -5, 1, (0, 0, -5))
t(9223372036854775808, 0, -5, 5, (4, 0, -5))
t(9223372036854775808, 0, -5, 10, (9, 0, -5))
t(9223372036854775808, 0, -5, 100, (99, 0, -5))
t(9223372036854775808, 0, -5, 2147483647, (2147483646, 0, -5))
t(9223372036854775808, 0, -5, 9223372036854775808, (9223372036854775807, 0, -5))
t(9223372036854775808, 0, -3, 0, (-1, -1, -3))
t(9223372036854775808, 0, -3, 1, (0, 0, -3))
t(9223372036854775808, 0, -3, 5, (4, 0, -3))
t(9223372036854775808, 0, -3, 10, (9, 0, -3))
t(9223372036854775808, 0, -3, 100, (99, 0, -3))
t(9223372036854775808, 0, -3, 2147483647, (2147483646, 0, -3))
t(9223372036854775808, 0, -3, 9223372036854775808, (9223372036854775807, 0, -3))
t(9223372036854775808, 0, -1, 0, (-1, -1, -1))
t(9223372036854775808, 0, -1, 1, (0, 0, -1))
t(9223372036854775808, 0, -1, 5, (4, 0, -1))
t(9223372036854775808, 0, -1, 10, (9, 0, -1))
t(9223372036854775808, 0, -1, 100, (99, 0, -1))
t(9223372036854775808, 0, -1, 2147483647, (2147483646, 0, -1))
t(9223372036854775808, 0, -1, 9223372036854775808, (9223372036854775807, 0, -1))
t(9223372036854775808, 0, 1, 0, (0, 0, 1))
t(9223372036854775808, 0, 1, 1, (1, 0, 1))
t(9223372036854775808, 0, 1, 5, (5, 0, 1))
t(9223372036854775808, 0, 1, 10, (10, 0, 1))
t(9223372036854775808, 0, 1, 100, (100, 0, 1))
t(9223372036854775808, 0, 1, 2147483647, (2147483647, 0, 1))
t(9223372036854775808, 0, 1, 9223372036854775808, (9223372036854775808, 0, 1))
t(9223372036854775808, 0, 5, 0, (0, 0, 5))
t(9223372036854775808, 0, 5, 1, (1, 0, 5))
t(9223372036854775808, 0, 5, 5, (5, 0, 5))
t(9223372036854775808, 0, 5, 10, (10, 0, 5))
t(9223372036854775808, 0, 5, 100, (100, 0, 5))
t(9223372036854775808, 0, 5, 2147483647, (2147483647, 0, 5))
t(9223372036854775808, 0, 5, 9223372036854775808, (9223372036854775808, 0, 5))
t(9223372036854775808, 0, 20, 0, (0, 0, 20))
t(9223372036854775808, 0, 20, 1, (1, 0, 20))
t(9223372036854775808, 0, 20, 5, (5, 0, 20))
t(9223372036854775808, 0, 20, 10, (10, 0, 20))
t(9223372036854775808, 0, 20, 100, (100, 0, 20))
t(9223372036854775808, 0, 20, 2147483647, (2147483647, 0, 20))
t(9223372036854775808, 0, 20, 9223372036854775808, (9223372036854775808, 0, 20))
t(9223372036854775808, 0, 2147483647, 0, (0, 0, 2147483647))
t(9223372036854775808, 0, 2147483647, 1, (1, 0, 2147483647))
t(9223372036854775808, 0, 2147483647, 5, (5, 0, 2147483647))
t(9223372036854775808, 0, 2147483647, 10, (10, 0, 2147483647))
t(9223372036854775808, 0, 2147483647, 100, (100, 0, 2147483647))
t(9223372036854775808, 0, 2147483647, 2147483647, (2147483647, 0, 2147483647))
t(9223372036854775808, 0, 2147483647, 9223372036854775808, (9223372036854775808, 0, 2147483647))
t(9223372036854775808, 0, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(9223372036854775808, 0, 9223372036854775808, 1, (1, 0, 9223372036854775808))
t(9223372036854775808, 0, 9223372036854775808, 5, (5, 0, 9223372036854775808))
t(9223372036854775808, 0, 9223372036854775808, 10, (10, 0, 9223372036854775808))
t(9223372036854775808, 0, 9223372036854775808, 100, (100, 0, 9223372036854775808))
t(9223372036854775808, 0, 9223372036854775808, 2147483647, (2147483647, 0, 9223372036854775808))
t(9223372036854775808, 0, 9223372036854775808, 9223372036854775808, (9223372036854775808, 0, 9223372036854775808))
t(9223372036854775808, 1, None, 0, (0, 0, 1))
t(9223372036854775808, 1, None, 1, (1, 1, 1))
t(9223372036854775808, 1, None, 5, (5, 1, 1))
t(9223372036854775808, 1, None, 10, (10, 1, 1))
t(9223372036854775808, 1, None, 100, (100, 1, 1))
t(9223372036854775808, 1, None, 2147483647, (2147483647, 1, 1))
t(9223372036854775808, 1, None, 9223372036854775808, (9223372036854775808, 1, 1))
t(9223372036854775808, 1, -5, 0, (-1, -1, -5))
t(9223372036854775808, 1, -5, 1, (0, 0, -5))
t(9223372036854775808, 1, -5, 5, (4, 1, -5))
t(9223372036854775808, 1, -5, 10, (9, 1, -5))
t(9223372036854775808, 1, -5, 100, (99, 1, -5))
t(9223372036854775808, 1, -5, 2147483647, (2147483646, 1, -5))
t(9223372036854775808, 1, -5, 9223372036854775808, (9223372036854775807, 1, -5))
t(9223372036854775808, 1, -3, 0, (-1, -1, -3))
t(9223372036854775808, 1, -3, 1, (0, 0, -3))
t(9223372036854775808, 1, -3, 5, (4, 1, -3))
t(9223372036854775808, 1, -3, 10, (9, 1, -3))
t(9223372036854775808, 1, -3, 100, (99, 1, -3))
t(9223372036854775808, 1, -3, 2147483647, (2147483646, 1, -3))
t(9223372036854775808, 1, -3, 9223372036854775808, (9223372036854775807, 1, -3))
t(9223372036854775808, 1, -1, 0, (-1, -1, -1))
t(9223372036854775808, 1, -1, 1, (0, 0, -1))
t(9223372036854775808, 1, -1, 5, (4, 1, -1))
t(9223372036854775808, 1, -1, 10, (9, 1, -1))
t(9223372036854775808, 1, -1, 100, (99, 1, -1))
t(9223372036854775808, 1, -1, 2147483647, (2147483646, 1, -1))
t(9223372036854775808, 1, -1, 9223372036854775808, (9223372036854775807, 1, -1))
t(9223372036854775808, 1, 1, 0, (0, 0, 1))
t(9223372036854775808, 1, 1, 1, (1, 1, 1))
t(9223372036854775808, 1, 1, 5, (5, 1, 1))
t(9223372036854775808, 1, 1, 10, (10, 1, 1))
t(9223372036854775808, 1, 1, 100, (100, 1, 1))
t(9223372036854775808, 1, 1, 2147483647, (2147483647, 1, 1))
t(9223372036854775808, 1, 1, 9223372036854775808, (9223372036854775808, 1, 1))
t(9223372036854775808, 1, 5, 0, (0, 0, 5))
t(9223372036854775808, 1, 5, 1, (1, 1, 5))
t(9223372036854775808, 1, 5, 5, (5, 1, 5))
t(9223372036854775808, 1, 5, 10, (10, 1, 5))
t(9223372036854775808, 1, 5, 100, (100, 1, 5))
t(9223372036854775808, 1, 5, 2147483647, (2147483647, 1, 5))
t(9223372036854775808, 1, 5, 9223372036854775808, (9223372036854775808, 1, 5))
t(9223372036854775808, 1, 20, 0, (0, 0, 20))
t(9223372036854775808, 1, 20, 1, (1, 1, 20))
t(9223372036854775808, 1, 20, 5, (5, 1, 20))
t(9223372036854775808, 1, 20, 10, (10, 1, 20))
t(9223372036854775808, 1, 20, 100, (100, 1, 20))
t(9223372036854775808, 1, 20, 2147483647, (2147483647, 1, 20))
t(9223372036854775808, 1, 20, 9223372036854775808, (9223372036854775808, 1, 20))
t(9223372036854775808, 1, 2147483647, 0, (0, 0, 2147483647))
t(9223372036854775808, 1, 2147483647, 1, (1, 1, 2147483647))
t(9223372036854775808, 1, 2147483647, 5, (5, 1, 2147483647))
t(9223372036854775808, 1, 2147483647, 10, (10, 1, 2147483647))
t(9223372036854775808, 1, 2147483647, 100, (100, 1, 2147483647))
t(9223372036854775808, 1, 2147483647, 2147483647, (2147483647, 1, 2147483647))
t(9223372036854775808, 1, 2147483647, 9223372036854775808, (9223372036854775808, 1, 2147483647))
t(9223372036854775808, 1, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(9223372036854775808, 1, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(9223372036854775808, 1, 9223372036854775808, 5, (5, 1, 9223372036854775808))
t(9223372036854775808, 1, 9223372036854775808, 10, (10, 1, 9223372036854775808))
t(9223372036854775808, 1, 9223372036854775808, 100, (100, 1, 9223372036854775808))
t(9223372036854775808, 1, 9223372036854775808, 2147483647, (2147483647, 1, 9223372036854775808))
t(9223372036854775808, 1, 9223372036854775808, 9223372036854775808, (9223372036854775808, 1, 9223372036854775808))
t(9223372036854775808, 6, None, 0, (0, 0, 1))
t(9223372036854775808, 6, None, 1, (1, 1, 1))
t(9223372036854775808, 6, None, 5, (5, 5, 1))
t(9223372036854775808, 6, None, 10, (10, 6, 1))
t(9223372036854775808, 6, None, 100, (100, 6, 1))
t(9223372036854775808, 6, None, 2147483647, (2147483647, 6, 1))
t(9223372036854775808, 6, None, 9223372036854775808, (9223372036854775808, 6, 1))
t(9223372036854775808, 6, -5, 0, (-1, -1, -5))
t(9223372036854775808, 6, -5, 1, (0, 0, -5))
t(9223372036854775808, 6, -5, 5, (4, 4, -5))
t(9223372036854775808, 6, -5, 10, (9, 6, -5))
t(9223372036854775808, 6, -5, 100, (99, 6, -5))
t(9223372036854775808, 6, -5, 2147483647, (2147483646, 6, -5))
t(9223372036854775808, 6, -5, 9223372036854775808, (9223372036854775807, 6, -5))
t(9223372036854775808, 6, -3, 0, (-1, -1, -3))
t(9223372036854775808, 6, -3, 1, (0, 0, -3))
t(9223372036854775808, 6, -3, 5, (4, 4, -3))
t(9223372036854775808, 6, -3, 10, (9, 6, -3))
t(9223372036854775808, 6, -3, 100, (99, 6, -3))
t(9223372036854775808, 6, -3, 2147483647, (2147483646, 6, -3))
t(9223372036854775808, 6, -3, 9223372036854775808, (9223372036854775807, 6, -3))
t(9223372036854775808, 6, -1, 0, (-1, -1, -1))
t(9223372036854775808, 6, -1, 1, (0, 0, -1))
t(9223372036854775808, 6, -1, 5, (4, 4, -1))
t(9223372036854775808, 6, -1, 10, (9, 6, -1))
t(9223372036854775808, 6, -1, 100, (99, 6, -1))
t(9223372036854775808, 6, -1, 2147483647, (2147483646, 6, -1))
t(9223372036854775808, 6, -1, 9223372036854775808, (9223372036854775807, 6, -1))
t(9223372036854775808, 6, 1, 0, (0, 0, 1))
t(9223372036854775808, 6, 1, 1, (1, 1, 1))
t(9223372036854775808, 6, 1, 5, (5, 5, 1))
t(9223372036854775808, 6, 1, 10, (10, 6, 1))
t(9223372036854775808, 6, 1, 100, (100, 6, 1))
t(9223372036854775808, 6, 1, 2147483647, (2147483647, 6, 1))
t(9223372036854775808, 6, 1, 9223372036854775808, (9223372036854775808, 6, 1))
t(9223372036854775808, 6, 5, 0, (0, 0, 5))
t(9223372036854775808, 6, 5, 1, (1, 1, 5))
t(9223372036854775808, 6, 5, 5, (5, 5, 5))
t(9223372036854775808, 6, 5, 10, (10, 6, 5))
t(9223372036854775808, 6, 5, 100, (100, 6, 5))
t(9223372036854775808, 6, 5, 2147483647, (2147483647, 6, 5))
t(9223372036854775808, 6, 5, 9223372036854775808, (9223372036854775808, 6, 5))
t(9223372036854775808, 6, 20, 0, (0, 0, 20))
t(9223372036854775808, 6, 20, 1, (1, 1, 20))
t(9223372036854775808, 6, 20, 5, (5, 5, 20))
t(9223372036854775808, 6, 20, 10, (10, 6, 20))
t(9223372036854775808, 6, 20, 100, (100, 6, 20))
t(9223372036854775808, 6, 20, 2147483647, (2147483647, 6, 20))
t(9223372036854775808, 6, 20, 9223372036854775808, (9223372036854775808, 6, 20))
t(9223372036854775808, 6, 2147483647, 0, (0, 0, 2147483647))
t(9223372036854775808, 6, 2147483647, 1, (1, 1, 2147483647))
t(9223372036854775808, 6, 2147483647, 5, (5, 5, 2147483647))
t(9223372036854775808, 6, 2147483647, 10, (10, 6, 2147483647))
t(9223372036854775808, 6, 2147483647, 100, (100, 6, 2147483647))
t(9223372036854775808, 6, 2147483647, 2147483647, (2147483647, 6, 2147483647))
t(9223372036854775808, 6, 2147483647, 9223372036854775808, (9223372036854775808, 6, 2147483647))
t(9223372036854775808, 6, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(9223372036854775808, 6, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(9223372036854775808, 6, 9223372036854775808, 5, (5, 5, 9223372036854775808))
t(9223372036854775808, 6, 9223372036854775808, 10, (10, 6, 9223372036854775808))
t(9223372036854775808, 6, 9223372036854775808, 100, (100, 6, 9223372036854775808))
t(9223372036854775808, 6, 9223372036854775808, 2147483647, (2147483647, 6, 9223372036854775808))
t(9223372036854775808, 6, 9223372036854775808, 9223372036854775808, (9223372036854775808, 6, 9223372036854775808))
t(9223372036854775808, 10, None, 0, (0, 0, 1))
t(9223372036854775808, 10, None, 1, (1, 1, 1))
t(9223372036854775808, 10, None, 5, (5, 5, 1))
t(9223372036854775808, 10, None, 10, (10, 10, 1))
t(9223372036854775808, 10, None, 100, (100, 10, 1))
t(9223372036854775808, 10, None, 2147483647, (2147483647, 10, 1))
t(9223372036854775808, 10, None, 9223372036854775808, (9223372036854775808, 10, 1))
t(9223372036854775808, 10, -5, 0, (-1, -1, -5))
t(9223372036854775808, 10, -5, 1, (0, 0, -5))
t(9223372036854775808, 10, -5, 5, (4, 4, -5))
t(9223372036854775808, 10, -5, 10, (9, 9, -5))
t(9223372036854775808, 10, -5, 100, (99, 10, -5))
t(9223372036854775808, 10, -5, 2147483647, (2147483646, 10, -5))
t(9223372036854775808, 10, -5, 9223372036854775808, (9223372036854775807, 10, -5))
t(9223372036854775808, 10, -3, 0, (-1, -1, -3))
t(9223372036854775808, 10, -3, 1, (0, 0, -3))
t(9223372036854775808, 10, -3, 5, (4, 4, -3))
t(9223372036854775808, 10, -3, 10, (9, 9, -3))
t(9223372036854775808, 10, -3, 100, (99, 10, -3))
t(9223372036854775808, 10, -3, 2147483647, (2147483646, 10, -3))
t(9223372036854775808, 10, -3, 9223372036854775808, (9223372036854775807, 10, -3))
t(9223372036854775808, 10, -1, 0, (-1, -1, -1))
t(9223372036854775808, 10, -1, 1, (0, 0, -1))
t(9223372036854775808, 10, -1, 5, (4, 4, -1))
t(9223372036854775808, 10, -1, 10, (9, 9, -1))
t(9223372036854775808, 10, -1, 100, (99, 10, -1))
t(9223372036854775808, 10, -1, 2147483647, (2147483646, 10, -1))
t(9223372036854775808, 10, -1, 9223372036854775808, (9223372036854775807, 10, -1))
t(9223372036854775808, 10, 1, 0, (0, 0, 1))
t(9223372036854775808, 10, 1, 1, (1, 1, 1))
t(9223372036854775808, 10, 1, 5, (5, 5, 1))
t(9223372036854775808, 10, 1, 10, (10, 10, 1))
t(9223372036854775808, 10, 1, 100, (100, 10, 1))
t(9223372036854775808, 10, 1, 2147483647, (2147483647, 10, 1))
t(9223372036854775808, 10, 1, 9223372036854775808, (9223372036854775808, 10, 1))
t(9223372036854775808, 10, 5, 0, (0, 0, 5))
t(9223372036854775808, 10, 5, 1, (1, 1, 5))
t(9223372036854775808, 10, 5, 5, (5, 5, 5))
t(9223372036854775808, 10, 5, 10, (10, 10, 5))
t(9223372036854775808, 10, 5, 100, (100, 10, 5))
t(9223372036854775808, 10, 5, 2147483647, (2147483647, 10, 5))
t(9223372036854775808, 10, 5, 9223372036854775808, (9223372036854775808, 10, 5))
t(9223372036854775808, 10, 20, 0, (0, 0, 20))
t(9223372036854775808, 10, 20, 1, (1, 1, 20))
t(9223372036854775808, 10, 20, 5, (5, 5, 20))
t(9223372036854775808, 10, 20, 10, (10, 10, 20))
t(9223372036854775808, 10, 20, 100, (100, 10, 20))
t(9223372036854775808, 10, 20, 2147483647, (2147483647, 10, 20))
t(9223372036854775808, 10, 20, 9223372036854775808, (9223372036854775808, 10, 20))
t(9223372036854775808, 10, 2147483647, 0, (0, 0, 2147483647))
t(9223372036854775808, 10, 2147483647, 1, (1, 1, 2147483647))
t(9223372036854775808, 10, 2147483647, 5, (5, 5, 2147483647))
t(9223372036854775808, 10, 2147483647, 10, (10, 10, 2147483647))
t(9223372036854775808, 10, 2147483647, 100, (100, 10, 2147483647))
t(9223372036854775808, 10, 2147483647, 2147483647, (2147483647, 10, 2147483647))
t(9223372036854775808, 10, 2147483647, 9223372036854775808, (9223372036854775808, 10, 2147483647))
t(9223372036854775808, 10, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(9223372036854775808, 10, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(9223372036854775808, 10, 9223372036854775808, 5, (5, 5, 9223372036854775808))
t(9223372036854775808, 10, 9223372036854775808, 10, (10, 10, 9223372036854775808))
t(9223372036854775808, 10, 9223372036854775808, 100, (100, 10, 9223372036854775808))
t(9223372036854775808, 10, 9223372036854775808, 2147483647, (2147483647, 10, 9223372036854775808))
t(9223372036854775808, 10, 9223372036854775808, 9223372036854775808, (9223372036854775808, 10, 9223372036854775808))
t(9223372036854775808, 2147483647, None, 0, (0, 0, 1))
t(9223372036854775808, 2147483647, None, 1, (1, 1, 1))
t(9223372036854775808, 2147483647, None, 5, (5, 5, 1))
t(9223372036854775808, 2147483647, None, 10, (10, 10, 1))
t(9223372036854775808, 2147483647, None, 100, (100, 100, 1))
t(9223372036854775808, 2147483647, None, 2147483647, (2147483647, 2147483647, 1))
t(9223372036854775808, 2147483647, None, 9223372036854775808, (9223372036854775808, 2147483647, 1))
t(9223372036854775808, 2147483647, -5, 0, (-1, -1, -5))
t(9223372036854775808, 2147483647, -5, 1, (0, 0, -5))
t(9223372036854775808, 2147483647, -5, 5, (4, 4, -5))
t(9223372036854775808, 2147483647, -5, 10, (9, 9, -5))
t(9223372036854775808, 2147483647, -5, 100, (99, 99, -5))
t(9223372036854775808, 2147483647, -5, 2147483647, (2147483646, 2147483646, -5))
t(9223372036854775808, 2147483647, -5, 9223372036854775808, (9223372036854775807, 2147483647, -5))
t(9223372036854775808, 2147483647, -3, 0, (-1, -1, -3))
t(9223372036854775808, 2147483647, -3, 1, (0, 0, -3))
t(9223372036854775808, 2147483647, -3, 5, (4, 4, -3))
t(9223372036854775808, 2147483647, -3, 10, (9, 9, -3))
t(9223372036854775808, 2147483647, -3, 100, (99, 99, -3))
t(9223372036854775808, 2147483647, -3, 2147483647, (2147483646, 2147483646, -3))
t(9223372036854775808, 2147483647, -3, 9223372036854775808, (9223372036854775807, 2147483647, -3))
t(9223372036854775808, 2147483647, -1, 0, (-1, -1, -1))
t(9223372036854775808, 2147483647, -1, 1, (0, 0, -1))
t(9223372036854775808, 2147483647, -1, 5, (4, 4, -1))
t(9223372036854775808, 2147483647, -1, 10, (9, 9, -1))
t(9223372036854775808, 2147483647, -1, 100, (99, 99, -1))
t(9223372036854775808, 2147483647, -1, 2147483647, (2147483646, 2147483646, -1))
t(9223372036854775808, 2147483647, -1, 9223372036854775808, (9223372036854775807, 2147483647, -1))
t(9223372036854775808, 2147483647, 1, 0, (0, 0, 1))
t(9223372036854775808, 2147483647, 1, 1, (1, 1, 1))
t(9223372036854775808, 2147483647, 1, 5, (5, 5, 1))
t(9223372036854775808, 2147483647, 1, 10, (10, 10, 1))
t(9223372036854775808, 2147483647, 1, 100, (100, 100, 1))
t(9223372036854775808, 2147483647, 1, 2147483647, (2147483647, 2147483647, 1))
t(9223372036854775808, 2147483647, 1, 9223372036854775808, (9223372036854775808, 2147483647, 1))
t(9223372036854775808, 2147483647, 5, 0, (0, 0, 5))
t(9223372036854775808, 2147483647, 5, 1, (1, 1, 5))
t(9223372036854775808, 2147483647, 5, 5, (5, 5, 5))
t(9223372036854775808, 2147483647, 5, 10, (10, 10, 5))
t(9223372036854775808, 2147483647, 5, 100, (100, 100, 5))
t(9223372036854775808, 2147483647, 5, 2147483647, (2147483647, 2147483647, 5))
t(9223372036854775808, 2147483647, 5, 9223372036854775808, (9223372036854775808, 2147483647, 5))
t(9223372036854775808, 2147483647, 20, 0, (0, 0, 20))
t(9223372036854775808, 2147483647, 20, 1, (1, 1, 20))
t(9223372036854775808, 2147483647, 20, 5, (5, 5, 20))
t(9223372036854775808, 2147483647, 20, 10, (10, 10, 20))
t(9223372036854775808, 2147483647, 20, 100, (100, 100, 20))
t(9223372036854775808, 2147483647, 20, 2147483647, (2147483647, 2147483647, 20))
t(9223372036854775808, 2147483647, 20, 9223372036854775808, (9223372036854775808, 2147483647, 20))
t(9223372036854775808, 2147483647, 2147483647, 0, (0, 0, 2147483647))
t(9223372036854775808, 2147483647, 2147483647, 1, (1, 1, 2147483647))
t(9223372036854775808, 2147483647, 2147483647, 5, (5, 5, 2147483647))
t(9223372036854775808, 2147483647, 2147483647, 10, (10, 10, 2147483647))
t(9223372036854775808, 2147483647, 2147483647, 100, (100, 100, 2147483647))
t(9223372036854775808, 2147483647, 2147483647, 2147483647, (2147483647, 2147483647, 2147483647))
t(9223372036854775808, 2147483647, 2147483647, 9223372036854775808, (9223372036854775808, 2147483647, 2147483647))
t(9223372036854775808, 2147483647, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(9223372036854775808, 2147483647, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(9223372036854775808, 2147483647, 9223372036854775808, 5, (5, 5, 9223372036854775808))
t(9223372036854775808, 2147483647, 9223372036854775808, 10, (10, 10, 9223372036854775808))
t(9223372036854775808, 2147483647, 9223372036854775808, 100, (100, 100, 9223372036854775808))
t(9223372036854775808, 2147483647, 9223372036854775808, 2147483647, (2147483647, 2147483647, 9223372036854775808))
t(9223372036854775808, 2147483647, 9223372036854775808, 9223372036854775808, (9223372036854775808, 2147483647, 9223372036854775808))
t(9223372036854775808, 9223372036854775808, None, 0, (0, 0, 1))
t(9223372036854775808, 9223372036854775808, None, 1, (1, 1, 1))
t(9223372036854775808, 9223372036854775808, None, 5, (5, 5, 1))
t(9223372036854775808, 9223372036854775808, None, 10, (10, 10, 1))
t(9223372036854775808, 9223372036854775808, None, 100, (100, 100, 1))
t(9223372036854775808, 9223372036854775808, None, 2147483647, (2147483647, 2147483647, 1))
t(9223372036854775808, 9223372036854775808, None, 9223372036854775808, (9223372036854775808, 9223372036854775808, 1))
t(9223372036854775808, 9223372036854775808, -5, 0, (-1, -1, -5))
t(9223372036854775808, 9223372036854775808, -5, 1, (0, 0, -5))
t(9223372036854775808, 9223372036854775808, -5, 5, (4, 4, -5))
t(9223372036854775808, 9223372036854775808, -5, 10, (9, 9, -5))
t(9223372036854775808, 9223372036854775808, -5, 100, (99, 99, -5))
t(9223372036854775808, 9223372036854775808, -5, 2147483647, (2147483646, 2147483646, -5))
t(9223372036854775808, 9223372036854775808, -5, 9223372036854775808, (9223372036854775807, 9223372036854775807, -5))
t(9223372036854775808, 9223372036854775808, -3, 0, (-1, -1, -3))
t(9223372036854775808, 9223372036854775808, -3, 1, (0, 0, -3))
t(9223372036854775808, 9223372036854775808, -3, 5, (4, 4, -3))
t(9223372036854775808, 9223372036854775808, -3, 10, (9, 9, -3))
t(9223372036854775808, 9223372036854775808, -3, 100, (99, 99, -3))
t(9223372036854775808, 9223372036854775808, -3, 2147483647, (2147483646, 2147483646, -3))
t(9223372036854775808, 9223372036854775808, -3, 9223372036854775808, (9223372036854775807, 9223372036854775807, -3))
t(9223372036854775808, 9223372036854775808, -1, 0, (-1, -1, -1))
t(9223372036854775808, 9223372036854775808, -1, 1, (0, 0, -1))
t(9223372036854775808, 9223372036854775808, -1, 5, (4, 4, -1))
t(9223372036854775808, 9223372036854775808, -1, 10, (9, 9, -1))
t(9223372036854775808, 9223372036854775808, -1, 100, (99, 99, -1))
t(9223372036854775808, 9223372036854775808, -1, 2147483647, (2147483646, 2147483646, -1))
t(9223372036854775808, 9223372036854775808, -1, 9223372036854775808, (9223372036854775807, 9223372036854775807, -1))
t(9223372036854775808, 9223372036854775808, 1, 0, (0, 0, 1))
t(9223372036854775808, 9223372036854775808, 1, 1, (1, 1, 1))
t(9223372036854775808, 9223372036854775808, 1, 5, (5, 5, 1))
t(9223372036854775808, 9223372036854775808, 1, 10, (10, 10, 1))
t(9223372036854775808, 9223372036854775808, 1, 100, (100, 100, 1))
t(9223372036854775808, 9223372036854775808, 1, 2147483647, (2147483647, 2147483647, 1))
t(9223372036854775808, 9223372036854775808, 1, 9223372036854775808, (9223372036854775808, 9223372036854775808, 1))
t(9223372036854775808, 9223372036854775808, 5, 0, (0, 0, 5))
t(9223372036854775808, 9223372036854775808, 5, 1, (1, 1, 5))
t(9223372036854775808, 9223372036854775808, 5, 5, (5, 5, 5))
t(9223372036854775808, 9223372036854775808, 5, 10, (10, 10, 5))
t(9223372036854775808, 9223372036854775808, 5, 100, (100, 100, 5))
t(9223372036854775808, 9223372036854775808, 5, 2147483647, (2147483647, 2147483647, 5))
t(9223372036854775808, 9223372036854775808, 5, 9223372036854775808, (9223372036854775808, 9223372036854775808, 5))
t(9223372036854775808, 9223372036854775808, 20, 0, (0, 0, 20))
t(9223372036854775808, 9223372036854775808, 20, 1, (1, 1, 20))
t(9223372036854775808, 9223372036854775808, 20, 5, (5, 5, 20))
t(9223372036854775808, 9223372036854775808, 20, 10, (10, 10, 20))
t(9223372036854775808, 9223372036854775808, 20, 100, (100, 100, 20))
t(9223372036854775808, 9223372036854775808, 20, 2147483647, (2147483647, 2147483647, 20))
t(9223372036854775808, 9223372036854775808, 20, 9223372036854775808, (9223372036854775808, 9223372036854775808, 20))
t(9223372036854775808, 9223372036854775808, 2147483647, 0, (0, 0, 2147483647))
t(9223372036854775808, 9223372036854775808, 2147483647, 1, (1, 1, 2147483647))
t(9223372036854775808, 9223372036854775808, 2147483647, 5, (5, 5, 2147483647))
t(9223372036854775808, 9223372036854775808, 2147483647, 10, (10, 10, 2147483647))
t(9223372036854775808, 9223372036854775808, 2147483647, 100, (100, 100, 2147483647))
t(9223372036854775808, 9223372036854775808, 2147483647, 2147483647, (2147483647, 2147483647, 2147483647))
t(9223372036854775808, 9223372036854775808, 2147483647, 9223372036854775808, (9223372036854775808, 9223372036854775808, 2147483647))
t(9223372036854775808, 9223372036854775808, 9223372036854775808, 0, (0, 0, 9223372036854775808))
t(9223372036854775808, 9223372036854775808, 9223372036854775808, 1, (1, 1, 9223372036854775808))
t(9223372036854775808, 9223372036854775808, 9223372036854775808, 5, (5, 5, 9223372036854775808))
t(9223372036854775808, 9223372036854775808, 9223372036854775808, 10, (10, 10, 9223372036854775808))
t(9223372036854775808, 9223372036854775808, 9223372036854775808, 100, (100, 100, 9223372036854775808))
t(9223372036854775808, 9223372036854775808, 9223372036854775808, 2147483647, (2147483647, 2147483647, 9223372036854775808))
t(9223372036854775808, 9223372036854775808, 9223372036854775808, 9223372036854775808, (9223372036854775808, 9223372036854775808, 9223372036854775808))
|
"""Test package.
Modules:
conftest
"""
|
casa = float(input('Qual o valor da casa? R$:'))
salario = float(input('Quanto é o seu salario? R$:'))
anos = int(input('Em quantas parcelas você vai pagar?:'))
prestação = casa/(anos*12)
minimo = salario*30/100
if prestação <= minimo:
print('você pode finaciar essa casa')
print('A prestação será de {:.2f}'.format(prestação, anos))
else:
print('Você não pode financiar essa casa')
|
# for index, character in enumerate("abcdefgh"):
# print(index, character)
for t in enumerate("abcdefgh"):
index, character = t
print(index, character)
print(t)
# the output has 8 tuples
# unpacking tuples is a valuable technique
index, character = [0, 'a']
print(index)
print(character)
|
user_bin = int(input(), 2)
one = int(1)
zero = int(0)
user_int = int(user_bin)
user_int = int(user_int * 1)
oct_str = str(oct(user_int))
print(oct_str[2:])
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
if __name__ == '__main__':
n = int(input("Введите число n:"))
r = n % 7
k = n // 7
if r == 0:
print(f"n = 7 * {k}")
else:
print(f"n = 7 * {k} + {r}")
|
# Pre-built tokens for each version of docreader (taken from Fred issues 17, 28)
# V10 & V11 tokens from Fred 28 DOCREADER.
TOKENSV10 = {129: b'address ', 130: b'screens ', 131: b'screen ', 132: b' issue ', 133: b'memory ', 134: b'screen ', 135: b" don't ", 136: b' SAMCO ', 137: b' SAMCo ', 138: b'Coupe ', 139: b' FRED ', 140: b'bytes ', 141: b' data ', 142: b" it's ", 143: b' from ', 144: b' SAM ', 145: b'\x7f 199', 146: b'code ', 147: b'Code ', 148: b'Data ', 149: b'ould ', 150: b' out ', 151: b' had ', 152: b'Coupe', 153: b'SAMCO', 154: b'SAMCo', 155: b'The ', 156: b'the ', 157: b'tion', 158: b' at ', 159: b'empt', 160: b'\x7f199', 161: b'comp', 162: b'Comp', 163: b'cons', 164: b'Cons', 165: b'... ', 166: b' you', 167: b"'ll ", 168: b'ere ', 169: b'You ', 170: b' it ', 171: b'.) ', 172: b"n't", 173: b'ity', 174: b'At ', 175: b'199', 176: b'ing', 177: b'een', 178: b'and', 179: b'And', 180: b'ght', 181: b'mag', 182: b'pro', 183: b'oum', 184: b'ove', 185: b'age', 186: b' - ', 187: b"'m ", 188: b"'s ", 189: b'You', 190: b' I ', 191: b'ant', 192: b'ial', 193: b' ', 194: b' (', 195: b'er', 196: b', ', 197: b' ', 198: b'. ', 199: b'! ', 200: b'? ', 201: b'A ', 202: b'or', 203: b'ss', 204: b'ee', 205: b'ch', 206: b'sh', 207: b'un', 208: b'ly', 209: b'th', 210: b'Th', 211: b'To', 212: b'to', 213: b'ow', 214: b'qu', 215: b'Qu', 216: b'Be', 217: b'be', 218: b'Up', 219: b'up', 220: b'Re', 221: b're', 222: b'en', 223: b'En', 224: b'us', 225: b'Us', 226: b'ed', 227: b'oo', 228: b'."', 229: b'!"', 230: b'?"', 231: b'; ', 232: b': ', 233: b') ', 234: b'pe', 235: b'Pe', 236: b'ir', 237: b'Ir', 238: b'my', 239: b'pp', 240: b'I ', 241: b'dd', 242: b'ea', 243: b'ff', 244: b'ss', 245: b'it', 246: b'rr', 247: b'at', 248: b'At', 249: b'e ', 250: b'y ', 251: b'ic'}
TOKENSV12 = {129: b"you'll", 130: b'ould', 131: b'ouse', 132: b'cons', 133: b'comp', 134: b"I'll", 135: b'entr', 136: b'ight', 137: b' ', 138: b'ent', 139: b'ing', 140: b'out', 141: b'ang', 142: b'cei', 143: b'ial', 144: b'ant', 145: b'mag', 146: b'pro', 147: b'age', 148: b"I'm", 149: b"'ll", 150: b'had', 151: b"n't", 152: b'ean', 153: b'eem', 154: b'ove', 155: b"I'd", 156: b'een', 157: b'all', 158: b'oup', 159: b'SAM', 160: b'the', 161: b'The', 162: b'dis', 163: b'key', 164: b'ave', 165: b'opy', 166: b'oil', 167: b'air', 168: b'eer', 169: b'ure', 170: b'ion', 171: b'vis', 172: b'ban', 173: b'mon', 174: b'hor', 175: b'ard', 176: b'ish', 177: b'nal', 178: b' ', 179: b'. ', 180: b', ', 181: b"'s", 182: b'om', 183: b'sh', 184: b'ch', 185: b'ew', 186: b'ng', 187: b'ic', 188: b'tr', 189: b'cr', 190: b'it', 191: b'ff', 192: b'ss', 193: b'ee', 194: b'oo', 195: b'ou', 196: b'ie', 197: b'ei', 198: b"'m", 199: b'nt', 200: b'fl', 201: b'ph', 202: b'qu', 203: b'be', 204: b'up', 205: b're', 206: b'en', 207: b'us', 208: b'ed', 209: b'to', 210: b'ow', 211: b'rr', 212: b'ea', 213: b'ar', 214: b'pe', 215: b'mu', 216: b'th', 217: b'Th', 218: b'll', 219: b'ff', 220: b'In', 221: b'in', 222: b'pp', 223: b'my', 224: b'I ', 225: b'or', 226: b'on', 227: b'et', 228: b'sc', 229: b'ut', 230: b'ex', 231: b'ce', 232: b'ck', 233: b'at', 234: b'At', 235: b'A ', 236: b'a ', 237: b'It', 238: b'is', 239: b'Is', 240: b'su', 241: b'Co', 242: b'er', 243: b'de', 244: b'di', 245: b'bi', 246: b'ey', 247: b'sp', 248: b'go', 249: b'aw', 250: b'ay', 251: b'il', 252: b'op', 253: b'an', 254: b'oc', 255: b'id'}
# The following sequence precedes/follows the table in V10/V12, not an actual 'marker' but works.
TOKENSV10_MARKER = (b'\x8D\x01\x8F\x01\x91\x01\x93\x01\x95\x01', b'<<<<<')
TOKENSV12_MARKER = (b'\x2F\x01\x31\x01\x33\x01\x35\x01\x37\x01', b'<<<<<')
def get_token_dictionary(data):
for before, after in [TOKENSV10_MARKER, TOKENSV12_MARKER]:
try:
start = data.index(before)
end = data.index(after)
if start and end:
start += len(before)
return data[start:end]
except ValueError:
pass
else:
raise Exception("Token dictionary table not found.")
def build_token_dictionary(data):
"""
Build a token dictionary from the supplied docread binary.
Works for v1.0, v1.1 and v1.2 doc readers.
"""
# data is bytestring, isolate substitutions (byte 918 onwards)
data = get_token_dictionary(data)
tokenix = 129 # tokens start at 129.
tokens = {}
token = b''
i = 0
while i < len(data):
byte = data[i]
if byte & 0x80:
# High bit set, subtract, store, and get ready for next token.
byte -= 0x80
token += bytes([byte])
tokens[tokenix] = token
tokenix += 1
token = b''
else:
token += bytes([byte])
i += 1
return tokens
|
controller = '''
from fastapi import APIRouter, HTTPException,Cookie, Depends,Header,File, Body,Query
from starlette.responses import JSONResponse
from core.factories import settings
import httpx
router = APIRouter()
'''
|
# parse file
file_names = []
with open("train_file_controller.txt", 'r') as f:
for line in f:
file_names.append(line.strip().replace('\n', ''))
with open("val_file_controller.txt", 'r') as f:
for line in f:
file_names.append(line.strip().replace('\n', ''))
file_names.sort()
for file in file_names:
print(file)
print("hello")
|
__all__ = ['InputError']
class InputError(BaseException):
def __init__(self, errors):
self.errors = errors
super().__init__()
|
# Шаховий король ходить по горизонталі, вертикалі та діагоналі, але тільки на 1 клітинку. Дано дві різні клітинки шахової дошки, визначте, чи може король потрапити з першої клітинки на другу за один хід.
## Формат введення
# Програма отримує на вхід чотири числа від 1 до 8 кожне, що задають номер стовпця і номер рядка спочатку для першої клітинки, потім для другої клітинки.
## Формат виведення
# Програма повинна вивести YES, якщо з першої клітини ходом короля можна потрапити в другу або NO в іншому випадку.
x1 = int(input())
y1 = int(input())
x2 = int(input())
y2 = int(input())
if abs(x2 - x1) == 1 and abs(y2 - y1) == 1:
print("YES")
elif x2 - x1 == 0 and abs(y2 - y1) == 1:
print("YES")
elif y2 - y1 == 0 and abs(x2 - x1) == 1:
print("YES")
else:
print("NO")
|
class BadGrammar(Exception):
"""The rule definitions passed to Grammar contain syntax errors."""
class VisitationError(Exception):
"""Something went wrong while traversing a parse tree.
This exception exists to augment an underlying exception with information
about where in the parse tree the error occurred. Otherwise, it could be
tiresome to figure out what went wrong; you'd have to play back the whole
tree traversal in your head.
"""
# TODO: Make sure this is pickleable. Probably use @property pattern. Make
# the original exc and node available on it if they don't cause a whole
# raft of stack frames to be retained.
def __init__(self, exc, exc_class, node):
"""Construct.
:arg exc: What went wrong. We wrap this and add more info.
:arg node: The node at which the error occurred
"""
self.original_class = exc_class
super(VisitationError, self).__init__(
'%s: %s\n\n'
'Parse tree:\n'
'%s' %
(exc_class.__name__,
exc,
node.prettily(error=node)))
class UndefinedLabel(VisitationError):
"""A rule referenced in a grammar was never defined.
Circular references and forward references are okay, but you have to define
stuff at some point.
"""
def __init__(self, label):
self.label = label
def __unicode__(self):
return u'The label "%s" was never defined.' % self.label
__str__ = __unicode__
|
"""
백준 4153번 : 직각 삼각형
"""
while True:
numbers = list(map(int, input( ).split( )))
if numbers[0] == numbers[1] == numbers[2] == 0:
break
else:
sqr_num = [x ** 2 for x in numbers]
biggest = max(sqr_num)
sqr_num.remove(biggest)
if biggest == sum(sqr_num):
print("right")
else:
print("wrong")
|
#
# PySNMP MIB module PDN-CP-IWF-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/PDN-CP-IWF-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:29:19 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, ValueRangeConstraint, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint")
ifIndex, InterfaceIndex = mibBuilder.importSymbols("IF-MIB", "ifIndex", "InterfaceIndex")
pdnCpIwf, = mibBuilder.importSymbols("PDN-HEADER-MIB", "pdnCpIwf")
SwitchState, = mibBuilder.importSymbols("PDN-TC", "SwitchState")
NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance")
MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity, Gauge32, ModuleIdentity, TimeTicks, Counter32, IpAddress, iso, Integer32, NotificationType, Bits, Counter64, MibIdentifier, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity", "Gauge32", "ModuleIdentity", "TimeTicks", "Counter32", "IpAddress", "iso", "Integer32", "NotificationType", "Bits", "Counter64", "MibIdentifier", "Unsigned32")
TextualConvention, RowStatus, DisplayString, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "RowStatus", "DisplayString", "TruthValue")
pdnCpIwfMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1))
pdnCpIwfMIB.setRevisions(('2004-12-02 17:00', '2004-10-07 11:00', '2004-08-30 11:00', '2004-07-15 00:00', '2004-03-22 00:00',))
if mibBuilder.loadTexts: pdnCpIwfMIB.setLastUpdated('200412021700Z')
if mibBuilder.loadTexts: pdnCpIwfMIB.setOrganization('Paradyne Networks MIB Working Group Other information about group editing the MIB')
pdnCpIwfNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 0))
pdnCpIwfMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1))
pdnCpIwfMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 2))
pdnCpIwfConfigObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1))
pdnCpIwfTestObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 2))
pdnCpIwfStatsObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3))
class CpIwfRegion(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2))
namedValues = NamedValues(("usa", 1), ("canada", 2))
class GatewayProtocol(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))
namedValues = NamedValues(("lescas", 1), ("voiceband", 2), ("mgcp", 3), ("sip", 4))
class HookState(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3))
namedValues = NamedValues(("onhook", 1), ("offhook", 2), ("ringground", 3))
class PotsSignaling(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2))
namedValues = NamedValues(("loopstart", 1), ("groundstart", 2))
class ControlProtocol(TextualConvention, Bits):
status = 'current'
namedValues = NamedValues(("cas", 0), ("eoc", 1), ("ccselcp", 2))
class VoiceEncoding(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2))
namedValues = NamedValues(("g711", 0), ("g726", 1), ("g729", 2))
class PdnPotsTestTypes(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3))
namedValues = NamedValues(("noTest", 1), ("loopback", 2), ("ringsignal", 3))
pdnCpIwfTotalNumber = MibScalar((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnCpIwfTotalNumber.setStatus('current')
pdnCpIwfIndexNext = MibScalar((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnCpIwfIndexNext.setStatus('current')
pdnCpIwfRegion = MibScalar((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 3), CpIwfRegion()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pdnCpIwfRegion.setStatus('current')
pdnCpIwfTable = MibTable((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 4), )
if mibBuilder.loadTexts: pdnCpIwfTable.setStatus('current')
pdnCpIwfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 4, 1), ).setIndexNames((0, "PDN-CP-IWF-MIB", "pdnCpIwfIndex"))
if mibBuilder.loadTexts: pdnCpIwfEntry.setStatus('current')
pdnCpIwfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647)))
if mibBuilder.loadTexts: pdnCpIwfIndex.setStatus('current')
pdnCpIwfIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 4, 1, 2), InterfaceIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnCpIwfIfIndex.setStatus('current')
pdnCpIwfRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 4, 1, 3), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: pdnCpIwfRowStatus.setStatus('current')
pdnCpIwfNumPotsAssigned = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 24))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnCpIwfNumPotsAssigned.setStatus('current')
pdnCpIwfGatewayProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 4, 1, 5), GatewayProtocol()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: pdnCpIwfGatewayProtocol.setStatus('current')
pdnCpIwfAtmBLESCapability = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 4, 1, 6), ControlProtocol()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnCpIwfAtmBLESCapability.setStatus('current')
pdnCpIwfSscsPredefinedProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 4, 1, 7), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pdnCpIwfSscsPredefinedProfile.setStatus('current')
pdnCpIwfJitterBufferLength = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 4, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 120))).setUnits('Milliseconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: pdnCpIwfJitterBufferLength.setStatus('current')
pdnCpIwfMappingTable = MibTable((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 5), )
if mibBuilder.loadTexts: pdnCpIwfMappingTable.setStatus('current')
pdnCpIwfMappingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 5, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: pdnCpIwfMappingEntry.setStatus('current')
pdnCpIwfMappingIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnCpIwfMappingIndex.setStatus('current')
pdnPotsPortTable = MibTable((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 6), )
if mibBuilder.loadTexts: pdnPotsPortTable.setStatus('current')
pdnPotsPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 6, 1), ).setIndexNames((0, "PDN-CP-IWF-MIB", "pdnPotsPortIfIndex"))
if mibBuilder.loadTexts: pdnPotsPortEntry.setStatus('current')
pdnPotsPortIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 6, 1, 1), InterfaceIndex())
if mibBuilder.loadTexts: pdnPotsPortIfIndex.setStatus('current')
pdnPotsPortCpIwfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 6, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pdnPotsPortCpIwfIndex.setStatus('current')
pdnPotsPortHookStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 6, 1, 3), HookState()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnPotsPortHookStatus.setStatus('current')
pdnPotsPortSignalingMethod = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 6, 1, 4), PotsSignaling()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pdnPotsPortSignalingMethod.setStatus('current')
pdnPotsPortTxGain = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 6, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-24, 23))).setUnits('dB').setMaxAccess("readwrite")
if mibBuilder.loadTexts: pdnPotsPortTxGain.setStatus('current')
pdnPotsPortRxGain = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 6, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-24, 23))).setUnits('dB').setMaxAccess("readwrite")
if mibBuilder.loadTexts: pdnPotsPortRxGain.setStatus('current')
pdnPotsPortCustInfo = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 6, 1, 7), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pdnPotsPortCustInfo.setStatus('current')
pdnPotsPortG729VoiceCodec = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 6, 1, 8), SwitchState()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pdnPotsPortG729VoiceCodec.setStatus('current')
pdnPotsPortPreferedVoiceCodec = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 6, 1, 9), VoiceEncoding()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pdnPotsPortPreferedVoiceCodec.setStatus('current')
pdnPotsPortPreferredPacketPeriod = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 6, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setUnits('Milliseconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: pdnPotsPortPreferredPacketPeriod.setStatus('current')
pdnPotsPortSilenceSuppression = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 6, 1, 11), SwitchState()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pdnPotsPortSilenceSuppression.setStatus('current')
pdnPotsPortActualVoiceCodec = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 6, 1, 12), VoiceEncoding()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnPotsPortActualVoiceCodec.setStatus('current')
pdnPotsPortCallElapsedTime = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 6, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setUnits('Seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnPotsPortCallElapsedTime.setStatus('current')
pdnPotsPortModemDetected = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 6, 1, 14), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnPotsPortModemDetected.setStatus('current')
pdnPotsPortEchoCanceller = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 6, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnPotsPortEchoCanceller.setStatus('current')
pdnPotsPortLocalEndName = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 6, 1, 16), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pdnPotsPortLocalEndName.setStatus('current')
pdnPotsPortActiveSoftswitch = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 1, 6, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("primary", 1), ("secondary", 2), ("none", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnPotsPortActiveSoftswitch.setStatus('current')
pdnCpIwfAal2StatsTable = MibTable((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 1), )
if mibBuilder.loadTexts: pdnCpIwfAal2StatsTable.setStatus('current')
pdnCpIwfAal2StatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: pdnCpIwfAal2StatsEntry.setStatus('current')
pdnCpIwfAal2CpsRxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 1, 1, 1), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnCpIwfAal2CpsRxPkts.setStatus('current')
pdnCpIwfAal2CpsTxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 1, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnCpIwfAal2CpsTxPkts.setStatus('current')
pdnCpIwfAal2CpsParityErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 1, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnCpIwfAal2CpsParityErrors.setStatus('current')
pdnCpIwfAal2CpsSeqNumErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 1, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnCpIwfAal2CpsSeqNumErrors.setStatus('current')
pdnCpIwfAal2CpsOsfMismatchErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 1, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnCpIwfAal2CpsOsfMismatchErrors.setStatus('current')
pdnCpIwfAal2CpsOsfErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 1, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnCpIwfAal2CpsOsfErrors.setStatus('current')
pdnCpIwfAal2CpsHecErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 1, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnCpIwfAal2CpsHecErrors.setStatus('current')
pdnCpIwfAal2CpsOversizeSduErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 1, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnCpIwfAal2CpsOversizeSduErrors.setStatus('current')
pdnCpIwfAal2CpsReassemblyErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 1, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnCpIwfAal2CpsReassemblyErrors.setStatus('current')
pdnCpIwfAal2CpsHecOverlapErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 1, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnCpIwfAal2CpsHecOverlapErrors.setStatus('current')
pdnCpIwfAal2CpsUuiErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 1, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnCpIwfAal2CpsUuiErrors.setStatus('current')
pdnCpIwfAal2CpsCidErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 1, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnCpIwfAal2CpsCidErrors.setStatus('current')
pdnPotsPortStatsTable = MibTable((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 2), )
if mibBuilder.loadTexts: pdnPotsPortStatsTable.setStatus('current')
pdnPotsPortStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: pdnPotsPortStatsEntry.setStatus('current')
pdnPotsPortTotalCalls = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 2, 1, 1), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnPotsPortTotalCalls.setStatus('current')
pdnPotsPortTotalCallsFailure = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 2, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnPotsPortTotalCallsFailure.setStatus('current')
pdnPotsPortTotalCallsDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 2, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnPotsPortTotalCallsDropped.setStatus('current')
pdnPotsPortInCallsReceived = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 2, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnPotsPortInCallsReceived.setStatus('current')
pdnPotsPortInCallsAnswered = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 2, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnPotsPortInCallsAnswered.setStatus('current')
pdnPotsPortInCallsConnected = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 2, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnPotsPortInCallsConnected.setStatus('current')
pdnPotsPortInCallsFailure = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 2, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnPotsPortInCallsFailure.setStatus('current')
pdnPotsPortOutCallsAttempted = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 2, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnPotsPortOutCallsAttempted.setStatus('current')
pdnPotsPortOutCallsAnswered = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 2, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnPotsPortOutCallsAnswered.setStatus('current')
pdnPotsPortOutCallsConnected = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 2, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnPotsPortOutCallsConnected.setStatus('current')
pdnPotsPortOutCallsFailure = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 2, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnPotsPortOutCallsFailure.setStatus('current')
pdnPotsPortPacketsSent = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 2, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnPotsPortPacketsSent.setStatus('current')
pdnPotsPortPacketsReceived = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 2, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnPotsPortPacketsReceived.setStatus('current')
pdnPotsPortPacketsLost = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 2, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnPotsPortPacketsLost.setStatus('current')
pdnPotsPortBytesSent = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 2, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnPotsPortBytesSent.setStatus('current')
pdnPotsPortBytesReceived = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 3, 2, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnPotsPortBytesReceived.setStatus('current')
pdnPotsTestTable = MibTable((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 2, 1), )
if mibBuilder.loadTexts: pdnPotsTestTable.setStatus('current')
pdnPotsTestEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: pdnPotsTestEntry.setStatus('current')
pdnPotsTestType = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 2, 1, 1, 1), PdnPotsTestTypes()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pdnPotsTestType.setStatus('current')
pdnPotsTestCmd = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("noOp", 1), ("start", 2), ("stop", 3), ("keepAlive", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pdnPotsTestCmd.setStatus('current')
pdnPotsTestStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 1, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("active", 1), ("inactive", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pdnPotsTestStatus.setStatus('current')
pdnCpIwfMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 2, 1))
pdnCpIwfMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 2, 2))
pdnCpIwfMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 2, 1, 1)).setObjects(("PDN-CP-IWF-MIB", "pdnCpIwfGeneralConfigGroup"), ("PDN-CP-IWF-MIB", "pdnCpIwfPotsPortConfigGroup"), ("PDN-CP-IWF-MIB", "pdnCpIwfAal2StatsGroup"), ("PDN-CP-IWF-MIB", "pdnCpIwfPotsPortStatsGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
pdnCpIwfMIBCompliance = pdnCpIwfMIBCompliance.setStatus('deprecated')
pdnCpIwfMIBComplianceV2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 2, 1, 2)).setObjects(("PDN-CP-IWF-MIB", "pdnCpIwfGeneralConfigGroupV2"), ("PDN-CP-IWF-MIB", "pdnCpIwfIADConfigGroupV2"), ("PDN-CP-IWF-MIB", "pdnCpIwfAal2StatsGroup"), ("PDN-CP-IWF-MIB", "pdnCpIwfPotsPortStatsGroupV2"), ("PDN-CP-IWF-MIB", "pdnCpIwfPotsPortConfigGroupV2"), ("PDN-CP-IWF-MIB", "pdnCpIwfPotsPortTestGroupV2"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
pdnCpIwfMIBComplianceV2 = pdnCpIwfMIBComplianceV2.setStatus('deprecated')
pdnCpIwfMIBComplianceV3 = ModuleCompliance((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 2, 1, 3)).setObjects(("PDN-CP-IWF-MIB", "pdnCpIwfGeneralConfigGroupV2"), ("PDN-CP-IWF-MIB", "pdnCpIwfIADConfigGroupV3"), ("PDN-CP-IWF-MIB", "pdnCpIwfAal2StatsGroup"), ("PDN-CP-IWF-MIB", "pdnCpIwfPotsPortStatsGroupV2"), ("PDN-CP-IWF-MIB", "pdnCpIwfPotsPortConfigGroupV2"), ("PDN-CP-IWF-MIB", "pdnCpIwfPotsPortTestGroupV2"), ("PDN-CP-IWF-MIB", "pdnCpIwfPotsPortPacketStatsGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
pdnCpIwfMIBComplianceV3 = pdnCpIwfMIBComplianceV3.setStatus('current')
pdnCpIwfGeneralConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 2, 2, 1)).setObjects(("PDN-CP-IWF-MIB", "pdnCpIwfTotalNumber"), ("PDN-CP-IWF-MIB", "pdnCpIwfIndexNext"), ("PDN-CP-IWF-MIB", "pdnCpIwfRegion"), ("PDN-CP-IWF-MIB", "pdnCpIwfIfIndex"), ("PDN-CP-IWF-MIB", "pdnCpIwfRowStatus"), ("PDN-CP-IWF-MIB", "pdnCpIwfNumPotsAssigned"), ("PDN-CP-IWF-MIB", "pdnCpIwfGatewayProtocol"), ("PDN-CP-IWF-MIB", "pdnCpIwfAtmBLESCapability"), ("PDN-CP-IWF-MIB", "pdnCpIwfSscsPredefinedProfile"), ("PDN-CP-IWF-MIB", "pdnCpIwfMappingIndex"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
pdnCpIwfGeneralConfigGroup = pdnCpIwfGeneralConfigGroup.setStatus('deprecated')
pdnCpIwfPotsPortConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 2, 2, 2)).setObjects(("PDN-CP-IWF-MIB", "pdnPotsPortCpIwfIndex"), ("PDN-CP-IWF-MIB", "pdnPotsPortHookStatus"), ("PDN-CP-IWF-MIB", "pdnPotsPortSignalingMethod"), ("PDN-CP-IWF-MIB", "pdnPotsPortTxGain"), ("PDN-CP-IWF-MIB", "pdnPotsPortRxGain"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
pdnCpIwfPotsPortConfigGroup = pdnCpIwfPotsPortConfigGroup.setStatus('deprecated')
pdnCpIwfAal2StatsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 2, 2, 3)).setObjects(("PDN-CP-IWF-MIB", "pdnCpIwfAal2CpsRxPkts"), ("PDN-CP-IWF-MIB", "pdnCpIwfAal2CpsTxPkts"), ("PDN-CP-IWF-MIB", "pdnCpIwfAal2CpsParityErrors"), ("PDN-CP-IWF-MIB", "pdnCpIwfAal2CpsSeqNumErrors"), ("PDN-CP-IWF-MIB", "pdnCpIwfAal2CpsOsfMismatchErrors"), ("PDN-CP-IWF-MIB", "pdnCpIwfAal2CpsOsfErrors"), ("PDN-CP-IWF-MIB", "pdnCpIwfAal2CpsHecErrors"), ("PDN-CP-IWF-MIB", "pdnCpIwfAal2CpsOversizeSduErrors"), ("PDN-CP-IWF-MIB", "pdnCpIwfAal2CpsReassemblyErrors"), ("PDN-CP-IWF-MIB", "pdnCpIwfAal2CpsHecOverlapErrors"), ("PDN-CP-IWF-MIB", "pdnCpIwfAal2CpsUuiErrors"), ("PDN-CP-IWF-MIB", "pdnCpIwfAal2CpsCidErrors"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
pdnCpIwfAal2StatsGroup = pdnCpIwfAal2StatsGroup.setStatus('current')
pdnCpIwfPotsPortStatsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 2, 2, 4)).setObjects(("PDN-CP-IWF-MIB", "pdnPotsPortTotalCalls"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
pdnCpIwfPotsPortStatsGroup = pdnCpIwfPotsPortStatsGroup.setStatus('deprecated')
pdnCpIwfGeneralConfigGroupV2 = ObjectGroup((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 2, 2, 5)).setObjects(("PDN-CP-IWF-MIB", "pdnCpIwfTotalNumber"), ("PDN-CP-IWF-MIB", "pdnCpIwfIndexNext"), ("PDN-CP-IWF-MIB", "pdnCpIwfRegion"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
pdnCpIwfGeneralConfigGroupV2 = pdnCpIwfGeneralConfigGroupV2.setStatus('current')
pdnCpIwfIADConfigGroupV2 = ObjectGroup((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 2, 2, 6)).setObjects(("PDN-CP-IWF-MIB", "pdnCpIwfIfIndex"), ("PDN-CP-IWF-MIB", "pdnCpIwfRowStatus"), ("PDN-CP-IWF-MIB", "pdnCpIwfNumPotsAssigned"), ("PDN-CP-IWF-MIB", "pdnCpIwfGatewayProtocol"), ("PDN-CP-IWF-MIB", "pdnCpIwfAtmBLESCapability"), ("PDN-CP-IWF-MIB", "pdnCpIwfSscsPredefinedProfile"), ("PDN-CP-IWF-MIB", "pdnCpIwfMappingIndex"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
pdnCpIwfIADConfigGroupV2 = pdnCpIwfIADConfigGroupV2.setStatus('current')
pdnCpIwfPotsPortStatsGroupV2 = ObjectGroup((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 2, 2, 7)).setObjects(("PDN-CP-IWF-MIB", "pdnPotsPortTotalCalls"), ("PDN-CP-IWF-MIB", "pdnPotsPortTotalCallsFailure"), ("PDN-CP-IWF-MIB", "pdnPotsPortTotalCallsDropped"), ("PDN-CP-IWF-MIB", "pdnPotsPortInCallsReceived"), ("PDN-CP-IWF-MIB", "pdnPotsPortInCallsAnswered"), ("PDN-CP-IWF-MIB", "pdnPotsPortInCallsConnected"), ("PDN-CP-IWF-MIB", "pdnPotsPortInCallsFailure"), ("PDN-CP-IWF-MIB", "pdnPotsPortOutCallsAttempted"), ("PDN-CP-IWF-MIB", "pdnPotsPortOutCallsAnswered"), ("PDN-CP-IWF-MIB", "pdnPotsPortOutCallsConnected"), ("PDN-CP-IWF-MIB", "pdnPotsPortOutCallsFailure"), ("PDN-CP-IWF-MIB", "pdnPotsPortPacketsSent"), ("PDN-CP-IWF-MIB", "pdnPotsPortPacketsReceived"), ("PDN-CP-IWF-MIB", "pdnPotsPortPacketsLost"), ("PDN-CP-IWF-MIB", "pdnPotsPortBytesSent"), ("PDN-CP-IWF-MIB", "pdnPotsPortBytesReceived"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
pdnCpIwfPotsPortStatsGroupV2 = pdnCpIwfPotsPortStatsGroupV2.setStatus('current')
pdnCpIwfPotsPortConfigGroupV2 = ObjectGroup((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 2, 2, 8)).setObjects(("PDN-CP-IWF-MIB", "pdnPotsPortCpIwfIndex"), ("PDN-CP-IWF-MIB", "pdnPotsPortHookStatus"), ("PDN-CP-IWF-MIB", "pdnPotsPortSignalingMethod"), ("PDN-CP-IWF-MIB", "pdnPotsPortTxGain"), ("PDN-CP-IWF-MIB", "pdnPotsPortRxGain"), ("PDN-CP-IWF-MIB", "pdnPotsPortCustInfo"), ("PDN-CP-IWF-MIB", "pdnPotsPortG729VoiceCodec"), ("PDN-CP-IWF-MIB", "pdnPotsPortPreferedVoiceCodec"), ("PDN-CP-IWF-MIB", "pdnPotsPortPreferredPacketPeriod"), ("PDN-CP-IWF-MIB", "pdnPotsPortSilenceSuppression"), ("PDN-CP-IWF-MIB", "pdnPotsPortActualVoiceCodec"), ("PDN-CP-IWF-MIB", "pdnPotsPortCallElapsedTime"), ("PDN-CP-IWF-MIB", "pdnPotsPortModemDetected"), ("PDN-CP-IWF-MIB", "pdnPotsPortEchoCanceller"), ("PDN-CP-IWF-MIB", "pdnPotsPortLocalEndName"), ("PDN-CP-IWF-MIB", "pdnPotsPortActiveSoftswitch"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
pdnCpIwfPotsPortConfigGroupV2 = pdnCpIwfPotsPortConfigGroupV2.setStatus('current')
pdnCpIwfPotsPortTestGroupV2 = ObjectGroup((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 2, 2, 9)).setObjects(("PDN-CP-IWF-MIB", "pdnPotsTestType"), ("PDN-CP-IWF-MIB", "pdnPotsTestCmd"), ("PDN-CP-IWF-MIB", "pdnPotsTestStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
pdnCpIwfPotsPortTestGroupV2 = pdnCpIwfPotsPortTestGroupV2.setStatus('current')
pdnCpIwfIADConfigGroupV3 = ObjectGroup((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 2, 2, 10)).setObjects(("PDN-CP-IWF-MIB", "pdnCpIwfIfIndex"), ("PDN-CP-IWF-MIB", "pdnCpIwfRowStatus"), ("PDN-CP-IWF-MIB", "pdnCpIwfNumPotsAssigned"), ("PDN-CP-IWF-MIB", "pdnCpIwfGatewayProtocol"), ("PDN-CP-IWF-MIB", "pdnCpIwfAtmBLESCapability"), ("PDN-CP-IWF-MIB", "pdnCpIwfSscsPredefinedProfile"), ("PDN-CP-IWF-MIB", "pdnCpIwfJitterBufferLength"), ("PDN-CP-IWF-MIB", "pdnCpIwfMappingIndex"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
pdnCpIwfIADConfigGroupV3 = pdnCpIwfIADConfigGroupV3.setStatus('current')
pdnCpIwfPotsPortPacketStatsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1795, 2, 24, 2, 50, 1, 2, 2, 11)).setObjects(("PDN-CP-IWF-MIB", "pdnPotsPortPacketsSent"), ("PDN-CP-IWF-MIB", "pdnPotsPortPacketsReceived"), ("PDN-CP-IWF-MIB", "pdnPotsPortPacketsLost"), ("PDN-CP-IWF-MIB", "pdnPotsPortBytesSent"), ("PDN-CP-IWF-MIB", "pdnPotsPortBytesReceived"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
pdnCpIwfPotsPortPacketStatsGroup = pdnCpIwfPotsPortPacketStatsGroup.setStatus('current')
mibBuilder.exportSymbols("PDN-CP-IWF-MIB", CpIwfRegion=CpIwfRegion, pdnCpIwfIndex=pdnCpIwfIndex, pdnPotsPortStatsTable=pdnPotsPortStatsTable, pdnCpIwfNumPotsAssigned=pdnCpIwfNumPotsAssigned, pdnPotsPortInCallsConnected=pdnPotsPortInCallsConnected, pdnCpIwfMIBGroups=pdnCpIwfMIBGroups, GatewayProtocol=GatewayProtocol, pdnPotsTestEntry=pdnPotsTestEntry, pdnCpIwfTable=pdnCpIwfTable, pdnCpIwfNotifications=pdnCpIwfNotifications, pdnCpIwfAal2StatsTable=pdnCpIwfAal2StatsTable, pdnPotsPortSignalingMethod=pdnPotsPortSignalingMethod, pdnCpIwfAal2CpsUuiErrors=pdnCpIwfAal2CpsUuiErrors, pdnCpIwfJitterBufferLength=pdnCpIwfJitterBufferLength, PYSNMP_MODULE_ID=pdnCpIwfMIB, pdnCpIwfPotsPortConfigGroupV2=pdnCpIwfPotsPortConfigGroupV2, pdnPotsPortOutCallsFailure=pdnPotsPortOutCallsFailure, pdnPotsPortEntry=pdnPotsPortEntry, pdnCpIwfMIBCompliances=pdnCpIwfMIBCompliances, pdnCpIwfAtmBLESCapability=pdnCpIwfAtmBLESCapability, pdnPotsPortPreferedVoiceCodec=pdnPotsPortPreferedVoiceCodec, pdnPotsPortInCallsFailure=pdnPotsPortInCallsFailure, pdnPotsPortLocalEndName=pdnPotsPortLocalEndName, pdnCpIwfMIBComplianceV3=pdnCpIwfMIBComplianceV3, pdnCpIwfStatsObjects=pdnCpIwfStatsObjects, pdnPotsPortTxGain=pdnPotsPortTxGain, pdnPotsPortBytesSent=pdnPotsPortBytesSent, ControlProtocol=ControlProtocol, pdnPotsPortOutCallsAttempted=pdnPotsPortOutCallsAttempted, pdnPotsPortTotalCalls=pdnPotsPortTotalCalls, pdnPotsPortOutCallsConnected=pdnPotsPortOutCallsConnected, pdnCpIwfPotsPortStatsGroupV2=pdnCpIwfPotsPortStatsGroupV2, pdnCpIwfRowStatus=pdnCpIwfRowStatus, pdnPotsPortTable=pdnPotsPortTable, HookState=HookState, pdnPotsPortBytesReceived=pdnPotsPortBytesReceived, pdnCpIwfTestObjects=pdnCpIwfTestObjects, pdnPotsTestType=pdnPotsTestType, pdnPotsPortStatsEntry=pdnPotsPortStatsEntry, pdnPotsPortTotalCallsFailure=pdnPotsPortTotalCallsFailure, pdnPotsPortModemDetected=pdnPotsPortModemDetected, pdnCpIwfMappingEntry=pdnCpIwfMappingEntry, pdnCpIwfRegion=pdnCpIwfRegion, pdnPotsPortEchoCanceller=pdnPotsPortEchoCanceller, pdnCpIwfGeneralConfigGroup=pdnCpIwfGeneralConfigGroup, pdnCpIwfPotsPortStatsGroup=pdnCpIwfPotsPortStatsGroup, pdnCpIwfAal2CpsOsfErrors=pdnCpIwfAal2CpsOsfErrors, pdnCpIwfAal2CpsParityErrors=pdnCpIwfAal2CpsParityErrors, pdnCpIwfMIB=pdnCpIwfMIB, pdnCpIwfIADConfigGroupV2=pdnCpIwfIADConfigGroupV2, pdnPotsPortActualVoiceCodec=pdnPotsPortActualVoiceCodec, pdnPotsPortOutCallsAnswered=pdnPotsPortOutCallsAnswered, pdnCpIwfAal2CpsOversizeSduErrors=pdnCpIwfAal2CpsOversizeSduErrors, pdnCpIwfAal2CpsReassemblyErrors=pdnCpIwfAal2CpsReassemblyErrors, pdnCpIwfTotalNumber=pdnCpIwfTotalNumber, pdnPotsPortActiveSoftswitch=pdnPotsPortActiveSoftswitch, pdnPotsPortPacketsLost=pdnPotsPortPacketsLost, pdnCpIwfPotsPortTestGroupV2=pdnCpIwfPotsPortTestGroupV2, pdnPotsPortSilenceSuppression=pdnPotsPortSilenceSuppression, pdnCpIwfMappingIndex=pdnCpIwfMappingIndex, pdnCpIwfAal2CpsHecOverlapErrors=pdnCpIwfAal2CpsHecOverlapErrors, pdnCpIwfSscsPredefinedProfile=pdnCpIwfSscsPredefinedProfile, pdnPotsPortPreferredPacketPeriod=pdnPotsPortPreferredPacketPeriod, pdnCpIwfPotsPortPacketStatsGroup=pdnCpIwfPotsPortPacketStatsGroup, pdnPotsPortIfIndex=pdnPotsPortIfIndex, pdnPotsPortTotalCallsDropped=pdnPotsPortTotalCallsDropped, pdnCpIwfMappingTable=pdnCpIwfMappingTable, pdnCpIwfConfigObjects=pdnCpIwfConfigObjects, pdnCpIwfGeneralConfigGroupV2=pdnCpIwfGeneralConfigGroupV2, PdnPotsTestTypes=PdnPotsTestTypes, pdnCpIwfEntry=pdnCpIwfEntry, pdnCpIwfAal2CpsSeqNumErrors=pdnCpIwfAal2CpsSeqNumErrors, pdnPotsPortCustInfo=pdnPotsPortCustInfo, pdnPotsTestTable=pdnPotsTestTable, pdnCpIwfGatewayProtocol=pdnCpIwfGatewayProtocol, pdnCpIwfAal2CpsHecErrors=pdnCpIwfAal2CpsHecErrors, PotsSignaling=PotsSignaling, pdnCpIwfAal2CpsOsfMismatchErrors=pdnCpIwfAal2CpsOsfMismatchErrors, pdnPotsPortInCallsReceived=pdnPotsPortInCallsReceived, pdnPotsPortHookStatus=pdnPotsPortHookStatus, pdnCpIwfMIBComplianceV2=pdnCpIwfMIBComplianceV2, pdnCpIwfIndexNext=pdnCpIwfIndexNext, pdnCpIwfAal2StatsGroup=pdnCpIwfAal2StatsGroup, pdnCpIwfAal2CpsTxPkts=pdnCpIwfAal2CpsTxPkts, pdnPotsTestStatus=pdnPotsTestStatus, pdnCpIwfMIBCompliance=pdnCpIwfMIBCompliance, pdnPotsPortPacketsReceived=pdnPotsPortPacketsReceived, pdnCpIwfIfIndex=pdnCpIwfIfIndex, pdnPotsPortCallElapsedTime=pdnPotsPortCallElapsedTime, pdnCpIwfPotsPortConfigGroup=pdnCpIwfPotsPortConfigGroup, pdnCpIwfMIBConformance=pdnCpIwfMIBConformance, VoiceEncoding=VoiceEncoding, pdnPotsPortPacketsSent=pdnPotsPortPacketsSent, pdnCpIwfAal2StatsEntry=pdnCpIwfAal2StatsEntry, pdnPotsPortG729VoiceCodec=pdnPotsPortG729VoiceCodec, pdnCpIwfMIBObjects=pdnCpIwfMIBObjects, pdnPotsPortInCallsAnswered=pdnPotsPortInCallsAnswered, pdnPotsTestCmd=pdnPotsTestCmd, pdnCpIwfAal2CpsRxPkts=pdnCpIwfAal2CpsRxPkts, pdnCpIwfAal2CpsCidErrors=pdnCpIwfAal2CpsCidErrors, pdnPotsPortRxGain=pdnPotsPortRxGain, pdnCpIwfIADConfigGroupV3=pdnCpIwfIADConfigGroupV3, pdnPotsPortCpIwfIndex=pdnPotsPortCpIwfIndex)
|
numero = int(input('Digite um número de 0 a 9999 '))
if numero >= 0 and numero <= 9999:
numero = str(numero)
print('Unidade {}'.format(numero[3]))
print('Dezena {}'.format(numero[2]))
print('Centena {}'.format(numero[1]))
print('Milhar {}'.format(numero[0]))
else:
print('Atenção numero de 0 a 9999')
|
def u64ToCounts(number):
"""
Convert an unsigned 64 bit number to a 25 element array containing the
photon counts for each of the 25 detector elements during a single dwell
time.
========== ===============================================================
Input Meaning
---------- ---------------------------------------------------------------
number Integer number <= 2^64 containing the photon counts for half of
the detector elements for 1 bin.
========== ===============================================================
========== ===============================================================
Output Meaning
---------- ---------------------------------------------------------------
counts List of 26 integer numbers with the photon counts for each of
the 25 detector elements + sum. Zeros are inserted for detector
elements that are not stored in the number.
========== ===============================================================
=======
Example
=======
u64ToCounts(13091560953979690842) will return
[0, 0, 0, 0, 0, 0, 26, 23, 21, 10, 12, 26, 554, 52, 5, 11, 22, 0, 0, 0,...
0, 0, 0, 0, 0, 759]
"""
if number < 32:
counts = [0] * 26
return counts
# Convert number to binary list of 64 digits
number = list('{0:064b}'.format(int(number)))
# Get time tag
tt = number[-4:]
tt = ''.join(tt)
tt = int(tt, 2)
del number[-4:]
# Get cluster type
clust = number[-1]
clust = int(clust, 2)
del number[-1]
# Create list with 25 0's, one for each detector element
counts = [0] * 26
if clust == 0:
# Data point contains counts of detector elements 0-5, 17-24
# Detector elements 0-5 (4 bits / element)
for i in range(6):
counts[i], number = binaryToCounts(number, 4)
# Detector element 17 (6 bits long)
counts[17], number = binaryToCounts(number, 6)
# Detector element 18 (5 bits long)
counts[18], number = binaryToCounts(number, 5)
# Detector elements 19-24 (4 bits / element)
for i in range(6):
counts[i+19], number = binaryToCounts(number, 4)
elif clust == 1:
# Data point contains counts of detector elements 6-16
# Detector element 6 (5 bits long)
counts[6], number = binaryToCounts(number, 5)
# Detector element 7 (6 bits long)
counts[7], number = binaryToCounts(number, 6)
# Detector element 8 (5 bits long)
counts[8], number = binaryToCounts(number, 5)
# Detector element 9-10 (4 bits long)
counts[9], number = binaryToCounts(number, 4)
counts[10], number = binaryToCounts(number, 4)
# Detector element 11 (6 bits long)
counts[11], number = binaryToCounts(number, 6)
# Detector element 12 (10 bits long)
counts[12], number = binaryToCounts(number, 10)
# Detector element 13 (6 bits long)
counts[13], number = binaryToCounts(number, 6)
# Detector element 14-15 (4 bits long)
counts[14], number = binaryToCounts(number, 4)
counts[15], number = binaryToCounts(number, 4)
# Detector element 14-15 (5 bits long)
counts[16], number = binaryToCounts(number, 5)
counts[25] = sum(counts)
return counts
def binaryToCounts(number, length):
"""
Convert the last elements of a binary list to the corresponding photon
decimal number and remove these elements from the list. Both the number
and the new list are returned.
========== ===============================================================
Input Meaning
---------- ---------------------------------------------------------------
number List of 0's and 1's.
length Integer number representing the number of bits that make up the
last photon count number in the list.
========== ===============================================================
========== ===============================================================
Output Meaning
---------- ---------------------------------------------------------------
counts Decimal representation of the binary string of length 'length',
formed by the last elements in the list.
number New binary list with the last 'length' elements removed.
========== ===============================================================
=======
Example
=======
binaryToCounts(['1', '0', '1', '1'], 3) will return (3, ['1']).
3: the decimal representation of the last elements in the list (0,1,1)
['1']: list with the remaining elements of the original list
"""
counts = int(''.join(number[-length:]), 2)
del number[-length:]
return counts, number
|
# -*- coding: utf-8 -*-
class StringMutations:
@classmethod
def _list_shift(cls, l, n):
return l[n:] + l[:n]
@classmethod
def length(cls, mutation, value, story, line, operator, operand):
return len(value)
@classmethod
def replace(cls, mutation, value, story, line, operator, operand):
new_val = story.argument_by_name(mutation, 'with')
return value.replace(operand, new_val)
@classmethod
def split(cls, mutation, value, story, line, operator, operand):
return value.split(operand)
@classmethod
def uppercase(cls, mutation, value, story, line, operator, operand):
return value.upper()
@classmethod
def lowercase(cls, mutation, value, story, line, operator, operand):
return value.lower()
|
# Copyright 2016 Cisco Systems, Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
class Encaps(object):
VLAN = "VLAN"
VxLAN = "VxLAN"
MPLS = "MPLS"
NO_ENCAPS = "NONE"
encaps_mapping = {
'VLAN': VLAN,
'VXLAN': VxLAN,
'MPLS': MPLS,
'NONE': NO_ENCAPS
}
@classmethod
def get(cls, network_type):
return cls.encaps_mapping.get(network_type.upper(), None)
class ChainType(object):
PVP = "PVP"
PVVP = "PVVP"
EXT = "EXT"
names = [EXT, PVP, PVVP]
class OpenStackSpec(object):
def __init__(self):
self.__vswitch = "BASIC"
self.__encaps = Encaps.NO_ENCAPS
@property
def vswitch(self):
return self.__vswitch
@vswitch.setter
def vswitch(self, vsw):
if vsw is None:
raise Exception('Trying to set vSwitch as None.')
self.__vswitch = vsw.upper()
@property
def encaps(self):
return self.__encaps
@encaps.setter
def encaps(self, enc):
if enc is None:
raise Exception('Trying to set Encaps as None.')
self.__encaps = enc
class RunSpec(object):
def __init__(self, no_vswitch_access, openstack_spec):
self.use_vswitch = (not no_vswitch_access) and openstack_spec \
and openstack_spec.vswitch != "BASIC"
class Specs(object):
def __init__(self):
self.openstack = None
self.run_spec = None
def set_openstack_spec(self, openstack_spec):
self.openstack = openstack_spec
def set_run_spec(self, run_spec):
self.run_spec = run_spec
|
# Tuplas são imutáveis
tupla1 = ('Hambúrguer', 'Suco', 'Pizza', 'Pudim', 'Batata Frita')
# tupla1[1] = 'Refrigerante'
print(tupla1)
print(tupla1[0]) # Hambúrguer
print(tupla1[3]) # Pudim
print(tupla1[-1]) # Batata Frita
print(tupla1[-2]) # Pudim
print(tupla1[1:3]) # Suco e Pizza
print(tupla1[2:]) # Pizza, Pudim, Batata Frita
print(tupla1[:2]) # Hambúrguer e Suco
print(tupla1[-2:]) # Pudim e Batata Frita
print(tupla1[-3:]) # Pizza, Pudim e Batata Frita
print('='*50)
tupla2 = 'São Paulo', 'Palmeiras', 'Santos'
print(tupla2)
print(f'A tupla2 possui {len(tupla2)} itens.')
print('='*50)
for comida in tupla1:
print(f'Eu vou comer {comida}')
print('Comi pra caramba!')
for pos in range(0, len(tupla1)):
print(f'Eu vou comer {tupla1[pos]} na posição {pos}.')
print('Comi pra caramba!')
for pos, comida in enumerate(tupla1):
print(f'Eu vou comer {comida} na posição {pos}.')
print('Comi pra caramba!')
print('='*50)
print(tupla1)
print(f'Ordenando uma tupla: {sorted(tupla1)}') # Transfora e Lista []
print('='*50)
a = (2, 5, 4)
b = (5, 8, 1, 2)
c = a + b
print(f'(2, 5, 4) + (5, 8, 1, 2) = {c}')
c = b + a
print(f'(5, 8, 1, 2) + (2, 5, 4) = {c}, onde c possui {len(c)} elementos, o número cinco aparece {c.count(5)} vezes e o número dois está na posição {c.index(2)}')
print(f'A segunda ocorrência no número cinco encontra-se na posição {c.index(5, 1)}.')
print('='*50)
'''
pessoa = ('Gustavo', 39, 'M', 99.88)
print(pessoa)
del(pessoa)
print(pessoa)
'''
|
# Given an list , use bucket sort to sort the elements of the list and return
# Input: [1, 2, 4, 3, 5]
# Output: [1, 2, 3, 4, 5]
# divide the elements into several lists known as buckets
# loop through each buckets and sort them(insertion/quick sort)
# return each element of the buckets since they would be sorted already
# when the number of elements in each bucket is 1 the time complexity practically becomes n
# very fast when the difference of elements in a list is small but with a loss at space complexity
def do_bucket_sort(nums: list) -> list:
buckets = []
list_len = len(nums)
nums_indx = 0
for i in range(list_len+1):
buckets.append([])
for i in nums:
buckets[i].append(i)
buckets[i].sort()
for bucket in buckets:
for el in bucket:
nums[nums_indx] = el
nums_indx += 1
return nums
def main():
example_list = [1, 2, 4, 3, 5]
print(do_bucket_sort(example_list))
if __name__ == "__main__":
main()
|
class Error(Exception):
"""Handles general exceptions."""
class AbilityScoreImprovementError(Error):
"""Handles ability score improvement errors."""
class AnthropometricCalculatorError(Error):
"""Handles anthropometric calculator errors."""
class BlueprintError(Error):
"""Handles an invalid seamstress error."""
class DieArgumentError(ValueError):
"""Handles an invalid die rolling argument."""
class FlagParserError(Error):
"""Handles an invalid flag format error."""
class SeamstressError(Error):
"""Handles an invalid seamstress error."""
|
class A:
def __repr__(self):
True
a = A()
print(a.__repr__()) # ok
print(repr(a)) # fail
|
# Declaring a list
L = [1, "a" , "string" , 1+2]
print (L)
L.append(6)
print (L)
L.pop()
print (L)
print (L[1])
|
def func(a, b, *args, **kwargs):
print(a, b)
for arg in args:
print(arg)
for key, val in kwargs.items():
print (key, val)
def func2(a, b, c=30, d=40, **kwargs):
print(a, b)
print(c, d)
for key, val in kwargs.items():
print (key, val)
def func3(a, b, c=100, d=200):
print(a, b)
print(c, d)
a = 1
b = 2
c = 3
d = 4
e = {'k1': 10, 'k2':20}
print ('w/o args/kwargs')
func(a, b)
print ('w/ args')
func(a, b, (c, d))
print ('w/ *args and kwargs')
func(a, b, *(c, d), e)
print ('w/ *args and **kwargs')
func(a, b, *(c, d), **e)
print ('w/ **kwargs')
f = {'d': d, 'c': c}
f.update(e)
func(a, b, **f)
print ('func2 w/ **kwargs')
f = {'d': d, 'c': c}
f.update(e)
func2(a, b, **f)
print ('func2 w/ **kwargs')
#f = {'d': d, 'c': c}
f = {}
f.update(e)
func2(a, b, **f)
print ('func3 w/ ')
func3(a, b, c, d, **{})
|
__title__ = 'hrflow'
__description__ = 'Python hrflow.ai API package'
__url__ = 'https://github.com/hrflow/python-hrflow-api'
__version__ = '1.9.0'
__author__ = 'HrFlow.ai'
__author_email__ = '[email protected]'
__license__ = 'MIT'
|
dummy_registry = {}
def dummy_register(name, value):
dummy_registry[name] = value
return value
|
# 695. 岛屿的最大面积
# 给定一个包含了一些 0 和 1的非空二维数组 grid , 一个 岛屿 是由四个方向 (水平或垂直) 的 1 (代表土地) 构成的组合。你可以假设二维矩阵的四个边缘都被水包围着。
# 找到给定的二维数组中最大的岛屿面积。(如果没有岛屿,则返回面积为0。)
# 示例 1:
# [[0,0,1,0,0,0,0,1,0,0,0,0,0],
# [0,0,0,0,0,0,0,1,1,1,0,0,0],
# [0,1,1,0,1,0,0,0,0,0,0,0,0],
# [0,1,0,0,1,1,0,0,1,0,1,0,0],
# [0,1,0,0,1,1,0,0,1,1,1,0,0],
# [0,0,0,0,0,0,0,0,0,0,1,0,0],
# [0,0,0,0,0,0,0,1,1,1,0,0,0],
# [0,0,0,0,0,0,0,1,1,0,0,0,0]]
# 对于上面这个给定矩阵应返回 6。注意答案不应该是11,因为岛屿只能包含水平或垂直的四个方向的‘1’。
# 示例 2:
# [[0,0,0,0,0,0,0,0]]
# 对于上面这个给定的矩阵, 返回 0。
# 注意: 给定的矩阵grid 的长度和宽度都不超过 50。
class Solution:
def maxAreaOfIsland(self, grid: List[List[int]]) -> int:
leni = len(grid)
if leni == 0:
return 0
lenj = len(grid[0])
if lenj == 0:
return 0
self.rev = 0
def dfs(grid, i, j, temp):
if i < 0 or i >= leni or j < 0 or j >= lenj:
return 0
if grid[i][j] == 0:
return 0
grid[i][j] = 0
temp = temp+1
one = dfs(grid, i+1, j, 0)
two = dfs(grid, i-1, j, 0)
three = dfs(grid, i, j-1, 0)
four = dfs(grid, i, j+1, 0)
temp = one+two+three+four+temp
self.rev = max(self.rev, temp)
return temp
for i in range(leni):
for j in range(lenj):
if grid[i][j] == 1:
dfs(grid, i, j, 0)
return self.rev
|
#
# Copyright (C) 2020 Square, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing permissions and limitations under
# the License.
# Description:
# Common utilities to make code a little cleaner.
def _java_executable(ctx):
java_home = ctx.os.environ.get("JAVA_HOME")
if java_home != None:
java = ctx.path(java_home + "/bin/java")
return java
elif ctx.which("java") != None:
return ctx.which("java")
fail("Cannot obtain java binary")
def _exec_jar(root, label):
return "%s/../%s/%s/%s" % (root, label.workspace_name, label.package, label.name)
exec = struct(
java_bin = _java_executable,
exec_jar = _exec_jar,
)
|
# -*- coding: utf-8 -*-
# @Author: jpch89
# @Email: [email protected]
# @Date: 2018-07-12 21:01:08
# @Last Modified by: jpch89
# @Last Modified time: 2018-07-12 21:07:53
people = 30
cars = 40
trucks = 15
if cars > people:
print ("We should take the cars.")
elif cars < people:
print("We should not take the cars.")
else:
print("We can't decide.")
if trucks > cars:
print("That's too many trucks.")
elif trucks < cars:
print("Maybe we could take the trucks.")
else:
print("We still can't decide.")
if people > trucks:
print("Alright, let's just take the trucks.")
else:
print("Fine, let's stay home then.")
|
# A base sentence model for storing information related to sentences
# Created by: Mark Mott
class Sentence:
# A single underline denotes a private method/variable.
# Default is the property category
def __init__(self, sentence, subject, category='Property'):
self.setsentence(sentence)
self.setsubject(subject)
self.setcategory(category)
def setsentence(self,sentence):
self._sentence = sentence
def getsentence(self):
return self._sentence
def setsubject(self,subject):
self._subject = subject
def getsubject(self):
return self._subject
def setcategory(self,category):
self._category = category
def getcategory(self):
return self._category
# Allows for Sentence models to better be turned into json
def toString(self):
out = {
"sentence": self.getsentence(),
"subject": self.getsubject(),
"category": self.getcategory()
}
return out
|
# Practice debug statement
print("Hello Python")
a = 10
b = 5
c = a + b
print("Hello Python2")
print(c)
c = 99
print("Hello Python3:%d", c)
#####################################################
# ** operator has high precedences than *
print(2**3*4)
print(4*2**3)
def changeVal(x):
x += 2;
#####################################################
def circleArea(r):
pi = 3.14
area = pi * r**2
return area
x = 1
changeVal(x)
print(x)
r = 10
area = circleArea(r)
# print("Circle area=", area, " Second area", sep="|")
print("Circle area=%f" % area)
print ('1:\t|{0:>10},'.format('wangyu'))
|
_base_ = [
'../../_base_/datasets/query_aware/few_shot_coco.py',
'../../_base_/schedules/schedule.py', '../attention-rpn_r50_c4.py',
'../../_base_/default_runtime.py'
]
# classes splits are predefined in FewShotCocoDataset
# FewShotCocoDefaultDataset predefine ann_cfg for model reproducibility
num_support_ways = 2
num_support_shots = 9
data = dict(
train=dict(
num_support_ways=num_support_ways,
num_support_shots=num_support_shots,
repeat_times=50,
dataset=dict(
type='FewShotCocoDefaultDataset',
ann_cfg=[dict(method='Attention_RPN', setting='10SHOT')],
num_novel_shots=10,
classes='NOVEL_CLASSES',
min_bbox_area=0,
instance_wise=False)),
val=dict(classes='NOVEL_CLASSES'),
test=dict(classes='NOVEL_CLASSES'),
model_init=dict(classes='NOVEL_CLASSES'))
evaluation = dict(interval=3000)
checkpoint_config = dict(interval=3000)
optimizer = dict(
lr=0.001,
momentum=0.9,
paramwise_cfg=dict(custom_keys={'roi_head.bbox_head': dict(lr_mult=2.0)}))
lr_config = dict(
warmup_iters=200, warmup_ratio=0.1, step=[
2000,
3000,
])
log_config = dict(interval=10)
runner = dict(max_iters=3000)
# load_from = 'path of base training model'
load_from = 'work_dirs/attention-rpn_r50_c4_4xb2_coco_base-training/latest.pth'
model = dict(
frozen_parameters=['backbone'],
rpn_head=dict(
num_support_ways=num_support_ways,
num_support_shots=num_support_shots,
),
roi_head=dict(
num_support_ways=num_support_ways,
num_support_shots=num_support_shots,
),
)
|
"""Top-level package for CT Parsers."""
__author__ = """Nick Cannariato"""
__email__ = '[email protected]'
__version__ = '0.1.0'
|
TRAINING_FILE = "../data/train_folds5.csv"
MODEL_OUTPUT = "../models/"
LABEL="rating_y"
BEST_FEATURES = ['rating_x',
'user_id',
'members',
'episodes',
'Action',
'Drama',
'Fantasy',
'Hentai',
'Romance',
'Adventure',
'Comedy',
'School',
'Shounen',
'Supernatural',
'Kids',
'Mecha',
'Sci-Fi',
'SliceofLife',
'type_OVA',
'Demons',
'Ecchi',
'Harem',
'Horror',
'Magic',
'Mystery',
'Parody',
'Seinen',
'Shoujo',
'SuperPower',
'type_Movie',
'type_Special',
'type_TV'
]
WORST_FEATURES =['Dementia',
'Game',
'Historical',
'MartialArts',
'Military',
'Music',
'Psychological',
'ShounenAi',
'Space',
'Sports',
'type_ONA',
'Josei',
'Police',
'Samurai',
'ShoujoAi',
'Thriller',
'Vampire',
'Yaoi',
'Yuri',
'type_Music',
'Cars'
]
WORST_FEATURES_2 =['Dementia',
'Game',
'Historical',
'MartialArts',
'Military',
'Music',
'Psychological',
'ShounenAi',
'Space',
'Sports',
'type_ONA',
'Josei',
'Police',
'Samurai',
'ShoujoAi',
'Thriller',
'Vampire',
'Yaoi',
'Yuri',
'type_Music',
'Cars',
'Action',
'Drama',
'Fantasy',
'Hentai',
'Romance',
'Adventure',
'Comedy',
'School',
'Shounen',
'Supernatural',
'Kids',
'Mecha',
'Sci-Fi',
'SliceofLife',
'type_OVA',
'Demons',
'Ecchi',
'Harem',
'Horror',
'Magic',
'Mystery',
'Parody',
'Seinen',
'Shoujo',
'SuperPower',
'type_Movie',
'type_Special',
'type_TV'
]
|
def setup_subparser(subparsers, parents, python_version):
parser = subparsers.add_parser(
python_version,
description="""This sub command generates IDE and build files for Python {}
""".format(
"3.6" if python_version == "python36" else "3.7"
),
parents=parents,
)
parser.set_defaults(language=python_version)
parser.add_argument(
"-d",
"--use-docker",
action="store_true",
help="""Use docker for python platform-independent packaging.
This is highly recommended unless you are experienced
with cross-platform Python packaging.""",
)
return parser
def setup_subparser_python36(subparsers, parents):
return setup_subparser(subparsers, parents, "python36")
def setup_subparser_python37(subparsers, parents):
return setup_subparser(subparsers, parents, "python37")
|
f = 1
print('calculando fatorial')
n = int(input('digite um número: '))
print(f'{n}! = ', end='')
for c in range(n, 0, -1):
print(c, end='')
print(' x ' if c > 1 else ' = ', end='')
f = c * f
print(f)
|
def find_smallest_element_index(array):
smallest_elem_index, smallest_elem = 0, array[0]
for index in range(1,len(array)):
if(smallest_elem >= array[index]):
smallest_elem_index = index
return smallest_elem_index
#changes the original array and puts the elements in sorted order (ascending)
def selection_sort(array):
sorted_array = []
for i in range(len(array)):
smallest_elem_index = find_smallest_element_index(array)
sorted_array.append(array.pop(smallest_elem_index))
return sorted_array
print(selection_sort([-1,2,0,-3,6]))
|
"""Toyota Connected Services API constants."""
# URL ATTRIBUTE NAMES
BASE_URL = "base_url"
BASE_URL_CARS = "base_url_cars"
ENDPOINT_AUTH = "auth_endpoint"
TOKEN_VALID_URL = "auth_valid"
# REGIONS
SUPPORTED_REGIONS = {
"europe": {
TOKEN_VALID_URL: "https://ssoms.toyota-europe.com/isTokenValid",
BASE_URL: "https://myt-agg.toyota-europe.com/cma/api",
BASE_URL_CARS: "https://cpb2cs.toyota-europe.com",
ENDPOINT_AUTH: "https://ssoms.toyota-europe.com/authenticate",
}
}
# LOGIN
USERNAME = "username"
PASSWORD = "password"
# So we don't have to test the token if multiple endpoints is requested at the same time.
TOKEN_DURATION = 900
TOKEN_LENGTH = 114
# JSON ATTRIBUTES
TOKEN = "token"
UUID = "uuid"
CUSTOMERPROFILE = "customerProfile"
FUEL = "fuel"
MILEAGE = "mileage"
TYPE = "type"
VALUE = "value"
UNIT = "unit"
VEHICLE_INFO = "VehicleInfo"
ACQUISITIONDATE = "AcquisitionDatetime"
CHARGE_INFO = "ChargeInfo"
HVAC = "RemoteHvacInfo"
BUCKET = "bucket"
DAYOFYEAR = "dayOfYear"
PERIODE_START = "periode_start"
DATE = "date"
DATA = "data"
SUMMARY = "summary"
HISTOGRAM = "histogram"
DAY = "day"
WEEK = "week"
ISOWEEK = "isoweek"
MONTH = "month"
YEAR = "year"
HOOD = "hood"
DOORS = "doors"
WINDOWS = "windows"
LIGHTS = "lamps"
KEY = "key"
CLOSED = "closed"
LOCKED = "locked"
WARNING = "warning"
STATE = "state"
OFF = "off"
INCAR = "inCar"
METRIC = "metric"
IMPERIAL = "imperial"
IMPERIAL_LITERS = "imperial_liters"
# DATE FORMATS
DATE_FORMAT_YEAR = "YYYY"
DATE_FORMAT = "YYYY-MM-DD"
# HTTP
TIMEOUT = 15
HTTP_OK = 200
HTTP_NO_CONTENT = 204
HTTP_UNAUTHORIZED = 401
HTTP_INTERNAL = 500
HTTP_SERVICE_UNAVAILABLE = 503
RETURNED_BAD_REQUEST = "bad_request"
TME_B2C_ERR_CPSERVICES = "TME_B2C_ERR_CPSERVICES_GET_FAILURE"
INTERVAL_SUPPORTED = ["day", "week", "isoweek", "month", "year"]
BASE_HEADERS = {
"Content-Type": "application/json;charset=UTF-8",
"Accept": "application/json, text/plain, */*",
"Sec-Fetch-Dest": "empty",
"X-TME-BRAND": "TOYOTA",
}
|
# A program that reads in students names
# until the user enters a blank
# and then prints them all out again
# the program prints out all the studens names in a neat way
students = []
Firstname = input("Enter Firstname (blank to quit): ").strip()
while Firstname != "":
student = {}
student ["Firstname"] = Firstname
lastname = input("Enter lastname: ").strip()
student["lastname"] = lastname
students.append(student)
#next student
Firstname = input("Enter Firstname of next (blank to quit): ").strip()
print ("here are the students you entered:")
for currentStudent in students:
print ("{} {}".format(currentStudent["Firstname"],currentStudent ["lastname"]))
#Reference: Andrew Beatty tutorial on moodle
|
n1 = float(input('um distância em metros:'))
cm = n1 * 100
mm = n1 * 1000
print ('A medida de 3.0m corresponde a:')
print ('{:.0f} metros é igual a {:.0f} centímetros e a {:.0f} milimetros'.format(n1,cm,mm))
|
class Command:
command = "template" # command name must be the same as the file name but can have spacial characters
description = "description of command"
argsRequired = 1 # number of arguments needed for command
usage = "<command>" # a usage example of required arguments
examples = [{
'run': "template", # what user runs
'result': "a template" # the response of the bot
}]
synonyms = ["tmp"] # any synonyms that will also trigger command [accepts regular expressions]
async def call(self, package):
# what happens once the command is executed
pass
|
# -*- coding: utf-8 -*-
"""
ASCII canvas
ASCII canvas module for drawing in console using ASCII chars
ASCII canvas supports the next objects:
- Point
- Line
- Rectangle
- Nine-Patch Rectangle
- Ellipse
- Text
And also supports Style for all these objects. The Style includes symbol,
foreground color, background color and font style. Thereby colored printing
to terminal is supported.
"""
__title__ = 'asciicanvas'
__version__ = '0.0.3'
__author__ = 'Dmitry Alimov'
__license__ = 'MIT'
|
'''
Here is a basic example to plot a signal from an lcm message.
In this example, the channel is POSE_BODY.
The X coordinate is the message timestamp in microseconds,
and the Y value is pos[0], or the first value of the pos array.
Note, msg is a pre-defined variable that you must use in order
for this to work. When you define a signal, the msg variable
is used to record the attribute lookups that are required to
extract the signal data from the lcm message in the future.
'''
print(dir())
print(globals())
print(locals())
position_names = [
"hip_roll_left",
"hip_roll_right",
"hip_yaw_left",
"hip_yaw_right",
"hip_pitch_left",
"hip_pitch_right",
"knee_left",
"knee_right",
"toe_left",
"toe_right"]
velocity_names = [
"hip_roll_leftdot",
"hip_roll_rightdot",
"hip_yaw_leftdot",
"hip_yaw_rightdot",
"hip_pitch_leftdot",
"hip_pitch_rightdot",
"knee_leftdot",
"knee_rightdot",
"toe_leftdot",
"toe_rightdot"]
effort_names = [
"hip_roll_left_motor",
"hip_roll_right_motor",
"hip_yaw_left_motor",
"hip_yaw_right_motor",
"hip_pitch_left_motor",
"hip_pitch_right_motor",
"knee_left_motor",
"knee_right_motor",
"toe_left_motor",
"toe_right_motor"]
pos_names = msg.position_names
vel_names = msg.velocity_names
eff_names = msg.effort_names
addPlot()
addSignals('CASSIE_STATE_SIMULATION', msg.utime, msg.position, position_names, keyLookup=pos_names)
# you can assign the plot to a variable and reference it later
p=addPlot()
addSignals('CASSIE_STATE_SIMULATION', msg.utime, msg.velocity, velocity_names, keyLookup=vel_names, plot=p)
p3 = addPlot()
addSignals('CASSIE_INPUT', msg.utime, msg.efforts, effort_names, keyLookup=eff_names, plot=p3)
|
# -*- coding: utf-8 -*-
"""Exceptions for bkpaas_auth module
"""
class ServiceError(Exception):
"""Login or Token service is not available"""
class InvalidSkeyError(Exception):
"""Invalid uin/skey given"""
class InvalidTokenCredentialsError(Exception):
"""When invalid credentials are given when exchange access token"""
|
# 001110010 prev = 0 cur = 0
# 0 01110010 prev = 0 cur = 1
# 0 0 1110010 prev = 0 cur = 2
# 00 1 110010 prev = 2 cur = 1 01
# 001 1 10010 prev = 2 cur = 2 0011
# 0011 1 0010 prev = 2 cur = 3
# 00111 0 010 prev = 3 cur = 1 10
# 001110 0 10 prev = 3 cur = 2 1100
# 0011100 1 0 prev = 2 cur = 1 01
# 00111001 0 prev = 1 cur = 1 10
# https://www.polarxiong.com/archives/LeetCode-696-count-binary-substrings.html
class Solution:
def countBinarySubstrings(self, s: str) -> int:
prevlen, curlen, ans = 0, 0, 0
for i in range(len(s)):
if s[i] == s[i-1]:
curlen += 1
else:
prevlen = curlen
curlen = 1
if prevlen >= curlen:
ans += 1
return ans
|
# -*- coding: utf-8 -*-
"""
Created on Wed Mar 16 09:57:15 2016
@author: Mathew Topper
"""
#pylint: disable=C0103,W0622,R0903
class abstractclassmethod(classmethod):
"""Not that to make this work, you should place cls() in the abstract
definition"""
__isabstractmethod__ = True
def __init__(self, callable):
callable.__isabstractmethod__ = True
super(abstractclassmethod, self).__init__(callable)
|
"""
import os
import bonobo
import logging
from dotenv import load_dotenv
from judah.utils.assets import get_asset_path
from judah.utils.logging import setup_rotating_file_logger
load_dotenv()
# Assuming you have an BBC ETL service, a rest_api_to_db child service and a number of microservices
# each corresponding to a given dataset
from app.services.rte.rest_api_to_db import BBC_REST_API_TO_DB_CONTROLLERS
def get_graph(**options):
'''
This function builds the graph that needs to be executed.
:return: bonobo.Graph
'''
graph = bonobo.Graph()
for controller in BBC_REST_API_TO_DB_CONTROLLERS:
graph.add_chain(
controller.extract,
controller.transform,
controller.load,
)
return graph
def get_services(**options):
'''Service Dependency injector'''
return {}
if __name__ == '__main__':
logger = logging.getLogger()
setup_rotating_file_logger(file_path=get_asset_path('error.log'), logger=logger)
logging.disable(getattr(logging, os.getenv('LOGGING_LEVEL_DISABLE', 'NOTSET')))
parser = bonobo.get_argument_parser()
with bonobo.parse_args(parser) as options:
bonobo.run(
get_graph(**options),
services=get_services(**options)
)
"""
|
class GuidanceRejectionException(Exception):
_MSG = "Unit tests should not write files unless they clean them up too."
def __init__(self):
super(GuidanceRejectionException, self).__init__(GuidanceRejectionException._MSG)
|
equipmentMultipliers = [
{"hp": 10},
{"hp": 20},
{"hp": 30},
{"hp": 40},
{"sp": 10},
{"sp": 20},
{"sp": 30},
{"sp": 40},
{"tp": 2},
{"tp": 4},
{"tp": 6},
{"tp": 8},
{"atk": 10},
{"atk": 20},
{"atk": 30},
{"atk": 40},
{"def": 10},
{"def": 20},
{"def": 30},
{"def": 40},
{"mag": 10},
{"mag": 20},
{"mag": 30},
{"mag": 40},
{"mnd": 10},
{"mnd": 20},
{"mnd": 30},
{"mnd": 40},
{"spd": 10},
{"spd": 20},
{"spd": 30},
{"spd": 40},
{"eva": 10},
{"eva": 20},
{"eva": 30},
{"eva": 40},
{"mnd": 8, "ntr": 36},
{"rec": 4, "ntr": 48},
{"def": 6, "cld": 48},
{"atk": 10, "mag": 10, "fir": 48},
{"fir": 80, "cld": 80},
{"fir": 128},
{"wnd": 128},
{"cld": 128},
{"ntr": 100, "rec": 8},
{"mys": 128},
{"spi": 128},
{"psn": 20},
{"par": 20},
{"sil": 20},
{"dth": 20},
{"dbf": 20},
{"rec": 4},
{"spd": 12, "eva": 12, "wnd": 48, "sil": 12},
{"sp": 12, "atk": 24, "rec": 2},
{"hp": 12, "def": 12, "mnd": 12, "rec": 4},
{"hp": 16, "sp": 16, "mag": 16, "tp": 3, "dbf": 10},
{"tp": 4, "rec": 6, "mnd": 24},
{"mag": 16, "mnd": 16, "spd": 16, "eva": 16, "mys": 48},
{"sp": 16, "mnd": 16, "spi": 48, "dth": 16},
{"hp": 24, "rec": 4, "psn": 6, "par": 6, "sil": 6},
{"atk": 30, "def": 30, "mag": 30, "mnd": 30, "spd": 30, "eva": 30},
{"atk": 16, "mag": 24, "spd": 10, "eva": 10, "rec": 4},
{"hp": 12, "sp": 12, "mag": 12, "mnd": 12, "psn": 12, "dbf": 12},
{"atk": 16, "def": 16, "mag": 16, "mnd": 16, "spd": 16, "eva": 16, "psn": 6, "par": 6, "sil": 6, "dth": 6, "dbf": 6},
{"hp": 12, "def": 32, "wnd": 66, "rec": 2},
{"atk": 30, "wnd": 59, "cld": 59, "sil": 16},
{"spd": 24, "eva": 20, "fir": 32, "cld": 32, "wnd": 32, "ntr": 32, "mys": 32, "spi": 32},
{"fir": 48, "cld": 48, "wnd": 48, "ntr": 48, "mys": 48, "spi": 48, "psn": 12, "par": 12, "sil": 12, "dth": 12, "dbf": 12},
{"hp": 30, "mnd": 30, "rec": 6, "ntr": 50, "wnd": 50, "spi": 50, "psn": 16},
{"mag": 30, "rec": 4, "mys": 60, "sil": 10, "dth": 10},
{"sp": 16, "atk": 36, "rec": 4, "fir": 32, "cld": 32, "wnd": 32, "ntr": 32, "mys": 32, "spi": 32},
{"atk": 36, "cld": 80, "dbf": 14},
{"sp": 20, "def": 20, "mnd": 20, "fir": 48, "cld": 60, "spi": 60},
{"tp": 4, "atk": 20, "def": 20, "mag": 20, "mnd": 20, "spd": 20, "eva": 20, "psn": 8, "par": 8, "sil": 8, "dth": 8, "dbf": 8},
{"atk": 38, "mag": 38},
{"rec": 16},
{"sp": 10, "mnd": 60, "rec": 10, "mys": 72, "spi": 72},
{"sp": 16, "def": 50, "mnd": 50},
{"hp": 40, "atk": 40, "mnd": 40, "spd": 40, "tp": 2, "rec": 4},
{"atk": 64},
{"psn": 24, "par": 24, "sil": 24, "dth": 24, "dbf": 24},
{"atk": 28, "mag": 28, "fir": 44, "cld": 44, "wnd": 44, "ntr": 44},
{"hp": 24, "def": 48, "fir": 60, "dbf": 12},
{"atk": 48, "def": 48, "spd": 40, "par": 15, "dth": 15},
{"atk": 120, "mag": 120},
{"def": 50, "mnd": 40, "fir": 72, "cld": 72, "wnd": 72, "ntr": 72, "mys": 72, "spi": 72},
{"hp": 40, "atk": 48, "def": 48, "spd": 30, "eva": 30, "psn": 16, "par": 16, "rec": 6},
{"def": 36, "mnd": 36, "psn": 20, "par": 20, "sil": 20, "dth": 20, "dbf": 20},
{"hp": 60, "def": 60, "mnd": 60, "rec": 6},
{"atk": 68, "spd": 88, "cld": 128, "par": 24},
{"sp": 24, "mag": 60, "mys": 80, "spi": 80, "rec": 12},
{"atk": 96, "mag": 72},
{"hp": 30, "sp": 30, "rec": 6, "atk": 40, "def": 40, "mag": 40, "mnd": 40, "spd": 40, "eva": 40, "fir": 48, "cld": 48, "wnd": 48, "ntr": 48, "mys": 48, "spi": 48, "psn": 12, "par": 12, "sil": 12, "dth": 12, "dbf": 12},
{"tp": 10, "rec": 10, "fir": 100, "cld": 100, "wnd": 100, "ntr": 100, "mys": 100, "spi": 100},
{"sp": 50, "mag": 50, "mnd": 50, "fir": 80, "cld": 80, "wnd": 80, "ntr": 80, "sil": 20},
{"atk": 72, "def": 72, "mnd": 72, "spd": 72},
{"atk": 50, "tp": 12, "wnd": 144, "par": 36},
{"def": 88, "mnd": 88, "rec": 6},
{"atk": 100, "def": 100, "mag": 100, "mnd": 100, "spd": 100, "eva": 100},
{"atk": 88},
{"atk": 124},
{"atk": 168},
{"def": 88},
{"def": 124},
{"def": 168},
{"mag": 88},
{"mag": 124},
{"mag": 168},
{"mnd": 88},
{"mnd": 124},
{"mnd": 168},
{"spd": 88},
{"spd": 124},
{"spd": 168},
{"hp": 88},
{"hp": 124},
{"hp": 168},
{"sp": 88},
{"sp": 124},
{"sp": 168},
{"def": 100, "mnd": 100},
{"atk": 100, "def": 100},
{"atk": 100, "mag": 100},
{"hp": 100, "sp": 100, "rec": 12, "tp": 12},
{"def": 64, "mnd": 64, "fir": 80, "cld": 80, "wnd": 80, "ntr": 80, "mys": 80, "spi": 80},
{"def": 60, "mnd": 60, "fir": 256, "sil": 50},
{"atk": 36, "def": 36, "mag": 36, "mnd": 36, "spd": 36, "eva": 36, "cld": 256, "rec": 4},
{"sp": 72, "mag": 72, "spd": 72, "wnd": 256},
{"ntr": 256, "psn": 50, "dth": 50, "tp": 24},
{"atk": 120, "def": 64, "spd": 64, "mys": 256},
{"atk": 120, "mag": 64, "mnd": 64, "spi": 256},
{"tp": 13, "rec": 13, "psn": 13, "par": 13, "sil": 13, "dth": 13, "dbf": 13},
{"mag": 96, "mnd": 96, "rec": 16, "dbf": 16, "tp": 16},
{"mag": 60, "mnd": 100, "spd": 144},
{"def": 80, "mnd": 144, "rec": 10, "fir": 96, "cld": 96, "wnd": 96, "ntr": 96, "mys": 96, "spi": 96},
{"atk": 172, "mag": 172},
{"hp": 100, "atk": 100, "def": 100, "spd": 100, "par": 15, "dbf": 15},
{"hp": 128, "sp": 128, "fir": 128, "cld": 128, "wnd": 128, "ntr": 128, "mys": 128, "spi": 128},
{"atk": 360},
{"rec": 40},
{"atk": 200, "mag": 200, "mnd": 200, "sp": 100, "spd": 100, "wnd": 128, "ntr": 128, "rec": 16, "psn": 18, "par": 18, "sil": 18},
{"atk": 100, "def": 140, "mag": 180, "mnd": 220, "psn": 30, "par": 30, "dth": 30},
{"atk": 150, "def": 150, "mag": 150, "mnd": 150, "spd": 150, "eva": 150, "fir": 60, "cld": 60, "wnd": 60, "ntr": 60, "mys": 60, "spi": 60, "psn": 15, "par": 15, "sil": 15, "dth": 15, "dbf": 15},
{"fir": 256, "cld": 256, "wnd": 256, "ntr": 256, "mys": 256, "spi": 256},
{"mag": 150, "mnd": 300, "mys": 300, "dth": 50},
{"hp": 240, "atk": 240, "spd": 240, "tp": 30, "psn": 16, "par": 16, "sil": 16, "dth": 16, "dbf": 16},
{"hp": 80, "sp": 100, "mag": 350, "rec": 24, "fir": 128, "cld": 128, "wnd": 128, "ntr": 128, "dth": 50, "dbf": 50},
{"def": 400, "mnd": 400},
{"hp": 300, "sp": 300, "atk": 300, "def": 300, "mag": 300, "mnd": 300, "spd": 300, "eva": 300, "fir": 100, "cld": 100, "wnd": 100, "ntr": 100, "mys": 100, "spi": 100, "psn": 20, "par": 20, "sil": 20, "dth": 20, "dbf": 20}
]
|
# https://www.codechef.com/problems/MSNSADM1
for T in range(int(input())):
n,points=int(input()),0
scores,fouls=list(map(int,input().split())),list(map(int,input().split()))
for i in range(n):
if((scores[i]*20-fouls[i]*10)>points): points=scores[i]*20-fouls[i]*10
print(max(0,points))
|
#!/usr/bin/python3.6
def getPathToDataExchangeFolder():
return 'src/backend/dataExchange/'
def getPathToLogFolder():
return 'src/backend/log/'
def getPathToDataOutput():
return 'src/backend/dataOutput/'
def getPathOfMainJsonFile(artifact_name):
return getPathToDataExchangeFolder() + artifact_name + '.json'
def getPathOfNetworkJsonFile(artifact_name):
return getPathToDataExchangeFolder() + artifact_name + '_network.json'
def getPathOfNeighborBarchart(artifact_name):
return getPathToDataExchangeFolder() + artifact_name + '_neighbor_barchart.json'
def getPathOfSankeyDiagram(artifact_name):
return getPathToDataExchangeFolder() + artifact_name + '_sankey_diagram.json'
def getPathOfEntityOutputCSVFile(artifact_name):
return getPathToDataOutput() + artifact_name + '_entity_output.csv'
def getNodeId(artifact_name, counter):
return artifact_name + 'entity' + str(counter)
|
def process_row_item(row_item):
if hasattr(row_item, 'strip'):
row_item = row_item.strip()
return row_item
def to_table_format(data_list):
header = []
rows = []
for row in data_list:
header = row.keys()
rows.append(list(map(process_row_item, row.values())))
return header, rows
|
#class common parameters
#put all parameters in there
#import module to baseline.py
class default_data:
def __init__(self):
#whoever is running this code make sure you change the name to your first name
self.user = "" #not needed, mainly to avoid file name conflicts
self.numLoops = 1
# Game scenario
self.scenario = 'rocket_basic'
self.config_file_path = "scenarios/"+self.scenario+".cfg"
# Q-learning settings
self.epochs = 20
self.learning_rate = 0.00025
self.discount_factor = 0.99
self.learning_steps_per_epoch = 2000
self.replay_memory_size = 10000
# NN learning settings
self.batch_size = 64
# Training regime
self.test_episodes_per_epoch = 100
# Other parameters
self.frame_repeat = 12
self.resolution = (30, 45)
self.episodes_to_watch = 10
self.save_model = True
self.load_model = False
self.skip_learning = False
self.skip_evaluation = True #added line
self.game_window_visible = True
self.model_savefile = "./model-doom.pth"
self.model_loadfile = "./model-doom.pth"
self.numEvaluations = 5
# Look at the PTH files you are trying to evaluate
self.eval_epoch = [1,5,10,15,20]
self.model_loadfile = "model_health_gathering_epoch_" #name structure of the pth files. Should be entire filename without the epoch number and
self.model_abs_path = []
x = 24
while x <= 28:
self.model_abs_path.append("./models/model_health_gathering_epochs_20_Ethan_OGNET_index_"+str(x)+"/"+self.model_loadfile)
x+=1
|
n = float(input())
i = 0
for i in range(i, 100, 1):
print('N[{}] = {:.4f}'.format(i, n))
n = (n / 2)
|
class Solution:
def toLowerCase(self, str):
"""
:type str: str
:rtype: str
"""
return str.lower()
input = "ABCdefG"
p = Solution()
print(p.toLowerCase(input))
|
"""Configuration information for PDB2PQR."""
# PDB2PQR version number.
VERSION = "3.0"
# How to format PDB2PQR title in output
TITLE_FORMAT_STRING = "PDB2PQR v{version} - biomolecular structure conversion software"
# Citation strings for PDB2PQR
CITATIONS = [("Please cite: Jurrus E, et al. Improvements to the APBS biomolecular "
"solvation software suite. Protein Sci 27 112-128 (2018)."),
("Please cite: Dolinsky TJ, et al. PDB2PQR: expanding and upgrading "
"automated preparation of biomolecular structures for molecular simulations. "
"Nucleic Acids Res 35 W522-W525 (2007).")]
# Standard force field names
FORCE_FIELDS = ["amber", "charmm", "parse", "tyl06", "peoepb", "swanson"]
# Standard amino acid names
AA_NAMES = ["ALA", "ARG", "ASH", "ASN", "ASP", "CYS", "CYM", "GLN", "GLU", "GLH",
"GLY", "HIS", "HID", "HIE", "HIP", "HSD", "HSE", "HSP", "ILE", "LEU",
"LYS", "LYN", "MET", "PHE", "PRO", "SER", "THR", "TRP", "TYR", "TYM",
"VAL"]
# Standard nucleic acid names
NA_NAMES = ["A", "A5", "A3", "C", "C5", "C3", "G", "G5", "G3", "T", "T5", "T3",
"U", "U5", "U3", "RA", "RG", "RC", "RU", "DA", "DG", "DC", "DT"]
# Standard backbone atom names
BACKBONE = ["N", "CA", "C", "O", "O2", "HA", "HN", "H", "tN"]
# A small number used by some math routines.
SMALL_NUMBER = 1.0e-7
# A number of unknown origin used in dihedral angle calculations
DIHEDRAL_WTF = 57.2958
# The start of warning strings to be filtered.
FILTER_WARNINGS = ["Skipped atom during water optimization",
"The best donorH was not picked",
"Multiple occupancies found"]
# The number of times one of the warning strings should be printed before
# supressing further output.
FILTER_WARNINGS_LIMIT = 20
# Expected location for topology definition file
TOPOLOGY_DEF_PATH = "TOPOLOGY.xml"
# Expected location for amino acid topology definition file
AA_DEF_PATH = "AA.xml"
# Expected location for nucleic acid topology definition file
NA_DEF_PATH = "NA.xml"
# Expected location for hydrogens topology definition file
HYD_DEF_PATH = "HYDROGENS.xml"
# Expected location for topology patch definition file
PATCH_DEF_PATH = "PATCHES.xml"
# Number of angle steps to scan when debumping
DEBUMP_ANGLE_STEPS = 72
# Size of debumping step
DEBUMP_ANGLE_STEP_SIZE = float(360 // DEBUMP_ANGLE_STEPS)
# Debump angle test
DEBUMP_ANGLE_TEST_COUNT = 10
# Size of cells used for neighbor lookups
CELL_SIZE = 2
# Debumping hydrogen size
BUMP_HYDROGEN_SIZE = 0.5
# Debumping heavy atom size
BUMP_HEAVY_SIZE = 1.0
# Disulfide bond distance limit
BONDED_SS_LIMIT = 2.5
# Peptide bond distance limit
PEPTIDE_DIST = 1.7
# Limit on fraction of molecule missing before giving up on repairs
REPAIR_LIMIT = 0.1
# Cutoff for A - D - H(D) hydrogen bond angle
ANGLE_CUTOFF = 20.0
# Cutoff for H(D) to A hydrogen bond distance
DIST_CUTOFF = 3.3
|
def solve(a,b):
dict={}
for i in range(max(a, 1), b):
temp=factors(i)
dict[sum(temp)/i]=dict.get(sum(temp)/i, [])+[i]
return sum(j[0] for j in dict.values() if len(j)>1)
def factors(n):
res={1, n}
for i in range(2, int(n**0.5)+1):
if n%i==0:
res.add(i)
res.add(n//i)
return res
|
# Local settings for WLM project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
DEBUG_PROPAGATE_EXCEPTIONS = DEBUG
ALLOWED_HOSTS = '*'
ADMINS = (
#('Name', '[email protected]'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': '',
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}
GEOIP_PATH = '/usr/share/GeoIP/'
SECRET_KEY = ''
|
# source: https://www.bilibili.com/video/av21540971/?p=23
def bubble_sort(alist):
"""bubble sort
best: O(n)
worst: O(n^2)
stable
"""
n = len(alist)
for j in range(n-1):
count = 0
for i in range(n-1-j):
if alist[i] > alist[i+1]:
alist[i], alist[i+1] = alist[i+1], alist[i]
count += 1
if 0 == count:
return
if __name__ == "__main__":
li = [54, 26, 93, 17, 77, 31, 44, 55, 20]
print(li)
bubble_sort(li)
print(li)
|
python = "Python"
print("h " + python[3]) # Note: string indexing starts with 0
p_letter = python[0]
print(p_letter)
|
n =int(input())
count = 1
for i in range(1, n+1):
for j in range(1, i+1):
print(count*count, end=" ")
count+=1
print()
|
class Solution:
def intersect(self, nums1: List[int], nums2: List[int]) -> List[int]:
dic = {}
ret = []
if len(nums1)<len(nums2):
for i in nums2:
if i not in dic:
dic[i] = 0
dic[i] += 1
for j in nums1:
if j in dic and dic[j]>0:
dic[j]-=1
ret.append(j)
else:
for i in nums1:
if i not in dic:
dic[i] = 0
dic[i] += 1
for j in nums2:
if j in dic and dic[j]>0:
dic[j]-=1
ret.append(j)
return ret
|
def merge_sort(arr):
n = len(arr)
if n > 1:
mid = n//2
left = arr[0:mid]
right = arr[mid:n]
merge_sort(left)
merge_sort(right)
merge(left, right, arr)
def merge(left, right, arr):
i, j, k = 0, 0, 0
while i < len(left) and j < len(right):
if left[i] <= right[j]:
arr[k] = left[i]
i += 1
else:
arr[k] = right[j]
j += 1
k += 1
if i == len(left):
for item in right[j:]:
arr[k] = item
k += 1
else:
for item in left[i:]:
arr[k] = item
k += 1
# number_list = [20, 18, 12, 8, 5, -2]
# merge_sort(number_list)
# print(number_list)
|
class Solution(object):
def countGoodRectangles(self, rectangles):
"""
:type rectangles: List[List[int]]
:rtype: int
"""
maxLen = 0
counter = 0
for rectangle in rectangles:
# You can find the maximal square within a rectangle
maximalSquare = min(rectangle[0], rectangle[1])
if maximalSquare > maxLen:
maxLen = maximalSquare
counter = 1
elif maximalSquare == maxLen:
counter += 1
return counter
|
positive_count = 0
zero_count = 0
negative_count = 0
n = int(input().strip())
arr = [int(arr_temp) for arr_temp in input().strip().split(' ')]
for num in arr:
if num > 0:
positive_count += 1
elif num == 0:
zero_count += 1
else:
negative_count += 1
print(positive_count / n)
print(negative_count / n)
print(zero_count / n)
|
class Colors:
"""
This is a class that helps with printing out colors to the terminal.
"""
BLUE = '\033[96m'
PINK = '\033[95m'
PURPLE = '\033[94m'
GREEN = '\033[92m'
YELLOW = '\033[93m'
RED = '\033[91m'
ENDC = '\033[0m'
CLEAR = '\x1b[2J\x1b[H'
def clear_screen(self):
print(self.CLEAR, end="")
def reset_color(self):
print(self.ENDC, end="")
def print_color(self, color_type, string, is_input=False):
"""
This is a factory method that will print text of a certain color.
Parameters:
color_type (string): One of the enums above or user supplied to
print a certain color.
string (string): The string that the user wants to print out.
is_input (bool): Decides whether we print the string with a newline
or not. Helpful for when we want the user to
input a value on the same line of what we are
printing.
"""
print(color_type, end="")
if is_input:
input(string)
else:
print(string)
self.reset_color()
def print_pink(self, string, is_input=False):
self.print_color(self.PINK, string, is_input)
def print_blue(self, string, is_input=False):
self.print_color(self.BLUE, string, is_input)
def print_purple(self, string, is_input=False):
self.print_color(self.PURPLE, string, is_input)
def print_green(self, string, is_input=False):
self.print_color(self.GREEN, string, is_input)
def print_yellow(self, string, is_input=False):
self.print_color(self.YELLOW, string, is_input)
def print_red(self, string, is_input=False):
self.print_color(self.RED, string, is_input)
|
ERROR_CHAR = "\u274c"
SUCCESS_CHAR = "\u2713"
def missingConfigurationFile():
print(
f"{ERROR_CHAR} nocpeasy.yml file does not exist, run `ocpeasy scaffold|init` first"
)
def stageCreated(stageId: str, pathProject: str):
print(
f"{SUCCESS_CHAR} new OpenShift stage created ({stageId}) for project [{pathProject}]"
)
def ocpeasyConfigFileUpdated():
print(f"{SUCCESS_CHAR} ocpeasy.yml file refreshed")
def missingStage():
print(f"{ERROR_CHAR} stage doesn't exist")
def ocpeasyStageAssetsGenerated():
print(f"{SUCCESS_CHAR} OpenShift assets generated")
def ocBinaryMissingFromPath():
print(f"{ERROR_CHAR} oc is not properly installed")
|
# a Star topology centered on Z
# D G J
# \ | /
# \ | /
# E H K
# \ | /
# \ | /
# F I L
# \ | /
# \ | /
# A --- B --- C --------- Z -------- M --- N --- O
# / | \
# / | \
# P S V
# / | \
# / | \
# Q T W
# / | \
# / | \
# R U X
#
topo = { 'A' : ['B'],
'B' : ['A', 'C'],
'C' : ['B', 'Z'],
'D' : ['E'],
'E' : ['D', 'F'],
'F' : ['E', 'Z'],
'G' : ['H'],
'H' : ['G', 'I'],
'I' : ['H', 'Z'],
'J' : ['K'],
'K' : ['J', 'L'],
'L' : ['K', 'Z'],
'M' : ['Z', 'N'],
'N' : ['M', 'O'],
'O' : ['N'],
'P' : ['Z', 'Q'],
'Q' : ['P', 'R'],
'R' : ['Q'],
'S' : ['Z', 'T'],
'T' : ['S', 'U'],
'U' : ['T'],
'V' : ['Z', 'W'],
'W' : ['V', 'X'],
'X' : ['W'],
'Z' : ['C', 'F', 'I', 'L', 'M', 'P', 'S', 'V']}
ans = \
'A:A0,B1,C2,D6,E5,F4,G6,H5,I4,J6,K5,L4,M4,N5,O6,P4,Q5,R6,S4,T5,U6,V4,W5,X6,Z3' + \
'B:A1,B0,C1,D5,E4,F3,G5,H4,I3,J5,K4,L3,M3,N4,O5,P3,Q4,R5,S3,T4,U5,V3,W4,X5,Z2' + \
'C:A2,B1,C0,D4,E3,F2,G4,H3,I2,J4,K3,L2,M2,N3,O4,P2,Q3,R4,S2,T3,U4,V2,W3,X4,Z1' + \
'D:A6,B5,C4,D0,E1,F2,G6,H5,I4,J6,K5,L4,M4,N5,O6,P4,Q5,R6,S4,T5,U6,V4,W5,X6,Z3' + \
'E:A5,B4,C3,D1,E0,F1,G5,H4,I3,J5,K4,L3,M3,N4,O5,P3,Q4,R5,S3,T4,U5,V3,W4,X5,Z2' + \
'F:A4,B3,C2,D2,E1,F0,G4,H3,I2,J4,K3,L2,M2,N3,O4,P2,Q3,R4,S2,T3,U4,V2,W3,X4,Z1' + \
'G:A6,B5,C4,D6,E5,F4,G0,H1,I2,J6,K5,L4,M4,N5,O6,P4,Q5,R6,S4,T5,U6,V4,W5,X6,Z3' + \
'H:A5,B4,C3,D5,E4,F3,G1,H0,I1,J5,K4,L3,M3,N4,O5,P3,Q4,R5,S3,T4,U5,V3,W4,X5,Z2' + \
'I:A4,B3,C2,D4,E3,F2,G2,H1,I0,J4,K3,L2,M2,N3,O4,P2,Q3,R4,S2,T3,U4,V2,W3,X4,Z1' + \
'J:A6,B5,C4,D6,E5,F4,G6,H5,I4,J0,K1,L2,M4,N5,O6,P4,Q5,R6,S4,T5,U6,V4,W5,X6,Z3' + \
'K:A5,B4,C3,D5,E4,F3,G5,H4,I3,J1,K0,L1,M3,N4,O5,P3,Q4,R5,S3,T4,U5,V3,W4,X5,Z2' + \
'L:A4,B3,C2,D4,E3,F2,G4,H3,I2,J2,K1,L0,M2,N3,O4,P2,Q3,R4,S2,T3,U4,V2,W3,X4,Z1' + \
'M:A4,B3,C2,D4,E3,F2,G4,H3,I2,J4,K3,L2,M0,N1,O2,P2,Q3,R4,S2,T3,U4,V2,W3,X4,Z1' + \
'N:A5,B4,C3,D5,E4,F3,G5,H4,I3,J5,K4,L3,M1,N0,O1,P3,Q4,R5,S3,T4,U5,V3,W4,X5,Z2' + \
'O:A6,B5,C4,D6,E5,F4,G6,H5,I4,J6,K5,L4,M2,N1,O0,P4,Q5,R6,S4,T5,U6,V4,W5,X6,Z3' + \
'P:A4,B3,C2,D4,E3,F2,G4,H3,I2,J4,K3,L2,M2,N3,O4,P0,Q1,R2,S2,T3,U4,V2,W3,X4,Z1' + \
'Q:A5,B4,C3,D5,E4,F3,G5,H4,I3,J5,K4,L3,M3,N4,O5,P1,Q0,R1,S3,T4,U5,V3,W4,X5,Z2' + \
'R:A6,B5,C4,D6,E5,F4,G6,H5,I4,J6,K5,L4,M4,N5,O6,P2,Q1,R0,S4,T5,U6,V4,W5,X6,Z3' + \
'S:A4,B3,C2,D4,E3,F2,G4,H3,I2,J4,K3,L2,M2,N3,O4,P2,Q3,R4,S0,T1,U2,V2,W3,X4,Z1' + \
'T:A5,B4,C3,D5,E4,F3,G5,H4,I3,J5,K4,L3,M3,N4,O5,P3,Q4,R5,S1,T0,U1,V3,W4,X5,Z2' + \
'U:A6,B5,C4,D6,E5,F4,G6,H5,I4,J6,K5,L4,M4,N5,O6,P4,Q5,R6,S2,T1,U0,V4,W5,X6,Z3' + \
'V:A4,B3,C2,D4,E3,F2,G4,H3,I2,J4,K3,L2,M2,N3,O4,P2,Q3,R4,S2,T3,U4,V0,W1,X2,Z1' + \
'W:A5,B4,C3,D5,E4,F3,G5,H4,I3,J5,K4,L3,M3,N4,O5,P3,Q4,R5,S3,T4,U5,V1,W0,X1,Z2' + \
'X:A6,B5,C4,D6,E5,F4,G6,H5,I4,J6,K5,L4,M4,N5,O6,P4,Q5,R6,S4,T5,U6,V2,W1,X0,Z3' + \
'Z:A3,B2,C1,D3,E2,F1,G3,H2,I1,J3,K2,L1,M1,N2,O3,P1,Q2,R3,S1,T2,U3,V1,W2,X3,Z0'
|
"""
Codemonk link: https://www.hackerearth.com/problem/algorithm/the-monk-and-kundan-6f73d491/
Kundan being a good friend of Monk, lets the Monk know that he has a following string Initial which consists of the
following letters in the mentioned order: "abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ". He also has
various lists of strings, and now he wants the Monk to compute the Hash value of each list of strings. Here's the
following algorithm used by the Monk to do it. So, the Hash is the summation of all the character values in the input:
(currentIndex + (position of the character In the string initial) ). And then this hash is multiplied by the number of
strings in the list.
Input - Output:
The first line contains an integer T, denoting the number of test cases.
For every test case, on a single line, there will be N number of strings all of them
separated by a space, denoting all the strings of that particular list of strings.
Print the required hash for each of the mentioned list of strings.
Sample input:
3
aA1 b
a b c d
aa BB cc DD
Sample Output:
132
24
640
"""
"""
This problem is extremely straight forward. To speed up everything we has the initial alphabet with values the indices
of the characters in the original alphabet.
Everything is insignificant here.
Final complexity: O(1)
"""
alphabet = "abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ"
hash_table = {}
for i in range(len(alphabet)):
hash_table[alphabet[i]] = i
t = int(input())
for _ in range(t):
str_array = list(input().split())
value = 0
for i in range(len(str_array)):
for j in range(len(str_array[i])):
value += hash_table[str_array[i][j]] + j
value *= len(str_array)
print(value)
|
class ErrorCode:
INVALID_ARGUMENT = 2
NOT_YET_SUPPORTED = 8
MISSING_REQUIREMENT = 9
FILE_NOT_FOUND = 20
FILE_CORRUPTED = 21
VPN_SERVICE_IS_NOT_WORKING = 90
VPN_ACCOUNT_NOT_FOUND = 91
VPN_ACCOUNT_NOT_MATCH = 92
VPN_NOT_YET_INSTALLED = 98
VPN_ALREADY_INSTALLED = 98
VPN_START_FAILED = 99
TIMEOUT = 100
class Versions:
VPN_VERSION = 'v4.36-9754-beta' # Default version
VPN_REPO = 'SoftEtherVPN/SoftEtherVPN_Stable'
GHRD_VERSION = 'v1.1.2'
GHRD_LINK = 'https://github.com/zero88/gh-release-downloader/releases/download/{}/ghrd'
PLATFORMS = {'linux/arm/32-eabi': 'arm_eabi-32', 'linux/arm/v7': 'arm-32', 'linux/arm/v6': 'arm-32',
'linux/mips': 'mips_el-32', 'linux/386': 'linux-x86', 'linux/amd64': 'linux-x64',
'linux/arm64': 'arm64'}
ARCHES = [a for a in PLATFORMS.values() if a]
class AppEnv:
BRAND = 'playio'
VPN_CORP_ENV = 'VPN_CORP'
VPN_HOME_ENV = 'VPN_HOME'
|
"""
Store the global parameter dictionary to be imported and modified by each test
"""
OPT = {'dataset': 'Cora', 'self_loop_weight': 1, 'leaky_relu_slope': 0.2, 'heads': 2, 'K': 10,
'attention_norm_idx': 0, 'add_source': False, 'alpha': 1, 'alpha_dim': 'vc', 'beta_dim': 'vc',
'hidden_dim': 6, 'block': 'attention', 'function': 'laplacian', 'augment': False, 'adjoint': False,
'tol_scale': 1, 'time': 1, 'input_dropout': 0.5, 'dropout': 0.5, 'method': 'euler', 'rewiring': None,
'no_alpha_sigmoid': False, 'reweight_attention': False, 'kinetic_energy': None, 'jacobian_norm2': None,
'total_deriv': None, 'directional_penalty': None, 'step_size': 1, 'beltrami': False, 'use_mlp': False,
'use_labels': False, 'fc_out': False, 'attention_type': "scaled_dot", 'batch_norm': False, 'square_plus': False,
'feat_hidden_dim': 16, 'pos_enc_hidden_dim': 8, 'gdc_method': 'ppr', 'gdc_sparsification': 'topk', 'gdc_k': 4,
'gdc_threshold': 1e-5, 'ppr_alpha': 0.05, 'exact': True, 'pos_enc_orientation': 'row', 'pos_enc_type': 'GDC',
'max_nfe': 1000, 'pos_enc_csv': False, 'max_test_steps': 1000, 'edge_sampling_add_type': 'importance',
'fa_layer': False, 'att_samp_pct': 1, 'edge_sampling_sym': False}
|
# Current version of the bcftbx package
__version__ = '1.11.1'
def get_version():
"""Returns a string with the current version of the bcftbx package (e.g., "0.2.0")
"""
return __version__
|
# @Title: 出现次数最多的子树元素和 (Most Frequent Subtree Sum)
# @Author: KivenC
# @Date: 2020-08-17 21:01:36
# @Runtime: 76 ms
# @Memory: 17.2 MB
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def findFrequentTreeSum(self, root: TreeNode) -> List[int]:
if not root:
return []
record = collections.defaultdict(int)
def traverse(root: TreeNode) -> int:
if not root:
return 0
left = traverse(root.left)
right = traverse(root.right)
tmp = root.val + left + right
record[tmp] += 1
return tmp
traverse(root)
val = max(record.values())
return filter(lambda x: record[x] == val, record.keys())
|
person='abc'
video_source_number=0
thresholds=[.9,.85,.85,.85,.85,.95,.9]
extra_thresholds=[.85,.85,.85,.85]
#select the image widow and press w,s,a,d keys while running the script and looking in appropriate direction to change threshold
tsrf=True
#if true only image of eye will be processed may increase accuracy
mode=False
print_frame_rate=False
print_additive_average_frame_rate=False
cursor_speed=3
auto_correct_threshold=False
auto_correct_left_pixel_limit=.5
auto_correct_right_pixel_limit=.5
auto_correct_up_pixel_limit=.5
auto_correct_down_pixel_limit=.5
delay_after_dclick_or_enable=.1
threshold_correction_rate=.01
auto_threshold_correct_rate=.01
brightness_correction=False
#brightness_correction doesnt work well
show_left_eye=True
show_left_eyebrow=True
landmarks=[['bros',17,21,19,'1122'],['eye',36,39,37,40],['eye',36,39,37,40],['eye',36,39,37,40],['eye',36,39,37,40],['eye',36,39,37,40],['eye',42,45,43,46]]
data=['bros','up','down','left','right','dclick','r_close']
color=[[0,0,0],[0,50,100],[100,50,0],[100,150,200],[200,150,100],[200,0,0],[0,0,0]]
extra_colors=[[0,50,100],[100,50,0],[100,150,200],[200,150,100]]
correct=['e','u','d','l','r','c','m']
steps=['raise your left eyebrow','look up','look down','look left','look right','close left eye','close right eye']
if tsrf==False and brightness_correction==True:
brightness_correction=False
print("brightness correction can't work with tsrf disabled as it takes cropped image from tensorflow and makes its average brightness equal to data")
print("turning off brightness correction")
if tsrf==False and mode==True:
mode==False;print('2 modes only when tsrf enabled')
|
#
# PySNMP MIB module RBTWS-RF-DETECT-TC (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RBTWS-RF-DETECT-TC
# Produced by pysmi-0.3.4 at Mon Apr 29 20:45:14 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, ConstraintsUnion, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint")
rbtwsMibs, = mibBuilder.importSymbols("RBTWS-ROOT-MIB", "rbtwsMibs")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
IpAddress, Gauge32, TimeTicks, MibIdentifier, Bits, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity, Counter64, Integer32, Unsigned32, iso, ModuleIdentity, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "Gauge32", "TimeTicks", "MibIdentifier", "Bits", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity", "Counter64", "Integer32", "Unsigned32", "iso", "ModuleIdentity", "NotificationType")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
rbtwsRFDetectTc = ModuleIdentity((1, 3, 6, 1, 4, 1, 52, 4, 15, 1, 4, 11))
rbtwsRFDetectTc.setRevisions(('2007-04-18 00:02', '2007-03-28 00:01',))
if mibBuilder.loadTexts: rbtwsRFDetectTc.setLastUpdated('200704191855Z')
if mibBuilder.loadTexts: rbtwsRFDetectTc.setOrganization('Enterasys Networks')
class RbtwsRFDetectClassificationReason(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))
namedValues = NamedValues(("other", 1), ("default-classification", 2), ("rogue-list", 3), ("ap-in-modo", 4), ("neighbor-list", 5), ("ssid-masquerade", 6), ("seen-in-network", 7), ("ad-hoc", 8), ("ssid-list", 9), ("pass-fingerprint", 10), ("fail-fingerprint", 11))
class RbtwsRFDetectClassification(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))
namedValues = NamedValues(("other", 1), ("not-classified", 2), ("member", 3), ("neighbor", 4), ("suspect", 5), ("rogue", 6))
class RbtwsRFDetectNetworkingMode(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2))
namedValues = NamedValues(("ad-hoc", 1), ("infrastructure", 2))
mibBuilder.exportSymbols("RBTWS-RF-DETECT-TC", RbtwsRFDetectClassification=RbtwsRFDetectClassification, rbtwsRFDetectTc=rbtwsRFDetectTc, PYSNMP_MODULE_ID=rbtwsRFDetectTc, RbtwsRFDetectNetworkingMode=RbtwsRFDetectNetworkingMode, RbtwsRFDetectClassificationReason=RbtwsRFDetectClassificationReason)
|
class Border:
def __init__(self, l: bool = False, r: bool = False, t: bool = False, b: bool = False):
"""
Элемент границы.
:param l: должна ли граница соединяться слева
:param r: должна ли граница соединяться справа
:param t: должна ли граница соединяться сверху
:param b: должна ли граница соединяться снизу
"""
self.left = l
self.right = r
self.top = t
self.bottom = b
def __int__(self):
i = 0
if self.left:
i += 1
if self.right:
i += 2
if self.top:
i += 4
if self.bottom:
i += 8
return i
def __eq__(self, other):
if not isinstance(other, Border):
return False
return int(self) == int(other)
def __str__(self):
i = int(self)
if i == 0:
ch = ' '
elif i == 1:
ch = '╴'
elif i == 2:
ch = '╶'
elif i == 3:
ch = '─'
elif i == 4:
ch = '╵'
elif i == 5:
ch = '┘'
elif i == 6:
ch = '└'
elif i == 7:
ch = '┴'
elif i == 8:
ch = '╷'
elif i == 9:
ch = '┐'
elif i == 10:
ch = '┌'
elif i == 11:
ch = '┬'
elif i == 12:
ch = '│'
elif i == 13:
ch = '┤'
elif i == 14:
ch = '├'
elif i == 15:
ch = '┼'
else:
ch = ''
return ch
def __repr__(self):
return "<Border '{}'>".format(str(self))
def __add__(self, other):
if not isinstance(other, Border):
raise TypeError("unsupported operand type(s) for +: 'Border' and '{}'".format(type(other)))
l = self.left or other.left
r = self.right or other.right
t = self.top or other.top
b = self.bottom or other.bottom
return Border(l=l, r=r, t=t, b=b)
def __sub__(self, other):
if not isinstance(other, Border):
raise TypeError("unsupported operand type(s) for -: 'Border' and '{}'".format(type(other)))
l = (int(self) & 0b0001) > (int(other) & 0b0001)
r = (int(self) & 0b0010) > (int(other) & 0b0010)
t = (int(self) & 0b0100) > (int(other) & 0b0100)
b = (int(self) & 0b1000) > (int(other) & 0b1000)
return Border(l=l, r=r, t=t, b=b)
def __copy__(self):
return Border(l=self.left, r=self.right, t=self.top, b=self.bottom)
|
# -*- coding: utf-8 -*-
"""
Интерфейс к различным устройствам, на которых будет моделироваться сеть.
"""
class Device(object):
"""
Абстрактный класс для устройств
"""
def __init__(self, config):
self.config = config
def tick_neurons(self, domain):
"""
Проверяем нейроны на спайки.
"""
raise NotImplementedError
def tick_synapses(self, domain):
"""
Передаем сигналы от pre-нейронов, у которых наступил спайк к
post-нейронам
"""
raise NotImplementedError
def tick_transmitter_index(self, domain):
"""
Получаем спайки из устройства для нейронов с флагом IS_TRANSMITTER
"""
raise NotImplementedError
def tick_receiver_index(self, domain):
"""
Передаем в устройство спайки для нейронов с флагом IS_RECEIVER
"""
raise NotImplementedError
def create(self, data):
"""
Создает указатель на данные на устройстве для data
"""
raise NotImplementedError
def upload(self, device_data_pointer, data, is_blocking=True):
"""
Данные из data копируются на устройство и возвращается указатель
на данные на устройсте
"""
raise NotImplementedError
def download(self, data, device_data_pointer, is_blocking=True):
"""
Данные с устройства (указатель dev_data) копируются в data
"""
raise NotImplementedError
def clean(self):
"""
Правильно завершаем работу устройства, если это необходимо
"""
pass
|
# Collaborators (including web sites where you got help: (enter none if you didn't need help)
# none
# A note on style: Dictionaries can be defined before or after functions.
board = {'1': ' ' , '2': ' ' , '3': ' ' ,'4': ' ' , '5': ' ' , '6': ' ' ,'7': ' ' , '8': ' ' , '9': ' ' }
def gameboard(board):
print(board['1'] + '|' + board['2'] + '|' + board['3'])
print('-+-+-')
print(board['4'] + '|' + board['5'] + '|' + board['6'])
print('-+-+-')
print(board['7'] + '|' + board['8'] + '|' + board['9'])
def main():
num = 0
global player
player = 'X'
for i in range(10):
gameboard(board)
print("It is player " + player + "'s turn. " + player + ", what do you want to move? Use the keys: 1, 2, 3, 4, 5, 6, 7, 8, 9 to pick a spot on the board: ")
move = input()
if board[move] == ' ':
board[move] = player
num += 1
else:
print("That spot is already filled. pick another move")
continue
if num >= 1:
if board['1'] == board['2'] == board['3'] != ' ':
gameboard(board)
print(player + " won.")
break
elif board['4'] == board['5'] == board['6'] != ' ':
gameboard(board)
print(player + " won.")
break
elif board['7'] == board['8'] == board['9'] != ' ':
gameboard(board)
print(player + " won.")
break
elif board['1'] == board['4'] == board['7'] != ' ':
gameboard(board)
print(player + " won.")
break
elif board['2'] == board['5'] == board['8'] != ' ':
gameboard(board)
print(player + " won.")
break
elif board['3'] == board['6'] == board['9'] != ' ':
gameboard(board)
print(player + " won.")
break
elif board['1'] == board['5'] == board['9'] != ' ':
gameboard(board)
print(player + " won.")
break
elif board['3'] == board['5'] == board['7'] != ' ':
gameboard(board)
print(player + " won.")
break
if player =='X':
player = 'O'
else:
player = 'X'
if num == 9:
gameboard(board)
print("It's a Tie!!")
break
try:
main()
except:
print("bad input")
if player == 'X':
player = 'X'
else:
player = 'O'
main()
|
{
"cells": [
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Financial Analysis\n",
"Total Months:86\n",
"Total Amount:38382578\n",
"-2315.1176470588234\n",
"Feb-2012 1926159\n",
"Sep-2013 -2196167\n"
]
}
],
"source": [
"#import file\n",
"import os\n",
"import csv\n",
"\n",
"#declare the csv path\n",
"csvpath = os.path.join('Resources','budget_data.csv')\n",
"\n",
"#declare the variables \n",
"total_months = 0\n",
"total_revenue =0\n",
"changes =[]\n",
"date_count = []\n",
"greatest_increase = 0\n",
"greatest_increase_month = 0\n",
"greatest_decrease = 0\n",
"greatest_decrease_month = 0\n",
"\n",
"# Open the csv\n",
"with open(csvpath, newline = '') as csvfile:\n",
" csvreader = csv.reader(csvfile, delimiter = ',')\n",
" next(csvreader, None)\n",
" row = next(csvreader)\n",
" \n",
" # calculate the total number of months and total revenue\n",
" previous_profit = int(row[1])\n",
" total_months = total_months + 1\n",
" total_revenue = total_revenue + int(row[1])\n",
" greatest_increase = int(row[1])\n",
" greatest_increase_month = row[0]\n",
"\n",
" for row in csvreader:\n",
" \n",
" total_months = total_months + 1\n",
" total_revenue = total_revenue + int(row[1])\n",
"\n",
" # calculate change from month-to-month\n",
" change = int(row[1]) - previous_profit\n",
" changes.append(change)\n",
" previous_profit = int(row[1])\n",
" date_count.append(row[0])\n",
" \n",
" #calculate the greatest increase\n",
" if int(row[1]) > greatest_increase:\n",
" greatest_increase = int(row[1])\n",
" greatest_increase_month = row[0]\n",
" \n",
" #calculate the greatest decrease\n",
" if int(row[1]) < greatest_decrease:\n",
" greatest_decrease = int(row[1])\n",
" greatest_decrease_month = row[0] \n",
" \n",
" # calculate the average and date\n",
" average_change = sum(changes)/len(changes)\n",
"\n",
" high = max(changes)\n",
" low = min(changes)\n",
"\n",
" # print values\n",
" print(\"Financial Analysis\")\n",
" print(\"Total Months:\" + str(total_months))\n",
" print(\"Total Amount:\" + str(total_revenue))\n",
" print(average_change)\n",
" print(greatest_increase_month, max(changes))\n",
" print(greatest_decrease_month, min(changes))\n",
"\n",
"\n",
" # write output files\n",
" PyBank = open(\"output.txt\",\"w+\")\n",
" PyBank.write(\"Financial Analysis\") \n",
" PyBank.write('\\n' +\"Total Months\" + str(total_months)) \n",
" PyBank.write('\\n' +\"Total Amount\" + str(total_revenue)) \n",
" PyBank.write('\\n' +\"Average\" + str(average_change)) \n",
" PyBank.write('\\n' +greatest_increase_month) \n",
" PyBank.write('\\n' +str(high))\n",
" PyBank.write('\\n' +greatest_decrease_month) \n",
" PyBank.write('\\n' +str(low)) "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.9.1 64-bit ('3.9')",
"language": "python",
"name": "python391jvsc74a57bd07812ea015bdcee6f23a998adcdd2ef97c151c0c241b7b7070987d9313e41299d"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.1"
},
"metadata": {
"interpreter": {
"hash": "7812ea015bdcee6f23a998adcdd2ef97c151c0c241b7b7070987d9313e41299d"
}
}
},
"nbformat": 4,
"nbformat_minor": 4
}
|
# Puzzle Input
with open('Day13_Input.txt') as puzzle_input:
bus_info = puzzle_input.read().split('\n')
# Get the departure time and the IDs
departure = int(bus_info[0])
bus_id = bus_info[1].split(',')
# Remove the x's
while 'x' in bus_id:
bus_id.remove('x')
# Convert the IDs to integers
bus_id = list(map(int, bus_id))
# Calculate the waiting times
waiting_times = []
for ID in bus_id: # The negative part is the time the bus departs before we can leave
waiting_times += [-(departure % ID) + ID] # the positive part changes it to after we left
# See which bus gave us the minimum waiting time
min_index = waiting_times.index(min(waiting_times))
# Show the result
print(waiting_times[min_index] * bus_id[min_index])
|
#!/usr/bin/env python
# -*- encoding:utf8 -*-
#*******************************************
# Author: LuoFeng
# Date: 2019-05-18
# Filename: 99_table.py
# Describe:
#*******************************************
# 正方形九九乘法表
for n in range(1,10):
# python3 print() 函数支持 end 参数,python2 不支持, 默认值 end = '\n'
for m in range(1,10):
print('{} * {} = {}'.format(n, m, n*m), end='\t')
print('')
# 左上三角形九九乘法表
for n in range(1,10):
# python3 print() 函数支持 end 参数,python2 不支持, 默认值 end = '\n'
for m in range(n,10):
print('{} * {} = {}'.format(n, m, n*m), end='\t')
print('')
# 左下三角形九九乘法表
for n in range(1,10):
# python3 print() 函数支持 end 参数,python2 不支持, 默认值 end = '\n'
for m in range(1,n+1):
print('{} * {} = {}'.format(n, m, n*m), end='\t')
print('')
|
# AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"PseudoData": "00_pseudodata.ipynb",
"paper_sig": "00_pseudodata.ipynb",
"paper_bkg": "00_pseudodata.ipynb",
"ModelWrapper": "01_model_wrapper.ipynb",
"DataSet": "02_data.ipynb",
"WeightedDataLoader": "02_data.ipynb",
"DataPair": "02_data.ipynb",
"get_paper_data": "02_data.ipynb",
"AbsCallback": "03_callback.ipynb",
"LossTracker": "03_callback.ipynb",
"EarlyStopping": "03_callback.ipynb",
"SaveBest": "03_callback.ipynb",
"PredHandler": "03_callback.ipynb",
"PaperSystMod": "03_callback.ipynb",
"GradClip": "03_callback.ipynb",
"to_device": "04_utils.ipynb",
"device": "04_utils.ipynb",
"to_np": "04_utils.ipynb",
"init_net": "04_utils.ipynb",
"plt_style": "05_plotting.ipynb",
"plt_sz": "05_plotting.ipynb",
"plt_cat_pal": "05_plotting.ipynb",
"plt_tk_sz": "05_plotting.ipynb",
"plt_lbl_sz": "05_plotting.ipynb",
"plt_title_sz": "05_plotting.ipynb",
"plt_leg_sz": "05_plotting.ipynb",
"plot_preds": "05_plotting.ipynb",
"plot_likelihood": "05_plotting.ipynb",
"bin_preds": "06_inference.ipynb",
"get_shape": "06_inference.ipynb",
"get_paper_syst_shapes": "06_inference.ipynb",
"get_likelihood_width": "06_inference.ipynb",
"interp_shape": "06_inference.ipynb",
"calc_nll": "06_inference.ipynb",
"jacobian": "06_inference.ipynb",
"calc_grad_hesse": "06_inference.ipynb",
"calc_profile": "06_inference.ipynb",
"VariableSoftmax": "07_inferno_exact.ipynb",
"AbsInferno": "07_inferno_exact.ipynb",
"PaperInferno": "07_inferno_exact.ipynb",
"InfernoPred": "07_inferno_exact.ipynb",
"AbsApproxInferno": "08_inferno_interp.ipynb",
"ApproxPaperInferno": "08_inferno_interp.ipynb"}
modules = ["pseudodata.py",
"model_wrapper.py",
"data.py",
"callback.py",
"utils.py",
"plotting.py",
"inference.py",
"inferno.py"]
doc_url = "https://GilesStrong.github.io/pytorch_inferno/"
git_url = "https://github.com/GilesStrong/pytorch_inferno/tree/master/"
def custom_doc_links(name): return None
|
def min(x, y):
return x > y and x or y
def gcd(x, y):
res = -1
for i in range(1, min(x, y) + 1):
if x % i == 0 and y % i == 0:
if res < i: res = i
return res
N, M = map(int, input().split())
print(gcd(N, M))
print(gcd(N, M) * (N // gcd(N, M)) * (M // gcd(N, M)))
|
#! /root/anaconda3/bin/python
try:
result = 1 / 2
#result = 1 / 0
#result = int('abc')
except ImportError:
print("导入错误")
except ZeroDivisionError:
print("0不能作为除数")
except TypeError:
print("类型错误")
else:
print(result)
finally:
print("释放资源")
print("结束")
############################################
|
# Python - 3.6.0
fruitList = {
1: 'kiwi',
2: 'pear',
3: 'kiwi',
4: 'banana',
5: 'melon',
6: 'banana',
7: 'melon',
8: 'pineapple',
9: 'apple',
10: 'pineapple',
11: 'cucumber',
12: 'pineapple',
13: 'cucumber',
14: 'orange',
15: 'grape',
16: 'orange',
17: 'grape',
18: 'apple',
19: 'grape',
20: 'cherry',
21: 'pear',
22: 'cherry',
23: 'pear',
24: 'kiwi',
25: 'banana',
26: 'kiwi',
27: 'apple',
28: 'melon',
29: 'banana',
30: 'melon',
31: 'pineapple',
32: 'melon',
33: 'pineapple',
34: 'cucumber',
35: 'orange',
36: 'apple',
37: 'orange',
38: 'grape',
39: 'orange',
40: 'grape',
41: 'cherry',
42: 'pear',
43: 'cherry',
44: 'pear',
45: 'apple',
46: 'pear',
47: 'kiwi',
48: 'banana',
49: 'kiwi',
50: 'banana',
51: 'melon',
52: 'pineapple',
53: 'melon',
54: 'apple',
55: 'cucumber',
56: 'pineapple',
57: 'cucumber',
58: 'orange',
59: 'cucumber',
60: 'orange',
61: 'grape',
62: 'cherry',
63: 'apple',
64: 'cherry',
65: 'pear',
66: 'cherry',
67: 'pear',
68: 'kiwi',
69: 'pear',
70: 'kiwi',
71: 'banana',
72: 'apple',
73: 'banana',
74: 'melon',
75: 'pineapple',
76: 'melon',
77: 'pineapple',
78: 'cucumber',
79: 'pineapple',
80: 'cucumber',
81: 'apple',
82: 'grape',
83: 'orange',
84: 'grape',
85: 'cherry',
86: 'grape',
87: 'cherry',
88: 'pear',
89: 'cherry',
90: 'apple',
91: 'kiwi',
92: 'banana',
93: 'kiwi',
94: 'banana',
95: 'melon',
96: 'banana',
97: 'melon',
98: 'pineapple',
99: 'apple',
100: 'pineapple'
}
def subtract_sum(number):
while number > 0:
number -= sum([int(i) for i in str(number)])
if number in fruitList:
return fruitList[number]
return ''
|
__all__ = [
'base_controller',
'imaging',
'telephony',
'data_tools',
'security_and_networking',
'geolocation',
'e_commerce',
'www',
]
|
f = open('test16.txt', 'rt')
rows = f.readlines()
for row in rows:
print(row)
f.close()
# while True:
# row = f.readline()
# print(row)
# if not row:
# break
# f.close()
|
flagArray = [0 for i in range(32)]
flag = ""
flagArray[0] = 'd'
flagArray[29] = '9'
flagArray[4] = 'r'
flagArray[2] = '5'
flagArray[23] = 'r'
flagArray[3] = 'c'
flagArray[17] = '4'
flagArray[1] = '3'
flagArray[7] = 'b'
flagArray[10] = '_'
flagArray[5] = '4'
flagArray[9] = '3'
flagArray[11] = 't'
flagArray[15] = 'c'
flagArray[8] = 'l'
flagArray[12] = 'H'
flagArray[20] = 'c'
flagArray[14] = '_'
flagArray[6] = 'm'
flagArray[24] = '5'
flagArray[18] = 'r'
flagArray[13] = '3'
flagArray[19] = '4'
flagArray[21] = 'T'
flagArray[16] = 'H'
flagArray[27] = '5'
flagArray[30] = '2'
flagArray[25] = '_'
flagArray[22] = '3'
flagArray[28] = '0'
flagArray[26] = '7'
flagArray[31] = 'e'
for i in range(0, len(flagArray)):
flag = flag + str(flagArray[i])
print(flag)
|
def percents_yearly_to_monthly(yearly_percent):
return ((1 + yearly_percent) ** (1 / 12)) - 1
def currency_str(number, currency="ILS"):
if currency == "ILS":
return "₪{:,.2f}".format(number)
if currency == "USD":
return "${:,.2f}".format(number)
return "{:,.2f} ".format(number) + currency
|
print("Enter a selection from the below menu. Press '0' to exit.")
menu_items = ["Bake a loaf of bread", "Bake a pound cake", "Prepare Roast Chicken", "Make Curry", \
"Put a rack of ribs in the smoker", "Buy dinner out", "Have ice cream", "Sandwiches - again"]
select = None
while True:
for i in range(len(menu_items)):
print(f"{i+1}:\t{menu_items[i]}")
select = int(input("\nMake a selection: "))
if select == 0:
print("Shutting down!\n")
break
if select > len(menu_items):
print("I don't have that many options today!\n")
continue
select -= 1
print(f"\nYou selected: {menu_items[select]}\n")
|
"""
Write a program to remove the item present at index 4 and
add it to the 2nd position and at the end of the list.
Given:
list1 = [34, 54, 67, 89, 11, 43, 94]
Expected Output:
List After removing element at index 4 [34, 54, 67, 89, 43, 94]
List after Adding element at index 2 [34, 54, 11, 67, 89, 43, 94]
List after Adding element at last [34, 54, 11, 67, 89, 43, 94, 11]
"""
list1 = [34, 54, 67, 89, 11, 43, 94]
element = list1[4]
list1.pop(4)
list1.insert(2, element)
list1.append(element)
print(list1)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.