shell bypass 403
o
abj � @ s� d dl mZmZmZ d dlmZ d dlZd dlZd dlZd dl Z d dl
Z
d dlZd dlZd dl
Z
d dlZdZed�Zed�Zed�ZejjZejjZd\ZZee d kZed
kr^ejd ZneZe
j �!e�phe
j"Z#e
j �$e#d�Z%e
j �$e#d�Z&d
d� Z'dd� Z(dd� Z)dd� Z*dd� Z+dd� Z,dd� Z-d+dd�Z.G dd � d �Z/G d!d"� d"e0�Z1G d#d$� d$e2�Z3G d%d&� d&ej4�Z5G d'd(� d(ej4�Z6d)d*� Z7ed
kr�e7� dS dS ),� )�run_unittest�verbose�requires_IEEE_754)�supportNg�h㈵��>�nan�inf�-inf)� ��7y�ACg�):��@g��7y�AC�__main__zmath_testcases.txtzcmath_testcases.txtc C s. t �dt �d| ��d }|dk r|d }|S )a� Convert a non-NaN float x to an integer, in such a way that
adjacent floats are converted to adjacent integers. Then
abs(ulps(x) - ulps(y)) gives the difference in ulps between two
floats.
The results from this function will only make sense on platforms
where native doubles are represented in IEEE 754 binary64 format.
Note: 0.0 and -0.0 are converted to 0 and -1, respectively.
z<qz<dr l )�struct�unpack�pack)�x�n� r �7/usr/local/python-3.10/lib/python3.10/test/test_math.py�to_ulps'