- entry_type: ghost_instrumentation
  metadata:
    format_version: "2.1"
    uuid: 13c94058-5da2-432c-84db-d06b99f38eec
    creation_time: 2024-09-27T13:58:35Z
    producer:
      name: Goblint
      version: heads/yaml-witness-ghost-0-g852297b68-dirty
      command_line: '''./goblint'' ''--conf'' ''conf/svcomp-ghost.json'' ''--set''
        ''ana.base.privatization'' ''mutex-meet'' ''--set'' ''ana.activated[+]'' ''apron''
        ''--set'' ''ana.autotune.activated[-]'' ''octagon'' ''--sets'' ''ana.specification''
        ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/properties/unreach-call.prp''
        ''--sets'' ''exp.architecture'' ''32bit'' ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-driver-races/char_generic_nvram_read_nvram_write_nvram.i'''
    task:
      input_files:
      - /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-driver-races/char_generic_nvram_read_nvram_write_nvram.i
      input_file_hashes:
        /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-driver-races/char_generic_nvram_read_nvram_write_nvram.i: e2e7bb75a4a041a1b509d755288a88858836cab5db2230ae4fd0db7ec04fe254
      data_model: ILP32
      language: C
      specification: CHECK( init(main()), LTL(G ! call(reach_error())) )
  content:
    ghost_variables:
    - name: multithreaded
      scope: global
      type: int
      initial:
        value: "0"
        format: c_expression
    ghost_updates:
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-driver-races/char_generic_nvram_read_nvram_write_nvram.i
        file_hash: e2e7bb75a4a041a1b509d755288a88858836cab5db2230ae4fd0db7ec04fe254
        line: 6883
        column: 2
        function: main
      updates:
      - variable: multithreaded
        value: "1"
        format: c_expression
