rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
return(subtype.substring(0, idx)); | return mimeType.substring(start + 1, end); | getSubType(){ int idx = mimeType.indexOf("/"); if (idx == -1) return(""); String subtype = mimeType.substring(idx + 1); idx = subtype.indexOf(" "); if (idx == -1) return(subtype); else return(subtype.substring(0, idx));} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1e7aa2954f7fa9e45a7b68da25c13d3846158a39/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java |
String mime = getMimeType(); int i = mime.indexOf(";"); if (i != -1) mime = mime.substring(0, i); | isMimeTypeEqual(String mimeType){ // FIXME: Need to handle default attributes and parameters return(this.mimeType.equals(mimeType));} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1e7aa2954f7fa9e45a7b68da25c13d3846158a39/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java | |
return(this.mimeType.equals(mimeType)); | i = mimeType.indexOf(";"); if (i != -1) mimeType = mimeType.substring(0, i); return mime.equals(mimeType); | isMimeTypeEqual(String mimeType){ // FIXME: Need to handle default attributes and parameters return(this.mimeType.equals(mimeType));} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1e7aa2954f7fa9e45a7b68da25c13d3846158a39/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java |
throw new RuntimeException("Not implemented"); | return Remote.class.isAssignableFrom (representationClass); | isRepresentationClassRemote(){ // FIXME: Implement throw new RuntimeException("Not implemented");} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1e7aa2954f7fa9e45a7b68da25c13d3846158a39/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java |
return("DataFlavor[representationClass=" + representationClass.getName() + ",mimeType=" + mimeType + "humanPresentableName=" + humanPresentableName); | return(getClass().getName() + "[representationClass=" + getRepresentationClass().getName() + ",mimeType=" + getMimeType() + ",humanPresentableName=" + getHumanPresentableName() + "]"); | toString(){ return("DataFlavor[representationClass=" + representationClass.getName() + ",mimeType=" + mimeType + "humanPresentableName=" + humanPresentableName);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1e7aa2954f7fa9e45a7b68da25c13d3846158a39/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java |
public AcceptAllFileFilter() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicFileChooserUI.java | ||
protected ApproveSelectionAction() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicFileChooserUI.java | ||
public BasicFileView() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicFileChooserUI.java | ||
protected CancelSelectionAction() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicFileChooserUI.java | ||
protected ChangeToParentDirectoryAction() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicFileChooserUI.java | ||
protected GoHomeAction() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicFileChooserUI.java | ||
protected NewFolderAction() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicFileChooserUI.java | ||
protected SelectionListener() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicFileChooserUI.java | ||
protected UpdateAction() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicFileChooserUI.java | ||
public File createFileObject(String path) | public File createFileObject(File dir, String filename) | public File createFileObject(String path) { return new File(path); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/FileSystemView.java/buggy/core/src/classpath/javax/javax/swing/filechooser/FileSystemView.java |
return new File(path); | return new File(dir, filename); | public File createFileObject(String path) { return new File(path); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/FileSystemView.java/buggy/core/src/classpath/javax/javax/swing/filechooser/FileSystemView.java |
public String getDescription(File value0) { return null; } | public String getDescription(File file) { return null; } | public String getDescription(File value0) { return null; // TODO } // getDescription() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/FileView.java/buggy/core/src/classpath/javax/javax/swing/filechooser/FileView.java |
public Icon getIcon(File value0) { return null; } | public Icon getIcon(File file) { return null; } | public Icon getIcon(File value0) { return null; // TODO } // getIcon() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/FileView.java/buggy/core/src/classpath/javax/javax/swing/filechooser/FileView.java |
public String getName(File file) { return null; } | public String getName(File file) { return null; } | public String getName(File file) { return null; // TODO } // getName() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/FileView.java/buggy/core/src/classpath/javax/javax/swing/filechooser/FileView.java |
public String getTypeDescription(File value0) { return null; } | public String getTypeDescription(File file) { return null; } | public String getTypeDescription(File value0) { return null; // TODO } // getTypeDescription() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/FileView.java/buggy/core/src/classpath/javax/javax/swing/filechooser/FileView.java |
setBorder(noFocusBorder); | public BasicComboBoxRenderer() { setHorizontalAlignment(SwingConstants.LEFT); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxRenderer.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxRenderer.java | |
public static double IEEEremainder(double x, double y) { | public static double IEEEremainder(double x, double y) { | public static double IEEEremainder(double x, double y) { // Purge off exception values. if (x == Double.NEGATIVE_INFINITY || !(x < Double.POSITIVE_INFINITY) || y == 0 || y != y) return Double.NaN; boolean negative = x < 0; x = abs(x); y = abs(y); if (x == y || x == 0) return 0 * x; // Get correct sign. // A... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (x == Double.NEGATIVE_INFINITY || !(x < Double.POSITIVE_INFINITY) || y == 0 || y != y) | if (x == Double.NEGATIVE_INFINITY || ! (x < Double.POSITIVE_INFINITY) || y == 0 || y != y) | public static double IEEEremainder(double x, double y) { // Purge off exception values. if (x == Double.NEGATIVE_INFINITY || !(x < Double.POSITIVE_INFINITY) || y == 0 || y != y) return Double.NaN; boolean negative = x < 0; x = abs(x); y = abs(y); if (x == y || x == 0) return 0 * x; // Get correct sign. // A... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (y < 4 / TWO_1023) { if (x + x > y) { | if (y < 4 / TWO_1023) { if (x + x > y) { | public static double IEEEremainder(double x, double y) { // Purge off exception values. if (x == Double.NEGATIVE_INFINITY || !(x < Double.POSITIVE_INFINITY) || y == 0 || y != y) return Double.NaN; boolean negative = x < 0; x = abs(x); y = abs(y); if (x == y || x == 0) return 0 * x; // Get correct sign. // A... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
} else { | } else { | public static double IEEEremainder(double x, double y) { // Purge off exception values. if (x == Double.NEGATIVE_INFINITY || !(x < Double.POSITIVE_INFINITY) || y == 0 || y != y) return Double.NaN; boolean negative = x < 0; x = abs(x); y = abs(y); if (x == y || x == 0) return 0 * x; // Get correct sign. // A... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (x > y) { | if (x > y) { | public static double IEEEremainder(double x, double y) { // Purge off exception values. if (x == Double.NEGATIVE_INFINITY || !(x < Double.POSITIVE_INFINITY) || y == 0 || y != y) return Double.NaN; boolean negative = x < 0; x = abs(x); y = abs(y); if (x == y || x == 0) return 0 * x; // Get correct sign. // A... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
private StrictMath() { | private StrictMath() { | private StrictMath() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
public static int abs(int i) { | public static int abs(int i) { | public static int abs(int i) { return (i < 0) ? -i : i; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
public static double acos(double x) { | public static double acos(double x) { | public static double acos(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? PI : 0; if (x < 0.5) { if (x < 1 / TWO_57) return PI / 2; double z = x * x; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (!(x <= 1)) | if (! (x <= 1)) | public static double acos(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? PI : 0; if (x < 0.5) { if (x < 1 / TWO_57) return PI / 2; double z = x * x; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (x < 0.5) { | if (x < 0.5) { | public static double acos(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? PI : 0; if (x < 0.5) { if (x < 1 / TWO_57) return PI / 2; double z = x * x; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); | double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); | public static double acos(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? PI : 0; if (x < 0.5) { if (x < 1 / TWO_57) return PI / 2; double z = x * x; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); | double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); | public static double acos(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? PI : 0; if (x < 0.5) { if (x < 1 / TWO_57) return PI / 2; double z = x * x; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); | double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); | public static double acos(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? PI : 0; if (x < 0.5) { if (x < 1 / TWO_57) return PI / 2; double z = x * x; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
public static double asin(double x) { | public static double asin(double x) { | public static double asin(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? -PI / 2 : PI / 2; if (x < 0.5) { if (x < 1 / TWO_27) return negative ? -x : x; double t = x * x; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (!(x <= 1)) | if (! (x <= 1)) | public static double asin(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? -PI / 2 : PI / 2; if (x < 0.5) { if (x < 1 / TWO_27) return negative ? -x : x; double t = x * x; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (x < 0.5) { | if (x < 0.5) { | public static double asin(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? -PI / 2 : PI / 2; if (x < 0.5) { if (x < 1 / TWO_27) return negative ? -x : x; double t = x * x; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3 + t * (PS4 + t * PS5))))); | double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3 + t * (PS4 + t * PS5))))); | public static double asin(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? -PI / 2 : PI / 2; if (x < 0.5) { if (x < 1 / TWO_27) return negative ? -x : x; double t = x * x; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3 + t * (PS4 + t * PS5))))); | double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3 + t * (PS4 + t * PS5))))); | public static double asin(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? -PI / 2 : PI / 2; if (x < 0.5) { if (x < 1 / TWO_27) return negative ? -x : x; double t = x * x; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (x >= 0.975) { | if (x >= 0.975) { | public static double asin(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? -PI / 2 : PI / 2; if (x < 0.5) { if (x < 1 / TWO_27) return negative ? -x : x; double t = x * x; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
} else { | } else { | public static double asin(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? -PI / 2 : PI / 2; if (x < 0.5) { if (x < 1 / TWO_27) return negative ? -x : x; double t = x * x; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
public static double atan(double x) { | public static double atan(double x) { | public static double atan(double x) { double lo; double hi; boolean negative = x < 0; if (negative) x = -x; if (x >= TWO_66) return negative ? -PI / 2 : PI / 2; if (!(x >= 0.4375)) // |x|<7/16, or NaN. { if (!(x >= 1 / TWO_29)) // Small, or NaN. return negative ? -x : x; lo = hi = 0; } else if (x <... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (!(x >= 0.4375)) | if (! (x >= 0.4375)) | public static double atan(double x) { double lo; double hi; boolean negative = x < 0; if (negative) x = -x; if (x >= TWO_66) return negative ? -PI / 2 : PI / 2; if (!(x >= 0.4375)) // |x|<7/16, or NaN. { if (!(x >= 1 / TWO_29)) // Small, or NaN. return negative ? -x : x; lo = hi = 0; } else if (x <... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (!(x >= 1 / TWO_29)) | if (! (x >= 1 / TWO_29)) | public static double atan(double x) { double lo; double hi; boolean negative = x < 0; if (negative) x = -x; if (x >= TWO_66) return negative ? -PI / 2 : PI / 2; if (!(x >= 0.4375)) // |x|<7/16, or NaN. { if (!(x >= 1 / TWO_29)) // Small, or NaN. return negative ? -x : x; lo = hi = 0; } else if (x <... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
} else if (x < 1.1875) { | } else if (x < 1.1875) { | public static double atan(double x) { double lo; double hi; boolean negative = x < 0; if (negative) x = -x; if (x >= TWO_66) return negative ? -PI / 2 : PI / 2; if (!(x >= 0.4375)) // |x|<7/16, or NaN. { if (!(x >= 1 / TWO_29)) // Small, or NaN. return negative ? -x : x; lo = hi = 0; } else if (x <... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
} else | } else | public static double atan(double x) { double lo; double hi; boolean negative = x < 0; if (negative) x = -x; if (x >= TWO_66) return negative ? -PI / 2 : PI / 2; if (!(x >= 0.4375)) // |x|<7/16, or NaN. { if (!(x >= 1 / TWO_29)) // Small, or NaN. return negative ? -x : x; lo = hi = 0; } else if (x <... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
} else if (x < 2.4375) | } else if (x < 2.4375) | public static double atan(double x) { double lo; double hi; boolean negative = x < 0; if (negative) x = -x; if (x >= TWO_66) return negative ? -PI / 2 : PI / 2; if (!(x >= 0.4375)) // |x|<7/16, or NaN. { if (!(x >= 1 / TWO_29)) // Small, or NaN. return negative ? -x : x; lo = hi = 0; } else if (x <... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
} else | } else | public static double atan(double x) { double lo; double hi; boolean negative = x < 0; if (negative) x = -x; if (x >= TWO_66) return negative ? -PI / 2 : PI / 2; if (!(x >= 0.4375)) // |x|<7/16, or NaN. { if (!(x >= 1 / TWO_29)) // Small, or NaN. return negative ? -x : x; lo = hi = 0; } else if (x <... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
double s1 = z * (AT0 + w * (AT2 + w * (AT4 + w * (AT6 + w * (AT8 + w * AT10))))); | double s1 = z * (AT0 + w * (AT2 + w * (AT4 + w * (AT6 + w * (AT8 + w * AT10))))); | public static double atan(double x) { double lo; double hi; boolean negative = x < 0; if (negative) x = -x; if (x >= TWO_66) return negative ? -PI / 2 : PI / 2; if (!(x >= 0.4375)) // |x|<7/16, or NaN. { if (!(x >= 1 / TWO_29)) // Small, or NaN. return negative ? -x : x; lo = hi = 0; } else if (x <... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
public static double atan2(double y, double x) { | public static double atan2(double y, double x) { | public static double atan2(double y, double x) { if (x != x || y != y) return Double.NaN; if (x == 1) return atan(y); if (x == Double.POSITIVE_INFINITY) { if (y == Double.POSITIVE_INFINITY) return PI / 4; if (y == Double.NEGATIVE_INFINITY) return -PI / 4; return 0 * y; } if (x == Double.NEGATIVE_I... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (x == Double.POSITIVE_INFINITY) { | if (x == Double.POSITIVE_INFINITY) { | public static double atan2(double y, double x) { if (x != x || y != y) return Double.NaN; if (x == 1) return atan(y); if (x == Double.POSITIVE_INFINITY) { if (y == Double.POSITIVE_INFINITY) return PI / 4; if (y == Double.NEGATIVE_INFINITY) return -PI / 4; return 0 * y; } if (x == Double.NEGATIVE_I... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (x == Double.NEGATIVE_INFINITY) { | if (x == Double.NEGATIVE_INFINITY) { | public static double atan2(double y, double x) { if (x != x || y != y) return Double.NaN; if (x == 1) return atan(y); if (x == Double.POSITIVE_INFINITY) { if (y == Double.POSITIVE_INFINITY) return PI / 4; if (y == Double.NEGATIVE_INFINITY) return -PI / 4; return 0 * y; } if (x == Double.NEGATIVE_I... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (y == 0) { | if (y == 0) { | public static double atan2(double y, double x) { if (x != x || y != y) return Double.NaN; if (x == 1) return atan(y); if (x == Double.POSITIVE_INFINITY) { if (y == Double.POSITIVE_INFINITY) return PI / 4; if (y == Double.NEGATIVE_INFINITY) return -PI / 4; return 0 * y; } if (x == Double.NEGATIVE_I... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (y == Double.POSITIVE_INFINITY || y == Double.NEGATIVE_INFINITY || x == 0) | if (y == Double.POSITIVE_INFINITY || y == Double.NEGATIVE_INFINITY || x == 0) | public static double atan2(double y, double x) { if (x != x || y != y) return Double.NaN; if (x == 1) return atan(y); if (x == Double.POSITIVE_INFINITY) { if (y == Double.POSITIVE_INFINITY) return PI / 4; if (y == Double.NEGATIVE_INFINITY) return -PI / 4; return 0 * y; } if (x == Double.NEGATIVE_I... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
public static double ceil(double a) { | public static double ceil(double a) { | public static double ceil(double a) { return -floor(-a); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
public static double cos(double a) { if (a == Double.NEGATIVE_INFINITY || !(a < Double.POSITIVE_INFINITY)) | public static double cos(double a) { if (a == Double.NEGATIVE_INFINITY || ! (a < Double.POSITIVE_INFINITY)) | public static double cos(double a) { if (a == Double.NEGATIVE_INFINITY || !(a < Double.POSITIVE_INFINITY)) return Double.NaN; if (abs(a) <= PI / 4) return cos(a, 0); // Argument reduction needed. double[] y = new double[2]; int n = remPiOver2(a, y); switch (n & 3) { case 0 : return cos(y[0], y[1]); ca... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
switch (n & 3) { case 0 : | switch (n & 3) { case 0: | public static double cos(double a) { if (a == Double.NEGATIVE_INFINITY || !(a < Double.POSITIVE_INFINITY)) return Double.NaN; if (abs(a) <= PI / 4) return cos(a, 0); // Argument reduction needed. double[] y = new double[2]; int n = remPiOver2(a, y); switch (n & 3) { case 0 : return cos(y[0], y[1]); ca... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
case 1 : | case 1: | public static double cos(double a) { if (a == Double.NEGATIVE_INFINITY || !(a < Double.POSITIVE_INFINITY)) return Double.NaN; if (abs(a) <= PI / 4) return cos(a, 0); // Argument reduction needed. double[] y = new double[2]; int n = remPiOver2(a, y); switch (n & 3) { case 0 : return cos(y[0], y[1]); ca... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
case 2 : | case 2: | public static double cos(double a) { if (a == Double.NEGATIVE_INFINITY || !(a < Double.POSITIVE_INFINITY)) return Double.NaN; if (abs(a) <= PI / 4) return cos(a, 0); // Argument reduction needed. double[] y = new double[2]; int n = remPiOver2(a, y); switch (n & 3) { case 0 : return cos(y[0], y[1]); ca... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
default : | default: | public static double cos(double a) { if (a == Double.NEGATIVE_INFINITY || !(a < Double.POSITIVE_INFINITY)) return Double.NaN; if (abs(a) <= PI / 4) return cos(a, 0); // Argument reduction needed. double[] y = new double[2]; int n = remPiOver2(a, y); switch (n & 3) { case 0 : return cos(y[0], y[1]); ca... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
public static double exp(double x) { | public static double exp(double x) { | public static double exp(double x) { if (x != x) return x; if (x > EXP_LIMIT_H) return Double.POSITIVE_INFINITY; if (x < EXP_LIMIT_L) return 0; // Argument reduction. double hi; double lo; int k; double t = abs(x); if (t > 0.5 * LN2) { if (t < 1.5 * LN2) { hi = t - LN2_H; lo = LN2_L; k = 1; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (t > 0.5 * LN2) { if (t < 1.5 * LN2) { | if (t > 0.5 * LN2) { if (t < 1.5 * LN2) { | public static double exp(double x) { if (x != x) return x; if (x > EXP_LIMIT_H) return Double.POSITIVE_INFINITY; if (x < EXP_LIMIT_L) return 0; // Argument reduction. double hi; double lo; int k; double t = abs(x); if (t > 0.5 * LN2) { if (t < 1.5 * LN2) { hi = t - LN2_H; lo = LN2_L; k = 1; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
} else { | } else { | public static double exp(double x) { if (x != x) return x; if (x > EXP_LIMIT_H) return Double.POSITIVE_INFINITY; if (x < EXP_LIMIT_L) return 0; // Argument reduction. double hi; double lo; int k; double t = abs(x); if (t > 0.5 * LN2) { if (t < 1.5 * LN2) { hi = t - LN2_H; lo = LN2_L; k = 1; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (x < 0) { | if (x < 0) { | public static double exp(double x) { if (x != x) return x; if (x > EXP_LIMIT_H) return Double.POSITIVE_INFINITY; if (x < EXP_LIMIT_L) return 0; // Argument reduction. double hi; double lo; int k; double t = abs(x); if (t > 0.5 * LN2) { if (t < 1.5 * LN2) { hi = t - LN2_H; lo = LN2_L; k = 1; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
} else if (t < 1 / TWO_28) | } else if (t < 1 / TWO_28) | public static double exp(double x) { if (x != x) return x; if (x > EXP_LIMIT_H) return Double.POSITIVE_INFINITY; if (x < EXP_LIMIT_L) return 0; // Argument reduction. double hi; double lo; int k; double t = abs(x); if (t > 0.5 * LN2) { if (t < 1.5 * LN2) { hi = t - LN2_H; lo = LN2_L; k = 1; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
public static double floor(double a) { | public static double floor(double a) { | public static double floor(double a) { double x = abs(a); if (!(x < TWO_52) || (long) a == a) return a; // No fraction bits; includes NaN and infinity. if (x < 1) return a >= 0 ? 0 * a : -1; // Worry about signed zero. return a < 0 ? (long) a - 1.0 : (long) a; // Cast to long truncates. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (!(x < TWO_52) || (long) a == a) | if (! (x < TWO_52) || (long) a == a) | public static double floor(double a) { double x = abs(a); if (!(x < TWO_52) || (long) a == a) return a; // No fraction bits; includes NaN and infinity. if (x < 1) return a >= 0 ? 0 * a : -1; // Worry about signed zero. return a < 0 ? (long) a - 1.0 : (long) a; // Cast to long truncates. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
public static double log(double x) { | public static double log(double x) { | public static double log(double x) { if (x == 0) return Double.NEGATIVE_INFINITY; if (x < 0) return Double.NaN; if (!(x < Double.POSITIVE_INFINITY)) return x; // Normalize x. long bits = Double.doubleToLongBits(x); int exp = (int) (bits >> 52); if (exp == 0) // Subnormal x. { x *= TWO_54; bits = Dou... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (!(x < Double.POSITIVE_INFINITY)) | if (! (x < Double.POSITIVE_INFINITY)) | public static double log(double x) { if (x == 0) return Double.NEGATIVE_INFINITY; if (x < 0) return Double.NaN; if (!(x < Double.POSITIVE_INFINITY)) return x; // Normalize x. long bits = Double.doubleToLongBits(x); int exp = (int) (bits >> 52); if (exp == 0) // Subnormal x. { x *= TWO_54; bits = Dou... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (x >= SQRT_2) { | if (x >= SQRT_2) { | public static double log(double x) { if (x == 0) return Double.NEGATIVE_INFINITY; if (x < 0) return Double.NaN; if (!(x < Double.POSITIVE_INFINITY)) return x; // Normalize x. long bits = Double.doubleToLongBits(x); int exp = (int) (bits >> 52); if (exp == 0) // Subnormal x. { x *= TWO_54; bits = Dou... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (abs(x) < 1 / TWO_20) { | if (abs(x) < 1 / TWO_20) { | public static double log(double x) { if (x == 0) return Double.NEGATIVE_INFINITY; if (x < 0) return Double.NaN; if (!(x < Double.POSITIVE_INFINITY)) return x; // Normalize x. long bits = Double.doubleToLongBits(x); int exp = (int) (bits >> 52); if (exp == 0) // Subnormal x. { x *= TWO_54; bits = Dou... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (bits >= 0x3ff6174a00000000L && bits < 0x3ff6b85200000000L) { | if (bits >= 0x3ff6174a00000000L && bits < 0x3ff6b85200000000L) { | public static double log(double x) { if (x == 0) return Double.NEGATIVE_INFINITY; if (x < 0) return Double.NaN; if (!(x < Double.POSITIVE_INFINITY)) return x; // Normalize x. long bits = Double.doubleToLongBits(x); int exp = (int) (bits >> 52); if (exp == 0) // Subnormal x. { x *= TWO_54; bits = Dou... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
public static int max(int a, int b) { | public static int max(int a, int b) { | public static int max(int a, int b) { return (a > b) ? a : b; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
public static int min(int a, int b) { | public static int min(int a, int b) { | public static int min(int a, int b) { return (a < b) ? a : b; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
public static double pow(double x, double y) { | public static double pow(double x, double y) { | public static double pow(double x, double y) { // Special cases first. if (y == 0) return 1; if (y == 1) return x; if (y == -1) return 1 / x; if (x != x || y != y) return Double.NaN; // When x < 0, yisint tells if y is not an integer (0), even(1), // or odd (2). int yisint = 0; if (x < 0 && floor(y) =... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (ay == Double.POSITIVE_INFINITY) { | if (ay == Double.POSITIVE_INFINITY) { | public static double pow(double x, double y) { // Special cases first. if (y == 0) return 1; if (y == 1) return x; if (y == -1) return 1 / x; if (x != x || y != y) return Double.NaN; // When x < 0, yisint tells if y is not an integer (0), even(1), // or odd (2). int yisint = 0; if (x < 0 && floor(y) =... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (x == 0 || ax == Double.POSITIVE_INFINITY || ax == 1) { | if (x == 0 || ax == Double.POSITIVE_INFINITY || ax == 1) { | public static double pow(double x, double y) { // Special cases first. if (y == 0) return 1; if (y == 1) return x; if (y == -1) return 1 / x; if (x != x || y != y) return Double.NaN; // When x < 0, yisint tells if y is not an integer (0), even(1), // or odd (2). int yisint = 0; if (x < 0 && floor(y) =... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (x < 0) { | if (x < 0) { | public static double pow(double x, double y) { // Special cases first. if (y == 0) return 1; if (y == 1) return x; if (y == -1) return 1 / x; if (x != x || y != y) return Double.NaN; // When x < 0, yisint tells if y is not an integer (0), even(1), // or odd (2). int yisint = 0; if (x < 0 && floor(y) =... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (ay > TWO_31) { | if (ay > TWO_31) { | public static double pow(double x, double y) { // Special cases first. if (y == 0) return 1; if (y == 1) return x; if (y == -1) return 1 / x; if (x != x || y != y) return Double.NaN; // When x < 0, yisint tells if y is not an integer (0), even(1), // or odd (2). int yisint = 0; if (x < 0 && floor(y) =... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
} else { | } else { | public static double pow(double x, double y) { // Special cases first. if (y == 0) return 1; if (y == 1) return x; if (y == -1) return 1 / x; if (x != x || y != y) return Double.NaN; // When x < 0, yisint tells if y is not an integer (0), even(1), // or odd (2). int yisint = 0; if (x < 0 && floor(y) =... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
ax = Double.longBitsToDouble((bits & 0x000fffffffffffffL) | 0x3ff0000000000000L); | ax = Double.longBitsToDouble((bits & 0x000fffffffffffffL) | 0x3ff0000000000000L); | public static double pow(double x, double y) { // Special cases first. if (y == 0) return 1; if (y == 1) return x; if (y == -1) return 1 / x; if (x != x || y != y) return Double.NaN; // When x < 0, yisint tells if y is not an integer (0), even(1), // or odd (2). int yisint = 0; if (x < 0 && floor(y) =... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
else { | else { | public static double pow(double x, double y) { // Special cases first. if (y == 0) return 1; if (y == 1) return x; if (y == -1) return 1 / x; if (x != x || y != y) return Double.NaN; // When x < 0, yisint tells if y is not an integer (0), even(1), // or odd (2). int yisint = 0; if (x < 0 && floor(y) =... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
double r = s_l * (s_h + s) + s2 * s2 * (L1 + s2 * (L2 + s2 * (L3 + s2 * (L4 + s2 * (L5 + s2 * L6))))); | double r = s_l * (s_h + s) + s2 * s2 * (L1 + s2 * (L2 + s2 * (L3 + s2 * (L4 + s2 * (L5 + s2 * L6))))); | public static double pow(double x, double y) { // Special cases first. if (y == 0) return 1; if (y == 1) return x; if (y == -1) return 1 / x; if (x != x || y != y) return Double.NaN; // When x < 0, yisint tells if y is not an integer (0), even(1), // or odd (2). int yisint = 0; if (x < 0 && floor(y) =... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
return negative ? Double.NEGATIVE_INFINITY : Double.POSITIVE_INFINITY; } else if (z <= -1075) | return negative ? Double.NEGATIVE_INFINITY : Double.POSITIVE_INFINITY; } else if (z <= -1075) | public static double pow(double x, double y) { // Special cases first. if (y == 0) return 1; if (y == 1) return x; if (y == -1) return 1 / x; if (x != x || y != y) return Double.NaN; // When x < 0, yisint tells if y is not an integer (0), even(1), // or odd (2). int yisint = 0; if (x < 0 && floor(y) =... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
public static synchronized double random() { | public static synchronized double random() { | public static synchronized double random() { if (rand == null) rand = new Random(); return rand.nextDouble(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
private static int remPiOver2(double x, double[] y) { | private static int remPiOver2(double x, double[] y) { | private static int remPiOver2(double x, double[] y) { boolean negative = x < 0; x = abs(x); double z; int n; if (x < 3 * PI / 4) // If |x| is small. { z = x - PIO2_1; if ((float) x != (float) (PI / 2)) // 33+53 bit pi is good enough. { y[0] = z - PIO2_1L; y[1] = z - y[0] - PIO2_1L; } else // Near... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
} else | } else | private static int remPiOver2(double x, double[] y) { boolean negative = x < 0; x = abs(x); double z; int n; if (x < 3 * PI / 4) // If |x| is small. { z = x - PIO2_1; if ((float) x != (float) (PI / 2)) // 33+53 bit pi is good enough. { y[0] = z - PIO2_1L; y[1] = z - y[0] - PIO2_1L; } else // Near... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
} else if (x <= TWO_20 * PI / 2) | } else if (x <= TWO_20 * PI / 2) | private static int remPiOver2(double x, double[] y) { boolean negative = x < 0; x = abs(x); double z; int n; if (x < 3 * PI / 4) // If |x| is small. { z = x - PIO2_1; if ((float) x != (float) (PI / 2)) // 33+53 bit pi is good enough. { y[0] = z - PIO2_1L; y[1] = z - y[0] - PIO2_1L; } else // Near... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (n >= 32 || (float) x == (float) (w)) { | if (n >= 32 || (float) x == (float) (w)) { | private static int remPiOver2(double x, double[] y) { boolean negative = x < 0; x = abs(x); double z; int n; if (x < 3 * PI / 4) // If |x| is small. { z = x - PIO2_1; if ((float) x != (float) (PI / 2)) // 33+53 bit pi is good enough. { y[0] = z - PIO2_1L; y[1] = z - y[0] - PIO2_1L; } else // Near... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
} else { | } else { | private static int remPiOver2(double x, double[] y) { boolean negative = x < 0; x = abs(x); double z; int n; if (x < 3 * PI / 4) // If |x| is small. { z = x - PIO2_1; if ((float) x != (float) (PI / 2)) // 33+53 bit pi is good enough. { y[0] = z - PIO2_1L; y[1] = z - y[0] - PIO2_1L; } else // Near... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
for (int i = 0; i < 2; i++) { | for (int i = 0; i < 2; i++) { | private static int remPiOver2(double x, double[] y) { boolean negative = x < 0; x = abs(x); double z; int n; if (x < 3 * PI / 4) // If |x| is small. { z = x - PIO2_1; if ((float) x != (float) (PI / 2)) // 33+53 bit pi is good enough. { y[0] = z - PIO2_1L; y[1] = z - y[0] - PIO2_1L; } else // Near... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (negative) { | if (negative) { | private static int remPiOver2(double x, double[] y) { boolean negative = x < 0; x = abs(x); double z; int n; if (x < 3 * PI / 4) // If |x| is small. { z = x - PIO2_1; if ((float) x != (float) (PI / 2)) // 33+53 bit pi is good enough. { y[0] = z - PIO2_1L; y[1] = z - y[0] - PIO2_1L; } else // Near... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
public static double rint(double a) { | public static double rint(double a) { | public static double rint(double a) { double x = abs(a); if (!(x < TWO_52)) return a; // No fraction bits; includes NaN and infinity. if (x <= 0.5) return 0 * a; // Worry about signed zero. if (x % 2 <= 0.5) return (long) a; // Catch round down to even. return (long) (a + (a < 0 ? -0.5 : 0.5)); // Cast to l... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
if (!(x < TWO_52)) | if (! (x < TWO_52)) | public static double rint(double a) { double x = abs(a); if (!(x < TWO_52)) return a; // No fraction bits; includes NaN and infinity. if (x <= 0.5) return 0 * a; // Worry about signed zero. if (x % 2 <= 0.5) return (long) a; // Catch round down to even. return (long) (a + (a < 0 ? -0.5 : 0.5)); // Cast to l... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
public static int round(float f) { | public static int round(float f) { | public static int round(float f) { return (int) floor(f + 0.5f); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
private static double scale(double x, int n) { if (x == 0 || x == Double.NEGATIVE_INFINITY || !(x < Double.POSITIVE_INFINITY) || n == 0) | private static double scale(double x, int n) { if (Configuration.DEBUG && abs(n) >= 2048) throw new InternalError("Assertion failure"); if (x == 0 || x == Double.NEGATIVE_INFINITY || ! (x < Double.POSITIVE_INFINITY) || n == 0) | private static double scale(double x, int n) { if (x == 0 || x == Double.NEGATIVE_INFINITY || !(x < Double.POSITIVE_INFINITY) || n == 0) return x; long bits = Double.doubleToLongBits(x); int exp = (int) (bits >> 52) & 0x7ff; if (exp == 0) // Subnormal x. { x *= TWO_54; exp = ((int) (Double.doubleToLongBits... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
return Double.longBitsToDouble((bits & 0x800fffffffffffffL) | ((long) exp << 52)); | return Double.longBitsToDouble((bits & 0x800fffffffffffffL) | ((long) exp << 52)); | private static double scale(double x, int n) { if (x == 0 || x == Double.NEGATIVE_INFINITY || !(x < Double.POSITIVE_INFINITY) || n == 0) return x; long bits = Double.doubleToLongBits(x); int exp = (int) (bits >> 52) & 0x7ff; if (exp == 0) // Subnormal x. { x *= TWO_54; exp = ((int) (Double.doubleToLongBits... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
x = Double.longBitsToDouble((bits & 0x800fffffffffffffL) | ((long) exp << 52)); | x = Double.longBitsToDouble((bits & 0x800fffffffffffffL) | ((long) exp << 52)); | private static double scale(double x, int n) { if (x == 0 || x == Double.NEGATIVE_INFINITY || !(x < Double.POSITIVE_INFINITY) || n == 0) return x; long bits = Double.doubleToLongBits(x); int exp = (int) (bits >> 52) & 0x7ff; if (exp == 0) // Subnormal x. { x *= TWO_54; exp = ((int) (Double.doubleToLongBits... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
public static double sin(double a) { if (a == Double.NEGATIVE_INFINITY || !(a < Double.POSITIVE_INFINITY)) | public static double sin(double a) { if (a == Double.NEGATIVE_INFINITY || ! (a < Double.POSITIVE_INFINITY)) | public static double sin(double a) { if (a == Double.NEGATIVE_INFINITY || !(a < Double.POSITIVE_INFINITY)) return Double.NaN; if (abs(a) <= PI / 4) return sin(a, 0); // Argument reduction needed. double[] y = new double[2]; int n = remPiOver2(a, y); switch (n & 3) { case 0 : return sin(y[0], y[1]); ca... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
switch (n & 3) { case 0 : | switch (n & 3) { case 0: | public static double sin(double a) { if (a == Double.NEGATIVE_INFINITY || !(a < Double.POSITIVE_INFINITY)) return Double.NaN; if (abs(a) <= PI / 4) return sin(a, 0); // Argument reduction needed. double[] y = new double[2]; int n = remPiOver2(a, y); switch (n & 3) { case 0 : return sin(y[0], y[1]); ca... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.