- entry_type: ghost_instrumentation
  metadata:
    format_version: "2.0"
    uuid: 89a2226c-5d67-43fc-966c-2c365f2474f2
    creation_time: 2025-05-28T12:16:56Z
    producer:
      name: Goblint
      version: heads/master-0-gb8fb60e5d-dirty
      command_line: '''./goblint'' ''--conf'' ''conf/svcomp-ghost.json'' ''--set''
        ''ana.base.privatization'' ''protection-read'' ''--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-deagle/arithmetic_prog_ok.i'''
    task:
      input_files:
      - /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
      input_file_hashes:
        /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i: 29016034e4102bf62d4fcba069301a54da1d77dfd5739e4cf52e395ddaa22e38
      data_model: ILP32
      language: C
      specification: CHECK( init(main()), LTL(G ! call(reach_error())) )
  content:
    ghost_variables:
    - name: m_locked
      scope: global
      type: int
      initial:
        value: "0"
        format: c_expression
    - 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-deagle/arithmetic_prog_ok.i
        line: 913
        column: 3
        function: main
      updates:
      - variable: multithreaded
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 898
        column: 5
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 893
        column: 5
        function: thread2
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 898
        column: 5
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 893
        column: 5
        function: thread2
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 898
        column: 5
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 893
        column: 5
        function: thread2
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 898
        column: 5
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 893
        column: 5
        function: thread2
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 883
        column: 5
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 879
        column: 5
        function: thread1
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 883
        column: 5
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 879
        column: 5
        function: thread1
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 883
        column: 5
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 879
        column: 5
        function: thread1
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 883
        column: 5
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 879
        column: 5
        function: thread1
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
- entry_type: invariant_set
  metadata:
    format_version: "2.0"
    uuid: d3d6daf9-e68a-4ba5-8104-e550781a90dc
    creation_time: 2025-05-28T12:16:56Z
    producer:
      name: Goblint
      version: heads/master-0-gb8fb60e5d-dirty
      command_line: '''./goblint'' ''--conf'' ''conf/svcomp-ghost.json'' ''--set''
        ''ana.base.privatization'' ''protection-read'' ''--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-deagle/arithmetic_prog_ok.i'''
    task:
      input_files:
      - /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
      input_file_hashes:
        /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i: 29016034e4102bf62d4fcba069301a54da1d77dfd5739e4cf52e395ddaa22e38
      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-deagle/arithmetic_prog_ok.i
        line: 914
        column: 3
        function: main
      value: '! multithreaded || (flag == 0 || flag == 1)'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 915
        column: 3
        function: main
      value: '! multithreaded || (flag == 0 || flag == 1)'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 914
        column: 3
        function: main
      value: '! multithreaded || ((total & 0UL) == 0UL && (~ total & 0UL) == 0UL)'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 915
        column: 3
        function: main
      value: '! multithreaded || ((total & 0UL) == 0UL && (~ total & 0UL) == 0UL)'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 914
        column: 3
        function: main
      value: '! multithreaded || (0 <= num && num <= 1)'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_ok.i
        line: 915
        column: 3
        function: main
      value: '! multithreaded || (0 <= num && num <= 1)'
      format: c_expression
