<commit_before>


// -*- rust -*-
fn main() {
    let a: int = 1;
    let b: int = 2;
    a ^= b;
    b ^= a;
    a = a ^ b;
    log a;
    log b;
    assert (b == 1);
    assert (a == 2);
    assert (!0xf0 & 0xff == 0xf);
    assert (0xf0 | 0xf == 0xff);
    assert (0xf << 4 == 0xf0);
    assert (0xf0 >> 4 == 0xf);
    assert (-16 >>> 2 == -4);
    assert (0b1010_1010 | 0b0101_0101 == 0xff);
    assert (-1000 >> 3 == 536870787);
}<commit_msg>Make run-pass/bitwise 64-bit compatible<commit_after>// -*- rust -*-

#[cfg(target_arch = "x86")]
fn target() {
    assert (-1000 >> 3 == 536870787);
}

#[cfg(target_arch = "x86_64")]
fn target() {
    // FIXME (974) Can't lex this as a single integer
    assert (-1000 >> 3 == 23058430 * 1000000000 * 100
            + 92 * 100000000 + 13693827);
}

fn general() {
    let a: int = 1;
    let b: int = 2;
    a ^= b;
    b ^= a;
    a = a ^ b;
    log a;
    log b;
    assert (b == 1);
    assert (a == 2);
    assert (!0xf0 & 0xff == 0xf);
    assert (0xf0 | 0xf == 0xff);
    assert (0xf << 4 == 0xf0);
    assert (0xf0 >> 4 == 0xf);
    assert (-16 >>> 2 == -4);
    assert (0b1010_1010 | 0b0101_0101 == 0xff);
}

fn main() {
    general();
    target();
}
{'fraction_non_alphanumeric': 0.19950331125827814, 'fraction_numerical': 0.14072847682119205, 'mean_word_length': 2.0149625935162097, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4598890', 'n_tokens_mistral': 603, 'n_tokens_neox': 487, 'n_words': 147}