- entry_type: invariant_set
  metadata:
    format_version: "2.1"
    uuid: 0797b928-66f5-447e-8594-dead279b2325
    creation_time: 2024-09-27T13:58:35Z
    producer:
      name: Goblint
      version: heads/yaml-witness-ghost-0-g852297b68-dirty
      command_line: '''./goblint'' ''--conf'' ''conf/svcomp-ghost.json'' ''--set''
        ''ana.base.privatization'' ''mutex-meet'' ''--set'' ''ana.activated[+]'' ''apron''
        ''--set'' ''ana.autotune.activated[-]'' ''octagon'' ''--sets'' ''ana.specification''
        ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/properties/unreach-call.prp''
        ''--sets'' ''exp.architecture'' ''32bit'' ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-driver-races/char_generic_nvram_read_nvram_write_nvram.i'''
    task:
      input_files:
      - /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-driver-races/char_generic_nvram_read_nvram_write_nvram.i
      input_file_hashes:
        /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-driver-races/char_generic_nvram_read_nvram_write_nvram.i: e2e7bb75a4a041a1b509d755288a88858836cab5db2230ae4fd0db7ec04fe254
      data_model: ILP32
      language: C
      specification: CHECK( init(main()), LTL(G ! call(reach_error())) )
  content:
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-driver-races/char_generic_nvram_read_nvram_write_nvram.i
        file_hash: e2e7bb75a4a041a1b509d755288a88858836cab5db2230ae4fd0db7ec04fe254
        line: 6884
        column: 2
        function: main
      value: '! multithreaded || jiffies == 0UL'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-driver-races/char_generic_nvram_read_nvram_write_nvram.i
        file_hash: e2e7bb75a4a041a1b509d755288a88858836cab5db2230ae4fd0db7ec04fe254
        line: 6885
        column: 2
        function: main
      value: '! multithreaded || jiffies == 0UL'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-driver-races/char_generic_nvram_read_nvram_write_nvram.i
        file_hash: e2e7bb75a4a041a1b509d755288a88858836cab5db2230ae4fd0db7ec04fe254
        line: 6884
        column: 2
        function: main
      value: '! multithreaded || (unsigned int )default_alloc_size == 4U'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-driver-races/char_generic_nvram_read_nvram_write_nvram.i
        file_hash: e2e7bb75a4a041a1b509d755288a88858836cab5db2230ae4fd0db7ec04fe254
        line: 6885
        column: 2
        function: main
      value: '! multithreaded || (unsigned int )default_alloc_size == 4U'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-driver-races/char_generic_nvram_read_nvram_write_nvram.i
        file_hash: e2e7bb75a4a041a1b509d755288a88858836cab5db2230ae4fd0db7ec04fe254
        line: 6884
        column: 2
        function: main
      value: '! multithreaded || _whoop_init == & nvram_init'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-driver-races/char_generic_nvram_read_nvram_write_nvram.i
        file_hash: e2e7bb75a4a041a1b509d755288a88858836cab5db2230ae4fd0db7ec04fe254
        line: 6885
        column: 2
        function: main
      value: '! multithreaded || _whoop_init == & nvram_init'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-driver-races/char_generic_nvram_read_nvram_write_nvram.i
        file_hash: e2e7bb75a4a041a1b509d755288a88858836cab5db2230ae4fd0db7ec04fe254
        line: 6884
        column: 2
        function: main
      value: '! multithreaded || 0 <= whoop_int'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-driver-races/char_generic_nvram_read_nvram_write_nvram.i
        file_hash: e2e7bb75a4a041a1b509d755288a88858836cab5db2230ae4fd0db7ec04fe254
        line: 6885
        column: 2
        function: main
      value: '! multithreaded || 0 <= whoop_int'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-driver-races/char_generic_nvram_read_nvram_write_nvram.i
        file_hash: e2e7bb75a4a041a1b509d755288a88858836cab5db2230ae4fd0db7ec04fe254
        line: 6884
        column: 2
        function: main
      value: '! multithreaded || ((((((((((((((((((((((((nvram_fops.check_flags ==
        0 && nvram_fops.compat_ioctl == 0) && nvram_fops.dir_notify == 0) && nvram_fops.fasync
        == 0) && nvram_fops.flock == 0) && nvram_fops.flush == 0) && nvram_fops.fsync
        == 0) && nvram_fops.get_unmapped_area == 0) && nvram_fops.ioctl == 0) && nvram_fops.llseek
        == & nvram_llseek) && nvram_fops.lock == 0) && nvram_fops.mmap == 0) && nvram_fops.open
        == 0) && nvram_fops.open_exec == 0) && nvram_fops.owner == 0) && nvram_fops.poll
        == 0) && nvram_fops.read == & read_nvram) && nvram_fops.readdir == 0) && nvram_fops.readv
        == 0) && nvram_fops.release == 0) && nvram_fops.sendfile == 0) && nvram_fops.sendpage
        == 0) && nvram_fops.unlocked_ioctl == & nvram_unlocked_ioctl) && nvram_fops.write
        == & write_nvram) && nvram_fops.writev == 0)'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-driver-races/char_generic_nvram_read_nvram_write_nvram.i
        file_hash: e2e7bb75a4a041a1b509d755288a88858836cab5db2230ae4fd0db7ec04fe254
        line: 6885
        column: 2
        function: main
      value: '! multithreaded || ((((((((((((((((((((((((nvram_fops.check_flags ==
        0 && nvram_fops.compat_ioctl == 0) && nvram_fops.dir_notify == 0) && nvram_fops.fasync
        == 0) && nvram_fops.flock == 0) && nvram_fops.flush == 0) && nvram_fops.fsync
        == 0) && nvram_fops.get_unmapped_area == 0) && nvram_fops.ioctl == 0) && nvram_fops.llseek
        == & nvram_llseek) && nvram_fops.lock == 0) && nvram_fops.mmap == 0) && nvram_fops.open
        == 0) && nvram_fops.open_exec == 0) && nvram_fops.owner == 0) && nvram_fops.poll
        == 0) && nvram_fops.read == & read_nvram) && nvram_fops.readdir == 0) && nvram_fops.readv
        == 0) && nvram_fops.release == 0) && nvram_fops.sendfile == 0) && nvram_fops.sendpage
        == 0) && nvram_fops.unlocked_ioctl == & nvram_unlocked_ioctl) && nvram_fops.write
        == & write_nvram) && nvram_fops.writev == 0)'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-driver-races/char_generic_nvram_read_nvram_write_nvram.i
        file_hash: e2e7bb75a4a041a1b509d755288a88858836cab5db2230ae4fd0db7ec04fe254
        line: 6884
        column: 2
        function: main
      value: '! multithreaded || ((((((-4LL + (long long )default_alloc_size) + (long
        long )whoop_int >= 0LL && (-4LL + (long long )default_alloc_size) + (long
        long )nvram_len >= 0LL) && (4LL - (long long )default_alloc_size) + (long
        long )whoop_int >= 0LL) && (4LL - (long long )default_alloc_size) + (long
        long )nvram_len >= 0LL) && (long long )nvram_len + (long long )whoop_int >=
        0LL) && (2147483647LL + (long long )nvram_len) - (long long )whoop_int >=
        0LL)'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-driver-races/char_generic_nvram_read_nvram_write_nvram.i
        file_hash: e2e7bb75a4a041a1b509d755288a88858836cab5db2230ae4fd0db7ec04fe254
        line: 6885
        column: 2
        function: main
      value: '! multithreaded || ((((((-4LL + (long long )default_alloc_size) + (long
        long )whoop_int >= 0LL && (-4LL + (long long )default_alloc_size) + (long
        long )nvram_len >= 0LL) && (4LL - (long long )default_alloc_size) + (long
        long )whoop_int >= 0LL) && (4LL - (long long )default_alloc_size) + (long
        long )nvram_len >= 0LL) && (long long )nvram_len + (long long )whoop_int >=
        0LL) && (2147483647LL + (long long )nvram_len) - (long long )whoop_int >=
        0LL)'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-driver-races/char_generic_nvram_read_nvram_write_nvram.i
        file_hash: e2e7bb75a4a041a1b509d755288a88858836cab5db2230ae4fd0db7ec04fe254
        line: 6884
        column: 2
        function: main
      value: '! multithreaded || (((((((((((((((((((((((((((((0 <= whoop_int && _whoop_init
        == & nvram_init) && _whoop_exit == & nvram_cleanup) && jiffies == 0UL) &&
        nvram_fops.check_flags == 0) && nvram_fops.compat_ioctl == 0) && nvram_fops.dir_notify
        == 0) && nvram_fops.fasync == 0) && nvram_fops.flock == 0) && nvram_fops.flush
        == 0) && nvram_fops.fsync == 0) && nvram_fops.get_unmapped_area == 0) && nvram_fops.ioctl
        == 0) && nvram_fops.llseek == & nvram_llseek) && nvram_fops.lock == 0) &&
        nvram_fops.mmap == 0) && nvram_fops.open == 0) && nvram_fops.open_exec ==
        0) && nvram_fops.owner == 0) && nvram_fops.poll == 0) && nvram_fops.read ==
        & read_nvram) && nvram_fops.readdir == 0) && nvram_fops.readv == 0) && nvram_fops.release
        == 0) && nvram_fops.sendfile == 0) && nvram_fops.sendpage == 0) && nvram_fops.unlocked_ioctl
        == & nvram_unlocked_ioctl) && nvram_fops.write == & write_nvram) && nvram_fops.writev
        == 0) && (unsigned int )default_alloc_size == 4U)'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-driver-races/char_generic_nvram_read_nvram_write_nvram.i
        file_hash: e2e7bb75a4a041a1b509d755288a88858836cab5db2230ae4fd0db7ec04fe254
        line: 6885
        column: 2
        function: main
      value: '! multithreaded || (((((((((((((((((((((((((((((0 <= whoop_int && _whoop_init
        == & nvram_init) && _whoop_exit == & nvram_cleanup) && jiffies == 0UL) &&
        nvram_fops.check_flags == 0) && nvram_fops.compat_ioctl == 0) && nvram_fops.dir_notify
        == 0) && nvram_fops.fasync == 0) && nvram_fops.flock == 0) && nvram_fops.flush
        == 0) && nvram_fops.fsync == 0) && nvram_fops.get_unmapped_area == 0) && nvram_fops.ioctl
        == 0) && nvram_fops.llseek == & nvram_llseek) && nvram_fops.lock == 0) &&
        nvram_fops.mmap == 0) && nvram_fops.open == 0) && nvram_fops.open_exec ==
        0) && nvram_fops.owner == 0) && nvram_fops.poll == 0) && nvram_fops.read ==
        & read_nvram) && nvram_fops.readdir == 0) && nvram_fops.readv == 0) && nvram_fops.release
        == 0) && nvram_fops.sendfile == 0) && nvram_fops.sendpage == 0) && nvram_fops.unlocked_ioctl
        == & nvram_unlocked_ioctl) && nvram_fops.write == & write_nvram) && nvram_fops.writev
        == 0) && (unsigned int )default_alloc_size == 4U)'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-driver-races/char_generic_nvram_read_nvram_write_nvram.i
        file_hash: e2e7bb75a4a041a1b509d755288a88858836cab5db2230ae4fd0db7ec04fe254
        line: 6884
        column: 2
        function: main
      value: '! multithreaded || _whoop_exit == & nvram_cleanup'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-driver-races/char_generic_nvram_read_nvram_write_nvram.i
        file_hash: e2e7bb75a4a041a1b509d755288a88858836cab5db2230ae4fd0db7ec04fe254
        line: 6885
        column: 2
        function: main
      value: '! multithreaded || _whoop_exit == & nvram_cleanup'
      format: c_expression
