You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: roundf64.rs
    path of file: ./repos/kani/tests/kani/Intrinsics/Math/Rounding/Round
    
    the code of the file until where you have to start completion: // Copyright Kani Contributors
// SPDX-License-Identifier: Apache-2.0 OR MIT

// Checks that `roundf64` does return:
//  * The nearest integer to the argument for some concrete cases.
//  * A value that is closer to one of the limits (zero, infinity or
    
fn test_towards_closer() {
    let x: f64 = kani::any();
    kani::assume(!x.is_nan());
    kani::assume(!x.is_infinite());
    let result = unsafe { roundf64(x) };
    let frac = x.fract().abs();
    if x.is_sign_positive() {
        if frac >= 0.5 {
            assert!(result > x);
        } else {
            assert!(result <= x);
        }
    } else {
        if frac >= 0.5 {
            assert!(result < x);
        } else {
            assert!(result >= x);
        }
    }
}